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

blockly > BlockDragSurfaceSvg > translateBy

BlockDragSurfaceSvg.translateBy() method

Translates the entire surface by a relative offset.

Signature:

translateBy(deltaX: number, deltaY: number): void;

Parameters

Parameter Type Description
deltaX number Horizontal offset in pixel units.
deltaY number Vertical offset in pixel units.

Returns:

void