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

Method set

packages/editor-core/src/editor.ts:117–127  ·  view source on GitHub ↗
(key: IPublicTypeEditorValueKey, data: any)

Source from the content-addressed store, hash-verified

115 }
116
117 set(key: IPublicTypeEditorValueKey, data: any): void | Promise<void> {
118 if (key === 'assets') {
119 return this.setAssets(data);
120 }
121 // store the data to engineConfig while invoking editor.set()
122 if (!keyBlacklist.includes(key as string)) {
123 engineConfig.set(key as any, data);
124 }
125 this.context.set(key, data);
126 this.notifyGot(key);
127 }
128
129 async setAssets(assets: IPublicTypeAssetsJson) {
130 const { components } = assets;

Callers 1

constructorMethod · 0.95

Calls 3

setAssetsMethod · 0.95
notifyGotMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected