blockly > BlockDragSurfaceSvg > getSurfaceTranslation
BlockDragSurfaceSvg.getSurfaceTranslation() method
Reports the surface translation in scaled workspace coordinates. Use this when finishing a drag to return blocks to the correct position.
Signature:
getSurfaceTranslation(): Coordinate;
Returns:
Current translation of the surface.