BlockSvg.moveBy() method
Move a block by a relative offset.
Signature:
moveBy(dx: number, dy: number, reason?: string[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
dx | number | Horizontal offset in workspace units. |
dy | number | Vertical offset in workspace units. |
reason | string[] | (Optional) Why is this move happening? 'drag', 'bump', 'snap', ... |
Returns:
void