1 import {Workflow} from '../graph/workflow';
3 export interface GraphChange {
8 export interface SVGPlugin {
10 registerWorkflow?(workflow: Workflow): void;
12 registerOnBeforeChange?(fn: (change: GraphChange) => void): void;
14 registerOnAfterChange?(fn: (change: GraphChange) => void): void;
16 registerOnAfterRender?(fn: (change: GraphChange) => void): void;
21 * Invoked when the underlying model instance changes.
22 * Implementation should dispose listeners from the old model and attach listeners to the new one.
24 afterModelChange?(): void;
26 onEditableStateChange?(enabled: boolean): void;
29 * Invoked when a graph should be destroyed.
30 * Implementations should remove attached DOM and model event listeners, as well as other stuff that
31 * might be left in memory.