SVGTransform
The SVGTransform
interface reflects one of the component transformations within an SVGTransformList; thus, an SVGTransform
object corresponds to a single component (e.g., scale(…)
or matrix(…)
) within a transform attribute.
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The 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.
Functions
Link copied to clipboard
The setMatrix()
method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_MATRIX
, with parameter matrix
defining the new transformation.
Link copied to clipboard
Link copied to clipboard
The setTranslate()
method of the SVGTransform interface sets the transform type to SVG_TRANSFORM_TRANSLATE
, with parameters tx
and ty
defining the translation amounts.