MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / constructor

Method constructor

packages/editor-skeleton/src/area.ts:40–43  ·  view source on GitHub ↗
(readonly skeleton: ISkeleton, readonly name: string, handle: (item: T | C) => T, private exclusive?: boolean, defaultSetCurrent = false)

Source from the content-addressed store, hash-verified

38 private lastCurrent: T | null = null;
39
40 constructor(readonly skeleton: ISkeleton, readonly name: string, handle: (item: T | C) => T, private exclusive?: boolean, defaultSetCurrent = false) {
41 makeObservable(this);
42 this.container = skeleton.createContainer(name, handle, exclusive, () => this.visible, defaultSetCurrent);
43 }
44
45 isEmpty(): boolean {
46 return this.container.items.length < 1;

Callers

nothing calls this directly

Calls 1

createContainerMethod · 0.65

Tested by

no test coverage detected