onejs-core 3.0.3 → 3.0.5

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