BlockSvg.moveTo() method
Move a block to a position.
Signature:
moveTo(xy: Coordinate, reason?: string[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
xy | Coordinate | The position to move to in workspace units. |
reason | string[] | (Optional) Why is this move happening? 'drag', 'bump', 'snap', ... |
Returns:
void