blockly > Block > getRelativeToSurfaceXY
Block.getRelativeToSurfaceXY() method
Return the coordinates of the top-left corner of this block relative to the drawing surface's origin (0,0), in workspace units.
Signature:
getRelativeToSurfaceXY(): Coordinate;
Returns:
Object with .x and .y properties.