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.

SVGLength

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

Constants

short SVG_LENGTHTYPE_UNKNOWN = 0
short SVG_LENGTHTYPE_NUMBER = 1
short SVG_LENGTHTYPE_PERCENTAGE = 2
short SVG_LENGTHTYPE_EMS = 3
short SVG_LENGTHTYPE_EXS = 4
short SVG_LENGTHTYPE_PX = 5
short SVG_LENGTHTYPE_CM = 6
short SVG_LENGTHTYPE_MM = 7
short SVG_LENGTHTYPE_IN = 8
short SVG_LENGTHTYPE_PT = 9
short SVG_LENGTHTYPE_PC = 10

Properties

readonly short unitType

float value

String valueAsString

float valueInSpecifiedUnits


Methods

void convertToSpecifiedUnits ( short unitType ) float getTransformedValue ( nsIDOMSVGMatrix matrix ) void newValueSpecifiedUnits ( short unitType , float valueInSpecifiedUnits )

void convertToSpecifiedUnits ( short unitType )

Arguments:
unitType

float getTransformedValue ( nsIDOMSVGMatrix matrix )

Arguments:
matrix

void newValueSpecifiedUnits ( short unitType , float valueInSpecifiedUnits )

Arguments:
unitType
valueInSpecifiedUnits

Reference documentation is generated from Mozilla's source.