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

Method constructor

packages/editor-skeleton/src/skeleton.ts:143–256  ·  view source on GitHub ↗
(readonly editor: IEditor, readonly viewName: string = 'global')

Source from the content-addressed store, hash-verified

141 readonly focusTracker = new FocusTracker();
142
143 constructor(readonly editor: IEditor, readonly viewName: string = 'global') {
144 makeObservable(this);
145 this.leftArea = new Area(
146 this,
147 'leftArea',
148 (config) => {
149 if (isWidget(config)) {
150 return config;
151 }
152 return this.createWidget(config);
153 },
154 false,
155 );
156 this.topArea = new Area(
157 this,
158 'topArea',
159 (config) => {
160 if (isWidget(config)) {
161 return config;
162 }
163 return this.createWidget(config);
164 },
165 false,
166 );
167 this.subTopArea = new Area(
168 this,
169 'subTopArea',
170 (config) => {
171 if (isWidget(config)) {
172 return config;
173 }
174 return this.createWidget(config);
175 },
176 false,
177 );
178 this.toolbar = new Area(
179 this,
180 'toolbar',
181 (config) => {
182 if (isWidget(config)) {
183 return config;
184 }
185 return this.createWidget(config);
186 },
187 false,
188 );
189 this.leftFixedArea = new Area(
190 this,
191 'leftFixedArea',
192 (config) => {
193 if (isPanel(config)) {
194 return config;
195 }
196 return this.createPanel(config);
197 },
198 true,
199 );
200 this.leftFloatArea = new Area(

Callers

nothing calls this directly

Calls 7

createWidgetMethod · 0.95
createPanelMethod · 0.95
setupPluginsMethod · 0.95
setupEventsMethod · 0.95
isWidgetFunction · 0.90
isPanelFunction · 0.90
mountMethod · 0.45

Tested by

no test coverage detected