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

Method wrapWith

packages/designer/src/document/node/node.ts:757–760  ·  view source on GitHub ↗
(schema: Schema)

Source from the content-addressed store, hash-verified

755
756 /* istanbul ignore next */
757 wrapWith(schema: Schema) {
758 const wrappedNode = this.replaceWith({ ...schema, children: [this.export()] });
759 return wrappedNode.children!.get(0);
760 }
761
762 replaceWith(schema: Schema, migrate = false): any {
763 // reuse the same id? or replaceSelection

Callers 1

Calls 3

replaceWithMethod · 0.95
exportMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected