blockly > WorkspaceSvg > zoomCenter

WorkspaceSvg.zoomCenter() method

Zooming the blocks centered in the center of view with zooming in or out.

Signature:

zoomCenter(type: number): void;

Parameters

Parameter Type Description
type number Type of zooming (-1 zooming out and 1 zooming in).

Returns:

void