* Moves a node to a new position (immutable) * 移动节点到新位置(不可变)
(nodeId: string, newPosition: Position)
| 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) |
no test coverage detected