blockly > IIcon > setOffsetInBlock

IIcon.setOffsetInBlock() method

Notifies the icon where it is relative to its block's top-start, in workspace units.

Signature:

setOffsetInBlock(offset: Coordinate): void;

Parameters

Parameter Type Description
offset Coordinate

Returns:

void