onejs-core 0.3.46 → 1.0.6
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.
|
@@ -14,6 +14,13 @@ declare namespace CS {
|
|
|
14
14
|
// }
|
|
15
15
|
// interface $Task<T> {}
|
|
16
16
|
namespace OneJS {
|
|
17
|
+
class WebApi extends System.Object
|
|
18
|
+
{
|
|
19
|
+
protected [__keep_incompatibility]: never;
|
|
20
|
+
public static getText ($uri: string, $callback: System.Action$1<string>) : UnityEngine.Coroutine
|
|
21
|
+
public static getImage ($uri: string, $callback: System.Action$1<UnityEngine.Texture2D>) : UnityEngine.Coroutine
|
|
22
|
+
public constructor ()
|
|
23
|
+
}
|
|
17
24
|
class EventfulPropertyAttribute extends System.Attribute implements System.Runtime.InteropServices._Attribute
|
|
18
25
|
{
|
|
19
26
|
protected [__keep_incompatibility]: never;
|
|
@@ -400,6 +407,14 @@ declare namespace CS {
|
|
|
400
407
|
public set Colors(value: System.Array$1<UnityEngine.Color>);
|
|
401
408
|
public constructor ()
|
|
402
409
|
}
|
|
410
|
+
class Img extends UnityEngine.UIElements.VisualElement implements UnityEngine.UIElements.Experimental.ITransitionAnimations, UnityEngine.UIElements.IVisualElementScheduler, UnityEngine.UIElements.IResolvedStyle, UnityEngine.UIElements.IStylePropertyAnimations, UnityEngine.UIElements.IEventHandler, UnityEngine.UIElements.IExperimentalFeatures, UnityEngine.UIElements.ITransform
|
|
411
|
+
{
|
|
412
|
+
protected [__keep_incompatibility]: never;
|
|
413
|
+
public get Src(): string;
|
|
414
|
+
public set Src(value: string);
|
|
415
|
+
public SetSrc ($src: string) : void
|
|
416
|
+
public constructor ()
|
|
417
|
+
}
|
|
403
418
|
}
|
|
404
419
|
namespace OneJS.EngineHost {
|
|
405
420
|
interface ActionCallback
|
package/definitions/jsx.d.ts
CHANGED
|
@@ -469,6 +469,10 @@ declare global {
|
|
|
469
469
|
* OneJS Elements
|
|
470
470
|
*/
|
|
471
471
|
|
|
472
|
+
interface Img extends Image {
|
|
473
|
+
src?: string
|
|
474
|
+
}
|
|
475
|
+
|
|
472
476
|
interface GradientRect extends VisualElement {
|
|
473
477
|
colors?: Color[]
|
|
474
478
|
}
|
|
@@ -527,8 +531,9 @@ declare global {
|
|
|
527
531
|
dropdownfield: DropdownField
|
|
528
532
|
|
|
529
533
|
// /* OneJS Custom */
|
|
534
|
+
img: Img
|
|
530
535
|
gradientrect: GradientRect
|
|
531
|
-
|
|
536
|
+
flipbook: Flipbook
|
|
532
537
|
// simplelistview: SimpleListView
|
|
533
538
|
}
|
|
534
539
|
}
|
package/package.json
CHANGED