Stay organized with collections Save and categorize content based on your preferences.

blockly > BlockSvg > moveBy

BlockSvg.moveBy() method

Move a block by a relative offset.

Signature:

moveBy(dx: number, dy: number): void;

Parameters

Parameter Type Description
dx number Horizontal offset in workspace units.
dy number Vertical offset in workspace units.

Returns:

void