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

Method constructor

packages/shell/src/api/commonUI.tsx:51–65  ·  view source on GitHub ↗
(editor: IEditor)

Source from the content-addressed store, hash-verified

49 };
50
51 constructor(editor: IEditor) {
52 this[editorSymbol] = editor;
53
54 const innerContextMenu = (props: any) => {
55 const pluginContext: IPublicModelPluginContext = editor.get('pluginContext') as IPublicModelPluginContext;
56 return <ContextMenu {...props} pluginContext={pluginContext} />;
57 };
58
59 innerContextMenu.create = (menus: IPublicTypeContextMenuAction[], event: MouseEvent) => {
60 const pluginContext: IPublicModelPluginContext = editor.get('pluginContext') as IPublicModelPluginContext;
61 return ContextMenu.create(pluginContext, menus, event);
62 };
63
64 this.ContextMenu = innerContextMenu;
65 }
66
67 get Tip() {
68 return InnerTip;

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected