Rotates the Transform object by an amount specified in radians.
Scales the Transform by some x and optional y amount. If no y amount is given the scaling is constant in both dimensions. Returns a new Transform object, does not mutate the Transform object the scale method was called on.
Helper method used by the transform attribute in the SVG's HTML tag.
Offsets the Transform by some amount x and y. Returns a new Transform object, does not mutate the Transform object it is called on.
Generated using TypeDoc
Transform allows an SVGElement to be scaled, rotated, and translated from its original positioning. This is incredibly valuable when working with Group elements that contain related Shapes.
The underlying data represents a Matrix as covered in linear algebra. For more information see:
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform