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

Method unload

packages/designer/src/project/project.ts:246–253  ·  view source on GitHub ↗

* 卸载当前项目数据

()

Source from the content-addressed store, hash-verified

244 * 卸载当前项目数据
245 */
246 unload() {
247 if (this.documents.length < 1) {
248 return;
249 }
250 for (let i = this.documents.length - 1; i >= 0; i--) {
251 this.documents[i].remove();
252 }
253 }
254
255 removeDocument(doc: IDocumentModel) {
256 const index = this.documents.indexOf(doc);

Callers 13

loadMethod · 0.95
host.test.tsFile · 0.80
viewport.test.tsFile · 0.80
project.test.tsFile · 0.80
node.add.test.tsFile · 0.80
node.test.tsFile · 0.80
dragon.test.tsFile · 0.80
designer.test.tsFile · 0.80

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected