blockly > IDraggable > getRelativeToSurfaceXY

IDraggable.getRelativeToSurfaceXY() method

Returns the current location of the draggable in workspace coordinates.

Signature:

getRelativeToSurfaceXY(): Coordinate;

Returns:

Coordinate

Coordinate of current location on workspace.