@triniwiz/nativescript-masonkit 1.0.0-alpha.25 → 1.0.0-alpha.27

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 (53) hide show
  1. package/package.json +1 -1
  2. package/platforms/android/masonkit-release.aar +0 -0
  3. package/common.d.ts +0 -133
  4. package/common.js +0 -1508
  5. package/common.js.map +0 -1
  6. package/img/index.android.d.ts +0 -10
  7. package/img/index.android.js +0 -40
  8. package/img/index.android.js.map +0 -1
  9. package/img/index.ios.d.ts +0 -13
  10. package/img/index.ios.js +0 -102
  11. package/img/index.ios.js.map +0 -1
  12. package/index.android.d.ts +0 -5
  13. package/index.android.js +0 -6
  14. package/index.android.js.map +0 -1
  15. package/index.ios.d.ts +0 -5
  16. package/index.ios.js +0 -6
  17. package/index.ios.js.map +0 -1
  18. package/scroll/index.android.d.ts +0 -13
  19. package/scroll/index.android.js +0 -68
  20. package/scroll/index.android.js.map +0 -1
  21. package/scroll/index.ios.d.ts +0 -16
  22. package/scroll/index.ios.js +0 -150
  23. package/scroll/index.ios.js.map +0 -1
  24. package/style.d.ts +0 -201
  25. package/style.js +0 -2315
  26. package/style.js.map +0 -1
  27. package/text/index.android.d.ts +0 -30
  28. package/text/index.android.js +0 -149
  29. package/text/index.android.js.map +0 -1
  30. package/text/index.ios.d.ts +0 -39
  31. package/text/index.ios.js +0 -288
  32. package/text/index.ios.js.map +0 -1
  33. package/tree/index.android.d.ts +0 -27
  34. package/tree/index.android.js +0 -72
  35. package/tree/index.android.js.map +0 -1
  36. package/tree/index.ios.d.ts +0 -27
  37. package/tree/index.ios.js +0 -72
  38. package/tree/index.ios.js.map +0 -1
  39. package/utils/index.android.d.ts +0 -187
  40. package/utils/index.android.js +0 -594
  41. package/utils/index.android.js.map +0 -1
  42. package/utils/index.ios.d.ts +0 -198
  43. package/utils/index.ios.js +0 -710
  44. package/utils/index.ios.js.map +0 -1
  45. package/view/index.android.d.ts +0 -13
  46. package/view/index.android.js +0 -73
  47. package/view/index.android.js.map +0 -1
  48. package/view/index.ios.d.ts +0 -17
  49. package/view/index.ios.js +0 -155
  50. package/view/index.ios.js.map +0 -1
  51. package/web.d.ts +0 -55
  52. package/web.js +0 -189
  53. package/web.js.map +0 -1
@@ -1,187 +0,0 @@
1
- import { CoreTypes } from '@nativescript/core';
2
- import { style_, ViewBase } from '../common';
3
- type View = ViewBase & {
4
- _hasNativeView: boolean;
5
- _masonPtr: bigint;
6
- _masonNodePtr: bigint;
7
- _inBatch: boolean;
8
- ios: MasonUIView;
9
- android: org.nativescript.mason.masonkit.View & android.view.View & org.nativescript.mason.masonkit.Element;
10
- [style_]: Style;
11
- readonly _styleHelper: Style;
12
- };
13
- import type { Style } from '../style';
14
- declare const enum TSCGridTrackRepetition {
15
- AutoFill = 0,
16
- AutoFit = 1,
17
- Count = 2
18
- }
19
- export declare const enum FlexWrap {
20
- NoWrap = 0,
21
- Wrap = 1,
22
- WrapReverse = 2
23
- }
24
- export declare const enum FlexDirection {
25
- Row = 0,
26
- Column = 1,
27
- RowReverse = 2,
28
- ColumnReverse = 3
29
- }
30
- declare const enum MasonLengthPercentageAutoCompatType {
31
- Auto = 0,
32
- Points = 1,
33
- Percent = 2
34
- }
35
- declare const enum MasonLengthPercentageCompatType {
36
- Points = 0,
37
- Percent = 1
38
- }
39
- export declare const enum MasonDimensionCompatType {
40
- Auto = 0,
41
- Points = 1,
42
- Percent = 2
43
- }
44
- export declare const enum PositionType {
45
- Relative = 0,
46
- Absolute = 1
47
- }
48
- export declare const enum AlignContent {
49
- Normal = -1,
50
- Start = 0,
51
- End = 1,
52
- Center = 2,
53
- Stretch = 3,
54
- SpaceBetween = 4,
55
- SpaceAround = 5,
56
- SpaceEvenly = 6,
57
- FlexStart = 7,
58
- FlexEnd = 8
59
- }
60
- export declare const enum AlignItems {
61
- Normal = -1,
62
- Start = 0,
63
- End = 1,
64
- Center = 2,
65
- Baseline = 3,
66
- Stretch = 4,
67
- FlexStart = 5,
68
- FlexEnd = 6
69
- }
70
- export declare const enum AlignSelf {
71
- Normal = -1,
72
- Start = 0,
73
- End = 1,
74
- Center = 2,
75
- Baseline = 3,
76
- Stretch = 4,
77
- FlexStart = 5,
78
- FlexEnd = 6
79
- }
80
- export declare const enum JustifyContent {
81
- Normal = -1,
82
- Start = 0,
83
- End = 1,
84
- Center = 2,
85
- Stretch = 3,
86
- SpaceBetween = 4,
87
- SpaceAround = 5,
88
- SpaceEvenly = 6,
89
- FlexStart = 7,
90
- FlexEnd = 8
91
- }
92
- export declare const enum JustifyItems {
93
- Normal = -1,
94
- Start = 0,
95
- End = 1,
96
- Center = 2,
97
- Baseline = 3,
98
- Stretch = 4,
99
- FlexStart = 5,
100
- FlexEnd = 6
101
- }
102
- export declare const enum JustifySelf {
103
- Normal = -1,
104
- Start = 0,
105
- End = 1,
106
- Center = 2,
107
- Baseline = 3,
108
- Stretch = 4,
109
- FlexStart = 5,
110
- FlexEnd = 6
111
- }
112
- export declare function parseLength(length: CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit, parent?: number): number;
113
- export declare function _forceStyleUpdate(instance: View): void;
114
- export declare function _markDirty(instance: View): void;
115
- export declare function _isDirty(instance: View): boolean;
116
- export declare function _intoType(type: 'auto' | 'points' | 'percent'): MasonDimensionCompatType;
117
- export declare function _parseDimension(dim: org.nativescript.mason.masonkit.Dimension | MasonDimensionCompat): "auto" | {
118
- value: number;
119
- unit: string;
120
- };
121
- export declare function _parseLengthPercentage(dim: org.nativescript.mason.masonkit.LengthPercentage | MasonLengthPercentageCompat): "auto" | {
122
- value: number;
123
- unit: string;
124
- };
125
- export declare function _parseLengthPercentageAuto(dim: org.nativescript.mason.masonkit.LengthPercentageAuto | MasonLengthPercentageAutoCompat): "auto" | {
126
- value: number;
127
- unit: string;
128
- };
129
- export declare function _toMasonDimension(value: any): {
130
- value: number;
131
- type: 'auto' | 'points' | 'percent';
132
- native_type: MasonDimensionCompatType;
133
- };
134
- export declare function _intoMasonDimension(value: any): org.nativescript.mason.masonkit.Dimension.Points | org.nativescript.mason.masonkit.Dimension.Percent | typeof org.nativescript.mason.masonkit.Dimension.Auto;
135
- export declare function _toLengthPercentageAuto(value: any): {
136
- value: number;
137
- type: 'auto' | 'points' | 'percent';
138
- native_type: MasonLengthPercentageAutoCompatType;
139
- };
140
- export declare function _toLengthPercentage(value: any): {
141
- value: number;
142
- type: 'points' | 'percent';
143
- native_type: MasonLengthPercentageCompatType;
144
- };
145
- export declare function _parseGridLine(value: any): {
146
- value: number;
147
- type: number;
148
- };
149
- declare const enum MinSizingType {
150
- Auto = 0,
151
- MinContent = 1,
152
- MaxContent = 2,
153
- Points = 3,
154
- Percent = 4
155
- }
156
- declare const enum MaxSizingType {
157
- Auto = 0,
158
- MinContent = 1,
159
- MaxContent = 2,
160
- Points = 3,
161
- Percent = 4,
162
- Fraction = 5,
163
- FitContent = 6,
164
- FitContentPercent = 7
165
- }
166
- interface MinMaxType {
167
- min_type: MinSizingType;
168
- min_value: number;
169
- max_type: MaxSizingType;
170
- max_value: number;
171
- }
172
- export declare function _parseMinMaxValue(value: string): MinMaxType;
173
- export interface GridTemplates {
174
- is_repeating: boolean;
175
- repeating_type: TSCGridTrackRepetition;
176
- repeating_count: number;
177
- value: MinMaxType | Array<MinMaxType>;
178
- }
179
- export declare function _parseGridTemplates(value: string): Array<GridTemplates>;
180
- export declare function _setGridTemplateRows(value: Array<GridTemplates>, instance: View, initial?: boolean): void;
181
- export declare function _setGridTemplateColumns(value: Array<GridTemplates>, instance: View, initial?: boolean): void;
182
- export declare function _parseGridAutoRowsColumns(value: string): Array<MinMaxType>;
183
- export declare function _setGridAutoRows(value: any, instance: View, initial?: boolean): void;
184
- export declare function _setGridAutoColumns(value: any, instance: View, initial?: boolean): void;
185
- export declare function _getGridTemplateRows(instance: View): string | androidNative.Array<org.nativescript.mason.masonkit.TrackSizingFunction>;
186
- export declare function _getGridTemplateColumns(instance: View): androidNative.Array<org.nativescript.mason.masonkit.TrackSizingFunction>;
187
- export {};