createSVGTransformFromMatrix method
Creates a matrix transform object whose values are given by the specified matrix.
![]() ![]() |
Syntax
object.createSVGTransformFromMatrix(matrix)Parameters
- matrix [in]
-
Type: ISVGMatrix
The SVGMatrix matrix that defines the desired transformation.
Return value
Type: ISVGTransform
An SVGTransform object.
Standards information
Remarks
The createSVGTransformFromMatrix method creates an SVGTransform object, of transform type SVG_TRANSFORM_MATRIX, whose values are given by the matrix parameter. The values from the matrix parameter are copied; the matrix parameter is not adopted as the matrix property.
The SVGTransform object corresponds to a single matrix(
) component within an element's transform attribute specification.
Note For SVGSVGElement elements, the SVGTransform object is created outside of any document trees.
See also
Show:

