OLD | NEW |
1 | 1 |
2 class _SVGLengthJs extends _DOMTypeJs implements SVGLength native "*SVGLength" { | 2 class _SVGLengthJs extends _DOMTypeJs implements SVGLength native "*SVGLength" { |
3 | 3 |
4 static final int SVG_LENGTHTYPE_CM = 6; | 4 static final int SVG_LENGTHTYPE_CM = 6; |
5 | 5 |
6 static final int SVG_LENGTHTYPE_EMS = 3; | 6 static final int SVG_LENGTHTYPE_EMS = 3; |
7 | 7 |
8 static final int SVG_LENGTHTYPE_EXS = 4; | 8 static final int SVG_LENGTHTYPE_EXS = 4; |
9 | 9 |
10 static final int SVG_LENGTHTYPE_IN = 8; | 10 static final int SVG_LENGTHTYPE_IN = 8; |
11 | 11 |
12 static final int SVG_LENGTHTYPE_MM = 7; | 12 static final int SVG_LENGTHTYPE_MM = 7; |
13 | 13 |
14 static final int SVG_LENGTHTYPE_NUMBER = 1; | 14 static final int SVG_LENGTHTYPE_NUMBER = 1; |
15 | 15 |
16 static final int SVG_LENGTHTYPE_PC = 10; | 16 static final int SVG_LENGTHTYPE_PC = 10; |
17 | 17 |
18 static final int SVG_LENGTHTYPE_PERCENTAGE = 2; | 18 static final int SVG_LENGTHTYPE_PERCENTAGE = 2; |
19 | 19 |
20 static final int SVG_LENGTHTYPE_PT = 9; | 20 static final int SVG_LENGTHTYPE_PT = 9; |
21 | 21 |
22 static final int SVG_LENGTHTYPE_PX = 5; | 22 static final int SVG_LENGTHTYPE_PX = 5; |
23 | 23 |
24 static final int SVG_LENGTHTYPE_UNKNOWN = 0; | 24 static final int SVG_LENGTHTYPE_UNKNOWN = 0; |
25 | 25 |
26 int get unitType() native "return this.unitType;"; | 26 final int unitType; |
27 | 27 |
28 num get value() native "return this.value;"; | 28 num value; |
29 | 29 |
30 void set value(num value) native "this.value = value;"; | 30 String valueAsString; |
31 | 31 |
32 String get valueAsString() native "return this.valueAsString;"; | 32 num valueInSpecifiedUnits; |
33 | |
34 void set valueAsString(String value) native "this.valueAsString = value;"; | |
35 | |
36 num get valueInSpecifiedUnits() native "return this.valueInSpecifiedUnits;"; | |
37 | |
38 void set valueInSpecifiedUnits(num value) native "this.valueInSpecifiedUnits =
value;"; | |
39 | 33 |
40 void convertToSpecifiedUnits(int unitType) native; | 34 void convertToSpecifiedUnits(int unitType) native; |
41 | 35 |
42 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | 36 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
43 } | 37 } |
OLD | NEW |