Skip to main content

blockly > RenderedConnection > moveTo

RenderedConnection.moveTo() method

Change the connection's coordinates.

Signature:

moveTo(x: number, y: number): boolean;

Parameters

Parameter

Type

Description

x

number

New absolute x coordinate, in workspace coordinates.

y

number

New absolute y coordinate, in workspace coordinates.

Returns:

boolean

True if the position of the connection in the connection db was updated.