MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / toData

Method toData

packages/core/src/document/document.ts:409–417  ·  view source on GitHub ↗
(extraComps?: string[])

Source from the content-addressed store, hash-verified

407 }
408
409 toData(extraComps?: string[]) {
410 const node = this.export(TRANSFORM_STAGE.SAVE)
411 const data = {
412 componentsMap: this.getComponentsMap(extraComps),
413 // utils: this.getUtilsMap(),
414 componentsTree: [node],
415 }
416 return data
417 }
418
419 onReady(listener: () => void) {
420 const dispose = this.designer.onEvent(DOCUMENT_EVENT.OPEN, listener)

Callers

nothing calls this directly

Calls 2

exportMethod · 0.95
getComponentsMapMethod · 0.95

Tested by

no test coverage detected