Skip to main content

Home > blockly > RenderedConnection > setOffsetInBlock

RenderedConnection.setOffsetInBlock() method

Set the offset of this connection relative to the top left of its block.

Signature:

setOffsetInBlock(x: number, y: number): void;

Parameters

ParameterTypeDescription
xnumberThe new relative x, in workspace units.
ynumberThe new relative y, in workspace units.

Returns:

void