SVGLength
Types
Properties
The unitType
property of the SVGLength interface that represents type of the value as specified by one of the SVG_LENGTHTYPE_*
constants defined on this interface.
The valueAsString
property of the SVGLength interface represents the \
The valueInSpecifiedUnits
property of the SVGLength interface represents floating point value, in the units expressed by SVGLength.unitType.
Functions
The convertToSpecifiedUnits()
method of the SVGLength interface allows you to convert the length's value to the specified unit type.
The newValueSpecifiedUnits()
method of the SVGLength interface resets the value as a number with an associated SVGLength.unitType, thereby replacing the values for all of the attributes on the object.