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

Method moveNode

packages/node-editor/src/domain/models/Graph.ts:148–150  ·  view source on GitHub ↗

* Moves a node to a new position (immutable) * 移动节点到新位置(不可变)

(nodeId: string, newPosition: Position)

Source from the content-addressed store, hash-verified

146 * 移动节点到新位置(不可变)
147 */
148 moveNode(nodeId: string, newPosition: Position): Graph {
149 return this.updateNode(nodeId, node => node.moveTo(newPosition));
150 }
151
152 /**
153 * Adds a connection between two pins (immutable)

Callers 1

NodeEditorFunction · 0.80

Calls 2

updateNodeMethod · 0.95
moveToMethod · 0.80

Tested by

no test coverage detected