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

Method moveTo

packages/node-editor/src/domain/models/GraphNode.ts:214–218  ·  view source on GitHub ↗

* Creates a new node with updated position (immutable) * 创建具有更新位置的新节点(不可变)

(newPosition: Position)

Source from the content-addressed store, hash-verified

212 * 创建具有更新位置的新节点(不可变)
213 */
214 moveTo(newPosition: Position): GraphNode {
215 const node = this.clone();
216 node._position = newPosition;
217 return node;
218 }
219
220 /**
221 * Creates a new node with collapse state toggled (immutable)

Callers 11

CurveEditorFunction · 0.80
updateFunction · 0.80
renderPolygonMethod · 0.80
renderRegularPolygonMethod · 0.80
TilemapCanvasFunction · 0.80
TilesetPreviewFunction · 0.80
AdvancedProfilerFunction · 0.80
SpriteSettingsEditorFunction · 0.80
RenderDebugPanelFunction · 0.80
EventDetailsFunction · 0.80
moveNodeMethod · 0.80

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected