Skip to main content

Home > 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

ParameterTypeDescription
offsetCoordinate

Returns:

void