@triniwiz/nativescript-masonkit 1.0.0-alpha.21 → 1.0.0-alpha.23

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 (50) hide show
  1. package/index.d.ts +80 -106
  2. package/package.json +1 -1
  3. package/platforms/android/masonkit-release.aar +0 -0
  4. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +363 -268
  5. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +67 -18
  6. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  7. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  8. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  9. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +18168 -14735
  10. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +366 -126
  11. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +366 -126
  13. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  14. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2864 -2416
  15. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +726 -536
  16. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +67 -18
  17. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  18. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +18168 -14735
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +366 -126
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +366 -126
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +18168 -14735
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +366 -126
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +366 -126
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +29 -29
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2864 -2416
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2779 -2352
  33. package/common.d.ts +0 -112
  34. package/common.js +0 -1071
  35. package/common.js.map +0 -1
  36. package/helpers.d.ts +0 -255
  37. package/helpers.js +0 -1315
  38. package/helpers.js.map +0 -1
  39. package/index.android.d.ts +0 -61
  40. package/index.android.js +0 -224
  41. package/index.android.js.map +0 -1
  42. package/index.ios.d.ts +0 -77
  43. package/index.ios.js +0 -481
  44. package/index.ios.js.map +0 -1
  45. package/style.d.ts +0 -166
  46. package/style.js +0 -1705
  47. package/style.js.map +0 -1
  48. package/web.d.ts +0 -55
  49. package/web.js +0 -189
  50. package/web.js.map +0 -1
package/index.ios.js DELETED
@@ -1,481 +0,0 @@
1
- var _a;
2
- import { Color, colorProperty, CSSType, Utils } from '@nativescript/core';
3
- import { Style } from './style';
4
- import { style_, TextBase, ViewBase, textWrapProperty, ImageBase, srcProperty } from './common';
5
- function parseLength(length, parent = 0) {
6
- switch (length.unit) {
7
- case '%':
8
- return length.value * parent;
9
- case 'dip':
10
- return Utils.layout.toDevicePixels(length.value);
11
- case 'px':
12
- return length.value;
13
- }
14
- }
15
- export class Tree {
16
- constructor() {
17
- this._base = NSCMason.shared;
18
- }
19
- static get instance() {
20
- return _a._tree;
21
- }
22
- get native() {
23
- return this._base;
24
- }
25
- createView() {
26
- return this.native.createView();
27
- }
28
- createTextView() {
29
- return this.native.createTextView();
30
- }
31
- createImageView() {
32
- return this.native.createImageView();
33
- }
34
- }
35
- _a = Tree;
36
- (() => {
37
- _a._tree = new _a();
38
- })();
39
- export class View extends ViewBase {
40
- constructor() {
41
- super();
42
- this._hasNativeView = false;
43
- this._inBatch = false;
44
- const view = Tree.instance.createView();
45
- this._hasNativeView = true;
46
- this._view = view;
47
- }
48
- get _styleHelper() {
49
- if (this[style_] === undefined) {
50
- this[style_] = Style.fromView(this, this._view);
51
- }
52
- return this[style_];
53
- }
54
- createNativeView() {
55
- return this._view;
56
- }
57
- disposeNativeView() {
58
- this._hasNativeView = false;
59
- super.disposeNativeView();
60
- }
61
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
62
- // @ts-ignore
63
- get ios() {
64
- return this._view;
65
- }
66
- onLayout(left, top, right, bottom) {
67
- super.onLayout(left, top, right, bottom);
68
- let layout = this._view.node.layoutCache ?? this._view.node.layout();
69
- const children = layout.children;
70
- let i = 0;
71
- for (const child of this._children) {
72
- layout = children.objectAtIndex(i);
73
- const x = layout.x;
74
- const y = layout.y;
75
- const width = x + layout.width;
76
- const height = y + layout.height;
77
- View.layoutChild(this, child, x, y, width, height);
78
- i++;
79
- }
80
- }
81
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
82
- const nativeView = this._view;
83
- if (nativeView) {
84
- const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
85
- const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
86
- const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
87
- const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
88
- if (!this._isMasonChild) {
89
- // only call compute on the parent
90
- if (this.width === 'auto' && this.height === 'auto') {
91
- this.ios.node.computeWithSize(specWidth, specHeight);
92
- const layout = this.ios.node.layout();
93
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
94
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
95
- this.eachLayoutChild((child) => {
96
- ViewBase.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
97
- });
98
- this.setMeasuredDimension(w, h);
99
- return;
100
- }
101
- else {
102
- this.ios.node.computeWithMaxContent();
103
- const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
104
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
105
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
106
- this.setMeasuredDimension(w, h);
107
- this.eachLayoutChild((child) => {
108
- ViewBase.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
109
- });
110
- }
111
- }
112
- else {
113
- const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
114
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
115
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
116
- this.setMeasuredDimension(w, h);
117
- this.eachLayoutChild((child) => {
118
- ViewBase.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
119
- });
120
- }
121
- }
122
- }
123
- _setNativeViewFrame(nativeView, frame) {
124
- nativeView.frame = frame;
125
- }
126
- // @ts-ignore
127
- _addViewToNativeVisualTree(child, atIndex = -1) {
128
- const nativeView = this._view;
129
- // @ts-ignore
130
- child._masonParent = this;
131
- if (nativeView && child.nativeViewProtected) {
132
- child._hasNativeView = true;
133
- child._isMasonChild = true;
134
- if (atIndex <= -1) {
135
- nativeView.addView(child.nativeViewProtected);
136
- }
137
- else {
138
- nativeView.addViewAt(child.nativeViewProtected, atIndex);
139
- }
140
- return true;
141
- }
142
- return false;
143
- }
144
- // @ts-ignore
145
- _removeViewFromNativeVisualTree(view) {
146
- view._masonParent = undefined;
147
- view._isMasonView = false;
148
- view._isMasonChild = false;
149
- // @ts-ignore
150
- super._removeViewFromNativeVisualTree(view);
151
- }
152
- }
153
- export class Text extends TextBase {
154
- constructor(type = 0) {
155
- super();
156
- this._hasNativeView = false;
157
- this._inBatch = false;
158
- this._isText = true;
159
- switch (type) {
160
- case 0 /* TextType.None */:
161
- this._view = Tree.instance.createTextView();
162
- break;
163
- case 1 /* TextType.P */:
164
- this._view = Tree.instance.native.createTextViewWithType(1 /* MasonTextType.P */);
165
- break;
166
- case 2 /* TextType.Span */:
167
- this._view = Tree.instance.native.createTextViewWithType(2 /* MasonTextType.Span */);
168
- break;
169
- case 3 /* TextType.Code */:
170
- this._view = Tree.instance.native.createTextViewWithType(3 /* MasonTextType.Code */);
171
- break;
172
- case 4 /* TextType.H1 */:
173
- this._view = Tree.instance.native.createTextViewWithType(4 /* MasonTextType.H1 */);
174
- break;
175
- case 5 /* TextType.H2 */:
176
- this._view = Tree.instance.native.createTextViewWithType(5 /* MasonTextType.H2 */);
177
- break;
178
- case 6 /* TextType.H3 */:
179
- this._view = Tree.instance.native.createTextViewWithType(6 /* MasonTextType.H3 */);
180
- break;
181
- case 7 /* TextType.H4 */:
182
- this._view = Tree.instance.native.createTextViewWithType(7 /* MasonTextType.H4 */);
183
- break;
184
- case 8 /* TextType.H5 */:
185
- this._view = Tree.instance.native.createTextViewWithType(8 /* MasonTextType.H5 */);
186
- break;
187
- case 9 /* TextType.H6 */:
188
- this._view = Tree.instance.native.createTextViewWithType(9 /* MasonTextType.H6 */);
189
- break;
190
- case 10 /* TextType.Li */:
191
- this._view = Tree.instance.native.createTextViewWithType(10 /* MasonTextType.Li */);
192
- break;
193
- case 11 /* TextType.Blockquote */:
194
- this._view = Tree.instance.native.createTextViewWithType(11 /* MasonTextType.Blockquote */);
195
- break;
196
- case 12 /* TextType.B */:
197
- this._view = Tree.instance.native.createTextViewWithType(12 /* MasonTextType.B */);
198
- break;
199
- }
200
- this._hasNativeView = true;
201
- this[style_] = Style.fromView(this, this._view, true);
202
- }
203
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
204
- // @ts-ignore
205
- get ios() {
206
- return this._view;
207
- }
208
- get _styleHelper() {
209
- if (this[style_] === undefined) {
210
- this[style_] = Style.fromView(this, this._view);
211
- }
212
- return this[style_];
213
- }
214
- createNativeView() {
215
- return this._view;
216
- }
217
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
218
- //@ts-ignore
219
- get text() {
220
- return this._view.text;
221
- }
222
- set text(value) {
223
- const nativeView = this._view;
224
- if (nativeView) {
225
- nativeView.updateText(value);
226
- }
227
- }
228
- // [textProperty.setNative](value) {
229
- // const nativeView = this._view;
230
- // console.log('text:setNative', value);
231
- // if (nativeView) {
232
- // nativeView.updateText(value);
233
- // }
234
- // }
235
- [colorProperty.setNative](value) {
236
- switch (typeof value) {
237
- case 'number':
238
- this[style_].color = value;
239
- this[style_].syncStyle(true);
240
- break;
241
- case 'string':
242
- {
243
- this[style_].color = new Color(value).argb;
244
- this[style_].syncStyle(true);
245
- }
246
- break;
247
- case 'object':
248
- {
249
- this[style_].color = value.argb;
250
- this[style_].syncStyle(true);
251
- }
252
- break;
253
- }
254
- }
255
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
256
- // @ts-ignore
257
- set backgroundColor(value) {
258
- switch (typeof value) {
259
- case 'number':
260
- this[style_].backgroundColor = value;
261
- this[style_].syncStyle(true);
262
- break;
263
- case 'string':
264
- {
265
- this[style_].backgroundColor = new Color(value).argb;
266
- this[style_].syncStyle(true);
267
- }
268
- break;
269
- case 'object':
270
- this[style_].backgroundColor = value.argb;
271
- this[style_].syncStyle(true);
272
- break;
273
- }
274
- }
275
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
276
- // @ts-ignore
277
- get backgroundColor() {
278
- return new Color(this[style_].backgroundColor);
279
- }
280
- // [backgroundColorProperty.setNative](value) {
281
- // console.log('backgroundColorProperty.setNative', value);
282
- // // if (typeof value === 'number') {
283
- // // this[style_].backgroundColor = value;
284
- // // this[style_].syncStyle(true);
285
- // // } else if (value instanceof Color) {
286
- // // this[style_].backgroundColor = value.argb;
287
- // // this[style_].syncStyle(true);
288
- // // }
289
- // }
290
- [textWrapProperty.setNative](value) {
291
- switch (value) {
292
- case 'false':
293
- case false:
294
- case 'nowrap':
295
- this[style_].textWrap = 1 /* TextWrap.NoWrap */;
296
- this[style_].syncStyle(true);
297
- break;
298
- case true:
299
- case 'true':
300
- case 'wrap':
301
- this[style_].textWrap = 0 /* TextWrap.Wrap */;
302
- this[style_].syncStyle(true);
303
- break;
304
- case 'balance':
305
- this[style_].textWrap = 2 /* TextWrap.Balance */;
306
- this[style_].syncStyle(true);
307
- break;
308
- }
309
- }
310
- onLayout(left, top, right, bottom) {
311
- super.onLayout(left, top, right, bottom);
312
- let layout = this._view.node.layoutCache ?? this._view.node.layout();
313
- const children = layout.children;
314
- let i = 1;
315
- for (const child of this._children) {
316
- layout = children.objectAtIndex(i);
317
- const x = layout.x;
318
- const y = layout.y;
319
- const width = layout.width;
320
- const height = layout.height;
321
- View.layoutChild(this, child, x, y, width, height);
322
- i++;
323
- }
324
- }
325
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
326
- const nativeView = this._view;
327
- if (nativeView) {
328
- const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
329
- const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
330
- const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
331
- const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
332
- if (!this._isMasonChild) {
333
- // only call compute on the parent
334
- if (this.width === 'auto' && this.height === 'auto') {
335
- this.ios.node.computeWithMaxContent();
336
- const layout = this.ios.node.layout();
337
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
338
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
339
- this.setMeasuredDimension(w, h);
340
- return;
341
- }
342
- else {
343
- let width;
344
- switch (typeof this.width) {
345
- case 'object': {
346
- const parent = this.parent;
347
- const mw = parent?.getMeasuredWidth?.() || Utils.layout.toDevicePixels(parent?.nativeView?.frame?.size?.width ?? 0);
348
- width = parseLength(this.width, mw);
349
- break;
350
- }
351
- case 'string':
352
- width = -2;
353
- break;
354
- case 'number':
355
- width = Utils.layout.toDevicePixels(this.width);
356
- break;
357
- }
358
- let height;
359
- switch (typeof this.height) {
360
- case 'object': {
361
- const parent = this.parent;
362
- const mh = parent?.getMeasuredHeight?.() || Utils.layout.toDevicePixels(parent?.nativeView?.frame?.size?.height ?? 0);
363
- height = parseLength(this.height, mh);
364
- break;
365
- }
366
- case 'string':
367
- height = -2;
368
- break;
369
- case 'number':
370
- height = Utils.layout.toDevicePixels(this.height);
371
- break;
372
- }
373
- this.ios.node.computeWithSize(width, height);
374
- const layout = this.ios.node.layout();
375
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
376
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
377
- this.setMeasuredDimension(w, h);
378
- }
379
- }
380
- else {
381
- const layout = nativeView.node.layoutCache ?? nativeView.node.layout();
382
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
383
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
384
- this.setMeasuredDimension(w, h);
385
- }
386
- }
387
- }
388
- // @ts-ignore
389
- _addViewToNativeVisualTree(child, atIndex = -1) {
390
- const nativeView = this._view;
391
- if (nativeView && child.nativeViewProtected) {
392
- child._hasNativeView = true;
393
- child._isMasonChild = true;
394
- nativeView.addView(child.nativeViewProtected, atIndex ?? -1);
395
- return true;
396
- }
397
- return false;
398
- }
399
- _setNativeViewFrame(nativeView, frame) {
400
- nativeView.frame = frame;
401
- }
402
- }
403
- let Img = class Img extends ImageBase {
404
- constructor() {
405
- super();
406
- this._hasNativeView = false;
407
- this._inBatch = false;
408
- this._view = Tree.instance.createImageView();
409
- this._hasNativeView = true;
410
- this[style_] = Style.fromView(this, this._view);
411
- }
412
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
413
- // @ts-ignore
414
- get ios() {
415
- return this._view;
416
- }
417
- get _styleHelper() {
418
- if (this[style_] === undefined) {
419
- this[style_] = Style.fromView(this, this._view);
420
- }
421
- return this[style_];
422
- }
423
- createNativeView() {
424
- return this._view;
425
- }
426
- [srcProperty.setNative](value) {
427
- const nativeView = this._view;
428
- if (nativeView) {
429
- nativeView.src = value;
430
- }
431
- }
432
- // [backgroundColorProperty.setNative](value) {
433
- // if (typeof value === 'number') {
434
- // this[style_].backgroundColor = value;
435
- // } else if (value instanceof Color) {
436
- // this[style_].backgroundColor = value.android;
437
- // }
438
- // }
439
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
440
- const nativeView = this._view;
441
- if (nativeView) {
442
- const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
443
- const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
444
- const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
445
- const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
446
- if (!this._isMasonChild) {
447
- // only call compute on the parent
448
- if (this.width === 'auto' && this.height === 'auto') {
449
- this.ios.node.computeWithSize(specWidth, specHeight);
450
- const layout = this.ios.node.layout();
451
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
452
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
453
- this.setMeasuredDimension(w, h);
454
- return;
455
- }
456
- else {
457
- this.ios.node.computeWithMaxContent();
458
- const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
459
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
460
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
461
- this.setMeasuredDimension(w, h);
462
- }
463
- }
464
- else {
465
- const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
466
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
467
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
468
- this.setMeasuredDimension(w, h);
469
- }
470
- }
471
- }
472
- _setNativeViewFrame(nativeView, frame) {
473
- nativeView.frame = frame;
474
- }
475
- };
476
- Img = __decorate([
477
- CSSType('img'),
478
- __metadata("design:paramtypes", [])
479
- ], Img);
480
- export { Img };
481
- //# sourceMappingURL=index.ios.js.map
package/index.ios.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.ios.ts"],"names":[],"mappings":";AAAA,OAAO,EAA2B,KAAK,EAAE,aAAa,EAAa,OAAO,EAAU,KAAK,EAAkB,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAA4B,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1H,SAAS,WAAW,CAAC,MAAsF,EAAE,MAAM,GAAG,CAAC;IACrH,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,GAAG;YACN,OAAO,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC;QAC/B,KAAK,KAAK;YACR,OAAO,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnD,KAAK,IAAI;YACP,OAAO,MAAM,CAAC,KAAK,CAAC;IACxB,CAAC;AACH,CAAC;AA8BD,MAAM,OAAO,IAAI;IAGf;QACE,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC/B,CAAC;IAMD,MAAM,KAAK,QAAQ;QACjB,OAAO,EAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;IACtC,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;IACvC,CA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type { Gap, GridAutoFlow, Length, LengthAuto, View } from '.';
2
- import { CoreTypes } from '@nativescript/core';
3
- import { JustifySelf } from './helpers';
4
- export type OverFlow = 'visible' | 'hidden' | 'scroll';
5
- export declare class Style {
6
- private view_;
7
- private style_view;
8
- private text_style_view?;
9
- private isDirty;
10
- private isTextDirty;
11
- private inBatch;
12
- static fromView(view: View, nativeView: any, isText?: boolean): Style;
13
- resetState(): void;
14
- private syncStyle;
15
- private setOrAppendState;
16
- private setOrAppendTextState;
17
- batch(fn: (style: Style) => void): void;
18
- get view(): View;
19
- get color(): number;
20
- set color(value: number);
21
- get backgroundColor(): number;
22
- set backgroundColor(value: number);
23
- get textWrap(): number;
24
- set textWrap(value: number);
25
- get styleView(): DataView;
26
- get display(): 'none' | 'flex' | 'grid' | 'block';
27
- set display(value: 'none' | 'flex' | 'grid' | 'block');
28
- get position(): 'relative' | 'absolute';
29
- set position(value: 'relative' | 'absolute');
30
- get flexDirection(): 'column' | 'row' | 'column-reverse' | 'row-reverse';
31
- set flexDirection(value: 'column' | 'row' | 'column-reverse' | 'row-reverse');
32
- get flexWrap(): 'no-wrap' | 'wrap' | 'wrap-reverse';
33
- set flexWrap(value: 'no-wrap' | 'wrap' | 'wrap-reverse');
34
- get minWidth(): LengthAuto;
35
- set minWidth(value: LengthAuto);
36
- get minHeight(): LengthAuto;
37
- set minHeight(value: LengthAuto);
38
- get width(): LengthAuto;
39
- set width(value: LengthAuto);
40
- get height(): LengthAuto;
41
- set height(value: LengthAuto);
42
- get maxWidth(): LengthAuto;
43
- set maxWidth(value: LengthAuto);
44
- get maxHeight(): LengthAuto;
45
- set maxHeight(value: LengthAuto);
46
- get borderLeft(): Length;
47
- set borderLeft(value: Length);
48
- get borderRight(): Length;
49
- set borderRight(value: Length);
50
- get borderTop(): Length;
51
- set borderTop(value: Length);
52
- get borderBottom(): Length;
53
- set borderBottom(value: Length);
54
- get left(): LengthAuto;
55
- set left(value: LengthAuto);
56
- get right(): LengthAuto;
57
- set right(value: LengthAuto);
58
- get top(): LengthAuto;
59
- set top(value: LengthAuto);
60
- get bottom(): LengthAuto;
61
- set bottom(value: LengthAuto);
62
- get marginLeft(): LengthAuto;
63
- set marginLeft(value: LengthAuto);
64
- get marginRight(): LengthAuto;
65
- set marginRight(value: LengthAuto);
66
- get marginTop(): LengthAuto;
67
- set marginTop(value: LengthAuto);
68
- get marginBottom(): LengthAuto;
69
- set marginBottom(value: LengthAuto);
70
- set padding(value: Length);
71
- get paddingLeft(): Length;
72
- set paddingLeft(value: Length);
73
- get paddingRight(): Length;
74
- set paddingRight(value: Length);
75
- get paddingTop(): Length;
76
- set paddingTop(value: Length);
77
- get paddingBottom(): Length;
78
- set paddingBottom(value: Length);
79
- get gap(): string;
80
- get rowGap(): Length;
81
- set rowGap(value: Length);
82
- get columnGap(): Length;
83
- set columnGap(value: Length);
84
- get aspectRatio(): number;
85
- set aspectRatio(value: number);
86
- get flexBasis(): LengthAuto;
87
- set flexBasis(value: LengthAuto);
88
- get alignItems(): 'normal' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
89
- set alignItems(value: 'normal' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch');
90
- get alignSelf(): 'normal' | 'start' | 'end' | 'center' | 'baseline' | 'stretch' | 'flex-start' | 'flex-end';
91
- set alignSelf(value: 'normal' | 'start' | 'end' | 'center' | 'baseline' | 'stretch' | 'flex-start' | 'flex-end');
92
- get alignContent(): 'normal' | 'space-around' | 'space-between' | 'space-evenly' | 'center' | 'end' | 'start' | 'stretch';
93
- set alignContent(value: 'normal' | 'space-around' | 'space-between' | 'space-evenly' | 'center' | 'end' | 'start' | 'stretch');
94
- justifyItems: JustifyItems;
95
- justifySelf: JustifySelf;
96
- get justifyContent(): 'normal' | 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly' | 'flex-start' | 'flex-end';
97
- set justifyContent(value: 'normal' | 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly' | 'flex-start' | 'flex-end');
98
- gridAutoRows: string;
99
- gridAutoColumns: string;
100
- get gridAutoFlow(): GridAutoFlow;
101
- set gridAutoFlow(value: GridAutoFlow);
102
- gridRowGap: Gap;
103
- gridColumnGap: Gap;
104
- gridArea: string;
105
- gridColumn: string;
106
- gridColumnStart: string;
107
- gridColumnEnd: string;
108
- gridRow: string;
109
- gridRowStart: string;
110
- gridRowEnd: string;
111
- gridTemplateRows: string;
112
- gridTemplateColumns: string;
113
- get overflow(): OverFlow | `${OverFlow} ${OverFlow}`;
114
- set overflow(value: OverFlow | `${OverFlow} ${OverFlow}`);
115
- get overflowX(): 'visible' | 'hidden' | 'scroll';
116
- set overflowX(value: 'visible' | 'hidden' | 'scroll');
117
- get overflowY(): 'visible' | 'hidden' | 'scroll';
118
- set overflowY(value: 'visible' | 'hidden' | 'scroll');
119
- get flexGrow(): number;
120
- set flexGrow(value: number);
121
- get flexShrink(): number;
122
- set flexShrink(value: number);
123
- get scrollBarWidth(): number | CoreTypes.LengthType;
124
- set scrollBarWidth(value: number | CoreTypes.LengthType);
125
- toJSON(): {
126
- display: "none" | "flex" | "grid" | "block";
127
- position: "absolute" | "relative";
128
- flexDirection: "row" | "row-reverse" | "column" | "column-reverse";
129
- flexWrap: "wrap" | "wrap-reverse" | "no-wrap";
130
- justifyContent: "normal" | "flex-start" | "flex-end" | "start" | "end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly";
131
- alignItems: "normal" | "flex-start" | "flex-end" | "start" | "end" | "center" | "baseline" | "stretch";
132
- alignContent: "normal" | "start" | "end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly";
133
- alignSelf: "normal" | "flex-start" | "flex-end" | "start" | "end" | "center" | "baseline" | "stretch";
134
- flexGrow: number;
135
- minWidth: LengthAuto;
136
- minHeight: LengthAuto;
137
- maxWidth: LengthAuto;
138
- maxHeight: LengthAuto;
139
- width: LengthAuto;
140
- height: LengthAuto;
141
- inset: {
142
- left: LengthAuto;
143
- right: LengthAuto;
144
- top: LengthAuto;
145
- bottom: LengthAuto;
146
- };
147
- margin: {
148
- left: LengthAuto;
149
- right: LengthAuto;
150
- top: LengthAuto;
151
- bottom: LengthAuto;
152
- };
153
- padding: {
154
- left: Length;
155
- right: Length;
156
- top: Length;
157
- bottom: Length;
158
- };
159
- gap: string;
160
- gridAutoFlow: GridAutoFlow;
161
- gridAutoColumns: string;
162
- gridAutoRows: string;
163
- gridColumn: string;
164
- gridRow: string;
165
- };
166
- }