Skip to main content

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

Parameter

Type

Description

x

number

The new relative x, in workspace units.

y

number

The new relative y, in workspace units.

Returns:

void