You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* An interface to allow methods defined below to accept Palette or Diagram Components,
7
+
* An interface to allow methods defined below to accept Palette or Diagram Components,
8
8
* without requiring DiagramComponent or PaletteComponent directly in this file
9
9
* (that would create a circular dependency)
10
-
*/
10
+
*/
11
11
exportinterfaceIDiagramOrPaletteComponent{
12
12
modelChange: EventEmitter<go.IncrementalData>,
13
13
zone: NgZone,
@@ -25,9 +25,10 @@ export class NgDiagramHelper{
25
25
/**
26
26
* Ensures mousemove event listeners on a diagram's canvas are run outside NgZone.
27
27
* This way, change detection isn't triggered on each mousemove, improving performance.
28
+
*
28
29
* If some state-alteration must happen on a mousemove event inside the diagram, use zone.run() to make sure the event triggers angular change detection.
29
30
* Used by DiagramComponent, PaletteComponent, and OverviewComponent in their ngAfterViewInit lifecycle hooks
0 commit comments