Skip to main content

Home > blockly > FlyoutButton > moveBy

FlyoutButton.moveBy() method

Move the element by a relative offset.

Signature:

moveBy(dx: number, dy: number, _reason?: string[]): void;

Parameters

ParameterTypeDescription
dxnumberHorizontal offset in workspace units.
dynumberVertical offset in workspace units.
_reasonstring[](Optional) Why is this move happening? 'user', 'bump', 'snap'...

Returns:

void