MCPcopy
hub / github.com/antvis/Infographic / init

Method init

src/editor/interactions/select-highlight.ts:27–34  ·  view source on GitHub ↗
(options: InteractionInitOptions)

Source from the content-addressed store, hash-verified

25 private combinedBoundsMask?: SVGRectElement;
26
27 init(options: InteractionInitOptions) {
28 super.init(options);
29 const { emitter } = options;
30 emitter.on('selection:change', this.handleSelectionChanged);
31 emitter.on('selection:geometrychange', this.handleGeometryChanged);
32 emitter.on('history:change', this.handleHistoryChanged);
33 this.highlightSelection(this.interaction.getSelection());
34 }
35
36 destroy() {
37 this.clearMasks();

Callers

nothing calls this directly

Calls 4

highlightSelectionMethod · 0.95
initMethod · 0.65
onMethod · 0.65
getSelectionMethod · 0.65

Tested by

no test coverage detected