diff 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
line wrap: on
line diff
--- a/src/index.ts	Mon Jan 13 00:07:06 2020 -0800
+++ b/src/index.ts	Mon Jan 13 00:07:28 2020 -0800
@@ -110,6 +110,9 @@
     if (this.expanded) {
       this.redrawGraph();
     }
+    this.dispatchEvent(
+      new CustomEvent("graph-changed", { detail: { graph: this.graph } })
+    );
   }
 
   _redrawLater() {