Skip to main content

method DOMMatrixReadOnly.scale3d

#DOMMatrixReadOnly.scale3d(
scale?: number,
originX?: number,
originY?: number,
originZ?: number,
): DOMMatrix

The scale3d() method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix. It returns a new DOMMatrix created by scaling the source 3d matrix by the given scale factor centered on the origin point specified by the origin parameters, with a default origin of (0, 0, 0). The original matrix is not modified.

MDN Reference

Parameters #

#scale: number
optional
#originX: number
optional
#originY: number
optional
#originZ: number
optional

Return Type #

Did you find what you needed?

Privacy policy