Stay organized with collections Save and categorize content based on your preferences.

blockly > BlockSvg > getRelativeToSurfaceXY

BlockSvg.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. If the block is on the workspace, (0, 0) is the origin of the workspace coordinate system. This does not change with workspace scale.


getRelativeToSurfaceXY(): Coordinate;



Object with .x and .y properties in workspace coordinates.