blockly > BlockDragSurfaceSvg > translateAndScaleGroup

BlockDragSurfaceSvg.translateAndScaleGroup() method

Translate and scale the entire drag surface group to the given position, to keep in sync with the workspace.

Signature:

translateAndScaleGroup(x: number, y: number, scale: number): void;

Parameters

Parameter Type Description
x number X translation in pixel coordinates.
y number Y translation in pixel coordinates.
scale number Scale of the group.

Returns:

void