(designer: IDesigner, editor: IEditor, plugins: IPublicApiPlugins)
| 74 | export * from './modules/lowcode-types'; |
| 75 | |
| 76 | async 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 | |
| 101 | const innerWorkspace: IWorkspace = new InnerWorkspace(registryInnerPlugin, shellModelFactory); |
| 102 | const workspace: IPublicApiWorkspace = new Workspace(innerWorkspace); |
no test coverage detected
searching dependent graphs…