Skip to content

zoom(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

zoom(val: number): this;

Sets the zoom of the transform. The default value, 1.0, indicates that the Z.ScreenTransform’s coordinate system maps y = -1.0 through y = 1.0 to the bottom of the screen and top of the screen respectively. Other values uniformly scale the coordinate space.

ParameterTypeDescription
valnumberThe transform zoom value.

this