@reactunity/renderer 0.5.2 → 0.8.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.
- package/dist/editor.d.ts +1 -1
- package/dist/editor.js +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.js +4 -5
- package/dist/src/helpers/dictionary-watcher.d.ts +1 -1
- package/dist/src/helpers/dictionary-watcher.js +2 -2
- package/dist/{models → src/models}/base.d.ts +24 -5
- package/dist/{models/ugui/events.js → src/models/base.js} +0 -0
- package/dist/{models → src/models}/editor/components.d.ts +0 -0
- package/dist/{models → src/models}/editor/components.js +0 -0
- package/dist/{models → src/models}/editor/environment.d.ts +0 -0
- package/dist/{models → src/models}/editor/environment.js +0 -0
- package/dist/{models → src/models}/editor/events.d.ts +0 -0
- package/dist/{models → src/models}/editor/events.js +0 -0
- package/dist/{models → src/models}/editor/index.d.ts +0 -0
- package/dist/{models → src/models}/editor/index.js +0 -0
- package/dist/{models → src/models}/editor/jsx.d.ts +2 -4
- package/dist/{models → src/models}/editor/jsx.js +0 -0
- package/dist/src/models/environment/index.d.ts +41 -0
- package/dist/src/models/environment/index.js +1 -0
- package/dist/{models → src/models/environment}/interop.d.ts +2 -2
- package/dist/{models → src/models/environment}/interop.js +0 -0
- package/dist/{models → src/models}/generated/editor.d.ts +0 -0
- package/dist/src/models/generated/editor.js +6 -0
- package/dist/{models → src/models}/generated/index.d.ts +1 -0
- package/dist/{models → src/models}/generated/index.js +1 -0
- package/dist/{models → src/models}/generated/react.d.ts +3474 -2904
- package/dist/src/models/generated/react.js +6 -0
- package/dist/{models → src/models}/generated/system.d.ts +0 -0
- package/dist/{models → src/models}/generated/system.js +1 -0
- package/dist/{models → src/models}/generated/tests.d.ts +0 -0
- package/dist/src/models/generated/tests.js +6 -0
- package/dist/{models → src/models}/generated/unity.d.ts +0 -0
- package/dist/src/models/generated/unity.js +6 -0
- package/dist/src/models/generated/yoga.d.ts +358 -0
- package/dist/src/models/generated/yoga.js +6 -0
- package/dist/{models → src/models}/properties/colors.d.ts +0 -0
- package/dist/{models → src/models}/properties/colors.js +0 -0
- package/dist/{models → src/models}/properties/index.d.ts +0 -0
- package/dist/{models → src/models}/properties/index.js +0 -0
- package/dist/{models → src/models}/properties/style.d.ts +0 -0
- package/dist/{models → src/models}/properties/style.js +0 -0
- package/dist/{models → src/models}/properties/styles-enums.d.ts +5 -0
- package/dist/{models → src/models}/properties/styles-enums.js +0 -0
- package/dist/src/models/properties/styles.d.ts +104 -0
- package/dist/{models → src/models}/properties/styles.js +0 -0
- package/dist/{models → src/models}/properties/values.d.ts +1 -1
- package/dist/{models → src/models}/properties/values.js +0 -0
- package/dist/{models → src/models}/properties/yoga-enums.d.ts +0 -0
- package/dist/{models → src/models}/properties/yoga-enums.js +0 -0
- package/dist/{models → src/models}/properties/yoga.d.ts +0 -0
- package/dist/{models → src/models}/properties/yoga.js +0 -0
- package/dist/{models → src/models}/renderer.d.ts +0 -0
- package/dist/{models → src/models}/renderer.js +0 -0
- package/dist/src/models/tests/index.d.ts +12 -0
- package/dist/{models → src/models}/tests/index.js +0 -0
- package/dist/{models → src/models}/ugui/components.d.ts +3 -5
- package/dist/{models → src/models}/ugui/components.js +0 -0
- package/dist/{models → src/models}/ugui/events.d.ts +0 -0
- package/dist/src/models/ugui/events.js +2 -0
- package/dist/{models → src/models}/ugui/index.d.ts +0 -0
- package/dist/{models → src/models}/ugui/index.js +0 -0
- package/dist/{models → src/models}/ugui/input.d.ts +0 -0
- package/dist/{models → src/models}/ugui/input.js +0 -0
- package/dist/{models → src/models}/ugui/jsx.d.ts +2 -4
- package/dist/{models → src/models}/ugui/jsx.js +0 -0
- package/dist/{models → src/models}/uitoolkit/components.d.ts +3 -5
- package/dist/{models → src/models}/uitoolkit/components.js +0 -0
- package/dist/{models → src/models}/uitoolkit/events.d.ts +0 -0
- package/dist/{models → src/models}/uitoolkit/events.js +0 -0
- package/dist/{models → src/models}/uitoolkit/index.d.ts +0 -0
- package/dist/{models → src/models}/uitoolkit/index.js +0 -0
- package/dist/{models → src/models}/uitoolkit/jsx.d.ts +2 -4
- package/dist/{models → src/models}/uitoolkit/jsx.js +0 -0
- package/dist/src/renderer/diffing.d.ts +3 -2
- package/dist/src/renderer/diffing.js +11 -6
- package/dist/src/renderer/renderer.d.ts +1 -1
- package/dist/src/renderer/renderer.js +42 -102
- package/dist/tests.d.ts +1 -1
- package/dist/tests.js +1 -1
- package/dist/ugui.d.ts +1 -1
- package/dist/ugui.js +1 -1
- package/dist/uitoolkit.d.ts +1 -1
- package/dist/uitoolkit.js +1 -1
- package/editor.ts +1 -1
- package/package.json +5 -8
- package/tests.ts +1 -1
- package/ugui.ts +1 -1
- package/uitoolkit.ts +1 -1
- package/dist/models/base.js +0 -1
- package/dist/models/environment.d.ts +0 -30
- package/dist/models/environment.js +0 -1
- package/dist/models/generated/editor.js +0 -1
- package/dist/models/generated/react.js +0 -1
- package/dist/models/generated/tests.js +0 -1
- package/dist/models/generated/unity.js +0 -1
- package/dist/models/properties/styles.d.ts +0 -67
- package/dist/models/tests/index.d.ts +0 -12
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Types in assemblies: UnityEngine.CoreModule, UnityEngine.VideoModule, UnityEngine.AudioModule, UnityEngine.UIModule, UnityEngine.UI, UnityEngine.TextRenderingModule, UnityEngine.AnimationModule, UnityEngine.IMGUIModule, UnityEngine.AssetBundleModule, UnityEngine.UnityAnalyticsModule, UnityEngine.UIElementsModule, UnityEngine.AIModule, UnityEngine.TestRunner, UnityEngine.TextCoreFontEngineModule, UnityEngine.TextCoreTextEngineModule, UnityEngine.XRModule, UnityEngine.PhysicsModule, UnityEngine.InputLegacyModule, UnityEngine.UI, Unity.InputSystem, Unity.InputSystem
|
|
3
|
+
// Generated 11/07/2021 17:46:37
|
|
4
|
+
//
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,358 @@
|
|
|
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: System.AsyncCallback, 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: System.AsyncCallback, 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: System.AsyncCallback, 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: System.AsyncCallback, 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: Facebook.Yoga.Logger;
|
|
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: Facebook.Yoga.Logger): 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 YogaJustify {
|
|
143
|
+
FlexStart = 0,
|
|
144
|
+
Center = 1,
|
|
145
|
+
FlexEnd = 2,
|
|
146
|
+
SpaceBetween = 3,
|
|
147
|
+
SpaceAround = 4,
|
|
148
|
+
SpaceEvenly = 5
|
|
149
|
+
}
|
|
150
|
+
class YogaLogger {
|
|
151
|
+
constructor(object: any, method: System.IntPtr);
|
|
152
|
+
Method: System.Reflection.MethodInfo;
|
|
153
|
+
Target: any;
|
|
154
|
+
Invoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string): void;
|
|
155
|
+
BeginInvoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string, callback: System.AsyncCallback, object: any): System.IAsyncResult;
|
|
156
|
+
EndInvoke(result: System.IAsyncResult): void;
|
|
157
|
+
GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
|
|
158
|
+
Equals(obj: any): boolean;
|
|
159
|
+
GetHashCode(): number;
|
|
160
|
+
GetInvocationList(): System.Delegate[];
|
|
161
|
+
DynamicInvoke(...args: any[]): any;
|
|
162
|
+
Clone(): any;
|
|
163
|
+
GetType(): System.Type;
|
|
164
|
+
ToString(): string;
|
|
165
|
+
}
|
|
166
|
+
enum YogaLogLevel {
|
|
167
|
+
Error = 0,
|
|
168
|
+
Warn = 1,
|
|
169
|
+
Info = 2,
|
|
170
|
+
Debug = 3,
|
|
171
|
+
Verbose = 4,
|
|
172
|
+
Fatal = 5
|
|
173
|
+
}
|
|
174
|
+
class YogaMeasureFunc {
|
|
175
|
+
constructor(object: any, method: System.IntPtr);
|
|
176
|
+
Method: System.Reflection.MethodInfo;
|
|
177
|
+
Target: any;
|
|
178
|
+
Invoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
|
|
179
|
+
BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: System.AsyncCallback, object: any): System.IAsyncResult;
|
|
180
|
+
EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
|
|
181
|
+
GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
|
|
182
|
+
Equals(obj: any): boolean;
|
|
183
|
+
GetHashCode(): number;
|
|
184
|
+
GetInvocationList(): System.Delegate[];
|
|
185
|
+
DynamicInvoke(...args: any[]): any;
|
|
186
|
+
Clone(): any;
|
|
187
|
+
GetType(): System.Type;
|
|
188
|
+
ToString(): string;
|
|
189
|
+
}
|
|
190
|
+
enum YogaMeasureMode {
|
|
191
|
+
Undefined = 0,
|
|
192
|
+
Exactly = 1,
|
|
193
|
+
AtMost = 2
|
|
194
|
+
}
|
|
195
|
+
class YogaNode {
|
|
196
|
+
constructor(config?: Facebook.Yoga.YogaConfig);
|
|
197
|
+
constructor(srcNode: Facebook.Yoga.YogaNode);
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
IsDirty: boolean;
|
|
200
|
+
HasNewLayout: boolean;
|
|
201
|
+
Parent: Facebook.Yoga.YogaNode;
|
|
202
|
+
IsMeasureDefined: boolean;
|
|
203
|
+
IsBaselineDefined: boolean;
|
|
204
|
+
StyleDirection: Facebook.Yoga.YogaDirection;
|
|
205
|
+
FlexDirection: Facebook.Yoga.YogaFlexDirection;
|
|
206
|
+
JustifyContent: Facebook.Yoga.YogaJustify;
|
|
207
|
+
Display: Facebook.Yoga.YogaDisplay;
|
|
208
|
+
AlignItems: Facebook.Yoga.YogaAlign;
|
|
209
|
+
AlignSelf: Facebook.Yoga.YogaAlign;
|
|
210
|
+
AlignContent: Facebook.Yoga.YogaAlign;
|
|
211
|
+
PositionType: Facebook.Yoga.YogaPositionType;
|
|
212
|
+
Wrap: Facebook.Yoga.YogaWrap;
|
|
213
|
+
Flex: number;
|
|
214
|
+
FlexGrow: number;
|
|
215
|
+
FlexShrink: number;
|
|
216
|
+
FlexBasis: Facebook.Yoga.YogaValue;
|
|
217
|
+
Width: Facebook.Yoga.YogaValue;
|
|
218
|
+
Height: Facebook.Yoga.YogaValue;
|
|
219
|
+
MaxWidth: Facebook.Yoga.YogaValue;
|
|
220
|
+
MaxHeight: Facebook.Yoga.YogaValue;
|
|
221
|
+
MinWidth: Facebook.Yoga.YogaValue;
|
|
222
|
+
MinHeight: Facebook.Yoga.YogaValue;
|
|
223
|
+
AspectRatio: number;
|
|
224
|
+
LayoutX: number;
|
|
225
|
+
LayoutY: number;
|
|
226
|
+
LayoutWidth: number;
|
|
227
|
+
LayoutHeight: number;
|
|
228
|
+
LayoutDirection: Facebook.Yoga.YogaDirection;
|
|
229
|
+
Overflow: Facebook.Yoga.YogaOverflow;
|
|
230
|
+
Data: any;
|
|
231
|
+
Count: number;
|
|
232
|
+
Left: Facebook.Yoga.YogaValue;
|
|
233
|
+
Top: Facebook.Yoga.YogaValue;
|
|
234
|
+
Right: Facebook.Yoga.YogaValue;
|
|
235
|
+
Bottom: Facebook.Yoga.YogaValue;
|
|
236
|
+
Start: Facebook.Yoga.YogaValue;
|
|
237
|
+
End: Facebook.Yoga.YogaValue;
|
|
238
|
+
MarginLeft: Facebook.Yoga.YogaValue;
|
|
239
|
+
MarginTop: Facebook.Yoga.YogaValue;
|
|
240
|
+
MarginRight: Facebook.Yoga.YogaValue;
|
|
241
|
+
MarginBottom: Facebook.Yoga.YogaValue;
|
|
242
|
+
MarginStart: Facebook.Yoga.YogaValue;
|
|
243
|
+
MarginEnd: Facebook.Yoga.YogaValue;
|
|
244
|
+
MarginHorizontal: Facebook.Yoga.YogaValue;
|
|
245
|
+
MarginVertical: Facebook.Yoga.YogaValue;
|
|
246
|
+
Margin: Facebook.Yoga.YogaValue;
|
|
247
|
+
PaddingLeft: Facebook.Yoga.YogaValue;
|
|
248
|
+
PaddingTop: Facebook.Yoga.YogaValue;
|
|
249
|
+
PaddingRight: Facebook.Yoga.YogaValue;
|
|
250
|
+
PaddingBottom: Facebook.Yoga.YogaValue;
|
|
251
|
+
PaddingStart: Facebook.Yoga.YogaValue;
|
|
252
|
+
PaddingEnd: Facebook.Yoga.YogaValue;
|
|
253
|
+
PaddingHorizontal: Facebook.Yoga.YogaValue;
|
|
254
|
+
PaddingVertical: Facebook.Yoga.YogaValue;
|
|
255
|
+
Padding: Facebook.Yoga.YogaValue;
|
|
256
|
+
BorderLeftWidth: number;
|
|
257
|
+
BorderTopWidth: number;
|
|
258
|
+
BorderRightWidth: number;
|
|
259
|
+
BorderBottomWidth: number;
|
|
260
|
+
BorderStartWidth: number;
|
|
261
|
+
BorderEndWidth: number;
|
|
262
|
+
BorderWidth: number;
|
|
263
|
+
LayoutMarginLeft: number;
|
|
264
|
+
LayoutMarginTop: number;
|
|
265
|
+
LayoutMarginRight: number;
|
|
266
|
+
LayoutMarginBottom: number;
|
|
267
|
+
LayoutMarginStart: number;
|
|
268
|
+
LayoutMarginEnd: number;
|
|
269
|
+
LayoutPaddingLeft: number;
|
|
270
|
+
LayoutPaddingTop: number;
|
|
271
|
+
LayoutPaddingRight: number;
|
|
272
|
+
LayoutPaddingBottom: number;
|
|
273
|
+
LayoutPaddingStart: number;
|
|
274
|
+
LayoutPaddingEnd: number;
|
|
275
|
+
Reset(): void;
|
|
276
|
+
MarkDirty(): void;
|
|
277
|
+
MarkHasNewLayout(): void;
|
|
278
|
+
CopyStyle(srcNode: Facebook.Yoga.YogaNode): void;
|
|
279
|
+
MarkLayoutSeen(): void;
|
|
280
|
+
ValuesEqual(f1: number, f2: number): boolean;
|
|
281
|
+
Insert(index: number, node: Facebook.Yoga.YogaNode): void;
|
|
282
|
+
RemoveAt(index: number): void;
|
|
283
|
+
AddChild(child: Facebook.Yoga.YogaNode): void;
|
|
284
|
+
RemoveChild(child: Facebook.Yoga.YogaNode): void;
|
|
285
|
+
Clear(): void;
|
|
286
|
+
IndexOf(node: Facebook.Yoga.YogaNode): number;
|
|
287
|
+
SetMeasureFunction(measureFunction: Facebook.Yoga.MeasureFunction): void;
|
|
288
|
+
SetBaselineFunction(baselineFunction: Facebook.Yoga.BaselineFunction): void;
|
|
289
|
+
CalculateLayout(width?: number, height?: number): void;
|
|
290
|
+
Print(options?: Facebook.Yoga.YogaPrintOptions): string;
|
|
291
|
+
GetEnumerator(): System.Collections.Generic.IEnumerator<Facebook.Yoga.YogaNode>;
|
|
292
|
+
Equals(obj: any): boolean;
|
|
293
|
+
GetHashCode(): number;
|
|
294
|
+
GetType(): System.Type;
|
|
295
|
+
ToString(): string;
|
|
296
|
+
}
|
|
297
|
+
enum YogaNodeType {
|
|
298
|
+
Default = 0,
|
|
299
|
+
Text = 1
|
|
300
|
+
}
|
|
301
|
+
enum YogaOverflow {
|
|
302
|
+
Visible = 0,
|
|
303
|
+
Hidden = 1,
|
|
304
|
+
Scroll = 2
|
|
305
|
+
}
|
|
306
|
+
enum YogaPositionType {
|
|
307
|
+
Relative = 0,
|
|
308
|
+
Absolute = 1
|
|
309
|
+
}
|
|
310
|
+
enum YogaPrintOptions {
|
|
311
|
+
Layout = 1,
|
|
312
|
+
Style = 2,
|
|
313
|
+
Children = 4
|
|
314
|
+
}
|
|
315
|
+
class YogaSize {
|
|
316
|
+
width: number;
|
|
317
|
+
height: number;
|
|
318
|
+
Equals(obj: any): boolean;
|
|
319
|
+
GetHashCode(): number;
|
|
320
|
+
ToString(): string;
|
|
321
|
+
GetType(): System.Type;
|
|
322
|
+
}
|
|
323
|
+
enum YogaUnit {
|
|
324
|
+
Undefined = 0,
|
|
325
|
+
Point = 1,
|
|
326
|
+
Percent = 2,
|
|
327
|
+
Auto = 3
|
|
328
|
+
}
|
|
329
|
+
class YogaValue {
|
|
330
|
+
Unit: Facebook.Yoga.YogaUnit;
|
|
331
|
+
Value: number;
|
|
332
|
+
static Point(value: number): Facebook.Yoga.YogaValue;
|
|
333
|
+
Equals(other: Facebook.Yoga.YogaValue): boolean;
|
|
334
|
+
Equals(obj: any): boolean;
|
|
335
|
+
GetHashCode(): number;
|
|
336
|
+
static Undefined(): Facebook.Yoga.YogaValue;
|
|
337
|
+
static Auto(): Facebook.Yoga.YogaValue;
|
|
338
|
+
static Percent(value: number): Facebook.Yoga.YogaValue;
|
|
339
|
+
ToString(): string;
|
|
340
|
+
GetType(): System.Type;
|
|
341
|
+
}
|
|
342
|
+
class YogaValueExtensions {
|
|
343
|
+
static Percent(value: number): Facebook.Yoga.YogaValue;
|
|
344
|
+
static Pt(value: number): Facebook.Yoga.YogaValue;
|
|
345
|
+
static Percent(value: number): Facebook.Yoga.YogaValue;
|
|
346
|
+
static Pt(value: number): Facebook.Yoga.YogaValue;
|
|
347
|
+
Equals(obj: any): boolean;
|
|
348
|
+
GetHashCode(): number;
|
|
349
|
+
GetType(): System.Type;
|
|
350
|
+
ToString(): string;
|
|
351
|
+
}
|
|
352
|
+
enum YogaWrap {
|
|
353
|
+
NoWrap = 0,
|
|
354
|
+
Wrap = 1,
|
|
355
|
+
WrapReverse = 2
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,3 +10,8 @@ export declare type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-d
|
|
|
10
10
|
export declare type BackgroundBlendMode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
|
|
11
11
|
export declare type CursorType = 'auto' | 'default' | 'none' | 'context-menu' | 'help' | 'pointer' | 'progress' | 'wait' | 'cell' | 'crosshair' | 'text' | 'vertical-text' | 'alias' | 'copy' | 'move' | 'no-drop' | 'not-allowed' | 'e-resize' | 'n-resize' | 'ne-resize' | 'nw-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'w-resize' | 'ew-resize' | 'ns-resize' | 'nesw-resize' | 'nwse-resize' | 'col-resize' | 'row-resize' | 'all-scroll' | 'zoom-in' | 'zoom-out' | 'grab' | 'grabbing';
|
|
12
12
|
export declare type TextAlign = 'top-left' | 'top' | 'top-right' | 'top-justified' | 'top-flush' | 'top-geo-aligned' | 'left' | 'center' | 'right' | 'justified' | 'flush' | 'center-geo-aligned' | 'bottom-left' | 'bottom' | 'bottom-right' | 'bottom-justified' | 'bottom-flush' | 'bottom-geo-aligned' | 'baseline-left' | 'baseline' | 'baseline-right' | 'baseline-justified' | 'baseline-flush' | 'baseline-geo-aligned' | 'midline-left' | 'midline' | 'midline-right' | 'midline-justified' | 'midline-flush' | 'midline-geo-aligned' | 'capline-left' | 'capline' | 'capline-right' | 'capline-justified' | 'capline-flush' | 'capline-geo-aligned' | 'converted';
|
|
13
|
+
export declare type TimingFunctionType = 'ease' | 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'step-start' | 'step-end';
|
|
14
|
+
export declare type AnimationFillMode = 'none' | 'both' | 'forwards' | 'backwards';
|
|
15
|
+
export declare type AnimationDirection = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
|
|
16
|
+
export declare type AnimationPlayState = 'running' | 'paused';
|
|
17
|
+
export declare type BackgroundSize = 'cover' | 'contain';
|
|
File without changes
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { AnimationDirection, AnimationFillMode, AnimationPlayState, Appearance, BackgroundBlendMode, BackgroundSize, CursorType, FontStyles, FontWeight, NavigationMode, ObjectFit, PointerEvents, TextAlign, TextOverflowModes, TimingFunctionType, Visibility, WhiteSpace } from './styles-enums';
|
|
2
|
+
import { AssetReference, ColorAux, NumberAux, Vector2Aux, Vector3Aux } from './values';
|
|
3
|
+
import { YogaValue2Aux, YogaValueAux } from './yoga';
|
|
4
|
+
export interface RenderStyle {
|
|
5
|
+
opacity?: NumberAux;
|
|
6
|
+
zIndex?: number | string;
|
|
7
|
+
order?: number | string;
|
|
8
|
+
visibility?: Visibility | boolean;
|
|
9
|
+
cursor?: CursorType | string;
|
|
10
|
+
pointerEvents?: PointerEvents;
|
|
11
|
+
content?: string;
|
|
12
|
+
appearance?: Appearance;
|
|
13
|
+
navigation?: NavigationMode;
|
|
14
|
+
backgroundBlendMode?: BackgroundBlendMode;
|
|
15
|
+
backgroundColor?: ColorAux;
|
|
16
|
+
backgroundImage?: AssetReference;
|
|
17
|
+
backgroundPositionX?: YogaValueAux;
|
|
18
|
+
backgroundPositionY?: YogaValueAux;
|
|
19
|
+
backgroundSize?: BackgroundSize | YogaValue2Aux;
|
|
20
|
+
backgroundRepeatX?: YogaValueAux;
|
|
21
|
+
backgroundRepeatY?: YogaValueAux;
|
|
22
|
+
maskImage?: AssetReference;
|
|
23
|
+
maskPositionX?: YogaValueAux;
|
|
24
|
+
maskPositionY?: YogaValueAux;
|
|
25
|
+
maskSize?: BackgroundSize | YogaValue2Aux;
|
|
26
|
+
maskRepeatX?: YogaValueAux;
|
|
27
|
+
maskRepeatY?: YogaValueAux;
|
|
28
|
+
borderRadius?: NumberAux;
|
|
29
|
+
borderTopLeftRadius?: NumberAux;
|
|
30
|
+
borderTopRightRadius?: NumberAux;
|
|
31
|
+
borderBottomRightRadius?: NumberAux;
|
|
32
|
+
borderBottomLeftRadius?: NumberAux;
|
|
33
|
+
borderColor?: ColorAux;
|
|
34
|
+
borderTopColor?: ColorAux;
|
|
35
|
+
borderRightColor?: ColorAux;
|
|
36
|
+
borderBottomColor?: ColorAux;
|
|
37
|
+
borderLeftColor?: ColorAux;
|
|
38
|
+
boxShadow?: string;
|
|
39
|
+
objectFit?: ObjectFit;
|
|
40
|
+
objectPosition?: YogaValue2Aux;
|
|
41
|
+
transformOrigin?: Vector2Aux;
|
|
42
|
+
translate?: YogaValue2Aux;
|
|
43
|
+
scale?: Vector2Aux;
|
|
44
|
+
rotate?: Vector3Aux;
|
|
45
|
+
stateDuration?: number | string;
|
|
46
|
+
color?: ColorAux;
|
|
47
|
+
fontFamily?: AssetReference;
|
|
48
|
+
fontWeight?: FontWeight;
|
|
49
|
+
fontStyle?: FontStyles;
|
|
50
|
+
fontSize?: YogaValueAux;
|
|
51
|
+
textOverflow?: TextOverflowModes;
|
|
52
|
+
textAlign?: TextAlign;
|
|
53
|
+
whiteSpace?: WhiteSpace;
|
|
54
|
+
textStrokeWidth?: NumberAux;
|
|
55
|
+
textStrokeColor?: ColorAux;
|
|
56
|
+
lineHeight?: number | string;
|
|
57
|
+
letterSpacing?: number | string;
|
|
58
|
+
wordSpacing?: number | string;
|
|
59
|
+
maxLines?: number | string;
|
|
60
|
+
transitionProperty?: keyof RenderStyle | string;
|
|
61
|
+
transitionDuration?: number | string;
|
|
62
|
+
transitionTimingFunction?: TimingFunctionType | string;
|
|
63
|
+
transitionDelay?: number | string;
|
|
64
|
+
transitionPlayState?: AnimationPlayState | string;
|
|
65
|
+
motionDuration?: number | string;
|
|
66
|
+
motionTimingFunction?: TimingFunctionType | string;
|
|
67
|
+
motionDelay?: number | string;
|
|
68
|
+
animationDelay?: number | string;
|
|
69
|
+
animationDirection?: AnimationDirection | string;
|
|
70
|
+
animationDuration?: number | string;
|
|
71
|
+
animationFillMode?: AnimationFillMode | string;
|
|
72
|
+
animationIterationCount?: number | string;
|
|
73
|
+
animationName?: string | string;
|
|
74
|
+
animationPlayState?: AnimationPlayState | string;
|
|
75
|
+
animationTimingFunction?: TimingFunctionType | string;
|
|
76
|
+
audioClip?: AssetReference;
|
|
77
|
+
audioIterationCount?: number | string;
|
|
78
|
+
audioDelay?: number | string;
|
|
79
|
+
all?: string;
|
|
80
|
+
background?: string;
|
|
81
|
+
backgroundPosition?: string;
|
|
82
|
+
backgroundRepeat?: string;
|
|
83
|
+
border?: string;
|
|
84
|
+
borderTop?: string;
|
|
85
|
+
borderRight?: string;
|
|
86
|
+
borderBottom?: string;
|
|
87
|
+
borderLeft?: string;
|
|
88
|
+
borderWidth?: string;
|
|
89
|
+
margin?: string;
|
|
90
|
+
mask?: string;
|
|
91
|
+
maskPosition?: string;
|
|
92
|
+
maskRepeat?: string;
|
|
93
|
+
padding?: string;
|
|
94
|
+
inset?: string;
|
|
95
|
+
flex?: string;
|
|
96
|
+
flexFlow?: string;
|
|
97
|
+
font?: string;
|
|
98
|
+
textStroke?: string;
|
|
99
|
+
animation?: string;
|
|
100
|
+
transition?: string;
|
|
101
|
+
motion?: string;
|
|
102
|
+
audio?: string;
|
|
103
|
+
[variable: `--${string}`]: any;
|
|
104
|
+
}
|
|
File without changes
|
|
@@ -11,7 +11,7 @@ export declare type Vector3Aux = string | Array3Aux<number>;
|
|
|
11
11
|
export declare type RectOffsetAux = Array4Aux<number>;
|
|
12
12
|
export declare type KnownColor = keyof KnownColors;
|
|
13
13
|
export declare type HexColor = string;
|
|
14
|
-
export declare type ColorAux = KnownColor | HexColor | number | Array4Aux<number> |
|
|
14
|
+
export declare type ColorAux = KnownColor | HexColor | number | Array4Aux<number> | UnityEngine.Color;
|
|
15
15
|
export declare type NumberAux = string | number;
|
|
16
16
|
export declare type AssetReference = string | UnityEngine.Object;
|
|
17
17
|
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NUnit, UnityEngine } from '../generated';
|
|
2
|
+
declare global {
|
|
3
|
+
var Assert: NUnit.Framework.Assert;
|
|
4
|
+
var Has: NUnit.Framework.Has;
|
|
5
|
+
var Is: NUnit.Framework.Is;
|
|
6
|
+
var Iz: NUnit.Framework.Iz;
|
|
7
|
+
var Contains: NUnit.Framework.Contains;
|
|
8
|
+
var Does: NUnit.Framework.Does;
|
|
9
|
+
var Assume: NUnit.Framework.Assume;
|
|
10
|
+
var Throws: NUnit.Framework.Throws;
|
|
11
|
+
var LogAssert: UnityEngine.TestTools.LogAssert;
|
|
12
|
+
}
|
|
File without changes
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { BaseCmpProps } from '../base';
|
|
1
2
|
import { ReactUnity, UnityEngine } from '../generated';
|
|
2
3
|
import { Style } from '../properties';
|
|
3
4
|
import { AssetReference } from '../properties/values';
|
|
4
5
|
import { ActionCallback, Events } from './events';
|
|
5
|
-
export interface View<T = ReactUnity.UGUI.UGUIComponent> extends Events<T
|
|
6
|
+
export interface View<T = ReactUnity.UGUI.UGUIComponent> extends Events<T>, BaseCmpProps {
|
|
6
7
|
active?: boolean;
|
|
7
|
-
|
|
8
|
-
className?: string;
|
|
9
|
-
id?: string;
|
|
10
|
-
style?: Style;
|
|
8
|
+
style?: Style | string;
|
|
11
9
|
}
|
|
12
10
|
export interface Text extends View<ReactUnity.UGUI.TextComponent> {
|
|
13
11
|
richText?: boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Attributes, ClassAttributes, RefAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseElements, Textable } from '../base';
|
|
3
3
|
import { ReactUnity } from '../generated';
|
|
4
4
|
import * as Components from './components';
|
|
5
5
|
import { Input } from './input';
|
|
@@ -8,9 +8,7 @@ declare type Children<T = any> = {
|
|
|
8
8
|
children?: T;
|
|
9
9
|
};
|
|
10
10
|
declare type BaseCmp = Components.View<any> & RefAttributes<NS.UGUIComponent> & Children;
|
|
11
|
-
export interface UGUIElements {
|
|
12
|
-
[key: string]: BaseCmp | StyleCmpDef;
|
|
13
|
-
style: StyleCmpDef;
|
|
11
|
+
export interface UGUIElements extends BaseElements<BaseCmp> {
|
|
14
12
|
view: Components.View & RefAttributes<NS.ContainerComponent> & {
|
|
15
13
|
tag?: string;
|
|
16
14
|
} & Children;
|
|
File without changes
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
import { BaseCmpProps } from '../base';
|
|
1
2
|
import { ReactUnity, UnityEditor, UnityEngine } from '../generated';
|
|
2
3
|
import { Style } from '../properties';
|
|
3
4
|
import { AssetReference } from '../properties/values';
|
|
4
5
|
import { ActionCallback, Events } from './events';
|
|
5
6
|
import Cmp = ReactUnity.UIToolkit;
|
|
6
7
|
declare type BaseCmp = Cmp.UIToolkitComponent;
|
|
7
|
-
export interface View<TSender = BaseCmp> extends Events<TSender
|
|
8
|
-
name?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
id?: string;
|
|
8
|
+
export interface View<TSender = BaseCmp> extends Events<TSender>, BaseCmpProps {
|
|
11
9
|
tooltip?: string;
|
|
12
10
|
viewDataKey?: string;
|
|
13
11
|
tabIndex?: number;
|
|
14
|
-
style?: Style;
|
|
12
|
+
style?: Style | string;
|
|
15
13
|
focusable?: boolean;
|
|
16
14
|
bind?: UnityEditor.SerializedObject | UnityEditor.SerializedProperty;
|
|
17
15
|
}
|