# HG changeset patch # User drewp@bigasterisk.com # Date 1578902848 28800 # Node ID 2936477ba3dd7aa155059dcb37975369c67249a3 # Parent 6933336a8faebde50f2fc59f7e26ac7a7dd28a53 dispatch graph-changed event. experimental. diff -r 6933336a8fae -r 2936477ba3dd src/index.ts --- 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() {