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

Method getSchema

packages/designer/src/project/project.ts:179–190  ·  view source on GitHub ↗

* 获取项目整体 schema

(
    stage: IPublicEnumTransformStage = IPublicEnumTransformStage.Save,
  )

Source from the content-addressed store, hash-verified

177 * 获取项目整体 schema
178 */
179 getSchema(
180 stage: IPublicEnumTransformStage = IPublicEnumTransformStage.Save,
181 ): IPublicTypeProjectSchema {
182 return {
183 ...this.data,
184 componentsMap: this.getComponentsMap(),
185 componentsTree: this.documents
186 .filter((doc) => !doc.isBlank())
187 .map((doc) => doc.export(stage) || {} as IPublicTypeRootSchema),
188 i18n: this.i18n,
189 };
190 }
191
192 /**
193 * 替换当前 document 的 schema,并触发渲染器的 render

Callers

nothing calls this directly

Calls 5

getComponentsMapMethod · 0.95
mapMethod · 0.65
filterMethod · 0.65
isBlankMethod · 0.65
exportMethod · 0.65

Tested by

no test coverage detected