dothtml 5.2.9 → 5.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/lib/arg-callback-obj.d.ts +29 -29
  2. package/lib/arg-callback-obj.js +63 -63
  3. package/lib/built-in-components/nav-link.d.ts +8 -8
  4. package/lib/built-in-components/nav-link.js +23 -23
  5. package/lib/built-in-components/router.d.ts +57 -57
  6. package/lib/built-in-components/router.js +281 -281
  7. package/lib/built-in-components/router.js.map +1 -1
  8. package/lib/component.d.ts +82 -82
  9. package/lib/component.js +328 -328
  10. package/lib/dot-util.d.ts +26 -26
  11. package/lib/dot-util.js +61 -61
  12. package/lib/dot.d.ts +5 -5
  13. package/lib/dot.js +1121 -1095
  14. package/lib/dot.js.map +1 -1
  15. package/lib/dothtml.d.ts +29 -28
  16. package/lib/dothtml.js +14 -37
  17. package/lib/dothtml.js.map +1 -1
  18. package/lib/err.d.ts +2 -2
  19. package/lib/err.js +25 -25
  20. package/lib/event-bus.d.ts +10 -10
  21. package/lib/event-bus.js +36 -36
  22. package/lib/i-dot.d.ts +689 -674
  23. package/lib/i-dot.js +2 -2
  24. package/lib/node-polyfill.d.ts +2 -2
  25. package/lib/node-polyfill.js +13 -13
  26. package/lib/observable-array.d.ts +49 -49
  27. package/lib/observable-array.js +273 -273
  28. package/lib/pages/home-page.d.ts +9 -0
  29. package/lib/pages/home-page.js +24 -0
  30. package/lib/pages/home-page.js.map +1 -0
  31. package/lib/styling/css-types.ts/css-angle.d.ts +7 -7
  32. package/lib/styling/css-types.ts/css-angle.js +21 -21
  33. package/lib/styling/css-types.ts/css-color.d.ts +9 -9
  34. package/lib/styling/css-types.ts/css-color.js +823 -823
  35. package/lib/styling/css-types.ts/css-complex.d.ts +7 -7
  36. package/lib/styling/css-types.ts/css-complex.js +22 -22
  37. package/lib/styling/css-types.ts/css-data-type.d.ts +5 -5
  38. package/lib/styling/css-types.ts/css-data-type.js +8 -8
  39. package/lib/styling/css-types.ts/css-filter.d.ts +22 -22
  40. package/lib/styling/css-types.ts/css-filter.js +120 -120
  41. package/lib/styling/css-types.ts/css-length.d.ts +7 -7
  42. package/lib/styling/css-types.ts/css-length.js +23 -23
  43. package/lib/styling/css-types.ts/css-number.d.ts +6 -6
  44. package/lib/styling/css-types.ts/css-number.js +16 -16
  45. package/lib/styling/css-types.ts/css-percentage.d.ts +5 -5
  46. package/lib/styling/css-types.ts/css-percentage.js +12 -12
  47. package/lib/styling/css-types.ts/css-transform.d.ts +38 -38
  48. package/lib/styling/css-types.ts/css-transform.js +182 -182
  49. package/lib/styling/css-types.ts/css-unknown.d.ts +6 -6
  50. package/lib/styling/css-types.ts/css-unknown.js +16 -16
  51. package/lib/styling/css-types.ts/css-url.d.ts +6 -6
  52. package/lib/styling/css-types.ts/css-url.js +44 -44
  53. package/lib/styling/i-dotcss.d.ts +1085 -1085
  54. package/lib/styling/i-dotcss.js +2 -2
  55. package/lib/styling/style-builder.d.ts +24 -24
  56. package/lib/styling/style-builder.js +814 -814
  57. package/lib/styling/unit-function-tables.d.ts +10 -10
  58. package/lib/styling/unit-function-tables.js +26 -26
  59. package/package.json +9 -8
@@ -1,274 +1,274 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function ObservableArray(items /*, ...target: Array<any>*/) {
4
- var _self = this, _array = [], _handlers = {
5
- itemadded: [],
6
- itemremoved: [],
7
- itemset: [],
8
- read: []
9
- };
10
- function defineIndexProperty(index) {
11
- if (!(index in _self)) {
12
- Object.defineProperty(_self, index, {
13
- configurable: true,
14
- enumerable: true,
15
- get: function () {
16
- raiseEvent({
17
- type: "read",
18
- index: index,
19
- item: _array[index]
20
- });
21
- return _array[index];
22
- },
23
- set: function (v) {
24
- if (_array[index] != v) {
25
- _array[index] = v;
26
- raiseEvent({
27
- type: "itemset",
28
- index: index,
29
- item: v
30
- });
31
- }
32
- }
33
- });
34
- }
35
- }
36
- function raiseEvent(event) {
37
- _handlers[event.type].forEach(function (h) {
38
- h.call(_self, event);
39
- });
40
- }
41
- Object.defineProperty(_self, "addEventListener", {
42
- configurable: false,
43
- enumerable: false,
44
- writable: false,
45
- value: function (eventName, handler) {
46
- eventName = ("" + eventName).toLowerCase();
47
- if (!(eventName in _handlers))
48
- throw new Error("Invalid event name.");
49
- if (typeof handler !== "function")
50
- throw new Error("Invalid handler.");
51
- _handlers[eventName].push(handler);
52
- }
53
- });
54
- Object.defineProperty(_self, "removeEventListener", {
55
- configurable: false,
56
- enumerable: false,
57
- writable: false,
58
- value: function (eventName, handler) {
59
- eventName = ("" + eventName).toLowerCase();
60
- if (!(eventName in _handlers))
61
- throw new Error("Invalid event name.");
62
- if (typeof handler !== "function")
63
- throw new Error("Invalid handler.");
64
- var h = _handlers[eventName];
65
- var ln = h.length;
66
- while (--ln >= 0) {
67
- if (h[ln] === handler) {
68
- h.splice(ln, 1);
69
- }
70
- }
71
- }
72
- });
73
- Object.defineProperty(_self, "push", {
74
- configurable: false,
75
- enumerable: false,
76
- writable: false,
77
- value: function () {
78
- var index;
79
- for (var i = 0, ln = arguments.length; i < ln; i++) {
80
- index = _array.length;
81
- _array.push(arguments[i]);
82
- defineIndexProperty(index);
83
- raiseEvent({
84
- type: "itemadded",
85
- index: index,
86
- item: arguments[i]
87
- });
88
- }
89
- return _array.length;
90
- }
91
- });
92
- Object.defineProperty(_self, "pop", {
93
- configurable: false,
94
- enumerable: false,
95
- writable: false,
96
- value: function () {
97
- if (_array.length > -1) {
98
- var index = _array.length - 1, item = _array.pop();
99
- delete _self[index];
100
- raiseEvent({
101
- type: "itemremoved",
102
- index: index,
103
- item: item
104
- });
105
- return item;
106
- }
107
- }
108
- });
109
- Object.defineProperty(_self, "unshift", {
110
- configurable: false,
111
- enumerable: false,
112
- writable: false,
113
- value: function () {
114
- for (var i = 0, ln = arguments.length; i < ln; i++) {
115
- _array.splice(i, 0, arguments[i]);
116
- defineIndexProperty(_array.length - 1);
117
- raiseEvent({
118
- type: "itemadded",
119
- index: i,
120
- item: arguments[i]
121
- });
122
- }
123
- // Not sure why this was here. Nothing should be getting set.
124
- // for (; i < _array.length; i++) {
125
- // raiseEvent({
126
- // type: "itemset",
127
- // index: i,
128
- // item: _array[i]
129
- // });
130
- // }
131
- return _array.length;
132
- }
133
- });
134
- Object.defineProperty(_self, "shift", {
135
- configurable: false,
136
- enumerable: false,
137
- writable: false,
138
- value: function () {
139
- if (_array.length > -1) {
140
- var item = _array.shift();
141
- delete _self[_array.length];
142
- raiseEvent({
143
- type: "itemremoved",
144
- index: 0,
145
- item: item
146
- });
147
- return item;
148
- }
149
- }
150
- });
151
- Object.defineProperty(_self, "splice", {
152
- configurable: false,
153
- enumerable: false,
154
- writable: false,
155
- value: function (index, howMany /*, element1, element2, ... */) {
156
- var removed = [], item, pos;
157
- index = index == null ? 0 : index < 0 ? _array.length + index : index;
158
- howMany = howMany == null ? _array.length - index : howMany > 0 ? howMany : 0;
159
- var removeEvents = [];
160
- while (howMany--) {
161
- item = _array.splice(index, 1)[0];
162
- removed.push(item);
163
- delete _self[_array.length];
164
- removeEvents.push({
165
- type: "itemremoved",
166
- index: index + removed.length - 1,
167
- item: item
168
- });
169
- }
170
- for (var i = removeEvents.length - 1; i >= 0; i--) {
171
- raiseEvent(removeEvents[i]);
172
- }
173
- for (var i = 2, ln = arguments.length; i < ln; i++) {
174
- _array.splice(index, 0, arguments[i]);
175
- defineIndexProperty(_array.length - 1);
176
- raiseEvent({
177
- type: "itemadded",
178
- index: index,
179
- item: arguments[i]
180
- });
181
- index++;
182
- }
183
- return removed;
184
- }
185
- });
186
- Object.defineProperty(_self, "length", {
187
- configurable: false,
188
- enumerable: false,
189
- get: function () {
190
- return _array.length;
191
- },
192
- set: function (value) {
193
- var n = Number(value);
194
- var length = _array.length;
195
- if (n % 1 === 0 && n >= 0) {
196
- if (n < length) {
197
- _self.splice(n);
198
- }
199
- else if (n > length) {
200
- _self.push.apply(_self, new Array(n - length));
201
- }
202
- }
203
- else {
204
- throw new RangeError("Invalid array length");
205
- }
206
- _array.length = n;
207
- return value;
208
- }
209
- });
210
- Object.getOwnPropertyNames(Array.prototype).forEach(function (name) {
211
- if (!(name in _self)) {
212
- Object.defineProperty(_self, name, {
213
- configurable: false,
214
- enumerable: false,
215
- writable: false,
216
- value: Array.prototype[name]
217
- });
218
- }
219
- });
220
- if (items instanceof Array) {
221
- _self.push.apply(_self, items);
222
- }
223
- }
224
- exports.default = ObservableArray;
225
- ObservableArray.prototype.length = 0;
226
- /**
227
-
228
- (function testing() {
229
-
230
- var x = new ObservableArray(["a", "b", "c", "d"]);
231
-
232
- console.log("original array: %o", x.slice());
233
-
234
- x.addEventListener("itemadded", function(e) {
235
- console.log("Added %o at index %d.", e.item, e.index);
236
- });
237
-
238
- x.addEventListener("itemset", function(e) {
239
- console.log("Set index %d to %o.", e.index, e.item);
240
- });
241
-
242
- x.addEventListener("itemremoved", function(e) {
243
- console.log("Removed %o at index %d.", e.item, e.index);
244
- });
245
-
246
- console.log("popping and unshifting...");
247
- x.unshift(x.pop());
248
-
249
- console.log("updated array: %o", x.slice());
250
-
251
- console.log("reversing array...");
252
- console.log("updated array: %o", x.reverse().slice());
253
-
254
- console.log("splicing...");
255
- x.splice(1, 2, "x");
256
- console.log("setting index 2...");
257
- x[2] = "foo";
258
-
259
- console.log("setting length to 10...");
260
- x.length = 10;
261
- console.log("updated array: %o", x.slice());
262
-
263
- console.log("setting length to 2...");
264
- x.length = 2;
265
-
266
- console.log("extracting first element via shift()");
267
- x.shift();
268
-
269
- console.log("updated array: %o", x.slice());
270
-
271
- })();
272
-
273
- */
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function ObservableArray(items /*, ...target: Array<any>*/) {
4
+ var _self = this, _array = [], _handlers = {
5
+ itemadded: [],
6
+ itemremoved: [],
7
+ itemset: [],
8
+ read: []
9
+ };
10
+ function defineIndexProperty(index) {
11
+ if (!(index in _self)) {
12
+ Object.defineProperty(_self, index, {
13
+ configurable: true,
14
+ enumerable: true,
15
+ get: function () {
16
+ raiseEvent({
17
+ type: "read",
18
+ index: index,
19
+ item: _array[index]
20
+ });
21
+ return _array[index];
22
+ },
23
+ set: function (v) {
24
+ if (_array[index] != v) {
25
+ _array[index] = v;
26
+ raiseEvent({
27
+ type: "itemset",
28
+ index: index,
29
+ item: v
30
+ });
31
+ }
32
+ }
33
+ });
34
+ }
35
+ }
36
+ function raiseEvent(event) {
37
+ _handlers[event.type].forEach(function (h) {
38
+ h.call(_self, event);
39
+ });
40
+ }
41
+ Object.defineProperty(_self, "addEventListener", {
42
+ configurable: false,
43
+ enumerable: false,
44
+ writable: false,
45
+ value: function (eventName, handler) {
46
+ eventName = ("" + eventName).toLowerCase();
47
+ if (!(eventName in _handlers))
48
+ throw new Error("Invalid event name.");
49
+ if (typeof handler !== "function")
50
+ throw new Error("Invalid handler.");
51
+ _handlers[eventName].push(handler);
52
+ }
53
+ });
54
+ Object.defineProperty(_self, "removeEventListener", {
55
+ configurable: false,
56
+ enumerable: false,
57
+ writable: false,
58
+ value: function (eventName, handler) {
59
+ eventName = ("" + eventName).toLowerCase();
60
+ if (!(eventName in _handlers))
61
+ throw new Error("Invalid event name.");
62
+ if (typeof handler !== "function")
63
+ throw new Error("Invalid handler.");
64
+ var h = _handlers[eventName];
65
+ var ln = h.length;
66
+ while (--ln >= 0) {
67
+ if (h[ln] === handler) {
68
+ h.splice(ln, 1);
69
+ }
70
+ }
71
+ }
72
+ });
73
+ Object.defineProperty(_self, "push", {
74
+ configurable: false,
75
+ enumerable: false,
76
+ writable: false,
77
+ value: function () {
78
+ var index;
79
+ for (var i = 0, ln = arguments.length; i < ln; i++) {
80
+ index = _array.length;
81
+ _array.push(arguments[i]);
82
+ defineIndexProperty(index);
83
+ raiseEvent({
84
+ type: "itemadded",
85
+ index: index,
86
+ item: arguments[i]
87
+ });
88
+ }
89
+ return _array.length;
90
+ }
91
+ });
92
+ Object.defineProperty(_self, "pop", {
93
+ configurable: false,
94
+ enumerable: false,
95
+ writable: false,
96
+ value: function () {
97
+ if (_array.length > -1) {
98
+ var index = _array.length - 1, item = _array.pop();
99
+ delete _self[index];
100
+ raiseEvent({
101
+ type: "itemremoved",
102
+ index: index,
103
+ item: item
104
+ });
105
+ return item;
106
+ }
107
+ }
108
+ });
109
+ Object.defineProperty(_self, "unshift", {
110
+ configurable: false,
111
+ enumerable: false,
112
+ writable: false,
113
+ value: function () {
114
+ for (var i = 0, ln = arguments.length; i < ln; i++) {
115
+ _array.splice(i, 0, arguments[i]);
116
+ defineIndexProperty(_array.length - 1);
117
+ raiseEvent({
118
+ type: "itemadded",
119
+ index: i,
120
+ item: arguments[i]
121
+ });
122
+ }
123
+ // Not sure why this was here. Nothing should be getting set.
124
+ // for (; i < _array.length; i++) {
125
+ // raiseEvent({
126
+ // type: "itemset",
127
+ // index: i,
128
+ // item: _array[i]
129
+ // });
130
+ // }
131
+ return _array.length;
132
+ }
133
+ });
134
+ Object.defineProperty(_self, "shift", {
135
+ configurable: false,
136
+ enumerable: false,
137
+ writable: false,
138
+ value: function () {
139
+ if (_array.length > -1) {
140
+ var item = _array.shift();
141
+ delete _self[_array.length];
142
+ raiseEvent({
143
+ type: "itemremoved",
144
+ index: 0,
145
+ item: item
146
+ });
147
+ return item;
148
+ }
149
+ }
150
+ });
151
+ Object.defineProperty(_self, "splice", {
152
+ configurable: false,
153
+ enumerable: false,
154
+ writable: false,
155
+ value: function (index, howMany /*, element1, element2, ... */) {
156
+ var removed = [], item, pos;
157
+ index = index == null ? 0 : index < 0 ? _array.length + index : index;
158
+ howMany = howMany == null ? _array.length - index : howMany > 0 ? howMany : 0;
159
+ var removeEvents = [];
160
+ while (howMany--) {
161
+ item = _array.splice(index, 1)[0];
162
+ removed.push(item);
163
+ delete _self[_array.length];
164
+ removeEvents.push({
165
+ type: "itemremoved",
166
+ index: index + removed.length - 1,
167
+ item: item
168
+ });
169
+ }
170
+ for (var i = removeEvents.length - 1; i >= 0; i--) {
171
+ raiseEvent(removeEvents[i]);
172
+ }
173
+ for (var i = 2, ln = arguments.length; i < ln; i++) {
174
+ _array.splice(index, 0, arguments[i]);
175
+ defineIndexProperty(_array.length - 1);
176
+ raiseEvent({
177
+ type: "itemadded",
178
+ index: index,
179
+ item: arguments[i]
180
+ });
181
+ index++;
182
+ }
183
+ return removed;
184
+ }
185
+ });
186
+ Object.defineProperty(_self, "length", {
187
+ configurable: false,
188
+ enumerable: false,
189
+ get: function () {
190
+ return _array.length;
191
+ },
192
+ set: function (value) {
193
+ var n = Number(value);
194
+ var length = _array.length;
195
+ if (n % 1 === 0 && n >= 0) {
196
+ if (n < length) {
197
+ _self.splice(n);
198
+ }
199
+ else if (n > length) {
200
+ _self.push.apply(_self, new Array(n - length));
201
+ }
202
+ }
203
+ else {
204
+ throw new RangeError("Invalid array length");
205
+ }
206
+ _array.length = n;
207
+ return value;
208
+ }
209
+ });
210
+ Object.getOwnPropertyNames(Array.prototype).forEach(function (name) {
211
+ if (!(name in _self)) {
212
+ Object.defineProperty(_self, name, {
213
+ configurable: false,
214
+ enumerable: false,
215
+ writable: false,
216
+ value: Array.prototype[name]
217
+ });
218
+ }
219
+ });
220
+ if (items instanceof Array) {
221
+ _self.push.apply(_self, items);
222
+ }
223
+ }
224
+ exports.default = ObservableArray;
225
+ ObservableArray.prototype.length = 0;
226
+ /**
227
+
228
+ (function testing() {
229
+
230
+ var x = new ObservableArray(["a", "b", "c", "d"]);
231
+
232
+ console.log("original array: %o", x.slice());
233
+
234
+ x.addEventListener("itemadded", function(e) {
235
+ console.log("Added %o at index %d.", e.item, e.index);
236
+ });
237
+
238
+ x.addEventListener("itemset", function(e) {
239
+ console.log("Set index %d to %o.", e.index, e.item);
240
+ });
241
+
242
+ x.addEventListener("itemremoved", function(e) {
243
+ console.log("Removed %o at index %d.", e.item, e.index);
244
+ });
245
+
246
+ console.log("popping and unshifting...");
247
+ x.unshift(x.pop());
248
+
249
+ console.log("updated array: %o", x.slice());
250
+
251
+ console.log("reversing array...");
252
+ console.log("updated array: %o", x.reverse().slice());
253
+
254
+ console.log("splicing...");
255
+ x.splice(1, 2, "x");
256
+ console.log("setting index 2...");
257
+ x[2] = "foo";
258
+
259
+ console.log("setting length to 10...");
260
+ x.length = 10;
261
+ console.log("updated array: %o", x.slice());
262
+
263
+ console.log("setting length to 2...");
264
+ x.length = 2;
265
+
266
+ console.log("extracting first element via shift()");
267
+ x.shift();
268
+
269
+ console.log("updated array: %o", x.slice());
270
+
271
+ })();
272
+
273
+ */
274
274
  //# sourceMappingURL=observable-array.js.map
@@ -0,0 +1,9 @@
1
+ import { dot, IDotElement, IDotCss } from "dothtml";
2
+ export default class HomePage extends dot.Component {
3
+ props: {
4
+ data: any;
5
+ };
6
+ builder(): IDotElement;
7
+ ready(): void;
8
+ style(css: IDotCss): void;
9
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const dothtml_1 = require("dothtml");
4
+ class HomePage extends dothtml_1.dot.Component {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.props = {
8
+ data: d1
9
+ };
10
+ }
11
+ builder() {
12
+ return dothtml_1.dot.div(() => this.props.data[0]);
13
+ }
14
+ ready() {
15
+ // this.props.data[0] = "1";
16
+ // this.props.data = d2;
17
+ //this.props.data = "1";
18
+ }
19
+ style(css) {
20
+ css("div").color("red");
21
+ }
22
+ }
23
+ exports.default = HomePage;
24
+ //# sourceMappingURL=home-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home-page.js","sourceRoot":"","sources":["../../src/pages/home-page.ts"],"names":[],"mappings":";;AAAA,qCAAoD;AAGpD,MAAqB,QAAS,SAAQ,aAAG,CAAC,SAAS;IAAnD;;QACC,UAAK,GAAC;YACL,IAAI,EAAE,EAAE;SACR,CAAA;IAiBF,CAAC;IAfA,OAAO;QACN,OAAO,aAAG,CAAC,GAAG,CACb,GAAE,EAAE,CAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACtB,CAAC;IACH,CAAC;IAED,KAAK;QACJ,4BAA4B;QAC5B,wBAAwB;QACxB,wBAAwB;IACzB,CAAC;IAED,KAAK,CAAC,GAAY;QACjB,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IACxB,CAAC;CACD;AApBD,2BAoBC"}
@@ -1,7 +1,7 @@
1
- import CssDataType from "./css-data-type";
2
- export default class CssAngle extends CssDataType {
3
- angle: number;
4
- units: string;
5
- constructor(value: string | number);
6
- toString(): string;
7
- }
1
+ import CssDataType from "./css-data-type";
2
+ export default class CssAngle extends CssDataType {
3
+ angle: number;
4
+ units: string;
5
+ constructor(value: string | number);
6
+ toString(): string;
7
+ }
@@ -1,22 +1,22 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const dot_util_1 = require("../../dot-util");
7
- const css_data_type_1 = __importDefault(require("./css-data-type"));
8
- class CssAngle extends css_data_type_1.default {
9
- constructor(value) {
10
- super("angle");
11
- value = value || "0deg";
12
- if (!isNaN(value))
13
- value = `${Math.round(value)}deg`;
14
- this.angle = Number(value.match(dot_util_1.floatRegex)[0]);
15
- this.units = value.split(dot_util_1.floatRegex)[1] || "deg";
16
- }
17
- toString() {
18
- return this.angle + this.units;
19
- }
20
- }
21
- exports.default = CssAngle;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const dot_util_1 = require("../../dot-util");
7
+ const css_data_type_1 = __importDefault(require("./css-data-type"));
8
+ class CssAngle extends css_data_type_1.default {
9
+ constructor(value) {
10
+ super("angle");
11
+ value = value || "0deg";
12
+ if (!isNaN(value))
13
+ value = `${Math.round(value)}deg`;
14
+ this.angle = Number(value.match(dot_util_1.floatRegex)[0]);
15
+ this.units = value.split(dot_util_1.floatRegex)[1] || "deg";
16
+ }
17
+ toString() {
18
+ return this.angle + this.units;
19
+ }
20
+ }
21
+ exports.default = CssAngle;
22
22
  //# sourceMappingURL=css-angle.js.map
@@ -1,9 +1,9 @@
1
- import CssDataType from "./css-data-type";
2
- export default class CssColor extends CssDataType {
3
- r: number;
4
- g: number;
5
- b: number;
6
- a: number;
7
- constructor(value: any);
8
- toString(): string;
9
- }
1
+ import CssDataType from "./css-data-type";
2
+ export default class CssColor extends CssDataType {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ a: number;
7
+ constructor(value: any);
8
+ toString(): string;
9
+ }