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

Method constructor

packages/workspace/src/window.ts:72–80  ·  view source on GitHub ↗
(readonly resource: IResource, readonly workspace: IWorkspace, private config: IWindowCOnfig)

Source from the content-addressed store, hash-verified

70 }
71
72 constructor(readonly resource: IResource, readonly workspace: IWorkspace, private config: IWindowCOnfig) {
73 makeObservable(this);
74 this.title = config.title;
75 this.icon = resource.icon;
76 this.sleep = config.sleep;
77 if (config.sleep) {
78 this.updateState(WINDOW_STATE.sleep);
79 }
80 }
81
82 updateState(state: WINDOW_STATE): void {
83 switch (state) {

Callers

nothing calls this directly

Calls 1

updateStateMethod · 0.95

Tested by

no test coverage detected