onejs-core 3.0.3 → 3.0.4
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/.gitattributes +2 -2
- package/.prettierrc +5 -5
- package/.vscode/settings.json +5 -5
- package/LICENSE +20 -20
- package/README.md +102 -102
- package/definitions/Assemblies/OneJS.Runtime.Ext.d.ts +6 -6
- package/definitions/Assemblies/OneJS.Runtime.d.ts +826 -826
- package/definitions/Assemblies/OneJS.Samples.d.ts +20 -20
- package/definitions/Assemblies/Unity.Mathematics.d.ts +9221 -9221
- package/definitions/Assemblies/UnityEditor.CoreModule.d.ts +32614 -32614
- package/definitions/Assemblies/UnityEngine.AIModule.d.ts +998 -998
- package/definitions/Assemblies/UnityEngine.AnimationModule.d.ts +3308 -3308
- package/definitions/Assemblies/UnityEngine.AssetBundleModule.d.ts +337 -337
- package/definitions/Assemblies/UnityEngine.AudioModule.d.ts +1154 -1154
- package/definitions/Assemblies/UnityEngine.CoreModule.d.ts +29587 -29587
- package/definitions/Assemblies/UnityEngine.PhysicsModule.d.ts +3137 -3137
- package/definitions/Assemblies/UnityEngine.TerrainModule.d.ts +1270 -1270
- package/definitions/Assemblies/UnityEngine.UIElementsModule.d.ts +32718 -32718
- package/definitions/Assemblies/UnityEngine.UnityAnalyticsCommonModule.d.ts +274 -274
- package/definitions/Assemblies/index.d.ts +16 -16
- package/definitions/Assemblies/mscorlib.d.ts +19416 -19416
- package/definitions/augments.d.ts +66 -66
- package/definitions/globals.d.ts +53 -53
- package/definitions/index.d.ts +11 -11
- package/definitions/jsx.d.ts +570 -570
- package/definitions/modules.d.ts +32 -32
- package/definitions/onejs.d.ts +171 -171
- package/definitions/preact.jsx.d.ts +6 -6
- package/definitions/proto-overrides.d.ts +41 -41
- package/definitions/puerts.d.ts +30 -30
- package/definitions/unity-engine.d.ts +22 -22
- package/dist/csharp/index.d.ts +3 -0
- package/dist/csharp/index.js +3 -0
- package/dist/dom/document.d.ts +30 -0
- package/dist/dom/document.js +89 -0
- package/dist/dom/dom-style.d.ts +9 -0
- package/dist/dom/dom-style.js +27 -0
- package/dist/dom/dom.d.ts +83 -0
- package/dist/dom/dom.js +313 -0
- package/dist/dom/index.d.ts +4 -0
- package/dist/dom/index.js +4 -0
- package/dist/dom/selector.d.ts +0 -0
- package/dist/dom/selector.js +0 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +45 -0
- package/dist/math/index.d.ts +86 -0
- package/dist/math/index.js +361 -0
- package/dist/preloads/inject.d.ts +3 -0
- package/dist/preloads/inject.js +36 -0
- package/dist/styling/index.d.ts +10 -0
- package/dist/styling/index.js +28 -0
- package/dist/styling/utils/generateAlphabeticName.d.ts +1 -0
- package/dist/styling/utils/generateAlphabeticName.js +16 -0
- package/dist/styling/utils/generateComponentId.d.ts +1 -0
- package/dist/styling/utils/generateComponentId.js +5 -0
- package/dist/styling/utils/hash.d.ts +5 -0
- package/dist/styling/utils/hash.js +34 -0
- package/dist/utils/arrays.d.ts +1 -0
- package/dist/utils/arrays.js +10 -0
- package/dist/utils/color-palettes.d.ts +2 -0
- package/dist/utils/color-palettes.js +2 -0
- package/dist/utils/color-parser.d.ts +161 -0
- package/dist/utils/color-parser.js +241 -0
- package/dist/utils/float-parser.d.ts +7 -0
- package/dist/utils/float-parser.js +23 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.js +15 -0
- package/dist/utils/responsive.d.ts +4 -0
- package/dist/utils/responsive.js +23 -0
- package/dist/utils/subscribe.d.ts +4 -0
- package/dist/utils/subscribe.js +10 -0
- package/dist/utils/system.d.ts +1 -0
- package/dist/utils/system.js +16 -0
- package/dist/utils/toJsArray.d.ts +1 -0
- package/dist/utils/toJsArray.js +10 -0
- package/dom/document.ts +115 -115
- package/dom/dom-style.ts +36 -36
- package/dom/dom.ts +376 -376
- package/dom/index.ts +3 -3
- package/index.ts +59 -59
- package/jsr.json +9 -9
- package/math/README.md +212 -212
- package/math/index.ts +487 -487
- package/package.json +33 -33
- package/preloads/inject.ts +43 -43
- package/scripts/esbuild/copy-assets.mjs +94 -94
- package/scripts/esbuild/decorator-fix.mjs +17 -17
- package/scripts/esbuild/import-transform.mjs +100 -100
- package/scripts/esbuild/index.mjs +3 -3
- package/scripts/esbuild/watch-output.mjs +38 -38
- package/scripts/postcss/cleanup-plugin.cjs +89 -89
- package/scripts/postcss/onejs-tw-config.cjs +252 -252
- package/scripts/postcss/optional-import-plugin.cjs +26 -26
- package/scripts/postcss/tailwind-logging-plugin.cjs +11 -11
- package/scripts/postcss/unwrap-is-plugin.cjs +16 -16
- package/scripts/postcss/uss-transform-plugin.cjs +92 -92
- package/scripts/switch.cjs +290 -290
- package/styling/index.tsx +32 -32
- package/styling/utils/generateAlphabeticName.ts +20 -20
- package/styling/utils/generateComponentId.ts +5 -5
- package/styling/utils/hash.ts +46 -46
- package/tsconfig.json +24 -24
- package/typings.d.ts +5 -5
- package/utils/arrays.ts +10 -10
- package/utils/color-palettes.ts +2 -2
- package/utils/color-parser.ts +248 -248
- package/utils/float-parser.ts +30 -30
- package/utils/index.ts +15 -15
- package/utils/subscribe.ts +16 -16
- package/utils/system.ts +16 -16
package/definitions/modules.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
declare module "OneJS" {
|
|
2
|
-
export = CS.OneJS
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module "OneJS/Utils" {
|
|
6
|
-
export = CS.OneJS.Utils
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare module "OneJS/Dom" {
|
|
10
|
-
export = CS.OneJS.Dom
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare module "System" {
|
|
14
|
-
export = CS.System;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare module "UnityEngine" {
|
|
18
|
-
export = CS.UnityEngine;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare module "UnityEngine/UIElements" {
|
|
22
|
-
export = CS.UnityEngine.UIElements;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare module "Unity/Mathematics" {
|
|
26
|
-
export = CS.Unity.Mathematics;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
import puerts = puer;
|
|
30
|
-
|
|
31
|
-
declare module "puerts" {
|
|
32
|
-
export = puerts;
|
|
1
|
+
declare module "OneJS" {
|
|
2
|
+
export = CS.OneJS
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module "OneJS/Utils" {
|
|
6
|
+
export = CS.OneJS.Utils
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module "OneJS/Dom" {
|
|
10
|
+
export = CS.OneJS.Dom
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module "System" {
|
|
14
|
+
export = CS.System;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare module "UnityEngine" {
|
|
18
|
+
export = CS.UnityEngine;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module "UnityEngine/UIElements" {
|
|
22
|
+
export = CS.UnityEngine.UIElements;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module "Unity/Mathematics" {
|
|
26
|
+
export = CS.Unity.Mathematics;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
import puerts = puer;
|
|
30
|
+
|
|
31
|
+
declare module "puerts" {
|
|
32
|
+
export = puerts;
|
|
33
33
|
}
|
package/definitions/onejs.d.ts
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* If this throws tsc error, you need to remove some lines from .d.ts that's
|
|
3
|
-
* generated by puerts. The lines are:
|
|
4
|
-
*
|
|
5
|
-
* public get alignContent(): any;
|
|
6
|
-
* public set alignContent(value: any);
|
|
7
|
-
* public get alignItems(): any;
|
|
8
|
-
* public set alignItems(value: any);
|
|
9
|
-
* ...
|
|
10
|
-
* public get wordSpacing(): any;
|
|
11
|
-
* public set wordSpacing(value: any);
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// Don't do any import here, just declare the types
|
|
15
|
-
|
|
16
|
-
type VisualElement = CS.UnityEngine.UIElements.VisualElement;
|
|
17
|
-
type Vector2 = CS.UnityEngine.Vector2;
|
|
18
|
-
type Vector3 = CS.UnityEngine.Vector3;
|
|
19
|
-
type float2 = CS.Unity.Mathematics.float2;
|
|
20
|
-
type float3 = CS.Unity.Mathematics.float3;
|
|
21
|
-
type float4 = CS.Unity.Mathematics.float4;
|
|
22
|
-
type Sprite = CS.UnityEngine.Sprite;
|
|
23
|
-
type Texture = CS.UnityEngine.Texture;
|
|
24
|
-
|
|
25
|
-
type StyleEnum<T> = CS.UnityEngine.UIElements.StyleEnum$1<T>;
|
|
26
|
-
type Align = CS.UnityEngine.UIElements.Align;
|
|
27
|
-
type StyleColor = CS.UnityEngine.UIElements.StyleColor;
|
|
28
|
-
type Color = CS.UnityEngine.Color;
|
|
29
|
-
type StyleBackground = CS.UnityEngine.UIElements.StyleBackground;
|
|
30
|
-
type Background = CS.UnityEngine.UIElements.Background;
|
|
31
|
-
type StyleBackgroundSize = CS.UnityEngine.UIElements.StyleBackgroundSize;
|
|
32
|
-
type BackgroundSize = CS.UnityEngine.UIElements.BackgroundSize;
|
|
33
|
-
type StyleBackgroundRepeat = CS.UnityEngine.UIElements.StyleBackgroundRepeat;
|
|
34
|
-
type BackgroundRepeat = CS.UnityEngine.UIElements.BackgroundRepeat;
|
|
35
|
-
type StyleBackgroundPosition = CS.UnityEngine.UIElements.StyleBackgroundPosition;
|
|
36
|
-
type BackgroundPosition = CS.UnityEngine.UIElements.BackgroundPosition;
|
|
37
|
-
type StyleFloat = CS.UnityEngine.UIElements.StyleFloat;
|
|
38
|
-
type StyleLength = CS.UnityEngine.UIElements.StyleLength;
|
|
39
|
-
type Length = CS.UnityEngine.UIElements.Length;
|
|
40
|
-
type StyleCursor = CS.UnityEngine.UIElements.StyleCursor;
|
|
41
|
-
type StyleFont = CS.UnityEngine.UIElements.StyleFont;
|
|
42
|
-
type StyleFontDefinition = CS.UnityEngine.UIElements.StyleFontDefinition;
|
|
43
|
-
type StyleTextShadow = CS.UnityEngine.UIElements.StyleTextShadow;
|
|
44
|
-
type StyleTransformOrigin = CS.UnityEngine.UIElements.StyleTransformOrigin;
|
|
45
|
-
type StyleList<T> = CS.UnityEngine.UIElements.StyleList$1<T>;
|
|
46
|
-
type StylePropertyName = CS.UnityEngine.UIElements.StylePropertyName;
|
|
47
|
-
type EasingFunction = CS.UnityEngine.UIElements.EasingFunction;
|
|
48
|
-
type StyleTranslate = CS.UnityEngine.UIElements.StyleTranslate;
|
|
49
|
-
type StyleScale = CS.UnityEngine.UIElements.StyleScale;
|
|
50
|
-
type StyleInt = CS.UnityEngine.UIElements.StyleInt;
|
|
51
|
-
type Cursor = CS.UnityEngine.UIElements.Cursor;
|
|
52
|
-
type DisplayStyle = CS.UnityEngine.UIElements.DisplayStyle;
|
|
53
|
-
type Overflow = CS.UnityEngine.UIElements.Overflow;
|
|
54
|
-
type Position = CS.UnityEngine.UIElements.Position;
|
|
55
|
-
type Rotate = CS.UnityEngine.UIElements.Rotate;
|
|
56
|
-
type Scale = CS.UnityEngine.UIElements.Scale;
|
|
57
|
-
type TimeValue = CS.UnityEngine.UIElements.TimeValue;
|
|
58
|
-
type StyleRotate = CS.UnityEngine.UIElements.StyleRotate;
|
|
59
|
-
type Wrap = CS.UnityEngine.UIElements.Wrap;
|
|
60
|
-
type Justify = CS.UnityEngine.UIElements.Justify;
|
|
61
|
-
type FlexDirection = CS.UnityEngine.UIElements.FlexDirection;
|
|
62
|
-
type TextOverflow = CS.UnityEngine.UIElements.TextOverflow;
|
|
63
|
-
type TextShadow = CS.UnityEngine.UIElements.TextShadow;
|
|
64
|
-
type TransformOrigin = CS.UnityEngine.UIElements.TransformOrigin;
|
|
65
|
-
type Time = CS.UnityEngine.Time;
|
|
66
|
-
type StyleFontStyle = CS.UnityEngine.FontStyle;
|
|
67
|
-
type Translate = CS.UnityEngine.UIElements.Translate;
|
|
68
|
-
type FontDefinition = CS.UnityEngine.UIElements.FontDefinition;
|
|
69
|
-
type ScaleMode = CS.UnityEngine.ScaleMode;
|
|
70
|
-
type OverflowClipBox = CS.UnityEngine.UIElements.OverflowClipBox;
|
|
71
|
-
type Visibility = CS.UnityEngine.UIElements.Visibility;
|
|
72
|
-
type WhiteSpace = CS.UnityEngine.UIElements.WhiteSpace;
|
|
73
|
-
type TextOverflowPosition = CS.UnityEngine.UIElements.TextOverflowPosition;
|
|
74
|
-
type FilterFunction = CS.UnityEngine.UIElements.FilterFunction;
|
|
75
|
-
|
|
76
|
-
declare namespace CS.OneJS.Dom {
|
|
77
|
-
|
|
78
|
-
interface DomStyle {
|
|
79
|
-
alignContent: StyleEnum<Align> | Align | string | null | number;
|
|
80
|
-
alignItems: StyleEnum<Align> | Align | string | null | number;
|
|
81
|
-
alignSelf: StyleEnum<Align> | Align | string | null | number;
|
|
82
|
-
backgroundColor: StyleColor | Color | string | null | number[] | float4;
|
|
83
|
-
backgroundImage: StyleBackground | Background | string | null | Sprite | Texture;
|
|
84
|
-
backgroundSize: StyleBackgroundSize | BackgroundSize | string | null;
|
|
85
|
-
backgroundRepeat: StyleBackgroundRepeat | BackgroundRepeat | string | null;
|
|
86
|
-
backgroundPosition: StyleBackgroundPosition | BackgroundPosition | string | null;
|
|
87
|
-
backgroundPositionX: StyleBackgroundPosition | BackgroundPosition | string | null;
|
|
88
|
-
backgroundPositionY: StyleBackgroundPosition | BackgroundPosition | string | null;
|
|
89
|
-
borderColor: StyleColor | Color | string | null | Color[] | number[] | float4;
|
|
90
|
-
borderWidth: StyleFloat | number | string | null | number[];
|
|
91
|
-
borderRadius: StyleLength | Length | string | null | number | number[];
|
|
92
|
-
borderBottomColor: StyleColor | Color | string | null | number[] | float4;
|
|
93
|
-
borderTopColor: StyleColor | Color | string | null | number[] | float4;
|
|
94
|
-
borderLeftColor: StyleColor | Color | string | null | number[] | float4;
|
|
95
|
-
borderRightColor: StyleColor | Color | string | null | number[] | float4;
|
|
96
|
-
borderBottomWidth: StyleFloat | number | string | null;
|
|
97
|
-
borderTopWidth: StyleFloat | number | string | null;
|
|
98
|
-
borderLeftWidth: StyleFloat | number | string | null;
|
|
99
|
-
borderRightWidth: StyleFloat | number | string | null;
|
|
100
|
-
borderTopLeftRadius: StyleLength | Length | string | null | number;
|
|
101
|
-
borderTopRightRadius: StyleLength | Length | string | null | number;
|
|
102
|
-
borderBottomRightRadius: StyleLength | Length | string | null | number;
|
|
103
|
-
borderBottomLeftRadius: StyleLength | Length | string | null | number;
|
|
104
|
-
bottom: StyleLength | Length | string | null | number;
|
|
105
|
-
color: StyleColor | Color | string | null | number[] | float4;
|
|
106
|
-
cursor: StyleCursor | Cursor | null;
|
|
107
|
-
display: StyleEnum<DisplayStyle> | DisplayStyle | string | null | number;
|
|
108
|
-
filter: StyleList<FilterFunction> | FilterFunction | string | null;
|
|
109
|
-
flexBasis: StyleLength | Length | string | null | number;
|
|
110
|
-
flexDirection: StyleEnum<FlexDirection> | FlexDirection | string | null | number;
|
|
111
|
-
flexGrow: StyleFloat | number | string | null;
|
|
112
|
-
flexShrink: StyleFloat | number | string | null;
|
|
113
|
-
flexWrap: StyleEnum<Wrap> | Wrap | string | null | number;
|
|
114
|
-
fontSize: StyleLength | Length | string | null | number;
|
|
115
|
-
height: StyleLength | Length | string | null | number;
|
|
116
|
-
justifyContent: StyleEnum<Justify> | Justify | string | null | number;
|
|
117
|
-
left: StyleLength | Length | string | null | number;
|
|
118
|
-
letterSpacing: StyleLength | Length | string | null | number;
|
|
119
|
-
margin: StyleLength | Length | string | null | number[] | number;
|
|
120
|
-
marginBottom: StyleLength | Length | string | null | number;
|
|
121
|
-
marginLeft: StyleLength | Length | string | null | number;
|
|
122
|
-
marginRight: StyleLength | Length | string | null | number;
|
|
123
|
-
marginTop: StyleLength | Length | string | null | number;
|
|
124
|
-
maxHeight: StyleLength | Length | string | null | number;
|
|
125
|
-
maxWidth: StyleLength | Length | string | null | number;
|
|
126
|
-
minHeight: StyleLength | Length | string | null | number;
|
|
127
|
-
minWidth: StyleLength | Length | string | null | number;
|
|
128
|
-
opacity: StyleFloat | number | string | null | number;
|
|
129
|
-
overflow: StyleEnum<Overflow> | Overflow | string | null | number;
|
|
130
|
-
padding: StyleLength | Length | string | null | number[] | number;
|
|
131
|
-
paddingBottom: StyleLength | Length | string | null | number;
|
|
132
|
-
paddingLeft: StyleLength | Length | string | null | number;
|
|
133
|
-
paddingRight: StyleLength | Length | string | null | number;
|
|
134
|
-
paddingTop: StyleLength | Length | string | null | number;
|
|
135
|
-
position: StyleEnum<Position> | Position | string | null | number;
|
|
136
|
-
right: StyleLength | Length | string | null | number;
|
|
137
|
-
rotate: StyleRotate | Rotate | string | null | number;
|
|
138
|
-
scale: StyleScale | Scale | string | null | number | number[] | float2;
|
|
139
|
-
textOverflow: StyleEnum<TextOverflow> | TextOverflow | string | null | number;
|
|
140
|
-
textShadow: StyleTextShadow | TextShadow | string | null;
|
|
141
|
-
top: StyleLength | Length | string | null | number;
|
|
142
|
-
transformOrigin: StyleTransformOrigin | TransformOrigin | string | string[] | null | number[] | float2;
|
|
143
|
-
transitionDelay: StyleList<TimeValue> | TimeValue | string | null | string[] | number | number[];
|
|
144
|
-
transitionDuration: StyleList<TimeValue> | TimeValue | string | null | string[] | number | number[];
|
|
145
|
-
transitionProperty: StyleList<StylePropertyName> | StylePropertyName | string | null | string[];
|
|
146
|
-
transitionTimingFunction: StyleList<EasingFunction> | EasingFunction | string | null | string[];
|
|
147
|
-
translate: StyleTranslate | Translate | string | null | Vector2 | Vector3 | number[];
|
|
148
|
-
unityBackgroundImageTintColor: StyleColor | Color | string | null | number[] | float4;
|
|
149
|
-
unityBackgroundScaleMode: StyleEnum<ScaleMode> | ScaleMode | string | null | number;
|
|
150
|
-
unityFont: StyleFont | UnityEngine.Font | string | null;
|
|
151
|
-
unityFontDefinition: StyleFontDefinition | FontDefinition | string | null;
|
|
152
|
-
unityFontStyleAndWeight: StyleEnum<UnityEngine.FontStyle> | UnityEngine.FontStyle | string | null | number;
|
|
153
|
-
unityOverflowClipBox: StyleEnum<OverflowClipBox> | OverflowClipBox | string | null | number;
|
|
154
|
-
unityParagraphSpacing: StyleLength | Length | string | null | number;
|
|
155
|
-
unitySliceBottom: StyleInt | number | string | null;
|
|
156
|
-
unitySliceLeft: StyleInt | number | string | null;
|
|
157
|
-
unitySliceRight: StyleInt | number | string | null;
|
|
158
|
-
unitySliceTop: StyleInt | number | string | null;
|
|
159
|
-
unitySliceScale: StyleFloat | number | string | null;
|
|
160
|
-
unityTextAlign: StyleEnum<UnityEngine.TextAnchor> | UnityEngine.TextAnchor | string | null | number;
|
|
161
|
-
unityTextOutlineColor: StyleColor | Color | string | null | number[] | float4;
|
|
162
|
-
unityTextOutlineWidth: StyleFloat | number | string | null;
|
|
163
|
-
unityTextOverflowPosition: StyleEnum<TextOverflowPosition> | TextOverflowPosition | string | null | number;
|
|
164
|
-
visibility: StyleEnum<Visibility> | Visibility | string | null | number;
|
|
165
|
-
whiteSpace: StyleEnum<WhiteSpace> | WhiteSpace | string | null | number;
|
|
166
|
-
width: StyleLength | Length | string | null | number;
|
|
167
|
-
wordSpacing: StyleLength | Length | string | null | number;
|
|
168
|
-
|
|
169
|
-
transform: string | null;
|
|
170
|
-
transition: string | null;
|
|
171
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* If this throws tsc error, you need to remove some lines from .d.ts that's
|
|
3
|
+
* generated by puerts. The lines are:
|
|
4
|
+
*
|
|
5
|
+
* public get alignContent(): any;
|
|
6
|
+
* public set alignContent(value: any);
|
|
7
|
+
* public get alignItems(): any;
|
|
8
|
+
* public set alignItems(value: any);
|
|
9
|
+
* ...
|
|
10
|
+
* public get wordSpacing(): any;
|
|
11
|
+
* public set wordSpacing(value: any);
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
// Don't do any import here, just declare the types
|
|
15
|
+
|
|
16
|
+
type VisualElement = CS.UnityEngine.UIElements.VisualElement;
|
|
17
|
+
type Vector2 = CS.UnityEngine.Vector2;
|
|
18
|
+
type Vector3 = CS.UnityEngine.Vector3;
|
|
19
|
+
type float2 = CS.Unity.Mathematics.float2;
|
|
20
|
+
type float3 = CS.Unity.Mathematics.float3;
|
|
21
|
+
type float4 = CS.Unity.Mathematics.float4;
|
|
22
|
+
type Sprite = CS.UnityEngine.Sprite;
|
|
23
|
+
type Texture = CS.UnityEngine.Texture;
|
|
24
|
+
|
|
25
|
+
type StyleEnum<T> = CS.UnityEngine.UIElements.StyleEnum$1<T>;
|
|
26
|
+
type Align = CS.UnityEngine.UIElements.Align;
|
|
27
|
+
type StyleColor = CS.UnityEngine.UIElements.StyleColor;
|
|
28
|
+
type Color = CS.UnityEngine.Color;
|
|
29
|
+
type StyleBackground = CS.UnityEngine.UIElements.StyleBackground;
|
|
30
|
+
type Background = CS.UnityEngine.UIElements.Background;
|
|
31
|
+
type StyleBackgroundSize = CS.UnityEngine.UIElements.StyleBackgroundSize;
|
|
32
|
+
type BackgroundSize = CS.UnityEngine.UIElements.BackgroundSize;
|
|
33
|
+
type StyleBackgroundRepeat = CS.UnityEngine.UIElements.StyleBackgroundRepeat;
|
|
34
|
+
type BackgroundRepeat = CS.UnityEngine.UIElements.BackgroundRepeat;
|
|
35
|
+
type StyleBackgroundPosition = CS.UnityEngine.UIElements.StyleBackgroundPosition;
|
|
36
|
+
type BackgroundPosition = CS.UnityEngine.UIElements.BackgroundPosition;
|
|
37
|
+
type StyleFloat = CS.UnityEngine.UIElements.StyleFloat;
|
|
38
|
+
type StyleLength = CS.UnityEngine.UIElements.StyleLength;
|
|
39
|
+
type Length = CS.UnityEngine.UIElements.Length;
|
|
40
|
+
type StyleCursor = CS.UnityEngine.UIElements.StyleCursor;
|
|
41
|
+
type StyleFont = CS.UnityEngine.UIElements.StyleFont;
|
|
42
|
+
type StyleFontDefinition = CS.UnityEngine.UIElements.StyleFontDefinition;
|
|
43
|
+
type StyleTextShadow = CS.UnityEngine.UIElements.StyleTextShadow;
|
|
44
|
+
type StyleTransformOrigin = CS.UnityEngine.UIElements.StyleTransformOrigin;
|
|
45
|
+
type StyleList<T> = CS.UnityEngine.UIElements.StyleList$1<T>;
|
|
46
|
+
type StylePropertyName = CS.UnityEngine.UIElements.StylePropertyName;
|
|
47
|
+
type EasingFunction = CS.UnityEngine.UIElements.EasingFunction;
|
|
48
|
+
type StyleTranslate = CS.UnityEngine.UIElements.StyleTranslate;
|
|
49
|
+
type StyleScale = CS.UnityEngine.UIElements.StyleScale;
|
|
50
|
+
type StyleInt = CS.UnityEngine.UIElements.StyleInt;
|
|
51
|
+
type Cursor = CS.UnityEngine.UIElements.Cursor;
|
|
52
|
+
type DisplayStyle = CS.UnityEngine.UIElements.DisplayStyle;
|
|
53
|
+
type Overflow = CS.UnityEngine.UIElements.Overflow;
|
|
54
|
+
type Position = CS.UnityEngine.UIElements.Position;
|
|
55
|
+
type Rotate = CS.UnityEngine.UIElements.Rotate;
|
|
56
|
+
type Scale = CS.UnityEngine.UIElements.Scale;
|
|
57
|
+
type TimeValue = CS.UnityEngine.UIElements.TimeValue;
|
|
58
|
+
type StyleRotate = CS.UnityEngine.UIElements.StyleRotate;
|
|
59
|
+
type Wrap = CS.UnityEngine.UIElements.Wrap;
|
|
60
|
+
type Justify = CS.UnityEngine.UIElements.Justify;
|
|
61
|
+
type FlexDirection = CS.UnityEngine.UIElements.FlexDirection;
|
|
62
|
+
type TextOverflow = CS.UnityEngine.UIElements.TextOverflow;
|
|
63
|
+
type TextShadow = CS.UnityEngine.UIElements.TextShadow;
|
|
64
|
+
type TransformOrigin = CS.UnityEngine.UIElements.TransformOrigin;
|
|
65
|
+
type Time = CS.UnityEngine.Time;
|
|
66
|
+
type StyleFontStyle = CS.UnityEngine.FontStyle;
|
|
67
|
+
type Translate = CS.UnityEngine.UIElements.Translate;
|
|
68
|
+
type FontDefinition = CS.UnityEngine.UIElements.FontDefinition;
|
|
69
|
+
type ScaleMode = CS.UnityEngine.ScaleMode;
|
|
70
|
+
type OverflowClipBox = CS.UnityEngine.UIElements.OverflowClipBox;
|
|
71
|
+
type Visibility = CS.UnityEngine.UIElements.Visibility;
|
|
72
|
+
type WhiteSpace = CS.UnityEngine.UIElements.WhiteSpace;
|
|
73
|
+
type TextOverflowPosition = CS.UnityEngine.UIElements.TextOverflowPosition;
|
|
74
|
+
type FilterFunction = CS.UnityEngine.UIElements.FilterFunction;
|
|
75
|
+
|
|
76
|
+
declare namespace CS.OneJS.Dom {
|
|
77
|
+
|
|
78
|
+
interface DomStyle {
|
|
79
|
+
alignContent: StyleEnum<Align> | Align | string | null | number;
|
|
80
|
+
alignItems: StyleEnum<Align> | Align | string | null | number;
|
|
81
|
+
alignSelf: StyleEnum<Align> | Align | string | null | number;
|
|
82
|
+
backgroundColor: StyleColor | Color | string | null | number[] | float4;
|
|
83
|
+
backgroundImage: StyleBackground | Background | string | null | Sprite | Texture;
|
|
84
|
+
backgroundSize: StyleBackgroundSize | BackgroundSize | string | null;
|
|
85
|
+
backgroundRepeat: StyleBackgroundRepeat | BackgroundRepeat | string | null;
|
|
86
|
+
backgroundPosition: StyleBackgroundPosition | BackgroundPosition | string | null;
|
|
87
|
+
backgroundPositionX: StyleBackgroundPosition | BackgroundPosition | string | null;
|
|
88
|
+
backgroundPositionY: StyleBackgroundPosition | BackgroundPosition | string | null;
|
|
89
|
+
borderColor: StyleColor | Color | string | null | Color[] | number[] | float4;
|
|
90
|
+
borderWidth: StyleFloat | number | string | null | number[];
|
|
91
|
+
borderRadius: StyleLength | Length | string | null | number | number[];
|
|
92
|
+
borderBottomColor: StyleColor | Color | string | null | number[] | float4;
|
|
93
|
+
borderTopColor: StyleColor | Color | string | null | number[] | float4;
|
|
94
|
+
borderLeftColor: StyleColor | Color | string | null | number[] | float4;
|
|
95
|
+
borderRightColor: StyleColor | Color | string | null | number[] | float4;
|
|
96
|
+
borderBottomWidth: StyleFloat | number | string | null;
|
|
97
|
+
borderTopWidth: StyleFloat | number | string | null;
|
|
98
|
+
borderLeftWidth: StyleFloat | number | string | null;
|
|
99
|
+
borderRightWidth: StyleFloat | number | string | null;
|
|
100
|
+
borderTopLeftRadius: StyleLength | Length | string | null | number;
|
|
101
|
+
borderTopRightRadius: StyleLength | Length | string | null | number;
|
|
102
|
+
borderBottomRightRadius: StyleLength | Length | string | null | number;
|
|
103
|
+
borderBottomLeftRadius: StyleLength | Length | string | null | number;
|
|
104
|
+
bottom: StyleLength | Length | string | null | number;
|
|
105
|
+
color: StyleColor | Color | string | null | number[] | float4;
|
|
106
|
+
cursor: StyleCursor | Cursor | null;
|
|
107
|
+
display: StyleEnum<DisplayStyle> | DisplayStyle | string | null | number;
|
|
108
|
+
filter: StyleList<FilterFunction> | FilterFunction | string | null;
|
|
109
|
+
flexBasis: StyleLength | Length | string | null | number;
|
|
110
|
+
flexDirection: StyleEnum<FlexDirection> | FlexDirection | string | null | number;
|
|
111
|
+
flexGrow: StyleFloat | number | string | null;
|
|
112
|
+
flexShrink: StyleFloat | number | string | null;
|
|
113
|
+
flexWrap: StyleEnum<Wrap> | Wrap | string | null | number;
|
|
114
|
+
fontSize: StyleLength | Length | string | null | number;
|
|
115
|
+
height: StyleLength | Length | string | null | number;
|
|
116
|
+
justifyContent: StyleEnum<Justify> | Justify | string | null | number;
|
|
117
|
+
left: StyleLength | Length | string | null | number;
|
|
118
|
+
letterSpacing: StyleLength | Length | string | null | number;
|
|
119
|
+
margin: StyleLength | Length | string | null | number[] | number;
|
|
120
|
+
marginBottom: StyleLength | Length | string | null | number;
|
|
121
|
+
marginLeft: StyleLength | Length | string | null | number;
|
|
122
|
+
marginRight: StyleLength | Length | string | null | number;
|
|
123
|
+
marginTop: StyleLength | Length | string | null | number;
|
|
124
|
+
maxHeight: StyleLength | Length | string | null | number;
|
|
125
|
+
maxWidth: StyleLength | Length | string | null | number;
|
|
126
|
+
minHeight: StyleLength | Length | string | null | number;
|
|
127
|
+
minWidth: StyleLength | Length | string | null | number;
|
|
128
|
+
opacity: StyleFloat | number | string | null | number;
|
|
129
|
+
overflow: StyleEnum<Overflow> | Overflow | string | null | number;
|
|
130
|
+
padding: StyleLength | Length | string | null | number[] | number;
|
|
131
|
+
paddingBottom: StyleLength | Length | string | null | number;
|
|
132
|
+
paddingLeft: StyleLength | Length | string | null | number;
|
|
133
|
+
paddingRight: StyleLength | Length | string | null | number;
|
|
134
|
+
paddingTop: StyleLength | Length | string | null | number;
|
|
135
|
+
position: StyleEnum<Position> | Position | string | null | number;
|
|
136
|
+
right: StyleLength | Length | string | null | number;
|
|
137
|
+
rotate: StyleRotate | Rotate | string | null | number;
|
|
138
|
+
scale: StyleScale | Scale | string | null | number | number[] | float2;
|
|
139
|
+
textOverflow: StyleEnum<TextOverflow> | TextOverflow | string | null | number;
|
|
140
|
+
textShadow: StyleTextShadow | TextShadow | string | null;
|
|
141
|
+
top: StyleLength | Length | string | null | number;
|
|
142
|
+
transformOrigin: StyleTransformOrigin | TransformOrigin | string | string[] | null | number[] | float2;
|
|
143
|
+
transitionDelay: StyleList<TimeValue> | TimeValue | string | null | string[] | number | number[];
|
|
144
|
+
transitionDuration: StyleList<TimeValue> | TimeValue | string | null | string[] | number | number[];
|
|
145
|
+
transitionProperty: StyleList<StylePropertyName> | StylePropertyName | string | null | string[];
|
|
146
|
+
transitionTimingFunction: StyleList<EasingFunction> | EasingFunction | string | null | string[];
|
|
147
|
+
translate: StyleTranslate | Translate | string | null | Vector2 | Vector3 | number[];
|
|
148
|
+
unityBackgroundImageTintColor: StyleColor | Color | string | null | number[] | float4;
|
|
149
|
+
unityBackgroundScaleMode: StyleEnum<ScaleMode> | ScaleMode | string | null | number;
|
|
150
|
+
unityFont: StyleFont | UnityEngine.Font | string | null;
|
|
151
|
+
unityFontDefinition: StyleFontDefinition | FontDefinition | string | null;
|
|
152
|
+
unityFontStyleAndWeight: StyleEnum<UnityEngine.FontStyle> | UnityEngine.FontStyle | string | null | number;
|
|
153
|
+
unityOverflowClipBox: StyleEnum<OverflowClipBox> | OverflowClipBox | string | null | number;
|
|
154
|
+
unityParagraphSpacing: StyleLength | Length | string | null | number;
|
|
155
|
+
unitySliceBottom: StyleInt | number | string | null;
|
|
156
|
+
unitySliceLeft: StyleInt | number | string | null;
|
|
157
|
+
unitySliceRight: StyleInt | number | string | null;
|
|
158
|
+
unitySliceTop: StyleInt | number | string | null;
|
|
159
|
+
unitySliceScale: StyleFloat | number | string | null;
|
|
160
|
+
unityTextAlign: StyleEnum<UnityEngine.TextAnchor> | UnityEngine.TextAnchor | string | null | number;
|
|
161
|
+
unityTextOutlineColor: StyleColor | Color | string | null | number[] | float4;
|
|
162
|
+
unityTextOutlineWidth: StyleFloat | number | string | null;
|
|
163
|
+
unityTextOverflowPosition: StyleEnum<TextOverflowPosition> | TextOverflowPosition | string | null | number;
|
|
164
|
+
visibility: StyleEnum<Visibility> | Visibility | string | null | number;
|
|
165
|
+
whiteSpace: StyleEnum<WhiteSpace> | WhiteSpace | string | null | number;
|
|
166
|
+
width: StyleLength | Length | string | null | number;
|
|
167
|
+
wordSpacing: StyleLength | Length | string | null | number;
|
|
168
|
+
|
|
169
|
+
transform: string | null;
|
|
170
|
+
transition: string | null;
|
|
171
|
+
}
|
|
172
172
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// declare module "preact/jsx" {
|
|
2
|
-
// namespace JSXInternal {
|
|
3
|
-
// interface IntrinsicElements extends JSX.IntrinsicElements {
|
|
4
|
-
|
|
5
|
-
// }
|
|
6
|
-
// }
|
|
1
|
+
// declare module "preact/jsx" {
|
|
2
|
+
// namespace JSXInternal {
|
|
3
|
+
// interface IntrinsicElements extends JSX.IntrinsicElements {
|
|
4
|
+
|
|
5
|
+
// }
|
|
6
|
+
// }
|
|
7
7
|
// }
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
declare namespace CS.UnityEngine {
|
|
3
|
-
interface GameObject {
|
|
4
|
-
GetComp<T>(type: { new(): T }): T
|
|
5
|
-
AddComp<T>(type: { new(): T }): T
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface Component {
|
|
9
|
-
GetComp<T>(type: { new(): T }): T
|
|
10
|
-
AddComp<T>(type: { new(): T }): T
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type CSArray = CS.System.Array
|
|
15
|
-
|
|
16
|
-
declare namespace CS.System {
|
|
17
|
-
interface Array {
|
|
18
|
-
get<T>(index: number): T
|
|
19
|
-
set<T>(index: number, value: T): void
|
|
20
|
-
toJsArray<T>(): T[]
|
|
21
|
-
at<T>(index: number): T
|
|
22
|
-
forEach<T>(callbackfn: (value: T, index: number, array: CSArray) => void): void
|
|
23
|
-
map<T, U>(type: { new(...args: any[]): U }, callbackfn: (value: T, index: number, array: CSArray) => U): CSArray
|
|
24
|
-
filter<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): CSArray
|
|
25
|
-
reduce<T>(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: CSArray) => T): T
|
|
26
|
-
reduceRight<T>(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: CSArray) => T): T
|
|
27
|
-
find<T>(predicate: (value: T, index: number, array: CSArray) => boolean): T
|
|
28
|
-
findIndex<T>(predicate: (value: T, index: number, array: CSArray) => boolean): number
|
|
29
|
-
indexOf<T>(searchElement: T, fromIndex?: number): number
|
|
30
|
-
lastIndexOf<T>(searchElement: T, fromIndex?: number): number
|
|
31
|
-
some<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): boolean
|
|
32
|
-
every<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): boolean
|
|
33
|
-
slice<T>(start?: number, end?: number): CSArray
|
|
34
|
-
concat<T>(...items: CSArray[]): T[]
|
|
35
|
-
join(separator?: string): string
|
|
36
|
-
sort<T>(compareFn?: (a: T, b: T) => number): CSArray
|
|
37
|
-
reverse(): CSArray
|
|
38
|
-
includes<T>(searchElement: T, fromIndex?: number): boolean
|
|
39
|
-
fill<T>(value: T, start?: number, end?: number): CSArray
|
|
40
|
-
copyWithin<T>(target: number, start: number, end?: number): CSArray
|
|
41
|
-
}
|
|
1
|
+
|
|
2
|
+
declare namespace CS.UnityEngine {
|
|
3
|
+
interface GameObject {
|
|
4
|
+
GetComp<T>(type: { new(): T }): T
|
|
5
|
+
AddComp<T>(type: { new(): T }): T
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface Component {
|
|
9
|
+
GetComp<T>(type: { new(): T }): T
|
|
10
|
+
AddComp<T>(type: { new(): T }): T
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type CSArray = CS.System.Array
|
|
15
|
+
|
|
16
|
+
declare namespace CS.System {
|
|
17
|
+
interface Array {
|
|
18
|
+
get<T>(index: number): T
|
|
19
|
+
set<T>(index: number, value: T): void
|
|
20
|
+
toJsArray<T>(): T[]
|
|
21
|
+
at<T>(index: number): T
|
|
22
|
+
forEach<T>(callbackfn: (value: T, index: number, array: CSArray) => void): void
|
|
23
|
+
map<T, U>(type: { new(...args: any[]): U }, callbackfn: (value: T, index: number, array: CSArray) => U): CSArray
|
|
24
|
+
filter<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): CSArray
|
|
25
|
+
reduce<T>(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: CSArray) => T): T
|
|
26
|
+
reduceRight<T>(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: CSArray) => T): T
|
|
27
|
+
find<T>(predicate: (value: T, index: number, array: CSArray) => boolean): T
|
|
28
|
+
findIndex<T>(predicate: (value: T, index: number, array: CSArray) => boolean): number
|
|
29
|
+
indexOf<T>(searchElement: T, fromIndex?: number): number
|
|
30
|
+
lastIndexOf<T>(searchElement: T, fromIndex?: number): number
|
|
31
|
+
some<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): boolean
|
|
32
|
+
every<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): boolean
|
|
33
|
+
slice<T>(start?: number, end?: number): CSArray
|
|
34
|
+
concat<T>(...items: CSArray[]): T[]
|
|
35
|
+
join(separator?: string): string
|
|
36
|
+
sort<T>(compareFn?: (a: T, b: T) => number): CSArray
|
|
37
|
+
reverse(): CSArray
|
|
38
|
+
includes<T>(searchElement: T, fromIndex?: number): boolean
|
|
39
|
+
fill<T>(value: T, start?: number, end?: number): CSArray
|
|
40
|
+
copyWithin<T>(target: number, start: number, end?: number): CSArray
|
|
41
|
+
}
|
|
42
42
|
}
|
package/definitions/puerts.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
declare enum __Puerts_CSharpEnum { }
|
|
2
|
-
|
|
3
|
-
declare namespace puer {
|
|
4
|
-
function $ref<T>(x?: T): CS.$Ref<T>;
|
|
5
|
-
|
|
6
|
-
function $unref<T>(x: CS.$Ref<T>): T;
|
|
7
|
-
|
|
8
|
-
function $set<T>(x: CS.$Ref<T>, val: T): void;
|
|
9
|
-
|
|
10
|
-
function $promise<T>(x: CS.$Task<T>): Promise<T>;
|
|
11
|
-
|
|
12
|
-
function $generic<T extends new (...args: any[]) => any>(genericType: T, ...genericArguments: (typeof __Puerts_CSharpEnum | (new (...args: any[]) => any))[]): T;
|
|
13
|
-
|
|
14
|
-
function $genericMethod(genericType: new (...args: any[]) => any, methodName: string, ...genericArguments: (typeof __Puerts_CSharpEnum | (new (...args: any[]) => any))[]): (...args: any[]) => any;
|
|
15
|
-
|
|
16
|
-
function $typeof(x: new (...args: any[]) => any): CS.System.Type;
|
|
17
|
-
|
|
18
|
-
function $extension(c: Function, e: Function): void;
|
|
19
|
-
|
|
20
|
-
function on(eventType: string, listener: Function, prepend?: boolean): void;
|
|
21
|
-
|
|
22
|
-
function off(eventType: string, listener: Function): void;
|
|
23
|
-
|
|
24
|
-
function emit(eventType: string, ...args: any[]): boolean;
|
|
25
|
-
|
|
26
|
-
function loadFile(name: string): { content: string, debugpath: string };
|
|
27
|
-
|
|
28
|
-
function evalScript(name: string): void;
|
|
29
|
-
|
|
30
|
-
function require(name: string): any;
|
|
1
|
+
declare enum __Puerts_CSharpEnum { }
|
|
2
|
+
|
|
3
|
+
declare namespace puer {
|
|
4
|
+
function $ref<T>(x?: T): CS.$Ref<T>;
|
|
5
|
+
|
|
6
|
+
function $unref<T>(x: CS.$Ref<T>): T;
|
|
7
|
+
|
|
8
|
+
function $set<T>(x: CS.$Ref<T>, val: T): void;
|
|
9
|
+
|
|
10
|
+
function $promise<T>(x: CS.$Task<T>): Promise<T>;
|
|
11
|
+
|
|
12
|
+
function $generic<T extends new (...args: any[]) => any>(genericType: T, ...genericArguments: (typeof __Puerts_CSharpEnum | (new (...args: any[]) => any))[]): T;
|
|
13
|
+
|
|
14
|
+
function $genericMethod(genericType: new (...args: any[]) => any, methodName: string, ...genericArguments: (typeof __Puerts_CSharpEnum | (new (...args: any[]) => any))[]): (...args: any[]) => any;
|
|
15
|
+
|
|
16
|
+
function $typeof(x: new (...args: any[]) => any): CS.System.Type;
|
|
17
|
+
|
|
18
|
+
function $extension(c: Function, e: Function): void;
|
|
19
|
+
|
|
20
|
+
function on(eventType: string, listener: Function, prepend?: boolean): void;
|
|
21
|
+
|
|
22
|
+
function off(eventType: string, listener: Function): void;
|
|
23
|
+
|
|
24
|
+
function emit(eventType: string, ...args: any[]): boolean;
|
|
25
|
+
|
|
26
|
+
function loadFile(name: string): { content: string, debugpath: string };
|
|
27
|
+
|
|
28
|
+
function evalScript(name: string): void;
|
|
29
|
+
|
|
30
|
+
function require(name: string): any;
|
|
31
31
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
interface TypeRef<T> {
|
|
3
|
-
runtimeType: Function;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare namespace CS {
|
|
7
|
-
namespace UnityEngine {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
namespace UnityEngine.UIElements {
|
|
11
|
-
interface IChangeEvent {
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class ChangeEvent<T> extends UnityEngine.UIElements.EventBase$1<T> implements IChangeEvent, System.IDisposable {
|
|
15
|
-
static GetPooled<T>(): T
|
|
16
|
-
static GetPooled<T>(previousValue: any, newValue: any): ChangeEvent<T>
|
|
17
|
-
previousValue: T
|
|
18
|
-
newValue: T
|
|
19
|
-
constructor()
|
|
20
|
-
Dispose(): void
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
|
|
2
|
+
interface TypeRef<T> {
|
|
3
|
+
runtimeType: Function;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare namespace CS {
|
|
7
|
+
namespace UnityEngine {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
namespace UnityEngine.UIElements {
|
|
11
|
+
interface IChangeEvent {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ChangeEvent<T> extends UnityEngine.UIElements.EventBase$1<T> implements IChangeEvent, System.IDisposable {
|
|
15
|
+
static GetPooled<T>(): T
|
|
16
|
+
static GetPooled<T>(previousValue: any, newValue: any): ChangeEvent<T>
|
|
17
|
+
previousValue: T
|
|
18
|
+
newValue: T
|
|
19
|
+
constructor()
|
|
20
|
+
Dispose(): void
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
23
|
}
|