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

Method destroy

src/editor/managers/plugin.ts:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 destroy(): void {
60 this.extensions.getAll().forEach((plugin) => {
61 this.unregisterPlugin(plugin.name);
62 this.emitter.emit('plugin:destroyed', plugin);
63 });
64 this.extensions.destroy();
65 }
66}

Callers

nothing calls this directly

Calls 5

unregisterPluginMethod · 0.95
forEachMethod · 0.80
getAllMethod · 0.80
emitMethod · 0.80
destroyMethod · 0.65

Tested by

no test coverage detected