MCPcopy Create free account
hub / github.com/esengine/esengine / clone

Method clone

packages/node-editor/src/domain/models/GraphNode.ts:250–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 }
249
250 private clone(): GraphNode {
251 const cloned = Object.create(GraphNode.prototype) as GraphNode;
252 Object.assign(cloned, this);
253 cloned._data = { ...this._data };
254 return cloned;
255 }
256
257 toJSON(): Record<string, unknown> {
258 return {

Callers 4

moveToMethod · 0.95
toggleCollapseMethod · 0.95
setCommentMethod · 0.95
updateDataMethod · 0.95

Calls 1

createMethod · 0.45

Tested by

no test coverage detected