MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / registryInnerPlugin

Function registryInnerPlugin

packages/engine/src/engine-core.ts:76–99  ·  view source on GitHub ↗
(designer: IDesigner, editor: IEditor, plugins: IPublicApiPlugins)

Source from the content-addressed store, hash-verified

74export * from './modules/lowcode-types';
75
76async function registryInnerPlugin(designer: IDesigner, editor: IEditor, plugins: IPublicApiPlugins): Promise<IPublicTypeDisposable> {
77 // 注册一批内置插件
78 const componentMetaParserPlugin = componentMetaParser(designer);
79 const defaultPanelRegistryPlugin = defaultPanelRegistry(editor);
80 await plugins.register(OutlinePlugin, {}, { autoInit: true });
81 await plugins.register(componentMetaParserPlugin);
82 await plugins.register(setterRegistry, {});
83 await plugins.register(defaultPanelRegistryPlugin);
84 await plugins.register(builtinHotkey);
85 await plugins.register(registerDefaults, {}, { autoInit: true });
86 await plugins.register(defaultContextMenu);
87 await plugins.register(CommandPlugin, {});
88
89 return () => {
90 plugins.delete(OutlinePlugin.pluginName);
91 plugins.delete(componentMetaParserPlugin.pluginName);
92 plugins.delete(setterRegistry.pluginName);
93 plugins.delete(defaultPanelRegistryPlugin.pluginName);
94 plugins.delete(builtinHotkey.pluginName);
95 plugins.delete(registerDefaults.pluginName);
96 plugins.delete(defaultContextMenu.pluginName);
97 plugins.delete(CommandPlugin.pluginName);
98 };
99}
100
101const innerWorkspace: IWorkspace = new InnerWorkspace(registryInnerPlugin, shellModelFactory);
102const workspace: IPublicApiWorkspace = new Workspace(innerWorkspace);

Callers 1

engine-core.tsFile · 0.85

Calls 4

componentMetaParserFunction · 0.90
defaultPanelRegistryFunction · 0.90
registerMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…