ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlySVG_ReadonlyunitThe 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 value property of the SVGLength interface represents the floating point value of the <length> in user units.
The valueAsString property of the SVGLength interface represents the <length>'s value as a string, in the units expressed by SVGLength.unitType.
The valueInSpecifiedUnits property of the SVGLength interface represents floating point value, in the units expressed by SVGLength.unitType.
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.
The
SVGLengthinterface correspond to the <length> basic data type.MDN Reference