W3cubDocs

/Haxe JavaScript

Length

package js.html.svg

@:native("SVGLength") Available on js

The SVGLength interface correspond to the length basic data type.

Documentation SVGLength by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only unitType:Int

value:Float

valueAsString:String

valueInSpecifiedUnits:Float

Methods

convertToSpecifiedUnits (unitType:Int):Void

Throws:

null DOMError

newValueSpecifiedUnits (unitType:Int, valueInSpecifiedUnits:Float):Void

Throws:

null DOMError

Static variables

@:value(6) static inline read only SVG_LENGTHTYPE_CM:Int = 6

@:value(3) static inline read only SVG_LENGTHTYPE_EMS:Int = 3

@:value(4) static inline read only SVG_LENGTHTYPE_EXS:Int = 4

@:value(8) static inline read only SVG_LENGTHTYPE_IN:Int = 8

@:value(7) static inline read only SVG_LENGTHTYPE_MM:Int = 7

@:value(1) static inline read only SVG_LENGTHTYPE_NUMBER:Int = 1

@:value(10) static inline read only SVG_LENGTHTYPE_PC:Int = 10

@:value(2) static inline read only SVG_LENGTHTYPE_PERCENTAGE:Int = 2

@:value(9) static inline read only SVG_LENGTHTYPE_PT:Int = 9

@:value(5) static inline read only SVG_LENGTHTYPE_PX:Int = 5

@:value(0) static inline read only SVG_LENGTHTYPE_UNKNOWN:Int = 0

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/svg/Length.html