OLD | NEW |
1 | 1 |
2 class SVGLength native "*SVGLength" { | 2 class 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 unitType; | 26 int get unitType() native "return this.unitType;"; |
27 | 27 |
28 num value; | 28 num get value() native "return this.value;"; |
29 | 29 |
30 String valueAsString; | 30 void set value(num value) native "this.value = value;"; |
31 | 31 |
32 num valueInSpecifiedUnits; | 32 String get valueAsString() native "return this.valueAsString;"; |
| 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;"; |
33 | 39 |
34 void convertToSpecifiedUnits(int unitType) native; | 40 void convertToSpecifiedUnits(int unitType) native; |
35 | 41 |
36 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | 42 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
37 | 43 |
38 var dartObjectLocalStorage; | 44 var dartObjectLocalStorage; |
39 | 45 |
40 String get typeName() native; | 46 String get typeName() native; |
41 } | 47 } |
OLD | NEW |