string
Behavior key, that is, the unique identifier
Used to identify the behavior for further operations
// Update behavior optionsgraph.updateBehavior({key: 'key', ...});
string
Behavior type
number Default:
200
Set debounce time
boolean | ((event: IViewportEvent) => boolean) Default:
true
Whether to enable canvas optimization function
{ node?: string[]; edge?: string[]; combo?: string[]; } | ((type: 'node' | 'edge' | 'combo', shape: DisplayObject) => boolean)
Specify the shapes that are always visible. After applying this interaction, only the shapes specified by this property will remain visible during the canvas operation, and the rest of the shapes will be hidden to improve rendering performance. By default, nodes are always visible, while other shapes are automatically hidden during canvas operations
destroy(): void;
update(options: Partial<OptimizeViewportTransformOptions>): void;
Parameter | Type | Description |
---|---|---|
options | OptimizeViewportTransformOptions |
Returns: