@reactunity/renderer 0.15.2 → 0.16.1

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 (172) hide show
  1. package/dist/editor/index.d.ts +1 -0
  2. package/dist/editor/index.js +17 -0
  3. package/dist/editor/jsx-dev-runtime.d.ts +2 -0
  4. package/dist/editor/jsx-dev-runtime.js +17 -0
  5. package/dist/editor/jsx-runtime.d.ts +2 -0
  6. package/dist/editor/jsx-runtime.js +17 -0
  7. package/dist/index.d.ts +9 -9
  8. package/dist/index.js +31 -9
  9. package/dist/src/helpers/dictionary-watcher.d.ts +66 -66
  10. package/dist/src/helpers/dictionary-watcher.js +104 -98
  11. package/dist/src/helpers/hooks/use-globals.d.ts +6 -6
  12. package/dist/src/helpers/hooks/use-globals.js +9 -6
  13. package/dist/src/helpers/hooks/use-reactive-value.d.ts +4 -4
  14. package/dist/src/helpers/hooks/use-reactive-value.js +31 -27
  15. package/dist/src/helpers/icons.d.ts +11 -7
  16. package/dist/src/helpers/icons.js +32 -29
  17. package/dist/src/models/base.d.ts +56 -56
  18. package/dist/src/models/base.js +3 -2
  19. package/dist/src/models/editor/components.d.ts +22 -22
  20. package/dist/src/models/editor/components.js +2 -1
  21. package/dist/src/models/editor/environment.d.ts +9 -10
  22. package/dist/src/models/editor/environment.js +2 -1
  23. package/dist/src/models/editor/index.d.ts +3 -3
  24. package/dist/src/models/editor/index.js +19 -3
  25. package/dist/src/models/editor/jsx.d.ts +111 -104
  26. package/dist/src/models/editor/jsx.js +2 -1
  27. package/dist/src/models/environment/dom/common.d.ts +85 -85
  28. package/dist/src/models/environment/dom/common.js +2 -1
  29. package/dist/src/models/environment/dom/fetch.d.ts +111 -111
  30. package/dist/src/models/environment/dom/fetch.js +2 -1
  31. package/dist/src/models/environment/dom/global.d.ts +11 -11
  32. package/dist/src/models/environment/dom/global.js +2 -1
  33. package/dist/src/models/environment/dom/xhr.d.ts +161 -161
  34. package/dist/src/models/environment/dom/xhr.js +2 -1
  35. package/dist/src/models/environment/index.d.ts +43 -47
  36. package/dist/src/models/environment/index.js +18 -3
  37. package/dist/src/models/environment/interop.d.ts +23 -23
  38. package/dist/src/models/environment/interop.js +2 -1
  39. package/dist/src/models/generated/editor.d.ts +18501 -18501
  40. package/dist/src/models/generated/editor.js +7 -6
  41. package/dist/src/models/generated/index.d.ts +6 -6
  42. package/dist/src/models/generated/index.js +22 -6
  43. package/dist/src/models/generated/react.d.ts +15214 -15214
  44. package/dist/src/models/generated/react.js +7 -6
  45. package/dist/src/models/generated/system.d.ts +36731 -36731
  46. package/dist/src/models/generated/system.js +7 -6
  47. package/dist/src/models/generated/tests.d.ts +5023 -5023
  48. package/dist/src/models/generated/tests.js +7 -6
  49. package/dist/src/models/generated/unity.d.ts +43446 -43446
  50. package/dist/src/models/generated/unity.js +7 -6
  51. package/dist/src/models/generated/yoga.d.ts +368 -368
  52. package/dist/src/models/generated/yoga.js +7 -6
  53. package/dist/src/models/properties/colors.d.ts +150 -150
  54. package/dist/src/models/properties/colors.js +2 -1
  55. package/dist/src/models/properties/common.d.ts +2 -2
  56. package/dist/src/models/properties/common.js +2 -1
  57. package/dist/src/models/properties/index.d.ts +7 -7
  58. package/dist/src/models/properties/index.js +23 -7
  59. package/dist/src/models/properties/style.d.ts +10 -10
  60. package/dist/src/models/properties/style.js +2 -1
  61. package/dist/src/models/properties/styles-enums.d.ts +23 -23
  62. package/dist/src/models/properties/styles-enums.js +2 -1
  63. package/dist/src/models/properties/styles.d.ts +127 -127
  64. package/dist/src/models/properties/styles.js +2 -1
  65. package/dist/src/models/properties/values.d.ts +24 -24
  66. package/dist/src/models/properties/values.js +2 -1
  67. package/dist/src/models/properties/yoga-enums.d.ts +8 -8
  68. package/dist/src/models/properties/yoga-enums.js +2 -1
  69. package/dist/src/models/properties/yoga.d.ts +66 -66
  70. package/dist/src/models/properties/yoga.js +2 -1
  71. package/dist/src/models/renderer.d.ts +20 -20
  72. package/dist/src/models/renderer.js +2 -1
  73. package/dist/src/models/richtext.d.ts +69 -69
  74. package/dist/src/models/richtext.js +3 -2
  75. package/dist/src/models/svg.d.ts +68 -68
  76. package/dist/src/models/svg.js +2 -1
  77. package/dist/src/models/tests/index.d.ts +12 -12
  78. package/dist/src/models/tests/index.js +2 -1
  79. package/dist/src/models/ugui/components.d.ts +86 -86
  80. package/dist/src/models/ugui/components.js +2 -1
  81. package/dist/src/models/ugui/events.d.ts +74 -74
  82. package/dist/src/models/ugui/events.js +3 -2
  83. package/dist/src/models/ugui/index.d.ts +4 -4
  84. package/dist/src/models/ugui/index.js +20 -4
  85. package/dist/src/models/ugui/input.d.ts +26 -26
  86. package/dist/src/models/ugui/input.js +2 -1
  87. package/dist/src/models/ugui/jsx.d.ts +67 -60
  88. package/dist/src/models/ugui/jsx.js +2 -1
  89. package/dist/src/models/uitoolkit/components.d.ts +82 -82
  90. package/dist/src/models/uitoolkit/components.js +2 -1
  91. package/dist/src/models/uitoolkit/events.d.ts +64 -64
  92. package/dist/src/models/uitoolkit/events.js +2 -1
  93. package/dist/src/models/uitoolkit/index.d.ts +3 -3
  94. package/dist/src/models/uitoolkit/index.js +19 -3
  95. package/dist/src/models/uitoolkit/jsx.d.ts +71 -64
  96. package/dist/src/models/uitoolkit/jsx.js +2 -1
  97. package/dist/src/renderer/async/callbacks.d.ts +5 -6
  98. package/dist/src/renderer/async/callbacks.js +55 -52
  99. package/dist/src/renderer/async/commands.d.ts +98 -47
  100. package/dist/src/renderer/async/commands.js +2 -1
  101. package/dist/src/renderer/async/objects.d.ts +7 -8
  102. package/dist/src/renderer/async/objects.js +34 -31
  103. package/dist/src/renderer/async/reconciler.d.ts +2 -2
  104. package/dist/src/renderer/async/reconciler.js +307 -283
  105. package/dist/src/renderer/async/serializer.d.ts +6 -9
  106. package/dist/src/renderer/async/serializer.js +35 -31
  107. package/dist/src/renderer/async/types.d.ts +45 -45
  108. package/dist/src/renderer/async/types.js +2 -1
  109. package/dist/src/renderer/constants.d.ts +30 -30
  110. package/dist/src/renderer/constants.js +75 -70
  111. package/dist/src/renderer/diffing.d.ts +3 -3
  112. package/dist/src/renderer/diffing.js +87 -83
  113. package/dist/src/renderer/renderer.d.ts +26 -26
  114. package/dist/src/renderer/renderer.js +97 -93
  115. package/dist/src/renderer/subcontexts/index.d.ts +6 -6
  116. package/dist/src/renderer/subcontexts/index.js +9 -6
  117. package/dist/src/renderer/subcontexts/richtext.d.ts +3 -3
  118. package/dist/src/renderer/subcontexts/richtext.js +57 -52
  119. package/dist/src/renderer/subcontexts/svg.d.ts +3 -3
  120. package/dist/src/renderer/subcontexts/svg.js +75 -70
  121. package/dist/src/renderer/sync/reconciler.d.ts +2 -2
  122. package/dist/src/renderer/sync/reconciler.js +38 -35
  123. package/dist/src/version.d.ts +1 -1
  124. package/dist/src/version.js +4 -1
  125. package/dist/src/views/default-view.d.ts +8 -8
  126. package/dist/src/views/default-view.js +11 -7
  127. package/dist/src/views/error-boundary.d.ts +10 -10
  128. package/dist/src/views/error-boundary.js +45 -53
  129. package/dist/src/webgl-compat/error-messages.d.ts +9 -9
  130. package/dist/src/webgl-compat/error-messages.js +13 -10
  131. package/dist/src/webgl-compat/index.d.ts +13 -13
  132. package/dist/src/webgl-compat/index.js +13 -8
  133. package/dist/src/webgl-compat/types.d.ts +21 -21
  134. package/dist/src/webgl-compat/types.js +2 -1
  135. package/dist/src/webgl-compat/use-event-system.d.ts +3 -3
  136. package/dist/src/webgl-compat/use-event-system.js +82 -76
  137. package/dist/src/webgl-compat/use-unity-context.d.ts +31 -31
  138. package/dist/src/webgl-compat/use-unity-context.js +96 -91
  139. package/dist/tests.d.ts +1 -1
  140. package/dist/tests.js +17 -1
  141. package/dist/ugui/index.d.ts +1 -0
  142. package/dist/ugui/index.js +17 -0
  143. package/dist/ugui/jsx-dev-runtime.d.ts +2 -0
  144. package/dist/ugui/jsx-dev-runtime.js +17 -0
  145. package/dist/ugui/jsx-runtime.d.ts +2 -0
  146. package/dist/ugui/jsx-runtime.js +17 -0
  147. package/dist/uitoolkit/index.d.ts +1 -0
  148. package/dist/uitoolkit/index.js +17 -0
  149. package/dist/uitoolkit/jsx-dev-runtime.d.ts +2 -0
  150. package/dist/uitoolkit/jsx-dev-runtime.js +17 -0
  151. package/dist/uitoolkit/jsx-runtime.d.ts +2 -0
  152. package/dist/uitoolkit/jsx-runtime.js +17 -0
  153. package/dist/webgl-compat.d.ts +1 -1
  154. package/dist/webgl-compat.js +17 -1
  155. package/package.json +16 -32
  156. package/dist/editor.d.ts +0 -1
  157. package/dist/editor.js +0 -1
  158. package/dist/src/models/environment/jsx.d.ts +0 -45
  159. package/dist/src/models/environment/jsx.js +0 -1
  160. package/dist/ugui.d.ts +0 -1
  161. package/dist/ugui.js +0 -1
  162. package/dist/uitoolkit.d.ts +0 -1
  163. package/dist/uitoolkit.js +0 -1
  164. package/editor.ts +0 -1
  165. package/tests.ts +0 -1
  166. package/tsconfig.editor.json +0 -6
  167. package/tsconfig.ugui.json +0 -6
  168. package/tsconfig.uitoolkit.json +0 -6
  169. package/ugui.ts +0 -1
  170. package/uitoolkit.ts +0 -1
  171. package/version.js +0 -3
  172. package/webgl-compat.ts +0 -1
@@ -1,368 +1,368 @@
1
- import { System } from './system';
2
- export declare namespace Facebook {
3
- namespace Yoga {
4
- class BaselineFunction {
5
- constructor(object: any, method: System.IntPtr);
6
- Method: System.Reflection.MethodInfo;
7
- Target: any;
8
- Invoke(node: Facebook.Yoga.YogaNode, width: number, height: number): number;
9
- BeginInvoke(node: Facebook.Yoga.YogaNode, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
10
- EndInvoke(result: System.IAsyncResult): number;
11
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
12
- Equals(obj: any): boolean;
13
- GetHashCode(): number;
14
- GetInvocationList(): System.Delegate[];
15
- DynamicInvoke(...args: any[]): any;
16
- Clone(): any;
17
- GetType(): System.Type;
18
- ToString(): string;
19
- }
20
- class Logger {
21
- constructor(object: any, method: System.IntPtr);
22
- Method: System.Reflection.MethodInfo;
23
- Target: any;
24
- Invoke(config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string): void;
25
- BeginInvoke(config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
26
- EndInvoke(result: System.IAsyncResult): void;
27
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
28
- Equals(obj: any): boolean;
29
- GetHashCode(): number;
30
- GetInvocationList(): System.Delegate[];
31
- DynamicInvoke(...args: any[]): any;
32
- Clone(): any;
33
- GetType(): System.Type;
34
- ToString(): string;
35
- }
36
- class MeasureFunction {
37
- constructor(object: any, method: System.IntPtr);
38
- Method: System.Reflection.MethodInfo;
39
- Target: any;
40
- Invoke(node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
41
- BeginInvoke(node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
42
- EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
43
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
44
- Equals(obj: any): boolean;
45
- GetHashCode(): number;
46
- GetInvocationList(): System.Delegate[];
47
- DynamicInvoke(...args: any[]): any;
48
- Clone(): any;
49
- GetType(): System.Type;
50
- ToString(): string;
51
- }
52
- class MeasureOutput {
53
- constructor();
54
- static Make(width: number, height: number): Facebook.Yoga.YogaSize;
55
- Equals(obj: any): boolean;
56
- GetHashCode(): number;
57
- GetType(): System.Type;
58
- ToString(): string;
59
- }
60
- enum YogaAlign {
61
- Auto = 0,
62
- FlexStart = 1,
63
- Center = 2,
64
- FlexEnd = 3,
65
- Stretch = 4,
66
- Baseline = 5,
67
- SpaceBetween = 6,
68
- SpaceAround = 7
69
- }
70
- class YogaBaselineFunc {
71
- constructor(object: any, method: System.IntPtr);
72
- Method: System.Reflection.MethodInfo;
73
- Target: any;
74
- Invoke(unmanagedNodePtr: System.IntPtr, width: number, height: number): number;
75
- BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
76
- EndInvoke(result: System.IAsyncResult): number;
77
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
78
- Equals(obj: any): boolean;
79
- GetHashCode(): number;
80
- GetInvocationList(): System.Delegate[];
81
- DynamicInvoke(...args: any[]): any;
82
- Clone(): any;
83
- GetType(): System.Type;
84
- ToString(): string;
85
- }
86
- class YogaConfig {
87
- constructor();
88
- Logger: ((config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string) => void);
89
- UseWebDefaults: boolean;
90
- PointScaleFactor: number;
91
- SetExperimentalFeatureEnabled(feature: Facebook.Yoga.YogaExperimentalFeature, enabled: boolean): void;
92
- IsExperimentalFeatureEnabled(feature: Facebook.Yoga.YogaExperimentalFeature): boolean;
93
- static GetInstanceCount(): number;
94
- static SetDefaultLogger(logger: ((config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string) => void)): void;
95
- Equals(obj: any): boolean;
96
- GetHashCode(): number;
97
- GetType(): System.Type;
98
- ToString(): string;
99
- }
100
- class YogaConstants {
101
- static Undefined: number;
102
- static IsUndefined(value: number): boolean;
103
- static IsUndefined(value: Facebook.Yoga.YogaValue): boolean;
104
- Equals(obj: any): boolean;
105
- GetHashCode(): number;
106
- GetType(): System.Type;
107
- ToString(): string;
108
- }
109
- enum YogaDimension {
110
- Width = 0,
111
- Height = 1
112
- }
113
- enum YogaDirection {
114
- Inherit = 0,
115
- LTR = 1,
116
- RTL = 2
117
- }
118
- enum YogaDisplay {
119
- Flex = 0,
120
- None = 1
121
- }
122
- enum YogaEdge {
123
- Left = 0,
124
- Top = 1,
125
- Right = 2,
126
- Bottom = 3,
127
- Start = 4,
128
- End = 5,
129
- Horizontal = 6,
130
- Vertical = 7,
131
- All = 8
132
- }
133
- enum YogaExperimentalFeature {
134
- WebFlexBasis = 0
135
- }
136
- enum YogaFlexDirection {
137
- Column = 0,
138
- ColumnReverse = 1,
139
- Row = 2,
140
- RowReverse = 3
141
- }
142
- enum YogaGutter {
143
- Column = 0,
144
- Row = 1,
145
- All = 2
146
- }
147
- enum YogaJustify {
148
- FlexStart = 0,
149
- Center = 1,
150
- FlexEnd = 2,
151
- SpaceBetween = 3,
152
- SpaceAround = 4,
153
- SpaceEvenly = 5
154
- }
155
- class YogaLogger {
156
- constructor(object: any, method: System.IntPtr);
157
- Method: System.Reflection.MethodInfo;
158
- Target: any;
159
- Invoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string): void;
160
- BeginInvoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
161
- EndInvoke(result: System.IAsyncResult): void;
162
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
163
- Equals(obj: any): boolean;
164
- GetHashCode(): number;
165
- GetInvocationList(): System.Delegate[];
166
- DynamicInvoke(...args: any[]): any;
167
- Clone(): any;
168
- GetType(): System.Type;
169
- ToString(): string;
170
- }
171
- enum YogaLogLevel {
172
- Error = 0,
173
- Warn = 1,
174
- Info = 2,
175
- Debug = 3,
176
- Verbose = 4,
177
- Fatal = 5
178
- }
179
- class YogaMeasureFunc {
180
- constructor(object: any, method: System.IntPtr);
181
- Method: System.Reflection.MethodInfo;
182
- Target: any;
183
- Invoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
184
- BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
185
- EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
186
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
187
- Equals(obj: any): boolean;
188
- GetHashCode(): number;
189
- GetInvocationList(): System.Delegate[];
190
- DynamicInvoke(...args: any[]): any;
191
- Clone(): any;
192
- GetType(): System.Type;
193
- ToString(): string;
194
- }
195
- enum YogaMeasureMode {
196
- Undefined = 0,
197
- Exactly = 1,
198
- AtMost = 2
199
- }
200
- class YogaNode {
201
- constructor(config?: Facebook.Yoga.YogaConfig);
202
- constructor(srcNode: Facebook.Yoga.YogaNode);
203
- [key: string]: any;
204
- IsDirty: boolean;
205
- HasNewLayout: boolean;
206
- Parent: Facebook.Yoga.YogaNode;
207
- IsMeasureDefined: boolean;
208
- IsBaselineDefined: boolean;
209
- StyleDirection: Facebook.Yoga.YogaDirection;
210
- FlexDirection: Facebook.Yoga.YogaFlexDirection;
211
- JustifyContent: Facebook.Yoga.YogaJustify;
212
- Display: Facebook.Yoga.YogaDisplay;
213
- AlignItems: Facebook.Yoga.YogaAlign;
214
- AlignSelf: Facebook.Yoga.YogaAlign;
215
- AlignContent: Facebook.Yoga.YogaAlign;
216
- PositionType: Facebook.Yoga.YogaPositionType;
217
- Wrap: Facebook.Yoga.YogaWrap;
218
- Flex: number;
219
- FlexGrow: number;
220
- FlexShrink: number;
221
- FlexBasis: Facebook.Yoga.YogaValue;
222
- Width: Facebook.Yoga.YogaValue;
223
- Height: Facebook.Yoga.YogaValue;
224
- MaxWidth: Facebook.Yoga.YogaValue;
225
- MaxHeight: Facebook.Yoga.YogaValue;
226
- MinWidth: Facebook.Yoga.YogaValue;
227
- MinHeight: Facebook.Yoga.YogaValue;
228
- AspectRatio: number;
229
- LayoutX: number;
230
- LayoutY: number;
231
- LayoutWidth: number;
232
- LayoutHeight: number;
233
- LayoutDirection: Facebook.Yoga.YogaDirection;
234
- Overflow: Facebook.Yoga.YogaOverflow;
235
- Data: any;
236
- Count: number;
237
- Left: Facebook.Yoga.YogaValue;
238
- Top: Facebook.Yoga.YogaValue;
239
- Right: Facebook.Yoga.YogaValue;
240
- Bottom: Facebook.Yoga.YogaValue;
241
- Start: Facebook.Yoga.YogaValue;
242
- End: Facebook.Yoga.YogaValue;
243
- MarginLeft: Facebook.Yoga.YogaValue;
244
- MarginTop: Facebook.Yoga.YogaValue;
245
- MarginRight: Facebook.Yoga.YogaValue;
246
- MarginBottom: Facebook.Yoga.YogaValue;
247
- MarginStart: Facebook.Yoga.YogaValue;
248
- MarginEnd: Facebook.Yoga.YogaValue;
249
- MarginHorizontal: Facebook.Yoga.YogaValue;
250
- MarginVertical: Facebook.Yoga.YogaValue;
251
- Margin: Facebook.Yoga.YogaValue;
252
- PaddingLeft: Facebook.Yoga.YogaValue;
253
- PaddingTop: Facebook.Yoga.YogaValue;
254
- PaddingRight: Facebook.Yoga.YogaValue;
255
- PaddingBottom: Facebook.Yoga.YogaValue;
256
- PaddingStart: Facebook.Yoga.YogaValue;
257
- PaddingEnd: Facebook.Yoga.YogaValue;
258
- PaddingHorizontal: Facebook.Yoga.YogaValue;
259
- PaddingVertical: Facebook.Yoga.YogaValue;
260
- Padding: Facebook.Yoga.YogaValue;
261
- BorderLeftWidth: number;
262
- BorderTopWidth: number;
263
- BorderRightWidth: number;
264
- BorderBottomWidth: number;
265
- BorderStartWidth: number;
266
- BorderEndWidth: number;
267
- BorderWidth: number;
268
- Gap: number;
269
- RowGap: number;
270
- ColumnGap: number;
271
- LayoutMarginLeft: number;
272
- LayoutMarginTop: number;
273
- LayoutMarginRight: number;
274
- LayoutMarginBottom: number;
275
- LayoutMarginStart: number;
276
- LayoutMarginEnd: number;
277
- LayoutPaddingLeft: number;
278
- LayoutPaddingTop: number;
279
- LayoutPaddingRight: number;
280
- LayoutPaddingBottom: number;
281
- LayoutPaddingStart: number;
282
- LayoutPaddingEnd: number;
283
- Reset(): void;
284
- MarkDirty(): void;
285
- MarkHasNewLayout(): void;
286
- CopyStyle(srcNode: Facebook.Yoga.YogaNode): void;
287
- MarkLayoutSeen(): void;
288
- ValuesEqual(f1: number, f2: number): boolean;
289
- Insert(index: number, node: Facebook.Yoga.YogaNode): void;
290
- RemoveAt(index: number): void;
291
- AddChild(child: Facebook.Yoga.YogaNode): void;
292
- RemoveChild(child: Facebook.Yoga.YogaNode): void;
293
- Clear(): void;
294
- IndexOf(node: Facebook.Yoga.YogaNode): number;
295
- SetMeasureFunction(measureFunction: ((node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode) => Facebook.Yoga.YogaSize)): void;
296
- SetBaselineFunction(baselineFunction: ((node: Facebook.Yoga.YogaNode, width: number, height: number) => number)): void;
297
- CalculateLayout(width?: number, height?: number): void;
298
- Print(options?: Facebook.Yoga.YogaPrintOptions): string;
299
- GetEnumerator(): System.Collections.Generic.IEnumerator<Facebook.Yoga.YogaNode>;
300
- Equals(obj: any): boolean;
301
- GetHashCode(): number;
302
- GetType(): System.Type;
303
- ToString(): string;
304
- }
305
- enum YogaNodeType {
306
- Default = 0,
307
- Text = 1
308
- }
309
- enum YogaOverflow {
310
- Visible = 0,
311
- Hidden = 1,
312
- Scroll = 2
313
- }
314
- enum YogaPositionType {
315
- Default = 1,
316
- Static = 0,
317
- Relative = 1,
318
- Absolute = 2
319
- }
320
- enum YogaPrintOptions {
321
- Layout = 1,
322
- Style = 2,
323
- Children = 4
324
- }
325
- class YogaSize {
326
- width: number;
327
- height: number;
328
- Equals(obj: any): boolean;
329
- GetHashCode(): number;
330
- ToString(): string;
331
- GetType(): System.Type;
332
- }
333
- enum YogaUnit {
334
- Undefined = 0,
335
- Point = 1,
336
- Percent = 2,
337
- Auto = 3
338
- }
339
- class YogaValue {
340
- Unit: Facebook.Yoga.YogaUnit;
341
- Value: number;
342
- static Point(value: number): Facebook.Yoga.YogaValue;
343
- Equals(other: Facebook.Yoga.YogaValue): boolean;
344
- Equals(obj: any): boolean;
345
- GetHashCode(): number;
346
- static Undefined(): Facebook.Yoga.YogaValue;
347
- static Auto(): Facebook.Yoga.YogaValue;
348
- static Percent(value: number): Facebook.Yoga.YogaValue;
349
- ToString(): string;
350
- GetType(): System.Type;
351
- }
352
- class YogaValueExtensions {
353
- static Percent(value: number): Facebook.Yoga.YogaValue;
354
- static Pt(value: number): Facebook.Yoga.YogaValue;
355
- static Percent(value: number): Facebook.Yoga.YogaValue;
356
- static Pt(value: number): Facebook.Yoga.YogaValue;
357
- Equals(obj: any): boolean;
358
- GetHashCode(): number;
359
- GetType(): System.Type;
360
- ToString(): string;
361
- }
362
- enum YogaWrap {
363
- NoWrap = 0,
364
- Wrap = 1,
365
- WrapReverse = 2
366
- }
367
- }
368
- }
1
+ import { System } from './system';
2
+ export declare namespace Facebook {
3
+ namespace Yoga {
4
+ class BaselineFunction {
5
+ constructor(object: any, method: System.IntPtr);
6
+ Method: System.Reflection.MethodInfo;
7
+ Target: any;
8
+ Invoke(node: Facebook.Yoga.YogaNode, width: number, height: number): number;
9
+ BeginInvoke(node: Facebook.Yoga.YogaNode, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
10
+ EndInvoke(result: System.IAsyncResult): number;
11
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
12
+ Equals(obj: any): boolean;
13
+ GetHashCode(): number;
14
+ GetInvocationList(): System.Delegate[];
15
+ DynamicInvoke(...args: any[]): any;
16
+ Clone(): any;
17
+ GetType(): System.Type;
18
+ ToString(): string;
19
+ }
20
+ class Logger {
21
+ constructor(object: any, method: System.IntPtr);
22
+ Method: System.Reflection.MethodInfo;
23
+ Target: any;
24
+ Invoke(config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string): void;
25
+ BeginInvoke(config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
26
+ EndInvoke(result: System.IAsyncResult): void;
27
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
28
+ Equals(obj: any): boolean;
29
+ GetHashCode(): number;
30
+ GetInvocationList(): System.Delegate[];
31
+ DynamicInvoke(...args: any[]): any;
32
+ Clone(): any;
33
+ GetType(): System.Type;
34
+ ToString(): string;
35
+ }
36
+ class MeasureFunction {
37
+ constructor(object: any, method: System.IntPtr);
38
+ Method: System.Reflection.MethodInfo;
39
+ Target: any;
40
+ Invoke(node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
41
+ BeginInvoke(node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
42
+ EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
43
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
44
+ Equals(obj: any): boolean;
45
+ GetHashCode(): number;
46
+ GetInvocationList(): System.Delegate[];
47
+ DynamicInvoke(...args: any[]): any;
48
+ Clone(): any;
49
+ GetType(): System.Type;
50
+ ToString(): string;
51
+ }
52
+ class MeasureOutput {
53
+ constructor();
54
+ static Make(width: number, height: number): Facebook.Yoga.YogaSize;
55
+ Equals(obj: any): boolean;
56
+ GetHashCode(): number;
57
+ GetType(): System.Type;
58
+ ToString(): string;
59
+ }
60
+ enum YogaAlign {
61
+ Auto = 0,
62
+ FlexStart = 1,
63
+ Center = 2,
64
+ FlexEnd = 3,
65
+ Stretch = 4,
66
+ Baseline = 5,
67
+ SpaceBetween = 6,
68
+ SpaceAround = 7
69
+ }
70
+ class YogaBaselineFunc {
71
+ constructor(object: any, method: System.IntPtr);
72
+ Method: System.Reflection.MethodInfo;
73
+ Target: any;
74
+ Invoke(unmanagedNodePtr: System.IntPtr, width: number, height: number): number;
75
+ BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
76
+ EndInvoke(result: System.IAsyncResult): number;
77
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
78
+ Equals(obj: any): boolean;
79
+ GetHashCode(): number;
80
+ GetInvocationList(): System.Delegate[];
81
+ DynamicInvoke(...args: any[]): any;
82
+ Clone(): any;
83
+ GetType(): System.Type;
84
+ ToString(): string;
85
+ }
86
+ class YogaConfig {
87
+ constructor();
88
+ Logger: ((config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string) => void);
89
+ UseWebDefaults: boolean;
90
+ PointScaleFactor: number;
91
+ SetExperimentalFeatureEnabled(feature: Facebook.Yoga.YogaExperimentalFeature, enabled: boolean): void;
92
+ IsExperimentalFeatureEnabled(feature: Facebook.Yoga.YogaExperimentalFeature): boolean;
93
+ static GetInstanceCount(): number;
94
+ static SetDefaultLogger(logger: ((config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string) => void)): void;
95
+ Equals(obj: any): boolean;
96
+ GetHashCode(): number;
97
+ GetType(): System.Type;
98
+ ToString(): string;
99
+ }
100
+ class YogaConstants {
101
+ static Undefined: number;
102
+ static IsUndefined(value: number): boolean;
103
+ static IsUndefined(value: Facebook.Yoga.YogaValue): boolean;
104
+ Equals(obj: any): boolean;
105
+ GetHashCode(): number;
106
+ GetType(): System.Type;
107
+ ToString(): string;
108
+ }
109
+ enum YogaDimension {
110
+ Width = 0,
111
+ Height = 1
112
+ }
113
+ enum YogaDirection {
114
+ Inherit = 0,
115
+ LTR = 1,
116
+ RTL = 2
117
+ }
118
+ enum YogaDisplay {
119
+ Flex = 0,
120
+ None = 1
121
+ }
122
+ enum YogaEdge {
123
+ Left = 0,
124
+ Top = 1,
125
+ Right = 2,
126
+ Bottom = 3,
127
+ Start = 4,
128
+ End = 5,
129
+ Horizontal = 6,
130
+ Vertical = 7,
131
+ All = 8
132
+ }
133
+ enum YogaExperimentalFeature {
134
+ WebFlexBasis = 0
135
+ }
136
+ enum YogaFlexDirection {
137
+ Column = 0,
138
+ ColumnReverse = 1,
139
+ Row = 2,
140
+ RowReverse = 3
141
+ }
142
+ enum YogaGutter {
143
+ Column = 0,
144
+ Row = 1,
145
+ All = 2
146
+ }
147
+ enum YogaJustify {
148
+ FlexStart = 0,
149
+ Center = 1,
150
+ FlexEnd = 2,
151
+ SpaceBetween = 3,
152
+ SpaceAround = 4,
153
+ SpaceEvenly = 5
154
+ }
155
+ class YogaLogger {
156
+ constructor(object: any, method: System.IntPtr);
157
+ Method: System.Reflection.MethodInfo;
158
+ Target: any;
159
+ Invoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string): void;
160
+ BeginInvoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
161
+ EndInvoke(result: System.IAsyncResult): void;
162
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
163
+ Equals(obj: any): boolean;
164
+ GetHashCode(): number;
165
+ GetInvocationList(): System.Delegate[];
166
+ DynamicInvoke(...args: any[]): any;
167
+ Clone(): any;
168
+ GetType(): System.Type;
169
+ ToString(): string;
170
+ }
171
+ enum YogaLogLevel {
172
+ Error = 0,
173
+ Warn = 1,
174
+ Info = 2,
175
+ Debug = 3,
176
+ Verbose = 4,
177
+ Fatal = 5
178
+ }
179
+ class YogaMeasureFunc {
180
+ constructor(object: any, method: System.IntPtr);
181
+ Method: System.Reflection.MethodInfo;
182
+ Target: any;
183
+ Invoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
184
+ BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
185
+ EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
186
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
187
+ Equals(obj: any): boolean;
188
+ GetHashCode(): number;
189
+ GetInvocationList(): System.Delegate[];
190
+ DynamicInvoke(...args: any[]): any;
191
+ Clone(): any;
192
+ GetType(): System.Type;
193
+ ToString(): string;
194
+ }
195
+ enum YogaMeasureMode {
196
+ Undefined = 0,
197
+ Exactly = 1,
198
+ AtMost = 2
199
+ }
200
+ class YogaNode {
201
+ constructor(config?: Facebook.Yoga.YogaConfig);
202
+ constructor(srcNode: Facebook.Yoga.YogaNode);
203
+ [key: string]: any;
204
+ IsDirty: boolean;
205
+ HasNewLayout: boolean;
206
+ Parent: Facebook.Yoga.YogaNode;
207
+ IsMeasureDefined: boolean;
208
+ IsBaselineDefined: boolean;
209
+ StyleDirection: Facebook.Yoga.YogaDirection;
210
+ FlexDirection: Facebook.Yoga.YogaFlexDirection;
211
+ JustifyContent: Facebook.Yoga.YogaJustify;
212
+ Display: Facebook.Yoga.YogaDisplay;
213
+ AlignItems: Facebook.Yoga.YogaAlign;
214
+ AlignSelf: Facebook.Yoga.YogaAlign;
215
+ AlignContent: Facebook.Yoga.YogaAlign;
216
+ PositionType: Facebook.Yoga.YogaPositionType;
217
+ Wrap: Facebook.Yoga.YogaWrap;
218
+ Flex: number;
219
+ FlexGrow: number;
220
+ FlexShrink: number;
221
+ FlexBasis: Facebook.Yoga.YogaValue;
222
+ Width: Facebook.Yoga.YogaValue;
223
+ Height: Facebook.Yoga.YogaValue;
224
+ MaxWidth: Facebook.Yoga.YogaValue;
225
+ MaxHeight: Facebook.Yoga.YogaValue;
226
+ MinWidth: Facebook.Yoga.YogaValue;
227
+ MinHeight: Facebook.Yoga.YogaValue;
228
+ AspectRatio: number;
229
+ LayoutX: number;
230
+ LayoutY: number;
231
+ LayoutWidth: number;
232
+ LayoutHeight: number;
233
+ LayoutDirection: Facebook.Yoga.YogaDirection;
234
+ Overflow: Facebook.Yoga.YogaOverflow;
235
+ Data: any;
236
+ Count: number;
237
+ Left: Facebook.Yoga.YogaValue;
238
+ Top: Facebook.Yoga.YogaValue;
239
+ Right: Facebook.Yoga.YogaValue;
240
+ Bottom: Facebook.Yoga.YogaValue;
241
+ Start: Facebook.Yoga.YogaValue;
242
+ End: Facebook.Yoga.YogaValue;
243
+ MarginLeft: Facebook.Yoga.YogaValue;
244
+ MarginTop: Facebook.Yoga.YogaValue;
245
+ MarginRight: Facebook.Yoga.YogaValue;
246
+ MarginBottom: Facebook.Yoga.YogaValue;
247
+ MarginStart: Facebook.Yoga.YogaValue;
248
+ MarginEnd: Facebook.Yoga.YogaValue;
249
+ MarginHorizontal: Facebook.Yoga.YogaValue;
250
+ MarginVertical: Facebook.Yoga.YogaValue;
251
+ Margin: Facebook.Yoga.YogaValue;
252
+ PaddingLeft: Facebook.Yoga.YogaValue;
253
+ PaddingTop: Facebook.Yoga.YogaValue;
254
+ PaddingRight: Facebook.Yoga.YogaValue;
255
+ PaddingBottom: Facebook.Yoga.YogaValue;
256
+ PaddingStart: Facebook.Yoga.YogaValue;
257
+ PaddingEnd: Facebook.Yoga.YogaValue;
258
+ PaddingHorizontal: Facebook.Yoga.YogaValue;
259
+ PaddingVertical: Facebook.Yoga.YogaValue;
260
+ Padding: Facebook.Yoga.YogaValue;
261
+ BorderLeftWidth: number;
262
+ BorderTopWidth: number;
263
+ BorderRightWidth: number;
264
+ BorderBottomWidth: number;
265
+ BorderStartWidth: number;
266
+ BorderEndWidth: number;
267
+ BorderWidth: number;
268
+ Gap: number;
269
+ RowGap: number;
270
+ ColumnGap: number;
271
+ LayoutMarginLeft: number;
272
+ LayoutMarginTop: number;
273
+ LayoutMarginRight: number;
274
+ LayoutMarginBottom: number;
275
+ LayoutMarginStart: number;
276
+ LayoutMarginEnd: number;
277
+ LayoutPaddingLeft: number;
278
+ LayoutPaddingTop: number;
279
+ LayoutPaddingRight: number;
280
+ LayoutPaddingBottom: number;
281
+ LayoutPaddingStart: number;
282
+ LayoutPaddingEnd: number;
283
+ Reset(): void;
284
+ MarkDirty(): void;
285
+ MarkHasNewLayout(): void;
286
+ CopyStyle(srcNode: Facebook.Yoga.YogaNode): void;
287
+ MarkLayoutSeen(): void;
288
+ ValuesEqual(f1: number, f2: number): boolean;
289
+ Insert(index: number, node: Facebook.Yoga.YogaNode): void;
290
+ RemoveAt(index: number): void;
291
+ AddChild(child: Facebook.Yoga.YogaNode): void;
292
+ RemoveChild(child: Facebook.Yoga.YogaNode): void;
293
+ Clear(): void;
294
+ IndexOf(node: Facebook.Yoga.YogaNode): number;
295
+ SetMeasureFunction(measureFunction: ((node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode) => Facebook.Yoga.YogaSize)): void;
296
+ SetBaselineFunction(baselineFunction: ((node: Facebook.Yoga.YogaNode, width: number, height: number) => number)): void;
297
+ CalculateLayout(width?: number, height?: number): void;
298
+ Print(options?: Facebook.Yoga.YogaPrintOptions): string;
299
+ GetEnumerator(): System.Collections.Generic.IEnumerator<Facebook.Yoga.YogaNode>;
300
+ Equals(obj: any): boolean;
301
+ GetHashCode(): number;
302
+ GetType(): System.Type;
303
+ ToString(): string;
304
+ }
305
+ enum YogaNodeType {
306
+ Default = 0,
307
+ Text = 1
308
+ }
309
+ enum YogaOverflow {
310
+ Visible = 0,
311
+ Hidden = 1,
312
+ Scroll = 2
313
+ }
314
+ enum YogaPositionType {
315
+ Default = 1,
316
+ Static = 0,
317
+ Relative = 1,
318
+ Absolute = 2
319
+ }
320
+ enum YogaPrintOptions {
321
+ Layout = 1,
322
+ Style = 2,
323
+ Children = 4
324
+ }
325
+ class YogaSize {
326
+ width: number;
327
+ height: number;
328
+ Equals(obj: any): boolean;
329
+ GetHashCode(): number;
330
+ ToString(): string;
331
+ GetType(): System.Type;
332
+ }
333
+ enum YogaUnit {
334
+ Undefined = 0,
335
+ Point = 1,
336
+ Percent = 2,
337
+ Auto = 3
338
+ }
339
+ class YogaValue {
340
+ Unit: Facebook.Yoga.YogaUnit;
341
+ Value: number;
342
+ static Point(value: number): Facebook.Yoga.YogaValue;
343
+ Equals(other: Facebook.Yoga.YogaValue): boolean;
344
+ Equals(obj: any): boolean;
345
+ GetHashCode(): number;
346
+ static Undefined(): Facebook.Yoga.YogaValue;
347
+ static Auto(): Facebook.Yoga.YogaValue;
348
+ static Percent(value: number): Facebook.Yoga.YogaValue;
349
+ ToString(): string;
350
+ GetType(): System.Type;
351
+ }
352
+ class YogaValueExtensions {
353
+ static Percent(value: number): Facebook.Yoga.YogaValue;
354
+ static Pt(value: number): Facebook.Yoga.YogaValue;
355
+ static Percent(value: number): Facebook.Yoga.YogaValue;
356
+ static Pt(value: number): Facebook.Yoga.YogaValue;
357
+ Equals(obj: any): boolean;
358
+ GetHashCode(): number;
359
+ GetType(): System.Type;
360
+ ToString(): string;
361
+ }
362
+ enum YogaWrap {
363
+ NoWrap = 0,
364
+ Wrap = 1,
365
+ WrapReverse = 2
366
+ }
367
+ }
368
+ }