WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

SVGTransform

This object is available to unprivileged JavaScript. It implements the following interfaces:

Constants

short SVG_TRANSFORM_UNKNOWN = 0
short SVG_TRANSFORM_MATRIX = 1
short SVG_TRANSFORM_TRANSLATE = 2
short SVG_TRANSFORM_SCALE = 3
short SVG_TRANSFORM_ROTATE = 4
short SVG_TRANSFORM_SKEWX = 5
short SVG_TRANSFORM_SKEWY = 6

Properties

readonly float angle

readonly nsIDOMSVGMatrix matrix

readonly short type


Methods

void setMatrix ( nsIDOMSVGMatrix matrix ) void setRotate ( float angle , float cx , float cy ) void setScale ( float sx , float sy ) void setSkewX ( float angle ) void setSkewY ( float angle ) void setTranslate ( float tx , float ty )

void setMatrix ( nsIDOMSVGMatrix matrix )

Arguments:
matrix

void setRotate ( float angle , float cx , float cy )

Arguments:
angle
cx
cy

void setScale ( float sx , float sy )

Arguments:
sx
sy

void setSkewX ( float angle )

Arguments:
angle

void setSkewY ( float angle )

Arguments:
angle

void setTranslate ( float tx , float ty )

Arguments:
tx
ty

Reference documentation is generated from Mozilla's source.