comparison src/index.ts @ 55:2936477ba3dd

dispatch graph-changed event. experimental.
author drewp@bigasterisk.com
date Mon, 13 Jan 2020 00:07:28 -0800
parents 6933336a8fae
children 1bb65cb4c685
comparison
equal deleted inserted replaced
54:6933336a8fae 55:2936477ba3dd
108 store: this.sg.store 108 store: this.sg.store
109 }; 109 };
110 if (this.expanded) { 110 if (this.expanded) {
111 this.redrawGraph(); 111 this.redrawGraph();
112 } 112 }
113 this.dispatchEvent(
114 new CustomEvent("graph-changed", { detail: { graph: this.graph } })
115 );
113 } 116 }
114 117
115 _redrawLater() { 118 _redrawLater() {
116 if (!this.graphViewDirty) return; 119 if (!this.graphViewDirty) return;
117 120