onejs-core 0.3.18 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/Assemblies/OneJS.Runtime.d.ts +761 -0
- package/definitions/Assemblies/OneJS.Samples.d.ts +0 -0
- package/definitions/Assemblies/Unity.Mathematics.d.ts +9221 -0
- package/definitions/Assemblies/UnityEngine.CoreModule.d.ts +29587 -0
- package/definitions/Assemblies/UnityEngine.IMGUIModule.d.ts +0 -0
- package/definitions/Assemblies/UnityEngine.PhysicsModule.d.ts +3137 -0
- package/definitions/Assemblies/UnityEngine.TextRenderingModule.d.ts +0 -0
- package/definitions/Assemblies/UnityEngine.UIElementsModule.d.ts +32521 -0
- package/definitions/Assemblies/index.d.ts +9 -0
- package/definitions/Assemblies/mscorlib.d.ts +19416 -0
- package/definitions/app.d.ts +0 -55247
- package/definitions/index.d.ts +3 -1
- package/definitions/unity-editor.d.ts +0 -0
- package/dist/styling/index.js +4 -0
- package/package.json +1 -1
- package/scripts/esbuild/copy-assets.mjs +4 -1
- package/styling/index.tsx +5 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
|
|
2
|
+
declare namespace CS {
|
|
3
|
+
// const __keep_incompatibility: unique symbol;
|
|
4
|
+
//
|
|
5
|
+
// interface $Ref<T> {
|
|
6
|
+
// value: T
|
|
7
|
+
// }
|
|
8
|
+
// namespace System {
|
|
9
|
+
// interface Array$1<T> extends System.Array {
|
|
10
|
+
// get_Item(index: number):T;
|
|
11
|
+
//
|
|
12
|
+
// set_Item(index: number, value: T):void;
|
|
13
|
+
// }
|
|
14
|
+
// }
|
|
15
|
+
// interface $Task<T> {}
|
|
16
|
+
namespace OneJS {
|
|
17
|
+
class EventfulPropertyAttribute extends System.Attribute implements System.Runtime.InteropServices._Attribute
|
|
18
|
+
{
|
|
19
|
+
protected [__keep_incompatibility]: never;
|
|
20
|
+
public get CheckEquality(): boolean;
|
|
21
|
+
public constructor ($checkEquality?: boolean)
|
|
22
|
+
}
|
|
23
|
+
interface IClassStrProcessor
|
|
24
|
+
{
|
|
25
|
+
ProcessClassStr ($classStr: string, $dom: OneJS.Dom.Dom) : string
|
|
26
|
+
}
|
|
27
|
+
class Bundler extends UnityEngine.MonoBehaviour
|
|
28
|
+
{
|
|
29
|
+
protected [__keep_incompatibility]: never;
|
|
30
|
+
public defaultFiles : System.Array$1<OneJS.DefaultFileMapping>
|
|
31
|
+
public directoriesToPackage : System.Array$1<string>
|
|
32
|
+
public outputsZip : UnityEngine.TextAsset
|
|
33
|
+
public version : string
|
|
34
|
+
public forceExtract : boolean
|
|
35
|
+
public ignoreList : System.Array$1<string>
|
|
36
|
+
public ExtractOutputsIfNotFound () : void
|
|
37
|
+
public ExtractForStandalone () : void
|
|
38
|
+
public PackageOutputsZipWithPrompt () : void
|
|
39
|
+
public PackageOutputsZip () : void
|
|
40
|
+
public ZeroOutOutputsZipWithPrompt () : void
|
|
41
|
+
public ZeroOutOutputsZip () : void
|
|
42
|
+
public PackageDirectoriesWithPrompt () : void
|
|
43
|
+
public PackageDirectories () : void
|
|
44
|
+
public constructor ()
|
|
45
|
+
}
|
|
46
|
+
class DefaultFileMapping extends System.Object
|
|
47
|
+
{
|
|
48
|
+
protected [__keep_incompatibility]: never;
|
|
49
|
+
public path : string
|
|
50
|
+
public textAsset : UnityEngine.TextAsset
|
|
51
|
+
public constructor ()
|
|
52
|
+
}
|
|
53
|
+
class DTSGenerator extends UnityEngine.MonoBehaviour
|
|
54
|
+
{
|
|
55
|
+
protected [__keep_incompatibility]: never;
|
|
56
|
+
public assemblies : System.Array$1<string>
|
|
57
|
+
public namespaces : System.Array$1<string>
|
|
58
|
+
public whitelistedTypes : System.Array$1<string>
|
|
59
|
+
public blacklistedTypes : System.Array$1<string>
|
|
60
|
+
public savePath : string
|
|
61
|
+
public strictAssemblies : boolean
|
|
62
|
+
public strictNamespaces : boolean
|
|
63
|
+
public exact : boolean
|
|
64
|
+
public whitelistOnly : boolean
|
|
65
|
+
public includeGlobalObjects : boolean
|
|
66
|
+
public constructor ()
|
|
67
|
+
}
|
|
68
|
+
class EngineHost extends System.Object implements System.IDisposable
|
|
69
|
+
{
|
|
70
|
+
protected [__keep_incompatibility]: never;
|
|
71
|
+
public add_onReload ($value: OneJS.EngineHost.ActionCallback) : void
|
|
72
|
+
public remove_onReload ($value: OneJS.EngineHost.ActionCallback) : void
|
|
73
|
+
public add_onDestroy ($value: OneJS.EngineHost.ActionCallback) : void
|
|
74
|
+
public remove_onDestroy ($value: OneJS.EngineHost.ActionCallback) : void
|
|
75
|
+
public subscribe ($eventSource: any, $eventName: string, $handler: Function) : System.Action
|
|
76
|
+
public subscribe ($eventName: string, $handler: Function) : System.Action
|
|
77
|
+
public InvokeOnReload () : void
|
|
78
|
+
public InvokeOnDestroy () : void
|
|
79
|
+
public Dispose () : void
|
|
80
|
+
public constructor ($engine: OneJS.ScriptEngine)
|
|
81
|
+
}
|
|
82
|
+
class ScriptEngine extends UnityEngine.MonoBehaviour implements OneJS.IScriptEngine
|
|
83
|
+
{
|
|
84
|
+
protected [__keep_incompatibility]: never;
|
|
85
|
+
public editorWorkingDirInfo : OneJS.EditorWorkingDirInfo
|
|
86
|
+
public playerWorkingDirInfo : OneJS.PlayerWorkingDirInfo
|
|
87
|
+
public preloads : System.Array$1<UnityEngine.TextAsset>
|
|
88
|
+
public globalObjects : System.Array$1<OneJS.ObjectMappingPair>
|
|
89
|
+
public styleSheets : System.Array$1<UnityEngine.UIElements.StyleSheet>
|
|
90
|
+
public get Tick(): number;
|
|
91
|
+
public get WorkingDir(): string;
|
|
92
|
+
public get JsEnv(): Puerts.JsEnv;
|
|
93
|
+
public add_OnReload ($value: System.Action) : void
|
|
94
|
+
public remove_OnReload ($value: System.Action) : void
|
|
95
|
+
public GetFullPath ($filepath: string) : string
|
|
96
|
+
public Shutdown () : void
|
|
97
|
+
public Reload () : void
|
|
98
|
+
public EvalFile ($filepath: string) : void
|
|
99
|
+
public Eval ($code: string) : void
|
|
100
|
+
public GenerateGlobalsDefinitions () : void
|
|
101
|
+
public constructor ()
|
|
102
|
+
}
|
|
103
|
+
interface IScriptEngine
|
|
104
|
+
{
|
|
105
|
+
WorkingDir : string
|
|
106
|
+
}
|
|
107
|
+
class CommonGlobals extends System.Object
|
|
108
|
+
{
|
|
109
|
+
protected [__keep_incompatibility]: never;
|
|
110
|
+
public static atob ($str: string) : string
|
|
111
|
+
public static btoa ($str: string) : string
|
|
112
|
+
public constructor ()
|
|
113
|
+
}
|
|
114
|
+
interface MyCallback
|
|
115
|
+
{
|
|
116
|
+
() : void;
|
|
117
|
+
Invoke?: () => void;
|
|
118
|
+
}
|
|
119
|
+
var MyCallback: { new (func: () => void): MyCallback; }
|
|
120
|
+
class Resource extends System.Object
|
|
121
|
+
{
|
|
122
|
+
protected [__keep_incompatibility]: never;
|
|
123
|
+
public loadFont ($path: string) : UnityEngine.Font
|
|
124
|
+
public loadFontDefinition ($path: string) : UnityEngine.UIElements.FontDefinition
|
|
125
|
+
public loadImage ($path: string) : UnityEngine.Texture2D
|
|
126
|
+
public constructor ($engine: OneJS.ScriptEngine)
|
|
127
|
+
}
|
|
128
|
+
class Janitor extends UnityEngine.MonoBehaviour
|
|
129
|
+
{
|
|
130
|
+
protected [__keep_incompatibility]: never;
|
|
131
|
+
public clearLogs : boolean
|
|
132
|
+
public clearGameObjects : boolean
|
|
133
|
+
public ClearGameObjects () : void
|
|
134
|
+
public Clean () : void
|
|
135
|
+
public ClearLog () : void
|
|
136
|
+
public constructor ()
|
|
137
|
+
}
|
|
138
|
+
class Runner extends UnityEngine.MonoBehaviour
|
|
139
|
+
{
|
|
140
|
+
protected [__keep_incompatibility]: never;
|
|
141
|
+
public entryFile : string
|
|
142
|
+
public runOnStart : boolean
|
|
143
|
+
public liveReload : boolean
|
|
144
|
+
public pollingInterval : number
|
|
145
|
+
public clearGameObjects : boolean
|
|
146
|
+
public clearLogs : boolean
|
|
147
|
+
public respawnJanitorOnSceneLoad : boolean
|
|
148
|
+
public stopCleaningOnDisable : boolean
|
|
149
|
+
public standalone : boolean
|
|
150
|
+
public constructor ()
|
|
151
|
+
}
|
|
152
|
+
class ScreenMonitor extends UnityEngine.MonoBehaviour
|
|
153
|
+
{
|
|
154
|
+
protected [__keep_incompatibility]: never;
|
|
155
|
+
public breakpoints : System.Array$1<number>
|
|
156
|
+
public standalone : boolean
|
|
157
|
+
public constructor ()
|
|
158
|
+
}
|
|
159
|
+
class EditorWorkingDirInfo extends System.Object
|
|
160
|
+
{
|
|
161
|
+
protected [__keep_incompatibility]: never;
|
|
162
|
+
public baseDir : OneJS.EditorWorkingDirInfo.EditorBaseDir
|
|
163
|
+
public relativePath : string
|
|
164
|
+
public constructor ()
|
|
165
|
+
}
|
|
166
|
+
class PlayerWorkingDirInfo extends System.Object
|
|
167
|
+
{
|
|
168
|
+
protected [__keep_incompatibility]: never;
|
|
169
|
+
public baseDir : OneJS.PlayerWorkingDirInfo.PlayerBaseDir
|
|
170
|
+
public relativePath : string
|
|
171
|
+
public constructor ()
|
|
172
|
+
}
|
|
173
|
+
class ObjectMappingPair extends System.Object
|
|
174
|
+
{
|
|
175
|
+
protected [__keep_incompatibility]: never;
|
|
176
|
+
public obj : UnityEngine.Object
|
|
177
|
+
public name : string
|
|
178
|
+
public constructor ($obj: UnityEngine.Object, $m: string)
|
|
179
|
+
}
|
|
180
|
+
class PairMappingAttribute extends UnityEngine.PropertyAttribute implements System.Runtime.InteropServices._Attribute
|
|
181
|
+
{
|
|
182
|
+
protected [__keep_incompatibility]: never;
|
|
183
|
+
public from : string
|
|
184
|
+
public to : string
|
|
185
|
+
public separator : string
|
|
186
|
+
public label : string
|
|
187
|
+
public constructor ($from: string, $to: string, $separator?: string, $label?: string)
|
|
188
|
+
}
|
|
189
|
+
class PlainStringAttribute extends UnityEngine.PropertyAttribute implements System.Runtime.InteropServices._Attribute
|
|
190
|
+
{
|
|
191
|
+
protected [__keep_incompatibility]: never;
|
|
192
|
+
public constructor ()
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
namespace OneJS.Dom {
|
|
196
|
+
class Dom extends System.Object
|
|
197
|
+
{
|
|
198
|
+
protected [__keep_incompatibility]: never;
|
|
199
|
+
public get document(): OneJS.Dom.Document;
|
|
200
|
+
public get ve(): UnityEngine.UIElements.VisualElement;
|
|
201
|
+
public get childNodes(): System.Array$1<OneJS.Dom.Dom>;
|
|
202
|
+
public get firstChild(): OneJS.Dom.Dom;
|
|
203
|
+
public get parentNode(): OneJS.Dom.Dom;
|
|
204
|
+
public get nextSibling(): OneJS.Dom.Dom;
|
|
205
|
+
public get nodeType(): number;
|
|
206
|
+
public get Id(): string;
|
|
207
|
+
public set Id(value: string);
|
|
208
|
+
public get key(): string;
|
|
209
|
+
public set key(value: string);
|
|
210
|
+
public get style(): OneJS.Dom.DomStyle;
|
|
211
|
+
public get value(): any;
|
|
212
|
+
public get checked(): boolean;
|
|
213
|
+
public get data(): any;
|
|
214
|
+
public set data(value: any);
|
|
215
|
+
public get innerHTML(): string;
|
|
216
|
+
public get layoutSize(): UnityEngine.Vector2;
|
|
217
|
+
public get _children(): any;
|
|
218
|
+
public set _children(value: any);
|
|
219
|
+
public get _listeners(): System.Collections.Generic.Dictionary$2<string, UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>>;
|
|
220
|
+
public get classname(): string;
|
|
221
|
+
public set classname(value: string);
|
|
222
|
+
public SetBackgroundColor ($color: UnityEngine.Color) : void
|
|
223
|
+
public clearChildren () : void
|
|
224
|
+
public _addToListeners ($name: string, $callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>) : void
|
|
225
|
+
public _getFromListeners ($name: string) : UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>
|
|
226
|
+
public _callListener ($name: string, $evt: UnityEngine.UIElements.EventBase) : void
|
|
227
|
+
public addEventListener ($name: string, $callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, $useCapture?: boolean) : void
|
|
228
|
+
public removeEventListener ($name: string, $callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, $useCapture?: boolean) : void
|
|
229
|
+
public appendChild ($node: OneJS.Dom.Dom) : void
|
|
230
|
+
public removeChild ($child: OneJS.Dom.Dom) : void
|
|
231
|
+
public insertBefore ($a: OneJS.Dom.Dom, $b: OneJS.Dom.Dom) : void
|
|
232
|
+
public setAttribute ($name: string, $val: any) : void
|
|
233
|
+
public removeAttribute ($name: string) : void
|
|
234
|
+
public focus () : void
|
|
235
|
+
public First ($predicate: System.Func$2<OneJS.Dom.Dom, boolean>) : OneJS.Dom.Dom
|
|
236
|
+
public ProcessClassStr ($classStr: string, $dom: OneJS.Dom.Dom) : string
|
|
237
|
+
public constructor ($ve: UnityEngine.UIElements.VisualElement, $document: OneJS.Dom.Document)
|
|
238
|
+
}
|
|
239
|
+
class ElementCreationOptions extends System.Object
|
|
240
|
+
{
|
|
241
|
+
protected [__keep_incompatibility]: never;
|
|
242
|
+
public is : string
|
|
243
|
+
public constructor ()
|
|
244
|
+
}
|
|
245
|
+
class Document extends System.Object
|
|
246
|
+
{
|
|
247
|
+
protected [__keep_incompatibility]: never;
|
|
248
|
+
public get scriptEngine(): OneJS.ScriptEngine;
|
|
249
|
+
public get Root(): UnityEngine.UIElements.VisualElement;
|
|
250
|
+
public get body(): OneJS.Dom.Dom;
|
|
251
|
+
public get UIElementEventTypesDict(): System.Collections.Generic.Dictionary$2<string, System.Type>;
|
|
252
|
+
public FindUIElementEventType ($name: string) : System.Type
|
|
253
|
+
public addRuntimeUSS ($uss: string) : void
|
|
254
|
+
public removeRuntimeStyleSheet ($sheet: UnityEngine.UIElements.StyleSheet) : void
|
|
255
|
+
public clearRuntimeStyleSheets () : void
|
|
256
|
+
public createElement ($tagName: string) : OneJS.Dom.Dom
|
|
257
|
+
public createElement ($tagName: string, $options: OneJS.Dom.ElementCreationOptions) : OneJS.Dom.Dom
|
|
258
|
+
public createElementNS ($ns: string, $tagName: string, $options: OneJS.Dom.ElementCreationOptions) : OneJS.Dom.Dom
|
|
259
|
+
public createTextNode ($text: string) : OneJS.Dom.Dom
|
|
260
|
+
public getElementById ($id: string) : OneJS.Dom.Dom
|
|
261
|
+
public querySelectorAll ($selector: string) : System.Array$1<OneJS.Dom.Dom>
|
|
262
|
+
public loadImage ($path: string, $filterMode?: UnityEngine.FilterMode) : UnityEngine.Texture2D
|
|
263
|
+
public loadFont ($path: string) : UnityEngine.Font
|
|
264
|
+
public loadFontDefinition ($path: string) : UnityEngine.UIElements.FontDefinition
|
|
265
|
+
public static createStyleEnum ($v: number, $type: System.Type) : any
|
|
266
|
+
public static createStyleEnumWithKeyword ($keyword: UnityEngine.UIElements.StyleKeyword, $type: System.Type) : any
|
|
267
|
+
public static createStyleList ($v: any, $type: System.Type) : any
|
|
268
|
+
public static createStyleListWithKeyword ($keyword: UnityEngine.UIElements.StyleKeyword, $type: System.Type) : any
|
|
269
|
+
public constructor ($root: UnityEngine.UIElements.VisualElement, $scriptEngine: OneJS.ScriptEngine)
|
|
270
|
+
}
|
|
271
|
+
class RegisteredCallbackHolder extends System.Object
|
|
272
|
+
{
|
|
273
|
+
protected [__keep_incompatibility]: never;
|
|
274
|
+
public callback : UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>
|
|
275
|
+
public jsValue : any
|
|
276
|
+
public useCapture : boolean
|
|
277
|
+
public constructor ()
|
|
278
|
+
}
|
|
279
|
+
class DomStyle extends System.Object
|
|
280
|
+
{
|
|
281
|
+
protected [__keep_incompatibility]: never;
|
|
282
|
+
public get veStyle(): UnityEngine.UIElements.IStyle;
|
|
283
|
+
public setProperty ($key: string, $value: any) : void
|
|
284
|
+
public SetAlignContent ($value: UnityEngine.UIElements.Align) : void
|
|
285
|
+
public SetAlignItems ($value: UnityEngine.UIElements.Align) : void
|
|
286
|
+
public SetAlignSelf ($value: UnityEngine.UIElements.Align) : void
|
|
287
|
+
public SetBackgroundColor ($value: UnityEngine.Color) : void
|
|
288
|
+
public SetBackgroundImage ($value: UnityEngine.UIElements.Background) : void
|
|
289
|
+
public SetBackgroundSize ($value: UnityEngine.UIElements.BackgroundSize) : void
|
|
290
|
+
public SetBackgroundRepeat ($value: UnityEngine.UIElements.StyleBackgroundRepeat) : void
|
|
291
|
+
public SetBackgroundPosition ($value: UnityEngine.UIElements.StyleBackgroundPosition) : void
|
|
292
|
+
public SetBackgroundPositionX ($value: UnityEngine.UIElements.StyleBackgroundPosition) : void
|
|
293
|
+
public SetBackgroundPositionY ($value: UnityEngine.UIElements.StyleBackgroundPosition) : void
|
|
294
|
+
public SetBorderColor ($value: UnityEngine.Color) : void
|
|
295
|
+
public SetBorderTopColor ($value: UnityEngine.Color) : void
|
|
296
|
+
public SetBorderRightColor ($value: UnityEngine.Color) : void
|
|
297
|
+
public SetBorderBottomColor ($value: UnityEngine.Color) : void
|
|
298
|
+
public SetBorderLeftColor ($value: UnityEngine.Color) : void
|
|
299
|
+
public SetBorderWidth ($value: number) : void
|
|
300
|
+
public SetBorderTopWidth ($value: number) : void
|
|
301
|
+
public SetBorderRightWidth ($value: number) : void
|
|
302
|
+
public SetBorderBottomWidth ($value: number) : void
|
|
303
|
+
public SetBorderLeftWidth ($value: number) : void
|
|
304
|
+
public SetBorderRadius ($value: UnityEngine.UIElements.Length) : void
|
|
305
|
+
public SetBorderTopLeftRadius ($value: UnityEngine.UIElements.Length) : void
|
|
306
|
+
public SetBorderTopRightRadius ($value: UnityEngine.UIElements.Length) : void
|
|
307
|
+
public SetBorderBottomRightRadius ($value: UnityEngine.UIElements.Length) : void
|
|
308
|
+
public SetBorderBottomLeftRadius ($value: UnityEngine.UIElements.Length) : void
|
|
309
|
+
public SetBottom ($value: UnityEngine.UIElements.Length) : void
|
|
310
|
+
public SetColor ($value: UnityEngine.Color) : void
|
|
311
|
+
public SetCursor ($value: UnityEngine.UIElements.Cursor) : void
|
|
312
|
+
public SetDisplay ($value: UnityEngine.UIElements.DisplayStyle) : void
|
|
313
|
+
public SetFlexBasis ($value: UnityEngine.UIElements.StyleLength) : void
|
|
314
|
+
public SetFlexDirection ($value: UnityEngine.UIElements.FlexDirection) : void
|
|
315
|
+
public SetFlexGrow ($value: number) : void
|
|
316
|
+
public SetFlexShrink ($value: number) : void
|
|
317
|
+
public SetFlexWrap ($value: UnityEngine.UIElements.Wrap) : void
|
|
318
|
+
public SetFontSize ($value: UnityEngine.UIElements.Length) : void
|
|
319
|
+
public SetHeight ($value: UnityEngine.UIElements.Length) : void
|
|
320
|
+
public SetJustifyContent ($value: UnityEngine.UIElements.Justify) : void
|
|
321
|
+
public SetLeft ($value: UnityEngine.UIElements.Length) : void
|
|
322
|
+
public SetLetterSpacing ($value: UnityEngine.UIElements.Length) : void
|
|
323
|
+
public SetMargin ($value: UnityEngine.UIElements.Length) : void
|
|
324
|
+
public SetMarginTop ($value: UnityEngine.UIElements.Length) : void
|
|
325
|
+
public SetMarginRight ($value: UnityEngine.UIElements.Length) : void
|
|
326
|
+
public SetMarginBottom ($value: UnityEngine.UIElements.Length) : void
|
|
327
|
+
public SetMarginLeft ($value: UnityEngine.UIElements.Length) : void
|
|
328
|
+
public SetMaxHeight ($value: UnityEngine.UIElements.Length) : void
|
|
329
|
+
public SetMaxWidth ($value: UnityEngine.UIElements.Length) : void
|
|
330
|
+
public SetMinHeight ($value: UnityEngine.UIElements.Length) : void
|
|
331
|
+
public SetMinWidth ($value: UnityEngine.UIElements.Length) : void
|
|
332
|
+
public SetOpacity ($value: number) : void
|
|
333
|
+
public SetOverflow ($value: UnityEngine.UIElements.Overflow) : void
|
|
334
|
+
public SetPadding ($value: UnityEngine.UIElements.Length) : void
|
|
335
|
+
public SetPaddingTop ($value: UnityEngine.UIElements.Length) : void
|
|
336
|
+
public SetPaddingRight ($value: UnityEngine.UIElements.Length) : void
|
|
337
|
+
public SetPaddingBottom ($value: UnityEngine.UIElements.Length) : void
|
|
338
|
+
public SetPaddingLeft ($value: UnityEngine.UIElements.Length) : void
|
|
339
|
+
public SetPosition ($value: UnityEngine.UIElements.Position) : void
|
|
340
|
+
public SetRight ($value: UnityEngine.UIElements.Length) : void
|
|
341
|
+
public SetRotate ($value: UnityEngine.UIElements.Rotate) : void
|
|
342
|
+
public SetScale ($value: UnityEngine.UIElements.Scale) : void
|
|
343
|
+
public SetTextOverflow ($value: UnityEngine.UIElements.TextOverflow) : void
|
|
344
|
+
public SetTextShadow ($value: UnityEngine.UIElements.TextShadow) : void
|
|
345
|
+
public SetTop ($value: UnityEngine.UIElements.Length) : void
|
|
346
|
+
public SetTransformOrigin ($value: UnityEngine.UIElements.TransformOrigin) : void
|
|
347
|
+
public SetTransitionDelay ($value: System.Collections.Generic.List$1<UnityEngine.UIElements.TimeValue>) : void
|
|
348
|
+
public SetTransitionDuration ($value: System.Collections.Generic.List$1<UnityEngine.UIElements.TimeValue>) : void
|
|
349
|
+
public SetTransitionProperty ($value: System.Collections.Generic.List$1<UnityEngine.UIElements.StylePropertyName>) : void
|
|
350
|
+
public SetTransitionTimingFunction ($value: System.Collections.Generic.List$1<UnityEngine.UIElements.EasingFunction>) : void
|
|
351
|
+
public SetTranslate ($value: UnityEngine.UIElements.Translate) : void
|
|
352
|
+
public SetUnityBackgroundImageTintColor ($value: UnityEngine.Color) : void
|
|
353
|
+
public SetUnityBackgroundScaleMode ($value: UnityEngine.ScaleMode) : void
|
|
354
|
+
public SetUnityFont ($value: UnityEngine.Font) : void
|
|
355
|
+
public SetUnityFontDefinition ($value: UnityEngine.UIElements.FontDefinition) : void
|
|
356
|
+
public SetUnityFontStyleAndWeight ($value: UnityEngine.FontStyle) : void
|
|
357
|
+
public SetUnityOverflowClipBox ($value: UnityEngine.UIElements.OverflowClipBox) : void
|
|
358
|
+
public SetUnityParagraphSpacing ($value: UnityEngine.UIElements.Length) : void
|
|
359
|
+
public SetUnitySliceBottom ($value: number) : void
|
|
360
|
+
public SetUnitySliceLeft ($value: number) : void
|
|
361
|
+
public SetUnitySliceRight ($value: number) : void
|
|
362
|
+
public SetUnitySliceTop ($value: number) : void
|
|
363
|
+
public SetUnitySliceScale ($value: number) : void
|
|
364
|
+
public SetUnityTextAlign ($value: UnityEngine.TextAnchor) : void
|
|
365
|
+
public SetUnityTextOutlineColor ($value: UnityEngine.Color) : void
|
|
366
|
+
public SetUnityTextOutlineWidth ($value: number) : void
|
|
367
|
+
public SetUnityTextOverflowPosition ($value: UnityEngine.UIElements.TextOverflowPosition) : void
|
|
368
|
+
public SetVisibility ($value: UnityEngine.UIElements.Visibility) : void
|
|
369
|
+
public SetWhiteSpace ($value: UnityEngine.UIElements.WhiteSpace) : void
|
|
370
|
+
public SetWidth ($value: UnityEngine.UIElements.Length) : void
|
|
371
|
+
public SetWordSpacing ($value: UnityEngine.UIElements.Length) : void
|
|
372
|
+
public static GetLength ($value: any, $lengthValue: $Ref<UnityEngine.UIElements.Length>) : boolean
|
|
373
|
+
public static TryParseColorString ($s: string, $color: $Ref<UnityEngine.Color>) : boolean
|
|
374
|
+
public constructor ($dom: OneJS.Dom.Dom)
|
|
375
|
+
}
|
|
376
|
+
class Flipbook extends UnityEngine.UIElements.Image implements UnityEngine.UIElements.IStylePropertyAnimations, UnityEngine.UIElements.IVisualElementScheduler, UnityEngine.UIElements.Experimental.ITransitionAnimations, UnityEngine.UIElements.IResolvedStyle, UnityEngine.UIElements.IExperimentalFeatures, UnityEngine.UIElements.ITransform, UnityEngine.UIElements.IEventHandler
|
|
377
|
+
{
|
|
378
|
+
protected [__keep_incompatibility]: never;
|
|
379
|
+
public get src(): any;
|
|
380
|
+
public set src(value: any);
|
|
381
|
+
public get numPerRow(): number;
|
|
382
|
+
public set numPerRow(value: number);
|
|
383
|
+
public get count(): number;
|
|
384
|
+
public set count(value: number);
|
|
385
|
+
public get interval(): number;
|
|
386
|
+
public set interval(value: number);
|
|
387
|
+
public get randomRotation(): boolean;
|
|
388
|
+
public set randomRotation(value: boolean);
|
|
389
|
+
public constructor ()
|
|
390
|
+
}
|
|
391
|
+
class GradientRect extends UnityEngine.UIElements.VisualElement implements UnityEngine.UIElements.IStylePropertyAnimations, UnityEngine.UIElements.IVisualElementScheduler, UnityEngine.UIElements.Experimental.ITransitionAnimations, UnityEngine.UIElements.IResolvedStyle, UnityEngine.UIElements.IExperimentalFeatures, UnityEngine.UIElements.ITransform, UnityEngine.UIElements.IEventHandler
|
|
392
|
+
{
|
|
393
|
+
protected [__keep_incompatibility]: never;
|
|
394
|
+
public get Colors(): System.Array$1<UnityEngine.Color>;
|
|
395
|
+
public set Colors(value: System.Array$1<UnityEngine.Color>);
|
|
396
|
+
public constructor ()
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
namespace OneJS.EngineHost {
|
|
400
|
+
interface ActionCallback
|
|
401
|
+
{
|
|
402
|
+
() : void;
|
|
403
|
+
Invoke?: () => void;
|
|
404
|
+
}
|
|
405
|
+
var ActionCallback: { new (func: () => void): ActionCallback; }
|
|
406
|
+
}
|
|
407
|
+
namespace Puerts {
|
|
408
|
+
class GenericDelegate extends System.Object
|
|
409
|
+
{
|
|
410
|
+
protected [__keep_incompatibility]: never;
|
|
411
|
+
}
|
|
412
|
+
class JsEnv extends System.Object implements System.IDisposable
|
|
413
|
+
{
|
|
414
|
+
protected [__keep_incompatibility]: never;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
namespace OneJS.EditorWorkingDirInfo {
|
|
418
|
+
enum EditorBaseDir
|
|
419
|
+
{ ProjectPath = 0, PersistentDataPath = 1 }
|
|
420
|
+
}
|
|
421
|
+
namespace OneJS.PlayerWorkingDirInfo {
|
|
422
|
+
enum PlayerBaseDir
|
|
423
|
+
{ PersistentDataPath = 0, AppPath = 1 }
|
|
424
|
+
}
|
|
425
|
+
namespace OneJS.Utils {
|
|
426
|
+
class AssemblyFinder extends System.Object
|
|
427
|
+
{
|
|
428
|
+
protected [__keep_incompatibility]: never;
|
|
429
|
+
public static FindType ($name: string) : System.Type
|
|
430
|
+
public static IsValidNamespace ($namespaceName: string) : boolean
|
|
431
|
+
public static FindTypesInNamespace ($namespaceName: string) : System.Collections.Generic.List$1<System.Type>
|
|
432
|
+
public constructor ()
|
|
433
|
+
}
|
|
434
|
+
class CoroutineUtil extends UnityEngine.MonoBehaviour
|
|
435
|
+
{
|
|
436
|
+
protected [__keep_incompatibility]: never;
|
|
437
|
+
public static get Instance(): OneJS.Utils.CoroutineUtil;
|
|
438
|
+
public static Start ($routine: System.Collections.IEnumerator) : void
|
|
439
|
+
public static Stop ($routine: System.Collections.IEnumerator) : void
|
|
440
|
+
public static StopAll () : void
|
|
441
|
+
public static Chain (...actions: System.Collections.IEnumerator[]) : System.Collections.IEnumerator
|
|
442
|
+
public static DelaySeconds ($action: System.Action, $delay: number) : System.Collections.IEnumerator
|
|
443
|
+
public static DelayFrames ($action: System.Action, $delay: number) : System.Collections.IEnumerator
|
|
444
|
+
public static EndOfFrame ($action: System.Action) : System.Collections.IEnumerator
|
|
445
|
+
public static WaitForSeconds ($t: number) : System.Collections.IEnumerator
|
|
446
|
+
public static WaitForSeconds ($t: number, $action: System.Action) : System.Collections.IEnumerator
|
|
447
|
+
public static WaitForFrames ($t: number) : System.Collections.IEnumerator
|
|
448
|
+
public static Do ($action: System.Action) : System.Collections.IEnumerator
|
|
449
|
+
public constructor ()
|
|
450
|
+
}
|
|
451
|
+
class DelegateWrapper extends System.Object
|
|
452
|
+
{
|
|
453
|
+
protected [__keep_incompatibility]: never;
|
|
454
|
+
public static Wrap ($jsEnv: Puerts.JsEnv, $eventInfo: System.Reflection.EventInfo, $handler: Function) : Function
|
|
455
|
+
public GetWrapped () : Function
|
|
456
|
+
public GetAction () : System.Action
|
|
457
|
+
public constructor ($jsEnv: Puerts.JsEnv, $eventInfo: System.Reflection.EventInfo, $handler: Function)
|
|
458
|
+
}
|
|
459
|
+
class GenericDelegateWrapper extends System.Object
|
|
460
|
+
{
|
|
461
|
+
protected [__keep_incompatibility]: never;
|
|
462
|
+
public static Wrap ($jsEnv: Puerts.JsEnv, $eventInfo: System.Reflection.EventInfo, $handler: Function) : Function
|
|
463
|
+
public GetWrapped () : Function
|
|
464
|
+
public GetAction () : System.Action
|
|
465
|
+
public constructor ($jsEnv: Puerts.JsEnv, $eventInfo: System.Reflection.EventInfo, $handler: Function)
|
|
466
|
+
}
|
|
467
|
+
class GradientTextureFillJob extends System.ValueType implements Unity.Jobs.IJobParallelFor
|
|
468
|
+
{
|
|
469
|
+
protected [__keep_incompatibility]: never;
|
|
470
|
+
public colors : Unity.Collections.NativeArray$1<UnityEngine.Color32>
|
|
471
|
+
public width : number
|
|
472
|
+
public height : number
|
|
473
|
+
public topRightColor : UnityEngine.Color32
|
|
474
|
+
public static Run ($colors: Unity.Collections.NativeArray$1<UnityEngine.Color32>, $width: number, $height: number, $topRightColor: UnityEngine.Color32) : void
|
|
475
|
+
public Execute ($index: number) : void
|
|
476
|
+
}
|
|
477
|
+
class StringUtil extends System.Object
|
|
478
|
+
{
|
|
479
|
+
protected [__keep_incompatibility]: never;
|
|
480
|
+
public static SanitizeFilename ($filename: string) : string
|
|
481
|
+
public constructor ()
|
|
482
|
+
}
|
|
483
|
+
class TarCreator extends System.Object
|
|
484
|
+
{
|
|
485
|
+
protected [__keep_incompatibility]: never;
|
|
486
|
+
public get ExcludeTS(): boolean;
|
|
487
|
+
public set ExcludeTS(value: boolean);
|
|
488
|
+
public get ExcludeTSDef(): boolean;
|
|
489
|
+
public set ExcludeTSDef(value: boolean);
|
|
490
|
+
public get UglifyJS(): boolean;
|
|
491
|
+
public set UglifyJS(value: boolean);
|
|
492
|
+
public get IgnoreList(): System.Array$1<string>;
|
|
493
|
+
public set IgnoreList(value: System.Array$1<string>);
|
|
494
|
+
public get IncludeRoot(): boolean;
|
|
495
|
+
public set IncludeRoot(value: boolean);
|
|
496
|
+
public CreateTar ($tarOutputStream: ICSharpCode.SharpZipLib.Tar.TarOutputStream, $curDir?: string) : void
|
|
497
|
+
public WriteEntry ($tarOutputStream: ICSharpCode.SharpZipLib.Tar.TarOutputStream, $filepath: string, $tarName: string) : void
|
|
498
|
+
public static CreateTarManually ($tarOutputStream: ICSharpCode.SharpZipLib.Tar.TarOutputStream, $baseDir: string, $curDir?: string) : void
|
|
499
|
+
public static WriteFileEntry ($tarOutputStream: ICSharpCode.SharpZipLib.Tar.TarOutputStream, $filepath: string, $tarName: string) : void
|
|
500
|
+
public constructor ($baseDir: string, $rootDir: string)
|
|
501
|
+
}
|
|
502
|
+
class UIStyleUtil extends System.Object
|
|
503
|
+
{
|
|
504
|
+
protected [__keep_incompatibility]: never;
|
|
505
|
+
public static GetStyleFloat ($n: number) : UnityEngine.UIElements.StyleFloat
|
|
506
|
+
public static GetStyleInt ($n: number) : UnityEngine.UIElements.StyleInt
|
|
507
|
+
public constructor ()
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
namespace ICSharpCode.SharpZipLib.Tar {
|
|
511
|
+
class TarOutputStream extends System.IO.Stream implements System.IAsyncDisposable, System.IDisposable
|
|
512
|
+
{
|
|
513
|
+
protected [__keep_incompatibility]: never;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
namespace OneJS.Extensions {
|
|
517
|
+
class ColorExts extends System.Object
|
|
518
|
+
{
|
|
519
|
+
protected [__keep_incompatibility]: never;
|
|
520
|
+
public static ToVector3 ($color: UnityEngine.Color) : UnityEngine.Vector3
|
|
521
|
+
public static ToFloat3 ($color: UnityEngine.Color) : Unity.Mathematics.float3
|
|
522
|
+
public static ToFloat4 ($color: UnityEngine.Color) : Unity.Mathematics.float4
|
|
523
|
+
public static ToColor ($f4: Unity.Mathematics.float4) : UnityEngine.Color
|
|
524
|
+
public static ToColor ($f3: Unity.Mathematics.float3) : UnityEngine.Color
|
|
525
|
+
public static ToColor32 ($f3: Unity.Mathematics.float3) : UnityEngine.Color32
|
|
526
|
+
public static ToColor32 ($f4: Unity.Mathematics.float4) : UnityEngine.Color32
|
|
527
|
+
public static ToFloat3 ($color: UnityEngine.Color32) : Unity.Mathematics.float3
|
|
528
|
+
public static ToColor ($color: UnityEngine.Color32) : UnityEngine.Color
|
|
529
|
+
public static ToColor32 ($color: UnityEngine.Color) : UnityEngine.Color32
|
|
530
|
+
public static ToFloat4 ($color: UnityEngine.Color32) : Unity.Mathematics.float4
|
|
531
|
+
public static ToInt4 ($color: UnityEngine.Color32) : Unity.Mathematics.int4
|
|
532
|
+
public static ToColor32 ($color: Unity.Mathematics.int4) : UnityEngine.Color32
|
|
533
|
+
public static ToUInt ($color: UnityEngine.Color32) : number
|
|
534
|
+
public static ToColor32 ($color: number) : UnityEngine.Color32
|
|
535
|
+
}
|
|
536
|
+
class ComponentExts extends System.Object
|
|
537
|
+
{
|
|
538
|
+
protected [__keep_incompatibility]: never;
|
|
539
|
+
public static GetCopyOf ($comp: UnityEngine.Component, $other: UnityEngine.Component) : UnityEngine.Component
|
|
540
|
+
public static TryGetComp ($go: UnityEngine.GameObject, $componentName: string, $comp: $Ref<UnityEngine.Component>) : boolean
|
|
541
|
+
public static TryGetComp ($go: UnityEngine.GameObject, $componentType: System.Type, $comp: $Ref<UnityEngine.Component>) : boolean
|
|
542
|
+
public static GetComp ($comp: UnityEngine.Component, $componentName: string) : UnityEngine.Component
|
|
543
|
+
public static GetComp ($comp: UnityEngine.Component, $componentType: System.Type) : UnityEngine.Component
|
|
544
|
+
public static AddComp ($comp: UnityEngine.Component, $componentName: string) : UnityEngine.Component
|
|
545
|
+
public static AddComp ($comp: UnityEngine.Component, $componentType: System.Type) : UnityEngine.Component
|
|
546
|
+
}
|
|
547
|
+
class GameObjectExts extends System.Object
|
|
548
|
+
{
|
|
549
|
+
protected [__keep_incompatibility]: never;
|
|
550
|
+
public static TryAddComp ($go: UnityEngine.GameObject, $componentName: string) : boolean
|
|
551
|
+
public static TryAddComp ($go: UnityEngine.GameObject, $componentName: string, $comp: $Ref<UnityEngine.Component>) : boolean
|
|
552
|
+
public static AddComp ($go: UnityEngine.GameObject, $componentName: string) : UnityEngine.Component
|
|
553
|
+
public static AddComp ($go: UnityEngine.GameObject, $componentType: System.Type) : UnityEngine.Component
|
|
554
|
+
public static TryGetComp ($go: UnityEngine.GameObject, $componentName: string, $comp: $Ref<UnityEngine.Component>) : boolean
|
|
555
|
+
public static TryGetComp ($go: UnityEngine.GameObject, $componentType: System.Type, $comp: $Ref<UnityEngine.Component>) : boolean
|
|
556
|
+
public static GetComp ($go: UnityEngine.GameObject, $componentName: string) : UnityEngine.Component
|
|
557
|
+
public static GetComp ($go: UnityEngine.GameObject, $componentType: System.Type) : UnityEngine.Component
|
|
558
|
+
public static FindType ($name: string) : System.Type
|
|
559
|
+
}
|
|
560
|
+
class Texture2DExts extends System.Object
|
|
561
|
+
{
|
|
562
|
+
protected [__keep_incompatibility]: never;
|
|
563
|
+
public static GetRawDataColor32 ($texture: UnityEngine.Texture2D) : Unity.Collections.NativeArray$1<UnityEngine.Color32>
|
|
564
|
+
}
|
|
565
|
+
class TypeExts extends System.Object
|
|
566
|
+
{
|
|
567
|
+
protected [__keep_incompatibility]: never;
|
|
568
|
+
public static GetFormattedName ($type: System.Type) : string
|
|
569
|
+
public static GetBaseTypes ($type: System.Type, $includeSelf?: boolean) : System.Collections.Generic.IEnumerable$1<System.Type>
|
|
570
|
+
public static GetBaseClasses ($type: System.Type, $includeSelf?: boolean) : System.Collections.Generic.IEnumerable$1<System.Type>
|
|
571
|
+
}
|
|
572
|
+
class VisualElementExts extends System.Object
|
|
573
|
+
{
|
|
574
|
+
protected [__keep_incompatibility]: never;
|
|
575
|
+
public static Register ($cbeh: UnityEngine.UIElements.CallbackEventHandler, $eventType: System.Type, $handler: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, $useTrickleDown?: UnityEngine.UIElements.TrickleDown) : void
|
|
576
|
+
public static Unregister ($cbeh: UnityEngine.UIElements.CallbackEventHandler, $eventType: System.Type, $handler: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, $useTrickleDown?: UnityEngine.UIElements.TrickleDown) : void
|
|
577
|
+
public static ForceUpdate ($view: UnityEngine.UIElements.VisualElement) : void
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
namespace OneJS.CustomStyleSheets {
|
|
581
|
+
class CSSSpec extends System.Object
|
|
582
|
+
{
|
|
583
|
+
protected [__keep_incompatibility]: never;
|
|
584
|
+
public static GetSelectorSpecificity ($selector: string) : number
|
|
585
|
+
public static GetSelectorSpecificity ($parts: System.Array$1<OneJS.CustomStyleSheets.StyleSelectorPart>) : number
|
|
586
|
+
public static ParseSelector ($selector: string, $parts: $Ref<System.Array$1<OneJS.CustomStyleSheets.StyleSelectorPart>>) : boolean
|
|
587
|
+
}
|
|
588
|
+
class StyleSelectorPart extends System.ValueType
|
|
589
|
+
{
|
|
590
|
+
protected [__keep_incompatibility]: never;
|
|
591
|
+
public get value(): string;
|
|
592
|
+
public get type(): OneJS.CustomStyleSheets.StyleSelectorType;
|
|
593
|
+
public static CreateClass ($className: string) : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
594
|
+
public static CreatePseudoClass ($className: string) : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
595
|
+
public static CreateId ($Id: string) : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
596
|
+
public static CreateType ($t: System.Type) : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
597
|
+
public static CreateType ($typeName: string) : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
598
|
+
public static CreatePredicate ($predicate: any) : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
599
|
+
public static CreateWildCard () : OneJS.CustomStyleSheets.StyleSelectorPart
|
|
600
|
+
public ToOriginal () : any
|
|
601
|
+
}
|
|
602
|
+
class StyleValueImporter extends System.Object
|
|
603
|
+
{
|
|
604
|
+
protected [__keep_incompatibility]: never;
|
|
605
|
+
public get disableValidation(): boolean;
|
|
606
|
+
public set disableValidation(value: boolean);
|
|
607
|
+
public get importErrors(): OneJS.CustomStyleSheets.StyleSheetImportErrors;
|
|
608
|
+
public get assetPath(): string;
|
|
609
|
+
public static FromUssString ($ussValue: string) : OneJS.CustomStyleSheets.StyleValueFunction
|
|
610
|
+
}
|
|
611
|
+
class CustomStyleSheetImporterImpl extends OneJS.CustomStyleSheets.StyleValueImporter
|
|
612
|
+
{
|
|
613
|
+
protected [__keep_incompatibility]: never;
|
|
614
|
+
public BuildStyleSheet ($asset: UnityEngine.UIElements.StyleSheet, $contents: string) : void
|
|
615
|
+
public constructor ($scriptEngine: OneJS.ScriptEngine)
|
|
616
|
+
}
|
|
617
|
+
class Dimension extends System.ValueType implements System.IEquatable$1<OneJS.CustomStyleSheets.Dimension>
|
|
618
|
+
{
|
|
619
|
+
protected [__keep_incompatibility]: never;
|
|
620
|
+
public unit : OneJS.CustomStyleSheets.Dimension.Unit
|
|
621
|
+
public value : number
|
|
622
|
+
public ToLength () : UnityEngine.UIElements.Length
|
|
623
|
+
public ToTime () : UnityEngine.UIElements.TimeValue
|
|
624
|
+
public ToAngle () : UnityEngine.UIElements.Angle
|
|
625
|
+
public static op_Equality ($lhs: OneJS.CustomStyleSheets.Dimension, $rhs: OneJS.CustomStyleSheets.Dimension) : boolean
|
|
626
|
+
public static op_Inequality ($lhs: OneJS.CustomStyleSheets.Dimension, $rhs: OneJS.CustomStyleSheets.Dimension) : boolean
|
|
627
|
+
public Equals ($other: OneJS.CustomStyleSheets.Dimension) : boolean
|
|
628
|
+
public Equals ($obj: any) : boolean
|
|
629
|
+
public ToOriginal () : any
|
|
630
|
+
public constructor ($value: number, $unit: OneJS.CustomStyleSheets.Dimension.Unit)
|
|
631
|
+
}
|
|
632
|
+
class ScalableImage extends System.ValueType
|
|
633
|
+
{
|
|
634
|
+
protected [__keep_incompatibility]: never;
|
|
635
|
+
}
|
|
636
|
+
enum StyleSelectorType
|
|
637
|
+
{ Unknown = 0, Wildcard = 1, Type = 2, Class = 3, PseudoClass = 4, RecursivePseudoClass = 5, ID = 6, Predicate = 7 }
|
|
638
|
+
enum StyleSelectorRelationship
|
|
639
|
+
{ None = 0, Child = 1, Descendent = 2 }
|
|
640
|
+
enum StyleValidationStatus
|
|
641
|
+
{ Ok = 0, Error = 1, Warning = 2 }
|
|
642
|
+
class StyleValidationResult extends System.ValueType
|
|
643
|
+
{
|
|
644
|
+
protected [__keep_incompatibility]: never;
|
|
645
|
+
public status : OneJS.CustomStyleSheets.StyleValidationStatus
|
|
646
|
+
public message : string
|
|
647
|
+
public errorValue : string
|
|
648
|
+
public hint : string
|
|
649
|
+
public get success(): boolean;
|
|
650
|
+
public FromOriginal ($original: any) : void
|
|
651
|
+
}
|
|
652
|
+
enum StyleValueKeyword
|
|
653
|
+
{ Inherit = 0, Initial = 1, Auto = 2, Unset = 3, True = 4, False = 5, None = 6 }
|
|
654
|
+
enum StyleValueType
|
|
655
|
+
{ Invalid = 0, Keyword = 1, Float = 2, Dimension = 3, Color = 4, ResourcePath = 5, AssetReference = 6, Enum = 7, Variable = 8, String = 9, Function = 10, CommaSeparator = 11, ScalableImage = 12, MissingAssetReference = 13 }
|
|
656
|
+
class StyleSheetImportError extends System.ValueType
|
|
657
|
+
{
|
|
658
|
+
protected [__keep_incompatibility]: never;
|
|
659
|
+
public error : OneJS.CustomStyleSheets.StyleSheetImportErrorType
|
|
660
|
+
public code : OneJS.CustomStyleSheets.StyleSheetImportErrorCode
|
|
661
|
+
public assetPath : string
|
|
662
|
+
public message : string
|
|
663
|
+
public line : number
|
|
664
|
+
public isWarning : boolean
|
|
665
|
+
public ToString () : string
|
|
666
|
+
public ToString ($glossary: OneJS.CustomStyleSheets.StyleSheetImportGlossary) : string
|
|
667
|
+
public constructor ($error: OneJS.CustomStyleSheets.StyleSheetImportErrorType, $code: OneJS.CustomStyleSheets.StyleSheetImportErrorCode, $assetPath: string, $message: string, $line?: number, $isWarning?: boolean)
|
|
668
|
+
}
|
|
669
|
+
enum StyleSheetImportErrorType
|
|
670
|
+
{ Syntax = 0, Semantic = 1, Validation = 2, Internal = 3 }
|
|
671
|
+
enum StyleSheetImportErrorCode
|
|
672
|
+
{ None = 0, Internal = 1, UnsupportedUnit = 2, UnsupportedTerm = 3, InvalidSelectorListDelimiter = 4, InvalidComplexSelectorDelimiter = 5, UnsupportedSelectorFormat = 6, RecursiveSelectorDetected = 7, MissingFunctionArgument = 8, InvalidProperty = 9, InvalidURILocation = 10, InvalidURIScheme = 11, InvalidURIProjectAssetPath = 12, InvalidVarFunction = 13, InvalidHighResolutionImage = 14 }
|
|
673
|
+
class StyleSheetImportGlossary extends System.Object
|
|
674
|
+
{
|
|
675
|
+
protected [__keep_incompatibility]: never;
|
|
676
|
+
public internalError : string
|
|
677
|
+
public internalErrorWithStackTrace : string
|
|
678
|
+
public error : string
|
|
679
|
+
public warning : string
|
|
680
|
+
public line : string
|
|
681
|
+
public unsupportedUnit : string
|
|
682
|
+
public ussParsingError : string
|
|
683
|
+
public unsupportedTerm : string
|
|
684
|
+
public missingFunctionArgument : string
|
|
685
|
+
public missingVariableName : string
|
|
686
|
+
public emptyVariableName : string
|
|
687
|
+
public tooManyFunctionArguments : string
|
|
688
|
+
public emptyFunctionArgument : string
|
|
689
|
+
public unexpectedTokenInFunction : string
|
|
690
|
+
public missingVariablePrefix : string
|
|
691
|
+
public invalidHighResAssetType : string
|
|
692
|
+
public invalidSelectorListDelimiter : string
|
|
693
|
+
public invalidComplexSelectorDelimiter : string
|
|
694
|
+
public unsupportedSelectorFormat : string
|
|
695
|
+
public unknownFunction : string
|
|
696
|
+
public circularImport : string
|
|
697
|
+
public invalidUriLocation : string
|
|
698
|
+
public invalidUriScheme : string
|
|
699
|
+
public invalidAssetPath : string
|
|
700
|
+
public invalidAssetType : string
|
|
701
|
+
public constructor ()
|
|
702
|
+
}
|
|
703
|
+
class StyleSheetImportErrors extends System.Object implements System.Collections.Generic.IEnumerable$1<OneJS.CustomStyleSheets.StyleSheetImportError>, System.Collections.IEnumerable
|
|
704
|
+
{
|
|
705
|
+
protected [__keep_incompatibility]: never;
|
|
706
|
+
public get assetPath(): string;
|
|
707
|
+
public set assetPath(value: string);
|
|
708
|
+
public get hasErrors(): boolean;
|
|
709
|
+
public get hasWarning(): boolean;
|
|
710
|
+
public AddSyntaxError ($message: string, $line: number) : void
|
|
711
|
+
public AddSemanticError ($code: OneJS.CustomStyleSheets.StyleSheetImportErrorCode, $message: string, $line: number) : void
|
|
712
|
+
public AddSemanticWarning ($code: OneJS.CustomStyleSheets.StyleSheetImportErrorCode, $message: string, $line: number) : void
|
|
713
|
+
public AddInternalError ($message: string, $line?: number) : void
|
|
714
|
+
public AddValidationWarning ($message: string, $line: number) : void
|
|
715
|
+
public GetEnumerator () : System.Collections.Generic.IEnumerator$1<OneJS.CustomStyleSheets.StyleSheetImportError>
|
|
716
|
+
public constructor ()
|
|
717
|
+
}
|
|
718
|
+
enum StyleValueFunction
|
|
719
|
+
{ Unknown = 0, Var = 1, Env = 2, LinearGradient = 3 }
|
|
720
|
+
enum URIValidationResult
|
|
721
|
+
{ OK = 0, InvalidURILocation = 1, InvalidURIScheme = 2, InvalidURIProjectAssetPath = 3 }
|
|
722
|
+
class StyleSheetBuilderWrapper extends System.Object
|
|
723
|
+
{
|
|
724
|
+
protected [__keep_incompatibility]: never;
|
|
725
|
+
public BuildTo ($styleSheet: UnityEngine.UIElements.StyleSheet) : void
|
|
726
|
+
public AddCommaSeparator () : void
|
|
727
|
+
public BeginComplexSelector ($specificity: number) : System.IDisposable
|
|
728
|
+
public AddSimpleSelector ($parts: System.Array$1<OneJS.CustomStyleSheets.StyleSelectorPart>, $previousRelationsip: OneJS.CustomStyleSheets.StyleSelectorRelationship) : void
|
|
729
|
+
public BeginRule ($line: number) : void
|
|
730
|
+
public EndRule () : void
|
|
731
|
+
public BeginProperty ($name: string, $line: number) : void
|
|
732
|
+
public EndProperty () : void
|
|
733
|
+
public AddValue ($func: OneJS.CustomStyleSheets.StyleValueFunction) : void
|
|
734
|
+
public AddValue ($val: number) : void
|
|
735
|
+
public AddValue ($color: UnityEngine.Color) : void
|
|
736
|
+
public AddValue ($value: UnityEngine.Object) : void
|
|
737
|
+
public AddValue ($dimension: OneJS.CustomStyleSheets.Dimension) : void
|
|
738
|
+
public AddValue ($keyword: OneJS.CustomStyleSheets.StyleValueKeyword) : void
|
|
739
|
+
public AddValue ($value: string, $type: OneJS.CustomStyleSheets.StyleValueType) : void
|
|
740
|
+
public constructor ()
|
|
741
|
+
}
|
|
742
|
+
class StyleValidatorWrapper extends System.Object
|
|
743
|
+
{
|
|
744
|
+
protected [__keep_incompatibility]: never;
|
|
745
|
+
public ValidateProperty ($name: string, $str: string) : OneJS.CustomStyleSheets.StyleValidationResult
|
|
746
|
+
public constructor ()
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
namespace OneJS.CustomStyleSheets.Dimension {
|
|
750
|
+
enum Unit
|
|
751
|
+
{ Unitless = 0, Pixel = 1, Percent = 2, Second = 3, Millisecond = 4, Degree = 5, Gradian = 6, Radian = 7, Turn = 8 }
|
|
752
|
+
}
|
|
753
|
+
namespace OneJS.Dom.Dom {
|
|
754
|
+
interface RegisterCallbackDelegate
|
|
755
|
+
{
|
|
756
|
+
(ve: UnityEngine.UIElements.VisualElement, callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, trickleDown: UnityEngine.UIElements.TrickleDown) : void;
|
|
757
|
+
Invoke?: (ve: UnityEngine.UIElements.VisualElement, callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, trickleDown: UnityEngine.UIElements.TrickleDown) => void;
|
|
758
|
+
}
|
|
759
|
+
var RegisterCallbackDelegate: { new (func: (ve: UnityEngine.UIElements.VisualElement, callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, trickleDown: UnityEngine.UIElements.TrickleDown) => void): RegisterCallbackDelegate; }
|
|
760
|
+
}
|
|
761
|
+
}
|