ReadonlyangleThe angle read-only property of the SVGTransform interface represents the angle of the transformation in degrees.
ReadonlymatrixThe matrix read-only property of the SVGTransform interface represents the transformation matrix that corresponds to the transformation type.
ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlytypeThe type read-only property of the SVGTransform interface represents the type of transformation applied, specified by one of the SVG_TRANSFORM_* constants defined on this interface.
The setMatrix() method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_MATRIX, with parameter matrix defining the new transformation.
Optionalmatrix: DOMMatrix2DInitThe setRotate() method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_ROTATE, with parameter angle defining the rotation angle and parameters cx and cy defining the optional center of rotation.
The setScale() method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_SCALE, with parameters sx and sy defining the scale amounts.
The setSkewX() method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_SKEWX, with parameter angle defining the amount of skew along the X-axis.
The setSkewY() method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_SKEWY, with parameter angle defining the amount of skew along the Y-axis.
The setTranslate() method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_TRANSLATE, with parameters tx and ty defining the translation amounts.
The
SVGTransforminterface reflects one of the component transformations within an SVGTransformList; thus, anSVGTransformobject corresponds to a single component (e.g.,scale(…)ormatrix(…)) within a transform attribute.MDN Reference