@reactunity/renderer 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/models/base.d.ts +6 -5
- package/dist/src/models/generated/react.d.ts +491 -367
- package/dist/src/models/generated/react.js +1 -1
- package/dist/src/models/properties/styles.d.ts +4 -4
- package/dist/src/models/properties/values.d.ts +7 -0
- package/dist/src/models/ugui/components.d.ts +3 -2
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RefAttributes } from 'react';
|
|
2
2
|
import { ReactUnity } from './generated';
|
|
3
|
+
import { HttpSource } from './properties';
|
|
3
4
|
declare type BaseCmp = ReactUnity.IReactComponent;
|
|
4
5
|
export declare type AnimationCallback<T = BaseCmp> = (ev: ReactUnity.Styling.Animations.AnimationEvent, sender: T) => void;
|
|
5
6
|
export declare type TransitionCallback<T = BaseCmp> = (ev: ReactUnity.Styling.Animations.TransitionEvent, sender: T) => void;
|
|
@@ -9,10 +10,10 @@ export interface BaseEvents<T = BaseCmp> {
|
|
|
9
10
|
onAnimationIteration?: AnimationCallback<T>;
|
|
10
11
|
onAnimationCancel?: AnimationCallback<T>;
|
|
11
12
|
onAnimationEnd?: AnimationCallback<T>;
|
|
12
|
-
onTransitionRun?:
|
|
13
|
-
onTransitionStart?:
|
|
14
|
-
onTransitionCancel?:
|
|
15
|
-
onTransitionEnd?:
|
|
13
|
+
onTransitionRun?: TransitionCallback<T>;
|
|
14
|
+
onTransitionStart?: TransitionCallback<T>;
|
|
15
|
+
onTransitionCancel?: TransitionCallback<T>;
|
|
16
|
+
onTransitionEnd?: TransitionCallback<T>;
|
|
16
17
|
}
|
|
17
18
|
export declare type Textable = string | number | boolean | null | undefined;
|
|
18
19
|
export interface BaseCmpProps {
|
|
@@ -23,7 +24,7 @@ export interface BaseCmpProps {
|
|
|
23
24
|
}
|
|
24
25
|
export interface ContentSrcProps extends BaseCmpProps {
|
|
25
26
|
content?: string;
|
|
26
|
-
source?: string;
|
|
27
|
+
source?: string | HttpSource;
|
|
27
28
|
}
|
|
28
29
|
export interface StyleCmpProps extends ContentSrcProps {
|
|
29
30
|
active?: boolean;
|
|
@@ -595,256 +595,6 @@ export declare namespace ReactUnity {
|
|
|
595
595
|
GetType(): System.Type;
|
|
596
596
|
ToString(): string;
|
|
597
597
|
}
|
|
598
|
-
namespace Converters {
|
|
599
|
-
class AllConverters {
|
|
600
|
-
constructor();
|
|
601
|
-
static DefaultConverter: ReactUnity.Converters.IStyleConverter;
|
|
602
|
-
static StringConverter: ReactUnity.Converters.IStyleConverter;
|
|
603
|
-
static FloatConverter: ReactUnity.Converters.IStyleConverter;
|
|
604
|
-
static AngleConverter: ReactUnity.Converters.IStyleConverter;
|
|
605
|
-
static LengthConverter: ReactUnity.Converters.IStyleConverter;
|
|
606
|
-
static FontSizeConverter: ReactUnity.Converters.IStyleConverter;
|
|
607
|
-
static DurationConverter: ReactUnity.Converters.IStyleConverter;
|
|
608
|
-
static PercentageConverter: ReactUnity.Converters.IStyleConverter;
|
|
609
|
-
static ColorValueConverter: ReactUnity.Converters.IStyleConverter;
|
|
610
|
-
static UrlConverter: ReactUnity.Converters.IStyleConverter;
|
|
611
|
-
static GeneralConverter: ReactUnity.Converters.IStyleConverter;
|
|
612
|
-
static YogaValueConverter: ReactUnity.Converters.IStyleConverter;
|
|
613
|
-
static YogaValue2Converter: ReactUnity.Converters.IStyleConverter;
|
|
614
|
-
static BorderRadiusConverter: ReactUnity.Converters.IStyleConverter;
|
|
615
|
-
static Vector2Converter: ReactUnity.Converters.IStyleConverter;
|
|
616
|
-
static Vector3Converter: ReactUnity.Converters.IStyleConverter;
|
|
617
|
-
static IntConverter: ReactUnity.Converters.IStyleConverter;
|
|
618
|
-
static IterationCountConverter: ReactUnity.Converters.IStyleConverter;
|
|
619
|
-
static BoolConverter: ReactUnity.Converters.IStyleConverter;
|
|
620
|
-
static ColorConverter: ReactUnity.Converters.IStyleConverter;
|
|
621
|
-
static BoxShadowConverter: ReactUnity.Converters.IStyleConverter;
|
|
622
|
-
static ImageReferenceConverter: ReactUnity.Converters.IStyleConverter;
|
|
623
|
-
static ImageSourceConverter: ReactUnity.Converters.IStyleConverter;
|
|
624
|
-
static TextReferenceConverter: ReactUnity.Converters.IStyleConverter;
|
|
625
|
-
static AudioReferenceConverter: ReactUnity.Converters.IStyleConverter;
|
|
626
|
-
static VideoReferenceConverter: ReactUnity.Converters.IStyleConverter;
|
|
627
|
-
static FontReferenceConverter: ReactUnity.Converters.IStyleConverter;
|
|
628
|
-
static RotateConverter: ReactUnity.Converters.IStyleConverter;
|
|
629
|
-
static ScaleConverter: ReactUnity.Converters.IStyleConverter;
|
|
630
|
-
static TransitionPropertyConverter: ReactUnity.Converters.IStyleConverter;
|
|
631
|
-
static CursorListConverter: ReactUnity.Converters.IStyleConverter;
|
|
632
|
-
static TimingFunctionConverter: ReactUnity.Converters.IStyleConverter;
|
|
633
|
-
static FontWeightConverter: ReactUnity.Converters.IStyleConverter;
|
|
634
|
-
static ImageDefinitionConverter: ReactUnity.Converters.IStyleConverter;
|
|
635
|
-
static BackgroundSizeConverter: ReactUnity.Converters.IStyleConverter;
|
|
636
|
-
static Get(type: System.Type): ReactUnity.Converters.GeneralConverter;
|
|
637
|
-
Equals(obj: any): boolean;
|
|
638
|
-
GetHashCode(): number;
|
|
639
|
-
GetType(): System.Type;
|
|
640
|
-
ToString(): string;
|
|
641
|
-
}
|
|
642
|
-
class BoolConverter {
|
|
643
|
-
constructor(truthyValues: string[], falsyValues: string[]);
|
|
644
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
645
|
-
Convert(value: any): any;
|
|
646
|
-
Parse(value: string): any;
|
|
647
|
-
static IsTruthy(obj: any): boolean;
|
|
648
|
-
Equals(obj: any): boolean;
|
|
649
|
-
GetHashCode(): number;
|
|
650
|
-
GetType(): System.Type;
|
|
651
|
-
ToString(): string;
|
|
652
|
-
}
|
|
653
|
-
class ColorConverter {
|
|
654
|
-
constructor();
|
|
655
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
656
|
-
Parse(value: string): any;
|
|
657
|
-
Convert(value: any): any;
|
|
658
|
-
Equals(obj: any): boolean;
|
|
659
|
-
GetHashCode(): number;
|
|
660
|
-
GetType(): System.Type;
|
|
661
|
-
ToString(): string;
|
|
662
|
-
}
|
|
663
|
-
class CountConverter {
|
|
664
|
-
constructor();
|
|
665
|
-
AllowFloats: boolean;
|
|
666
|
-
AllowInfinite: boolean;
|
|
667
|
-
InfiniteValue: number;
|
|
668
|
-
Min: number;
|
|
669
|
-
Max: number;
|
|
670
|
-
FloatConverter: ReactUnity.Converters.FloatConverter;
|
|
671
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
672
|
-
Validate(value: number): any;
|
|
673
|
-
Parse(value: string): any;
|
|
674
|
-
Convert(value: any): any;
|
|
675
|
-
Equals(obj: any): boolean;
|
|
676
|
-
GetHashCode(): number;
|
|
677
|
-
GetType(): System.Type;
|
|
678
|
-
ToString(): string;
|
|
679
|
-
}
|
|
680
|
-
class EnumConverter<T = any> {
|
|
681
|
-
constructor(allowFlags: boolean, keywordOnly: boolean);
|
|
682
|
-
constructor(keywordOnly: boolean);
|
|
683
|
-
EnumType: System.Type;
|
|
684
|
-
AllowFlags: boolean;
|
|
685
|
-
KeywordOnly: boolean;
|
|
686
|
-
Convert(value: any): any;
|
|
687
|
-
Parse(value: string): any;
|
|
688
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
689
|
-
Equals(obj: any): boolean;
|
|
690
|
-
GetHashCode(): number;
|
|
691
|
-
GetType(): System.Type;
|
|
692
|
-
ToString(): string;
|
|
693
|
-
}
|
|
694
|
-
class FloatConverter {
|
|
695
|
-
constructor();
|
|
696
|
-
constructor(suffixMap: Record<string, number>, suffixMapper?: Record<string, ((arg0: number) => any)>, allowSuffixless?: boolean);
|
|
697
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
698
|
-
Parse(value: string): any;
|
|
699
|
-
Convert(value: any): any;
|
|
700
|
-
Equals(obj: any): boolean;
|
|
701
|
-
GetHashCode(): number;
|
|
702
|
-
GetType(): System.Type;
|
|
703
|
-
ToString(): string;
|
|
704
|
-
}
|
|
705
|
-
class PercentageConverter {
|
|
706
|
-
constructor();
|
|
707
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
708
|
-
Parse(value: string): any;
|
|
709
|
-
Convert(value: any): any;
|
|
710
|
-
Equals(obj: any): boolean;
|
|
711
|
-
GetHashCode(): number;
|
|
712
|
-
GetType(): System.Type;
|
|
713
|
-
ToString(): string;
|
|
714
|
-
}
|
|
715
|
-
class ColorValueConverter {
|
|
716
|
-
constructor();
|
|
717
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
718
|
-
Parse(value: string): any;
|
|
719
|
-
Convert(value: any): any;
|
|
720
|
-
Equals(obj: any): boolean;
|
|
721
|
-
GetHashCode(): number;
|
|
722
|
-
GetType(): System.Type;
|
|
723
|
-
ToString(): string;
|
|
724
|
-
}
|
|
725
|
-
class LengthConverter {
|
|
726
|
-
constructor();
|
|
727
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
728
|
-
Parse(value: string): any;
|
|
729
|
-
Convert(value: any): any;
|
|
730
|
-
Equals(obj: any): boolean;
|
|
731
|
-
GetHashCode(): number;
|
|
732
|
-
GetType(): System.Type;
|
|
733
|
-
ToString(): string;
|
|
734
|
-
}
|
|
735
|
-
class FontSizeConverter {
|
|
736
|
-
constructor();
|
|
737
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
738
|
-
Parse(value: string): any;
|
|
739
|
-
Convert(value: any): any;
|
|
740
|
-
Equals(obj: any): boolean;
|
|
741
|
-
GetHashCode(): number;
|
|
742
|
-
GetType(): System.Type;
|
|
743
|
-
ToString(): string;
|
|
744
|
-
}
|
|
745
|
-
class AngleConverter {
|
|
746
|
-
constructor();
|
|
747
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
748
|
-
Parse(value: string): any;
|
|
749
|
-
Convert(value: any): any;
|
|
750
|
-
Equals(obj: any): boolean;
|
|
751
|
-
GetHashCode(): number;
|
|
752
|
-
GetType(): System.Type;
|
|
753
|
-
ToString(): string;
|
|
754
|
-
}
|
|
755
|
-
class DurationConverter {
|
|
756
|
-
constructor();
|
|
757
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
758
|
-
Parse(value: string): any;
|
|
759
|
-
Convert(value: any): any;
|
|
760
|
-
Equals(obj: any): boolean;
|
|
761
|
-
GetHashCode(): number;
|
|
762
|
-
GetType(): System.Type;
|
|
763
|
-
ToString(): string;
|
|
764
|
-
}
|
|
765
|
-
class GeneralConverter {
|
|
766
|
-
constructor(baseConverter?: ReactUnity.Converters.IStyleConverter);
|
|
767
|
-
static Wrap(baseConverter: ReactUnity.Converters.IStyleConverter): ReactUnity.Converters.GeneralConverter;
|
|
768
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
769
|
-
Convert(value: any): any;
|
|
770
|
-
Parse(value: string): any;
|
|
771
|
-
Equals(obj: any): boolean;
|
|
772
|
-
GetHashCode(): number;
|
|
773
|
-
GetType(): System.Type;
|
|
774
|
-
ToString(): string;
|
|
775
|
-
}
|
|
776
|
-
class IntConverter {
|
|
777
|
-
constructor();
|
|
778
|
-
FloatParser: ReactUnity.Converters.FloatConverter;
|
|
779
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
780
|
-
Parse(value: string): any;
|
|
781
|
-
Convert(value: any): any;
|
|
782
|
-
Equals(obj: any): boolean;
|
|
783
|
-
GetHashCode(): number;
|
|
784
|
-
GetType(): System.Type;
|
|
785
|
-
ToString(): string;
|
|
786
|
-
}
|
|
787
|
-
interface IStyleParser {
|
|
788
|
-
Parse(value: string): any;
|
|
789
|
-
}
|
|
790
|
-
interface IStyleConverter {
|
|
791
|
-
Convert(value: any): any;
|
|
792
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
793
|
-
}
|
|
794
|
-
class StringConverter {
|
|
795
|
-
constructor();
|
|
796
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
797
|
-
Convert(value: any): any;
|
|
798
|
-
Parse(value: string): any;
|
|
799
|
-
static Normalize(value: string): string;
|
|
800
|
-
Equals(obj: any): boolean;
|
|
801
|
-
GetHashCode(): number;
|
|
802
|
-
GetType(): System.Type;
|
|
803
|
-
ToString(): string;
|
|
804
|
-
}
|
|
805
|
-
class UrlConverter {
|
|
806
|
-
constructor();
|
|
807
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
808
|
-
Convert(value: any): any;
|
|
809
|
-
Parse(value: string): any;
|
|
810
|
-
Equals(obj: any): boolean;
|
|
811
|
-
GetHashCode(): number;
|
|
812
|
-
GetType(): System.Type;
|
|
813
|
-
ToString(): string;
|
|
814
|
-
}
|
|
815
|
-
class Vector2Converter {
|
|
816
|
-
constructor();
|
|
817
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
818
|
-
Parse(value: string): any;
|
|
819
|
-
Convert(value: any): any;
|
|
820
|
-
Equals(obj: any): boolean;
|
|
821
|
-
GetHashCode(): number;
|
|
822
|
-
GetType(): System.Type;
|
|
823
|
-
ToString(): string;
|
|
824
|
-
}
|
|
825
|
-
class Vector3Converter {
|
|
826
|
-
constructor(singleValueMode?: ((arg0: number) => UnityEngine.Vector3), floatParser?: ReactUnity.Converters.IStyleConverter, defaultZValue?: number);
|
|
827
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
828
|
-
Parse(value: string): any;
|
|
829
|
-
Convert(value: any): any;
|
|
830
|
-
Equals(obj: any): boolean;
|
|
831
|
-
GetHashCode(): number;
|
|
832
|
-
GetType(): System.Type;
|
|
833
|
-
ToString(): string;
|
|
834
|
-
}
|
|
835
|
-
class YogaValueConverter {
|
|
836
|
-
constructor(allowHorizontal?: boolean, allowVertical?: boolean);
|
|
837
|
-
static Horizontal: ReactUnity.Converters.YogaValueConverter;
|
|
838
|
-
static Vertical: ReactUnity.Converters.YogaValueConverter;
|
|
839
|
-
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
840
|
-
Parse(value: string): any;
|
|
841
|
-
Convert(value: any): any;
|
|
842
|
-
Equals(obj: any): boolean;
|
|
843
|
-
GetHashCode(): number;
|
|
844
|
-
GetType(): System.Type;
|
|
845
|
-
ToString(): string;
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
598
|
namespace Editor {
|
|
849
599
|
class ReactElementDrawer {
|
|
850
600
|
constructor();
|
|
@@ -2703,11 +2453,13 @@ export declare namespace ReactUnity {
|
|
|
2703
2453
|
Execute(code: string, fileName?: string): void;
|
|
2704
2454
|
TryExecute(code: string, fileName?: string): System.Exception;
|
|
2705
2455
|
GetValue(key: string): any;
|
|
2456
|
+
ClearValue(key: string): void;
|
|
2706
2457
|
CreateTypeReference(type: System.Type): any;
|
|
2707
2458
|
CreateNamespaceReference(ns: string, ...assemblies: System.Reflection.Assembly[]): any;
|
|
2708
|
-
|
|
2459
|
+
CreateScriptObject(props: System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, any>>): any;
|
|
2709
2460
|
Dispose(): void;
|
|
2710
2461
|
TraverseScriptObject(obj: any): System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, any>>;
|
|
2462
|
+
IsScriptObject(obj: any): boolean;
|
|
2711
2463
|
Equals(obj: any): boolean;
|
|
2712
2464
|
GetHashCode(): number;
|
|
2713
2465
|
GetType(): System.Type;
|
|
@@ -2733,8 +2485,10 @@ export declare namespace ReactUnity {
|
|
|
2733
2485
|
Execute(code: string, fileName?: string): void;
|
|
2734
2486
|
TryExecute(code: string, fileName?: string): System.Exception;
|
|
2735
2487
|
Evaluate(code: string, fileName?: string): any;
|
|
2488
|
+
ClearValue(key: string): void;
|
|
2736
2489
|
GetValue(key: string): any;
|
|
2737
|
-
|
|
2490
|
+
CreateScriptObject(props: System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, any>>): any;
|
|
2491
|
+
IsScriptObject(obj: any): boolean;
|
|
2738
2492
|
CreateTypeReference(type: System.Type): any;
|
|
2739
2493
|
CreateNamespaceReference(ns: string, ...assemblies: System.Reflection.Assembly[]): any;
|
|
2740
2494
|
TraverseScriptObject(obj: any): System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, any>>;
|
|
@@ -2752,11 +2506,13 @@ export declare namespace ReactUnity {
|
|
|
2752
2506
|
Execute(code: string, fileName?: string): void;
|
|
2753
2507
|
TryExecute(code: string, fileName?: string): System.Exception;
|
|
2754
2508
|
GetValue(key: string): any;
|
|
2509
|
+
ClearValue(key: string): void;
|
|
2755
2510
|
CreateTypeReference(type: System.Type): any;
|
|
2756
2511
|
CreateNamespaceReference(ns: string, ...assemblies: System.Reflection.Assembly[]): any;
|
|
2757
|
-
|
|
2512
|
+
CreateScriptObject(props: System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, any>>): any;
|
|
2758
2513
|
Dispose(): void;
|
|
2759
2514
|
TraverseScriptObject(obj: any): System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, any>>;
|
|
2515
|
+
IsScriptObject(obj: any): boolean;
|
|
2760
2516
|
Equals(obj: any): boolean;
|
|
2761
2517
|
GetHashCode(): number;
|
|
2762
2518
|
GetType(): System.Type;
|
|
@@ -2872,17 +2628,11 @@ export declare namespace ReactUnity {
|
|
|
2872
2628
|
namespace DomProxies {
|
|
2873
2629
|
class ConsoleProxy {
|
|
2874
2630
|
constructor(ctx: ReactUnity.ReactContext);
|
|
2875
|
-
log(msg: any): void;
|
|
2876
2631
|
log(msg: any, ...subs: any[]): void;
|
|
2877
|
-
info(msg: any): void;
|
|
2878
2632
|
info(msg: any, ...subs: any[]): void;
|
|
2879
|
-
debug(msg: any): void;
|
|
2880
2633
|
debug(msg: any, ...subs: any[]): void;
|
|
2881
|
-
warn(msg: any): void;
|
|
2882
2634
|
warn(msg: any, ...subs: any[]): void;
|
|
2883
|
-
error(msg: any): void;
|
|
2884
2635
|
error(msg: any, ...subs: any[]): void;
|
|
2885
|
-
dir(msg: any): void;
|
|
2886
2636
|
dir(msg: any, ...subs: any[]): void;
|
|
2887
2637
|
count(msg?: any): number;
|
|
2888
2638
|
clear(): void;
|
|
@@ -3320,6 +3070,7 @@ export declare namespace ReactUnity {
|
|
|
3320
3070
|
}
|
|
3321
3071
|
namespace Styling {
|
|
3322
3072
|
class CssFunctions {
|
|
3073
|
+
static Calc: ReactUnity.Styling.ICssFunction;
|
|
3323
3074
|
static Steps: ReactUnity.Styling.ICssFunction;
|
|
3324
3075
|
static CubicBezier: ReactUnity.Styling.ICssFunction;
|
|
3325
3076
|
static Url: ReactUnity.Styling.ICssFunction;
|
|
@@ -3339,18 +3090,16 @@ export declare namespace ReactUnity {
|
|
|
3339
3090
|
interface ICssFunction {
|
|
3340
3091
|
Name: string;
|
|
3341
3092
|
CanHandleArguments(count: number, name: string, args: string[]): boolean;
|
|
3342
|
-
Call(name: string, args: string[], argsCombined: string): any;
|
|
3093
|
+
Call(name: string, args: string[], argsCombined: string, converter: ReactUnity.Styling.Converters.StyleConverterBase): any;
|
|
3343
3094
|
}
|
|
3344
3095
|
enum CssKeyword {
|
|
3345
3096
|
NoKeyword = 0,
|
|
3346
|
-
Invalid = 1,
|
|
3347
3097
|
Initial = 2,
|
|
3348
3098
|
Inherit = 3,
|
|
3349
3099
|
Auto = 4,
|
|
3350
3100
|
None = 5,
|
|
3351
3101
|
Unset = 6,
|
|
3352
|
-
Default = 7
|
|
3353
|
-
CurrentColor = 8
|
|
3102
|
+
Default = 7
|
|
3354
3103
|
}
|
|
3355
3104
|
class CssProperties {
|
|
3356
3105
|
static PropertyMap: any;
|
|
@@ -3479,7 +3228,7 @@ export declare namespace ReactUnity {
|
|
|
3479
3228
|
zIndex: number;
|
|
3480
3229
|
visibility: boolean;
|
|
3481
3230
|
position: ReactUnity.Types.PositionType;
|
|
3482
|
-
cursor: ReactUnity.Types.
|
|
3231
|
+
cursor: ReactUnity.Types.ICssValueList<ReactUnity.Types.Cursor>;
|
|
3483
3232
|
pointerEvents: ReactUnity.Types.PointerEvents;
|
|
3484
3233
|
borderTopLeftRadius: ReactUnity.Types.YogaValue2;
|
|
3485
3234
|
borderTopRightRadius: ReactUnity.Types.YogaValue2;
|
|
@@ -3569,7 +3318,6 @@ export declare namespace ReactUnity {
|
|
|
3569
3318
|
inherited: boolean;
|
|
3570
3319
|
affectsLayout: boolean;
|
|
3571
3320
|
GetStyle(style: ReactUnity.Styling.NodeStyle): any;
|
|
3572
|
-
Convert(value: any): any;
|
|
3573
3321
|
}
|
|
3574
3322
|
class LayoutProperties {
|
|
3575
3323
|
static StyleDirection: any;
|
|
@@ -3632,7 +3380,7 @@ export declare namespace ReactUnity {
|
|
|
3632
3380
|
interface ILayoutProperty {
|
|
3633
3381
|
}
|
|
3634
3382
|
class LayoutProperty<T = any> {
|
|
3635
|
-
constructor(name: string, transitionable?: boolean, defaultValue?: T, converter?: ReactUnity.Converters.
|
|
3383
|
+
constructor(name: string, transitionable?: boolean, defaultValue?: T, converter?: ReactUnity.Styling.Converters.StyleConverterBase);
|
|
3636
3384
|
affectsLayout: boolean;
|
|
3637
3385
|
name: string;
|
|
3638
3386
|
type: System.Type;
|
|
@@ -3640,10 +3388,9 @@ export declare namespace ReactUnity {
|
|
|
3640
3388
|
transitionable: boolean;
|
|
3641
3389
|
inherited: boolean;
|
|
3642
3390
|
ModifiedProperties: ReactUnity.Styling.IStyleProperty[];
|
|
3643
|
-
converter: ReactUnity.Converters.
|
|
3644
|
-
Convert(value: any):
|
|
3391
|
+
converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
3392
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
3645
3393
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
3646
|
-
Parse(value: string): any;
|
|
3647
3394
|
GetHashCode(): number;
|
|
3648
3395
|
Equals(obj: any): boolean;
|
|
3649
3396
|
GetStyle(style: ReactUnity.Styling.NodeStyle): any;
|
|
@@ -3733,7 +3480,7 @@ export declare namespace ReactUnity {
|
|
|
3733
3480
|
ToString(): string;
|
|
3734
3481
|
}
|
|
3735
3482
|
class StyleProperty<T = any> {
|
|
3736
|
-
constructor(name: string, initialValue?: any, transitionable?: boolean, inherited?: boolean, converter?: ReactUnity.Converters.
|
|
3483
|
+
constructor(name: string, initialValue?: any, transitionable?: boolean, inherited?: boolean, converter?: ReactUnity.Styling.Converters.StyleConverterBase);
|
|
3737
3484
|
name: string;
|
|
3738
3485
|
type: System.Type;
|
|
3739
3486
|
defaultValue: any;
|
|
@@ -3741,10 +3488,9 @@ export declare namespace ReactUnity {
|
|
|
3741
3488
|
inherited: boolean;
|
|
3742
3489
|
affectsLayout: boolean;
|
|
3743
3490
|
ModifiedProperties: ReactUnity.Styling.IStyleProperty[];
|
|
3744
|
-
converter: ReactUnity.Converters.
|
|
3745
|
-
Convert(value: any):
|
|
3491
|
+
converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
3492
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
3746
3493
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
3747
|
-
Parse(value: string): any;
|
|
3748
3494
|
GetHashCode(): number;
|
|
3749
3495
|
Equals(obj: any): boolean;
|
|
3750
3496
|
GetStyle(style: ReactUnity.Styling.NodeStyle): any;
|
|
@@ -3753,8 +3499,10 @@ export declare namespace ReactUnity {
|
|
|
3753
3499
|
ToString(): string;
|
|
3754
3500
|
}
|
|
3755
3501
|
class ValueListStyleProperty<T = any> {
|
|
3756
|
-
constructor(name: string, initialValue
|
|
3757
|
-
constructor(name: string,
|
|
3502
|
+
constructor(name: string, initialValue: any, transitionable: boolean, inherited: boolean, converter: ReactUnity.Styling.Converters.StyleConverterBase);
|
|
3503
|
+
constructor(name: string, initialValue?: T[], transitionable?: boolean, inherited?: boolean, baseConverter?: ReactUnity.Styling.Converters.StyleConverterBase);
|
|
3504
|
+
constructor(name: string, emptyValue: T, transitionable?: boolean, inherited?: boolean, baseConverter?: ReactUnity.Styling.Converters.StyleConverterBase);
|
|
3505
|
+
Converter: ReactUnity.Types.CssValueList<T>;
|
|
3758
3506
|
name: string;
|
|
3759
3507
|
type: System.Type;
|
|
3760
3508
|
defaultValue: any;
|
|
@@ -3762,10 +3510,9 @@ export declare namespace ReactUnity {
|
|
|
3762
3510
|
inherited: boolean;
|
|
3763
3511
|
affectsLayout: boolean;
|
|
3764
3512
|
ModifiedProperties: ReactUnity.Styling.IStyleProperty[];
|
|
3765
|
-
converter: ReactUnity.Converters.
|
|
3766
|
-
Convert(value: any):
|
|
3513
|
+
converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
3514
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
3767
3515
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
3768
|
-
Parse(value: string): any;
|
|
3769
3516
|
GetHashCode(): number;
|
|
3770
3517
|
Equals(obj: any): boolean;
|
|
3771
3518
|
GetStyle(style: ReactUnity.Styling.NodeStyle): any;
|
|
@@ -3783,7 +3530,7 @@ export declare namespace ReactUnity {
|
|
|
3783
3530
|
noneValue: any;
|
|
3784
3531
|
affectsLayout: boolean;
|
|
3785
3532
|
ModifiedProperties: ReactUnity.Styling.IStyleProperty[];
|
|
3786
|
-
Convert(value: any):
|
|
3533
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
3787
3534
|
GetStyle(style: ReactUnity.Styling.NodeStyle): any;
|
|
3788
3535
|
GetHashCode(): number;
|
|
3789
3536
|
Equals(obj: any): boolean;
|
|
@@ -3992,11 +3739,7 @@ export declare namespace ReactUnity {
|
|
|
3992
3739
|
static Interpolate(from: UnityEngine.Vector4, to: UnityEngine.Vector4, t: number, timingFunction: ReactUnity.Styling.Animations.TimingFunction): UnityEngine.Vector4;
|
|
3993
3740
|
static Interpolate(from: UnityEngine.Quaternion, to: UnityEngine.Quaternion, t: number, timingFunction: ReactUnity.Styling.Animations.TimingFunction): UnityEngine.Quaternion;
|
|
3994
3741
|
static Interpolate(from: any, to: any, t: number): any;
|
|
3995
|
-
static Interpolate(from: any, to: any, t: number, type: System.Type): any;
|
|
3996
3742
|
static Interpolate(from: any, to: any, t: number, timingFunction: ReactUnity.Styling.Animations.TimingFunction): any;
|
|
3997
|
-
static Interpolate(from: any, to: any, t: number, timingFunction: ReactUnity.Styling.Animations.TimingFunction, type: System.Type): any;
|
|
3998
|
-
static Interpolate(from: any, to: any, t: number, timingFunctionType: ReactUnity.Styling.Animations.TimingFunctionType): any;
|
|
3999
|
-
static Interpolate(from: any, to: any, t: number, timingFunctionType: ReactUnity.Styling.Animations.TimingFunctionType, type: System.Type): any;
|
|
4000
3743
|
Equals(obj: any): boolean;
|
|
4001
3744
|
GetHashCode(): number;
|
|
4002
3745
|
GetType(): System.Type;
|
|
@@ -4077,8 +3820,7 @@ export declare namespace ReactUnity {
|
|
|
4077
3820
|
class TimingFunctions_Converter {
|
|
4078
3821
|
constructor();
|
|
4079
3822
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4080
|
-
Convert(value: any):
|
|
4081
|
-
Parse(value: string): any;
|
|
3823
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4082
3824
|
Equals(obj: any): boolean;
|
|
4083
3825
|
GetHashCode(): number;
|
|
4084
3826
|
GetType(): System.Type;
|
|
@@ -4087,8 +3829,7 @@ export declare namespace ReactUnity {
|
|
|
4087
3829
|
class TransitionProperty_Converter {
|
|
4088
3830
|
constructor();
|
|
4089
3831
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4090
|
-
Convert(value: any):
|
|
4091
|
-
Parse(value: string): any;
|
|
3832
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4092
3833
|
Equals(obj: any): boolean;
|
|
4093
3834
|
GetHashCode(): number;
|
|
4094
3835
|
GetType(): System.Type;
|
|
@@ -4096,18 +3837,44 @@ export declare namespace ReactUnity {
|
|
|
4096
3837
|
}
|
|
4097
3838
|
}
|
|
4098
3839
|
namespace Computed {
|
|
3840
|
+
class ComputedCalc {
|
|
3841
|
+
constructor(values: System.Collections.Generic.IList<ReactUnity.Styling.Computed.IComputedValue>, operators: System.Collections.Generic.IList<ReactUnity.Styling.Computed.ComputedCalc_CalcOperator>, converter: ReactUnity.Styling.Converters.StyleConverterBase);
|
|
3842
|
+
Values: System.Collections.Generic.IList<ReactUnity.Styling.Computed.IComputedValue>;
|
|
3843
|
+
Operators: System.Collections.Generic.IList<ReactUnity.Styling.Computed.ComputedCalc_CalcOperator>;
|
|
3844
|
+
Converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
3845
|
+
AllowUnitless: boolean;
|
|
3846
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3847
|
+
static Create(values: any, operators: any, converter: ReactUnity.Styling.Converters.StyleConverterBase, allConstants?: boolean): ReactUnity.Styling.Computed.IComputedValue;
|
|
3848
|
+
Equals(obj: any): boolean;
|
|
3849
|
+
GetHashCode(): number;
|
|
3850
|
+
ToString(): string;
|
|
3851
|
+
GetType(): System.Type;
|
|
3852
|
+
}
|
|
3853
|
+
class ComputedCompound {
|
|
3854
|
+
constructor(values: ReactUnity.Styling.Computed.IComputedValue[], converters: ReactUnity.Styling.Converters.StyleConverterBase[], callback: ReactUnity.Styling.Computed.ComputedCompound_CompoundCallback);
|
|
3855
|
+
Callback: ReactUnity.Styling.Computed.ComputedCompound_CompoundCallback;
|
|
3856
|
+
Values: ReactUnity.Styling.Computed.IComputedValue[];
|
|
3857
|
+
Converters: ReactUnity.Styling.Converters.StyleConverterBase[];
|
|
3858
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3859
|
+
static Create(values: ReactUnity.Styling.Computed.IComputedValue[], converters: ReactUnity.Styling.Converters.StyleConverterBase[], callback: ReactUnity.Styling.Computed.ComputedCompound_CompoundCallback, allConstants?: boolean): ReactUnity.Styling.Computed.IComputedValue;
|
|
3860
|
+
Equals(obj: any): boolean;
|
|
3861
|
+
GetHashCode(): number;
|
|
3862
|
+
ToString(): string;
|
|
3863
|
+
GetType(): System.Type;
|
|
3864
|
+
}
|
|
4099
3865
|
class ComputedConstant {
|
|
4100
3866
|
constructor(value: any);
|
|
4101
3867
|
Value: any;
|
|
4102
|
-
|
|
3868
|
+
ConstantValue: any;
|
|
3869
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3870
|
+
ToString(): string;
|
|
4103
3871
|
Equals(obj: any): boolean;
|
|
4104
3872
|
GetHashCode(): number;
|
|
4105
|
-
ToString(): string;
|
|
4106
3873
|
GetType(): System.Type;
|
|
4107
3874
|
}
|
|
4108
3875
|
class ComputedCurrentColor {
|
|
4109
3876
|
static Instance: ReactUnity.Styling.Computed.ComputedCurrentColor;
|
|
4110
|
-
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle): any;
|
|
3877
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4111
3878
|
Equals(obj: any): boolean;
|
|
4112
3879
|
GetHashCode(): number;
|
|
4113
3880
|
ToString(): string;
|
|
@@ -4116,7 +3883,7 @@ export declare namespace ReactUnity {
|
|
|
4116
3883
|
class ComputedDynamic {
|
|
4117
3884
|
constructor(value: any);
|
|
4118
3885
|
Value: any;
|
|
4119
|
-
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle): any;
|
|
3886
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4120
3887
|
Equals(obj: any): boolean;
|
|
4121
3888
|
GetHashCode(): number;
|
|
4122
3889
|
ToString(): string;
|
|
@@ -4126,7 +3893,7 @@ export declare namespace ReactUnity {
|
|
|
4126
3893
|
constructor(ratio: number);
|
|
4127
3894
|
static Default: ReactUnity.Styling.Computed.ComputedFontSize;
|
|
4128
3895
|
Ratio: number;
|
|
4129
|
-
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle): any;
|
|
3896
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4130
3897
|
Equals(obj: any): boolean;
|
|
4131
3898
|
GetHashCode(): number;
|
|
4132
3899
|
ToString(): string;
|
|
@@ -4137,7 +3904,51 @@ export declare namespace ReactUnity {
|
|
|
4137
3904
|
From: ReactUnity.Styling.Computed.IComputedValue;
|
|
4138
3905
|
To: ReactUnity.Styling.Computed.IComputedValue;
|
|
4139
3906
|
Ratio: number;
|
|
4140
|
-
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle): any;
|
|
3907
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3908
|
+
static Create(from: ReactUnity.Styling.Computed.IComputedValue, to: ReactUnity.Styling.Computed.IComputedValue, ratio: number): ReactUnity.Styling.Computed.IComputedValue;
|
|
3909
|
+
Equals(obj: any): boolean;
|
|
3910
|
+
GetHashCode(): number;
|
|
3911
|
+
ToString(): string;
|
|
3912
|
+
GetType(): System.Type;
|
|
3913
|
+
}
|
|
3914
|
+
class ComputedKeyword {
|
|
3915
|
+
constructor(keyword: ReactUnity.Styling.CssKeyword);
|
|
3916
|
+
Keyword: ReactUnity.Styling.CssKeyword;
|
|
3917
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3918
|
+
Equals(obj: any): boolean;
|
|
3919
|
+
GetHashCode(): number;
|
|
3920
|
+
ToString(): string;
|
|
3921
|
+
GetType(): System.Type;
|
|
3922
|
+
}
|
|
3923
|
+
class ComputedList {
|
|
3924
|
+
constructor(values: System.Collections.Generic.IList<ReactUnity.Styling.Computed.IComputedValue>, converter: ReactUnity.Styling.Converters.StyleConverterBase, callback: ReactUnity.Styling.Computed.ComputedList_CompoundCallback, defaultValue?: any);
|
|
3925
|
+
Callback: ReactUnity.Styling.Computed.ComputedList_CompoundCallback;
|
|
3926
|
+
Values: System.Collections.Generic.IList<ReactUnity.Styling.Computed.IComputedValue>;
|
|
3927
|
+
Converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
3928
|
+
DefaultValue: any;
|
|
3929
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3930
|
+
static Create(values: any, converter: ReactUnity.Styling.Converters.StyleConverterBase, callback: ReactUnity.Styling.Computed.ComputedList_CompoundCallback, defaultValue?: any, allConstants?: boolean): ReactUnity.Styling.Computed.IComputedValue;
|
|
3931
|
+
Equals(obj: any): boolean;
|
|
3932
|
+
GetHashCode(): number;
|
|
3933
|
+
ToString(): string;
|
|
3934
|
+
GetType(): System.Type;
|
|
3935
|
+
}
|
|
3936
|
+
class ComputedMapper {
|
|
3937
|
+
constructor(value: ReactUnity.Styling.Computed.IComputedValue, converter: ReactUnity.Styling.Converters.StyleConverterBase, callback: ReactUnity.Styling.Computed.ComputedMapper_MapCallback);
|
|
3938
|
+
Callback: ReactUnity.Styling.Computed.ComputedMapper_MapCallback;
|
|
3939
|
+
Value: ReactUnity.Styling.Computed.IComputedValue;
|
|
3940
|
+
Converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
3941
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3942
|
+
static Create(value: ReactUnity.Styling.Computed.IComputedValue, converter: ReactUnity.Styling.Converters.StyleConverterBase, callback: ReactUnity.Styling.Computed.ComputedMapper_MapCallback): ReactUnity.Styling.Computed.IComputedValue;
|
|
3943
|
+
Equals(obj: any): boolean;
|
|
3944
|
+
GetHashCode(): number;
|
|
3945
|
+
ToString(): string;
|
|
3946
|
+
GetType(): System.Type;
|
|
3947
|
+
}
|
|
3948
|
+
class ComputedPercentage {
|
|
3949
|
+
constructor(value: number);
|
|
3950
|
+
Value: number;
|
|
3951
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4141
3952
|
Equals(obj: any): boolean;
|
|
4142
3953
|
GetHashCode(): number;
|
|
4143
3954
|
ToString(): string;
|
|
@@ -4147,7 +3958,25 @@ export declare namespace ReactUnity {
|
|
|
4147
3958
|
constructor(ratio: number, type: ReactUnity.Styling.Computed.ComputedRootRelative_RootValueType);
|
|
4148
3959
|
Ratio: number;
|
|
4149
3960
|
Type: ReactUnity.Styling.Computed.ComputedRootRelative_RootValueType;
|
|
4150
|
-
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle): any;
|
|
3961
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3962
|
+
Equals(obj: any): boolean;
|
|
3963
|
+
GetHashCode(): number;
|
|
3964
|
+
ToString(): string;
|
|
3965
|
+
GetType(): System.Type;
|
|
3966
|
+
}
|
|
3967
|
+
class ComputedShorthandVariable {
|
|
3968
|
+
Variable: ReactUnity.Styling.Computed.IComputedValue;
|
|
3969
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3970
|
+
Equals(obj: any): boolean;
|
|
3971
|
+
GetHashCode(): number;
|
|
3972
|
+
ToString(): string;
|
|
3973
|
+
GetType(): System.Type;
|
|
3974
|
+
}
|
|
3975
|
+
class ComputedStringTemplate {
|
|
3976
|
+
constructor(template: System.Collections.Generic.IList<string>, variables: System.Collections.Generic.IList<ReactUnity.Styling.Computed.ComputedVariable>);
|
|
3977
|
+
Template: System.Collections.Generic.IList<string>;
|
|
3978
|
+
Variables: System.Collections.Generic.IList<ReactUnity.Styling.Computed.ComputedVariable>;
|
|
3979
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4151
3980
|
Equals(obj: any): boolean;
|
|
4152
3981
|
GetHashCode(): number;
|
|
4153
3982
|
ToString(): string;
|
|
@@ -4157,14 +3986,87 @@ export declare namespace ReactUnity {
|
|
|
4157
3986
|
constructor(prop: ReactUnity.Styling.VariableProperty, fallbackValue: any);
|
|
4158
3987
|
Property: ReactUnity.Styling.VariableProperty;
|
|
4159
3988
|
FallbackValue: any;
|
|
4160
|
-
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle): any;
|
|
3989
|
+
GetValue(prop: ReactUnity.Styling.IStyleProperty, style: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4161
3990
|
Equals(obj: any): boolean;
|
|
4162
3991
|
GetHashCode(): number;
|
|
4163
3992
|
ToString(): string;
|
|
4164
3993
|
GetType(): System.Type;
|
|
4165
3994
|
}
|
|
4166
3995
|
interface IComputedValue {
|
|
4167
|
-
GetValue(targetProp: ReactUnity.Styling.IStyleProperty, targetStyle: ReactUnity.Styling.NodeStyle): any;
|
|
3996
|
+
GetValue(targetProp: ReactUnity.Styling.IStyleProperty, targetStyle: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
3997
|
+
}
|
|
3998
|
+
interface IComputedConstant {
|
|
3999
|
+
ConstantValue: any;
|
|
4000
|
+
}
|
|
4001
|
+
class ComputedValueExtensions {
|
|
4002
|
+
static ResolveValue(cv: ReactUnity.Styling.Computed.IComputedValue, targetProp: ReactUnity.Styling.IStyleProperty, targetStyle: ReactUnity.Styling.NodeStyle, converter: ReactUnity.Styling.Converters.IStyleConverter): any;
|
|
4003
|
+
Equals(obj: any): boolean;
|
|
4004
|
+
GetHashCode(): number;
|
|
4005
|
+
GetType(): System.Type;
|
|
4006
|
+
ToString(): string;
|
|
4007
|
+
}
|
|
4008
|
+
enum ComputedCalc_CalcOperator {
|
|
4009
|
+
None = 0,
|
|
4010
|
+
Add = 1,
|
|
4011
|
+
Subtract = 2,
|
|
4012
|
+
Multiply = 3,
|
|
4013
|
+
Divide = 4
|
|
4014
|
+
}
|
|
4015
|
+
class ComputedCalc_CalcValue {
|
|
4016
|
+
Value: number;
|
|
4017
|
+
HasUnit: boolean;
|
|
4018
|
+
Equals(obj: any): boolean;
|
|
4019
|
+
GetHashCode(): number;
|
|
4020
|
+
ToString(): string;
|
|
4021
|
+
GetType(): System.Type;
|
|
4022
|
+
}
|
|
4023
|
+
class ComputedCompound_CompoundCallback {
|
|
4024
|
+
constructor(object: any, method: System.IntPtr);
|
|
4025
|
+
Method: System.Reflection.MethodInfo;
|
|
4026
|
+
Target: any;
|
|
4027
|
+
Invoke(values: any[]): any;
|
|
4028
|
+
BeginInvoke(values: any[], callback: System.AsyncCallback, object: any): System.IAsyncResult;
|
|
4029
|
+
EndInvoke(result: System.IAsyncResult): any;
|
|
4030
|
+
GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
|
|
4031
|
+
Equals(obj: any): boolean;
|
|
4032
|
+
GetHashCode(): number;
|
|
4033
|
+
GetInvocationList(): System.Delegate[];
|
|
4034
|
+
DynamicInvoke(...args: any[]): any;
|
|
4035
|
+
Clone(): any;
|
|
4036
|
+
GetType(): System.Type;
|
|
4037
|
+
ToString(): string;
|
|
4038
|
+
}
|
|
4039
|
+
class ComputedList_CompoundCallback {
|
|
4040
|
+
constructor(object: any, method: System.IntPtr);
|
|
4041
|
+
Method: System.Reflection.MethodInfo;
|
|
4042
|
+
Target: any;
|
|
4043
|
+
Invoke(values: any[]): any;
|
|
4044
|
+
BeginInvoke(values: any[], callback: System.AsyncCallback, object: any): System.IAsyncResult;
|
|
4045
|
+
EndInvoke(result: System.IAsyncResult): any;
|
|
4046
|
+
GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
|
|
4047
|
+
Equals(obj: any): boolean;
|
|
4048
|
+
GetHashCode(): number;
|
|
4049
|
+
GetInvocationList(): System.Delegate[];
|
|
4050
|
+
DynamicInvoke(...args: any[]): any;
|
|
4051
|
+
Clone(): any;
|
|
4052
|
+
GetType(): System.Type;
|
|
4053
|
+
ToString(): string;
|
|
4054
|
+
}
|
|
4055
|
+
class ComputedMapper_MapCallback {
|
|
4056
|
+
constructor(object: any, method: System.IntPtr);
|
|
4057
|
+
Method: System.Reflection.MethodInfo;
|
|
4058
|
+
Target: any;
|
|
4059
|
+
Invoke(value: any): any;
|
|
4060
|
+
BeginInvoke(value: any, callback: System.AsyncCallback, object: any): System.IAsyncResult;
|
|
4061
|
+
EndInvoke(result: System.IAsyncResult): any;
|
|
4062
|
+
GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
|
|
4063
|
+
Equals(obj: any): boolean;
|
|
4064
|
+
GetHashCode(): number;
|
|
4065
|
+
GetInvocationList(): System.Delegate[];
|
|
4066
|
+
DynamicInvoke(...args: any[]): any;
|
|
4067
|
+
Clone(): any;
|
|
4068
|
+
GetType(): System.Type;
|
|
4069
|
+
ToString(): string;
|
|
4168
4070
|
}
|
|
4169
4071
|
enum ComputedRootRelative_RootValueType {
|
|
4170
4072
|
None = 0,
|
|
@@ -4175,6 +4077,271 @@ export declare namespace ReactUnity {
|
|
|
4175
4077
|
Rem = 5
|
|
4176
4078
|
}
|
|
4177
4079
|
}
|
|
4080
|
+
namespace Converters {
|
|
4081
|
+
class AllConverters {
|
|
4082
|
+
constructor();
|
|
4083
|
+
static DefaultConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4084
|
+
static StringConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4085
|
+
static FloatConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4086
|
+
static AngleConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4087
|
+
static LengthConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4088
|
+
static FontSizeConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4089
|
+
static DurationConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4090
|
+
static PercentageConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4091
|
+
static ColorValueConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4092
|
+
static UrlConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4093
|
+
static YogaValueConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4094
|
+
static YogaValue2Converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4095
|
+
static BorderRadiusConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4096
|
+
static Vector2Converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4097
|
+
static Vector3Converter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4098
|
+
static IntConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4099
|
+
static IterationCountConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4100
|
+
static BoolConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4101
|
+
static ColorConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4102
|
+
static BoxShadowConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4103
|
+
static ImageReferenceConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4104
|
+
static ImageSourceConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4105
|
+
static TextReferenceConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4106
|
+
static AudioReferenceConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4107
|
+
static VideoReferenceConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4108
|
+
static FontReferenceConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4109
|
+
static RotateConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4110
|
+
static ScaleConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4111
|
+
static TransitionPropertyConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4112
|
+
static CursorConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4113
|
+
static TimingFunctionConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4114
|
+
static FontWeightConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4115
|
+
static ImageDefinitionConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4116
|
+
static BackgroundSizeConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4117
|
+
static Get(type: System.Type): ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4118
|
+
Equals(obj: any): boolean;
|
|
4119
|
+
GetHashCode(): number;
|
|
4120
|
+
GetType(): System.Type;
|
|
4121
|
+
ToString(): string;
|
|
4122
|
+
}
|
|
4123
|
+
class BoolConverter {
|
|
4124
|
+
constructor(truthyValues: string[], falsyValues: string[]);
|
|
4125
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4126
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4127
|
+
Equals(obj: any): boolean;
|
|
4128
|
+
GetHashCode(): number;
|
|
4129
|
+
GetType(): System.Type;
|
|
4130
|
+
ToString(): string;
|
|
4131
|
+
}
|
|
4132
|
+
class ColorConverter {
|
|
4133
|
+
constructor();
|
|
4134
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4135
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4136
|
+
Equals(obj: any): boolean;
|
|
4137
|
+
GetHashCode(): number;
|
|
4138
|
+
GetType(): System.Type;
|
|
4139
|
+
ToString(): string;
|
|
4140
|
+
}
|
|
4141
|
+
class EnumConverter<T = any> {
|
|
4142
|
+
constructor(allowFlags: boolean, keywordOnly: boolean);
|
|
4143
|
+
constructor(keywordOnly: boolean);
|
|
4144
|
+
EnumType: System.Type;
|
|
4145
|
+
AllowFlags: boolean;
|
|
4146
|
+
KeywordOnly: boolean;
|
|
4147
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4148
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4149
|
+
Equals(obj: any): boolean;
|
|
4150
|
+
GetHashCode(): number;
|
|
4151
|
+
GetType(): System.Type;
|
|
4152
|
+
ToString(): string;
|
|
4153
|
+
}
|
|
4154
|
+
class FloatConverter {
|
|
4155
|
+
constructor();
|
|
4156
|
+
constructor(suffixMap: Record<string, number>, suffixMapper?: Record<string, ((arg0: number) => any)>, allowSuffixless?: boolean);
|
|
4157
|
+
AllowSuffixless: boolean;
|
|
4158
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4159
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4160
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4161
|
+
Equals(obj: any): boolean;
|
|
4162
|
+
GetHashCode(): number;
|
|
4163
|
+
GetType(): System.Type;
|
|
4164
|
+
ToString(): string;
|
|
4165
|
+
}
|
|
4166
|
+
class PercentageConverter {
|
|
4167
|
+
constructor();
|
|
4168
|
+
AllowSuffixless: boolean;
|
|
4169
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4170
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4171
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4172
|
+
Equals(obj: any): boolean;
|
|
4173
|
+
GetHashCode(): number;
|
|
4174
|
+
GetType(): System.Type;
|
|
4175
|
+
ToString(): string;
|
|
4176
|
+
}
|
|
4177
|
+
class ColorValueConverter {
|
|
4178
|
+
constructor();
|
|
4179
|
+
AllowSuffixless: boolean;
|
|
4180
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4181
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4182
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4183
|
+
Equals(obj: any): boolean;
|
|
4184
|
+
GetHashCode(): number;
|
|
4185
|
+
GetType(): System.Type;
|
|
4186
|
+
ToString(): string;
|
|
4187
|
+
}
|
|
4188
|
+
class LengthConverter {
|
|
4189
|
+
constructor();
|
|
4190
|
+
AllowSuffixless: boolean;
|
|
4191
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4192
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4193
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4194
|
+
Equals(obj: any): boolean;
|
|
4195
|
+
GetHashCode(): number;
|
|
4196
|
+
GetType(): System.Type;
|
|
4197
|
+
ToString(): string;
|
|
4198
|
+
}
|
|
4199
|
+
class FontSizeConverter {
|
|
4200
|
+
constructor();
|
|
4201
|
+
AllowSuffixless: boolean;
|
|
4202
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4203
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4204
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4205
|
+
Equals(obj: any): boolean;
|
|
4206
|
+
GetHashCode(): number;
|
|
4207
|
+
GetType(): System.Type;
|
|
4208
|
+
ToString(): string;
|
|
4209
|
+
}
|
|
4210
|
+
class AngleConverter {
|
|
4211
|
+
constructor();
|
|
4212
|
+
AllowSuffixless: boolean;
|
|
4213
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4214
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4215
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4216
|
+
Equals(obj: any): boolean;
|
|
4217
|
+
GetHashCode(): number;
|
|
4218
|
+
GetType(): System.Type;
|
|
4219
|
+
ToString(): string;
|
|
4220
|
+
}
|
|
4221
|
+
class DurationConverter {
|
|
4222
|
+
constructor();
|
|
4223
|
+
AllowSuffixless: boolean;
|
|
4224
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
4225
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4226
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4227
|
+
Equals(obj: any): boolean;
|
|
4228
|
+
GetHashCode(): number;
|
|
4229
|
+
GetType(): System.Type;
|
|
4230
|
+
ToString(): string;
|
|
4231
|
+
}
|
|
4232
|
+
class CalcConverter {
|
|
4233
|
+
constructor(baseConverter: ReactUnity.Styling.Converters.FloatConverter);
|
|
4234
|
+
BaseConverter: ReactUnity.Styling.Converters.FloatConverter;
|
|
4235
|
+
BasePercentage: boolean;
|
|
4236
|
+
AllowsUnitless: boolean;
|
|
4237
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4238
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4239
|
+
Equals(obj: any): boolean;
|
|
4240
|
+
GetHashCode(): number;
|
|
4241
|
+
GetType(): System.Type;
|
|
4242
|
+
ToString(): string;
|
|
4243
|
+
}
|
|
4244
|
+
class IntConverter {
|
|
4245
|
+
constructor();
|
|
4246
|
+
AllowFloats: boolean;
|
|
4247
|
+
AllowInfinite: boolean;
|
|
4248
|
+
InfiniteValue: number;
|
|
4249
|
+
Min: number;
|
|
4250
|
+
Max: number;
|
|
4251
|
+
FloatConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4252
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4253
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4254
|
+
Equals(obj: any): boolean;
|
|
4255
|
+
GetHashCode(): number;
|
|
4256
|
+
GetType(): System.Type;
|
|
4257
|
+
ToString(): string;
|
|
4258
|
+
}
|
|
4259
|
+
class CountConverter {
|
|
4260
|
+
constructor();
|
|
4261
|
+
AllowFloats: boolean;
|
|
4262
|
+
AllowInfinite: boolean;
|
|
4263
|
+
InfiniteValue: number;
|
|
4264
|
+
Min: number;
|
|
4265
|
+
Max: number;
|
|
4266
|
+
FloatConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4267
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4268
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4269
|
+
Equals(obj: any): boolean;
|
|
4270
|
+
GetHashCode(): number;
|
|
4271
|
+
GetType(): System.Type;
|
|
4272
|
+
ToString(): string;
|
|
4273
|
+
}
|
|
4274
|
+
class StringConverter {
|
|
4275
|
+
constructor();
|
|
4276
|
+
static Normalize(value: string): string;
|
|
4277
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4278
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4279
|
+
Equals(obj: any): boolean;
|
|
4280
|
+
GetHashCode(): number;
|
|
4281
|
+
GetType(): System.Type;
|
|
4282
|
+
ToString(): string;
|
|
4283
|
+
}
|
|
4284
|
+
interface IStyleConverter {
|
|
4285
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4286
|
+
}
|
|
4287
|
+
class StyleConverterBase {
|
|
4288
|
+
constructor();
|
|
4289
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4290
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4291
|
+
Equals(obj: any): boolean;
|
|
4292
|
+
GetHashCode(): number;
|
|
4293
|
+
GetType(): System.Type;
|
|
4294
|
+
ToString(): string;
|
|
4295
|
+
}
|
|
4296
|
+
class TypedStyleConverterBase<T = any> {
|
|
4297
|
+
constructor();
|
|
4298
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4299
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4300
|
+
Equals(obj: any): boolean;
|
|
4301
|
+
GetHashCode(): number;
|
|
4302
|
+
GetType(): System.Type;
|
|
4303
|
+
ToString(): string;
|
|
4304
|
+
}
|
|
4305
|
+
class UrlConverter {
|
|
4306
|
+
constructor();
|
|
4307
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4308
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4309
|
+
Equals(obj: any): boolean;
|
|
4310
|
+
GetHashCode(): number;
|
|
4311
|
+
GetType(): System.Type;
|
|
4312
|
+
ToString(): string;
|
|
4313
|
+
}
|
|
4314
|
+
class Vector2Converter {
|
|
4315
|
+
constructor(allowLiterals?: boolean);
|
|
4316
|
+
AllowLiterals: boolean;
|
|
4317
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4318
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4319
|
+
Equals(obj: any): boolean;
|
|
4320
|
+
GetHashCode(): number;
|
|
4321
|
+
GetType(): System.Type;
|
|
4322
|
+
ToString(): string;
|
|
4323
|
+
}
|
|
4324
|
+
class Vector3Converter {
|
|
4325
|
+
constructor(singleValueMode?: ((arg0: number) => UnityEngine.Vector3), floatParser?: ReactUnity.Styling.Converters.StyleConverterBase, defaultZValue?: number);
|
|
4326
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4327
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4328
|
+
Equals(obj: any): boolean;
|
|
4329
|
+
GetHashCode(): number;
|
|
4330
|
+
GetType(): System.Type;
|
|
4331
|
+
ToString(): string;
|
|
4332
|
+
}
|
|
4333
|
+
class YogaValueConverter {
|
|
4334
|
+
constructor(allowHorizontal?: boolean, allowVertical?: boolean);
|
|
4335
|
+
static Horizontal: ReactUnity.Styling.Converters.YogaValueConverter;
|
|
4336
|
+
static Vertical: ReactUnity.Styling.Converters.YogaValueConverter;
|
|
4337
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4338
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4339
|
+
Equals(obj: any): boolean;
|
|
4340
|
+
GetHashCode(): number;
|
|
4341
|
+
GetType(): System.Type;
|
|
4342
|
+
ToString(): string;
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4178
4345
|
namespace Rules {
|
|
4179
4346
|
interface IMediaProvider {
|
|
4180
4347
|
MediaType: string;
|
|
@@ -4222,7 +4389,6 @@ export declare namespace ReactUnity {
|
|
|
4222
4389
|
static ConvertStyleDeclarationToRecord(rule: any, important: boolean): any;
|
|
4223
4390
|
static ConvertStyleDeclarationToRecord(dc: any): any;
|
|
4224
4391
|
static NormalizeSelector(selector: string): string;
|
|
4225
|
-
static GetCssKeyword(value: string): ReactUnity.Styling.CssKeyword;
|
|
4226
4392
|
Equals(obj: any): boolean;
|
|
4227
4393
|
GetHashCode(): number;
|
|
4228
4394
|
GetType(): System.Type;
|
|
@@ -4428,14 +4594,11 @@ export declare namespace ReactUnity {
|
|
|
4428
4594
|
Data = 8,
|
|
4429
4595
|
Path = 9
|
|
4430
4596
|
}
|
|
4431
|
-
class
|
|
4432
|
-
constructor(
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
static None: any;
|
|
4437
|
-
Get(context: ReactUnity.ReactContext, callback: ((arg0: AssetType) => void)): void;
|
|
4438
|
-
Dispose(): void;
|
|
4597
|
+
class BaseConverter<AssetType = any, T = any> {
|
|
4598
|
+
constructor(allowWithoutUrl?: boolean);
|
|
4599
|
+
AllowWithoutUrl: boolean;
|
|
4600
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4601
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4439
4602
|
Equals(obj: any): boolean;
|
|
4440
4603
|
GetHashCode(): number;
|
|
4441
4604
|
GetType(): System.Type;
|
|
@@ -4528,8 +4691,6 @@ export declare namespace ReactUnity {
|
|
|
4528
4691
|
blur: UnityEngine.Vector2;
|
|
4529
4692
|
inset: boolean;
|
|
4530
4693
|
Definition: string;
|
|
4531
|
-
static ColorParser: ReactUnity.Converters.ColorConverter;
|
|
4532
|
-
static FloatParser: ReactUnity.Converters.FloatConverter;
|
|
4533
4694
|
static Default: ReactUnity.Types.BoxShadow;
|
|
4534
4695
|
static DefaultInset: ReactUnity.Types.BoxShadow;
|
|
4535
4696
|
Interpolate(to: any, t: number): any;
|
|
@@ -4538,22 +4699,6 @@ export declare namespace ReactUnity {
|
|
|
4538
4699
|
GetType(): System.Type;
|
|
4539
4700
|
ToString(): string;
|
|
4540
4701
|
}
|
|
4541
|
-
interface ICommaSeparatedListItem {
|
|
4542
|
-
Definition: string;
|
|
4543
|
-
Valid: boolean;
|
|
4544
|
-
}
|
|
4545
|
-
class CommaSeparatedList<T = any> {
|
|
4546
|
-
constructor(item: T);
|
|
4547
|
-
constructor(items: T[]);
|
|
4548
|
-
constructor(definition: string);
|
|
4549
|
-
Definition: string;
|
|
4550
|
-
Items: T[];
|
|
4551
|
-
Any: boolean;
|
|
4552
|
-
Equals(obj: any): boolean;
|
|
4553
|
-
GetHashCode(): number;
|
|
4554
|
-
ToString(): string;
|
|
4555
|
-
GetType(): System.Type;
|
|
4556
|
-
}
|
|
4557
4702
|
interface ICssValueList<T = any> {
|
|
4558
4703
|
Count: number;
|
|
4559
4704
|
Any: boolean;
|
|
@@ -4637,25 +4782,9 @@ export declare namespace ReactUnity {
|
|
|
4637
4782
|
ToString(): string;
|
|
4638
4783
|
GetType(): System.Type;
|
|
4639
4784
|
}
|
|
4640
|
-
class CursorList {
|
|
4641
|
-
constructor(definition: string);
|
|
4642
|
-
constructor(item: ReactUnity.Types.Cursor);
|
|
4643
|
-
constructor(items: ReactUnity.Types.Cursor[]);
|
|
4644
|
-
Definition: string;
|
|
4645
|
-
Items: ReactUnity.Types.Cursor[];
|
|
4646
|
-
Any: boolean;
|
|
4647
|
-
static Default: ReactUnity.Types.CursorList;
|
|
4648
|
-
static None: ReactUnity.Types.CursorList;
|
|
4649
|
-
static Pointer: ReactUnity.Types.CursorList;
|
|
4650
|
-
static Text: ReactUnity.Types.CursorList;
|
|
4651
|
-
GetWebGLDefinition(): string;
|
|
4652
|
-
Equals(obj: any): boolean;
|
|
4653
|
-
GetHashCode(): number;
|
|
4654
|
-
ToString(): string;
|
|
4655
|
-
GetType(): System.Type;
|
|
4656
|
-
}
|
|
4657
4785
|
class Cursor {
|
|
4658
|
-
constructor(
|
|
4786
|
+
constructor(name: string);
|
|
4787
|
+
constructor(image: ReactUnity.Types.ImageReference, offset: UnityEngine.Vector2);
|
|
4659
4788
|
Offset: UnityEngine.Vector2;
|
|
4660
4789
|
Name: string;
|
|
4661
4790
|
Image: ReactUnity.Types.ImageReference;
|
|
@@ -4845,7 +4974,7 @@ export declare namespace ReactUnity {
|
|
|
4845
4974
|
constructor(url: ReactUnity.Types.Url);
|
|
4846
4975
|
Type: ReactUnity.Types.AssetReferenceType;
|
|
4847
4976
|
Value: any;
|
|
4848
|
-
static None: ReactUnity.Types.
|
|
4977
|
+
static None: ReactUnity.Types.TextReference;
|
|
4849
4978
|
Dispose(): void;
|
|
4850
4979
|
Get(context: ReactUnity.ReactContext, callback: ((arg0: UnityEngine.TextAsset) => void)): void;
|
|
4851
4980
|
Equals(obj: any): boolean;
|
|
@@ -4928,10 +5057,10 @@ export declare namespace ReactUnity {
|
|
|
4928
5057
|
GetType(): System.Type;
|
|
4929
5058
|
}
|
|
4930
5059
|
class AudioReference_Converter {
|
|
4931
|
-
constructor();
|
|
5060
|
+
constructor(allowWithoutUrl?: boolean);
|
|
5061
|
+
AllowWithoutUrl: boolean;
|
|
4932
5062
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4933
|
-
Convert(value: any):
|
|
4934
|
-
Parse(value: string): any;
|
|
5063
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4935
5064
|
Equals(obj: any): boolean;
|
|
4936
5065
|
GetHashCode(): number;
|
|
4937
5066
|
GetType(): System.Type;
|
|
@@ -4940,8 +5069,7 @@ export declare namespace ReactUnity {
|
|
|
4940
5069
|
class BackgroundSize_Converter {
|
|
4941
5070
|
constructor();
|
|
4942
5071
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4943
|
-
Convert(value: any):
|
|
4944
|
-
Parse(value: string): any;
|
|
5072
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4945
5073
|
Equals(obj: any): boolean;
|
|
4946
5074
|
GetHashCode(): number;
|
|
4947
5075
|
GetType(): System.Type;
|
|
@@ -4949,29 +5077,29 @@ export declare namespace ReactUnity {
|
|
|
4949
5077
|
}
|
|
4950
5078
|
class BoxShadow_Converter {
|
|
4951
5079
|
constructor();
|
|
5080
|
+
static ColorParser: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
5081
|
+
static FloatParser: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
4952
5082
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4953
|
-
|
|
4954
|
-
Convert(value: any): any;
|
|
5083
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4955
5084
|
Equals(obj: any): boolean;
|
|
4956
5085
|
GetHashCode(): number;
|
|
4957
5086
|
GetType(): System.Type;
|
|
4958
5087
|
ToString(): string;
|
|
4959
5088
|
}
|
|
4960
|
-
class
|
|
5089
|
+
class Cursor_Converter {
|
|
4961
5090
|
constructor();
|
|
4962
5091
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4963
|
-
Convert(value: any):
|
|
4964
|
-
Parse(value: string): any;
|
|
5092
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4965
5093
|
Equals(obj: any): boolean;
|
|
4966
5094
|
GetHashCode(): number;
|
|
4967
5095
|
GetType(): System.Type;
|
|
4968
5096
|
ToString(): string;
|
|
4969
5097
|
}
|
|
4970
5098
|
class FontReference_Converter {
|
|
4971
|
-
constructor();
|
|
5099
|
+
constructor(allowWithoutUrl?: boolean);
|
|
5100
|
+
AllowWithoutUrl: boolean;
|
|
4972
5101
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
4973
|
-
Convert(value: any):
|
|
4974
|
-
Parse(value: string): any;
|
|
5102
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
4975
5103
|
Equals(obj: any): boolean;
|
|
4976
5104
|
GetHashCode(): number;
|
|
4977
5105
|
GetType(): System.Type;
|
|
@@ -5001,8 +5129,7 @@ export declare namespace ReactUnity {
|
|
|
5001
5129
|
class ImageDefinition_Converter {
|
|
5002
5130
|
constructor();
|
|
5003
5131
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
5004
|
-
Convert(value: any):
|
|
5005
|
-
Parse(value: string): any;
|
|
5132
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
5006
5133
|
Equals(obj: any): boolean;
|
|
5007
5134
|
GetHashCode(): number;
|
|
5008
5135
|
GetType(): System.Type;
|
|
@@ -5012,8 +5139,7 @@ export declare namespace ReactUnity {
|
|
|
5012
5139
|
constructor(allowWithoutUrl?: boolean);
|
|
5013
5140
|
AllowWithoutUrl: boolean;
|
|
5014
5141
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
5015
|
-
Convert(value: any):
|
|
5016
|
-
Parse(value: string): any;
|
|
5142
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
5017
5143
|
Equals(obj: any): boolean;
|
|
5018
5144
|
GetHashCode(): number;
|
|
5019
5145
|
GetType(): System.Type;
|
|
@@ -5023,18 +5149,17 @@ export declare namespace ReactUnity {
|
|
|
5023
5149
|
constructor(allowWithoutUrl?: boolean);
|
|
5024
5150
|
AllowWithoutUrl: boolean;
|
|
5025
5151
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
5026
|
-
Convert(value: any):
|
|
5027
|
-
Parse(value: string): any;
|
|
5152
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
5028
5153
|
Equals(obj: any): boolean;
|
|
5029
5154
|
GetHashCode(): number;
|
|
5030
5155
|
GetType(): System.Type;
|
|
5031
5156
|
ToString(): string;
|
|
5032
5157
|
}
|
|
5033
5158
|
class VideoReference_Converter {
|
|
5034
|
-
constructor();
|
|
5159
|
+
constructor(allowWithoutUrl?: boolean);
|
|
5160
|
+
AllowWithoutUrl: boolean;
|
|
5035
5161
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
5036
|
-
Convert(value: any):
|
|
5037
|
-
Parse(value: string): any;
|
|
5162
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
5038
5163
|
Equals(obj: any): boolean;
|
|
5039
5164
|
GetHashCode(): number;
|
|
5040
5165
|
GetType(): System.Type;
|
|
@@ -5043,8 +5168,7 @@ export declare namespace ReactUnity {
|
|
|
5043
5168
|
class YogaValue2_Converter {
|
|
5044
5169
|
constructor(allowLiterals?: boolean, separator?: System.Char, singleValueAssignsBoth?: boolean);
|
|
5045
5170
|
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
5046
|
-
|
|
5047
|
-
Convert(value: any): any;
|
|
5171
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
5048
5172
|
Equals(obj: any): boolean;
|
|
5049
5173
|
GetHashCode(): number;
|
|
5050
5174
|
GetType(): System.Type;
|
|
@@ -10226,7 +10350,7 @@ export declare namespace ReactUnity {
|
|
|
10226
10350
|
}
|
|
10227
10351
|
class CursorHandler {
|
|
10228
10352
|
constructor();
|
|
10229
|
-
Cursor: ReactUnity.Types.
|
|
10353
|
+
Cursor: ReactUnity.Types.ICssValueList<ReactUnity.Types.Cursor>;
|
|
10230
10354
|
useGUILayout: boolean;
|
|
10231
10355
|
runInEditMode: boolean;
|
|
10232
10356
|
enabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnimationDirection, AnimationFillMode, AnimationPlayState, Appearance, BackgroundBlendMode, BackgroundSize, CursorType, FontStyles, FontWeight, NavigationMode, ObjectFit, PointerEvents, TextAlign, TextOverflowModes, TextTransform, TimingFunctionType, Visibility, WhiteSpace } from './styles-enums';
|
|
2
|
-
import { Array2Aux, AssetReference, ColorAux, NumberAux, Vector2Aux, Vector3Aux } from './values';
|
|
2
|
+
import { Array2Aux, AssetReference, AssetReferenceOrHttp, ColorAux, NumberAux, Vector2Aux, Vector3Aux } from './values';
|
|
3
3
|
import { YogaValue2Aux, YogaValueAux } from './yoga';
|
|
4
4
|
export interface RenderStyle {
|
|
5
5
|
opacity?: NumberAux;
|
|
@@ -13,13 +13,13 @@ export interface RenderStyle {
|
|
|
13
13
|
navigation?: NavigationMode;
|
|
14
14
|
backgroundBlendMode?: BackgroundBlendMode;
|
|
15
15
|
backgroundColor?: ColorAux;
|
|
16
|
-
backgroundImage?:
|
|
16
|
+
backgroundImage?: AssetReferenceOrHttp;
|
|
17
17
|
backgroundPositionX?: YogaValueAux;
|
|
18
18
|
backgroundPositionY?: YogaValueAux;
|
|
19
19
|
backgroundSize?: BackgroundSize | YogaValue2Aux;
|
|
20
20
|
backgroundRepeatX?: YogaValueAux;
|
|
21
21
|
backgroundRepeatY?: YogaValueAux;
|
|
22
|
-
maskImage?:
|
|
22
|
+
maskImage?: AssetReferenceOrHttp;
|
|
23
23
|
maskPositionX?: YogaValueAux;
|
|
24
24
|
maskPositionY?: YogaValueAux;
|
|
25
25
|
maskSize?: BackgroundSize | YogaValue2Aux;
|
|
@@ -75,7 +75,7 @@ export interface RenderStyle {
|
|
|
75
75
|
animationName?: string | string;
|
|
76
76
|
animationPlayState?: AnimationPlayState | string;
|
|
77
77
|
animationTimingFunction?: TimingFunctionType | string;
|
|
78
|
-
audioClip?:
|
|
78
|
+
audioClip?: AssetReferenceOrHttp;
|
|
79
79
|
audioIterationCount?: number | string;
|
|
80
80
|
audioDelay?: number | string;
|
|
81
81
|
all?: string;
|
|
@@ -13,5 +13,12 @@ export declare type KnownColor = keyof KnownColors;
|
|
|
13
13
|
export declare type HexColor = string;
|
|
14
14
|
export declare type ColorAux = KnownColor | HexColor | number | Array4Aux<number> | UnityEngine.Color;
|
|
15
15
|
export declare type NumberAux = string | number;
|
|
16
|
+
export declare type HttpSource = {
|
|
17
|
+
url: string;
|
|
18
|
+
body?: string;
|
|
19
|
+
headers?: Record<string, string>;
|
|
20
|
+
method?: string;
|
|
21
|
+
};
|
|
16
22
|
export declare type AssetReference = string | UnityEngine.Object;
|
|
23
|
+
export declare type AssetReferenceOrHttp = AssetReference | HttpSource;
|
|
17
24
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCmpProps } from '../base';
|
|
2
2
|
import { ReactUnity, UnityEngine } from '../generated';
|
|
3
3
|
import { Style } from '../properties';
|
|
4
|
-
import { AssetReference } from '../properties/values';
|
|
4
|
+
import { AssetReference, AssetReferenceOrHttp } from '../properties/values';
|
|
5
5
|
import { ActionCallback, Events } from './events';
|
|
6
6
|
export interface View<T = ReactUnity.UGUI.UGUIComponent> extends Events<T>, BaseCmpProps {
|
|
7
7
|
active?: boolean;
|
|
@@ -45,11 +45,12 @@ export interface Anchor extends View<ReactUnity.UGUI.AnchorComponent> {
|
|
|
45
45
|
export interface BaseImage<T = ReactUnity.UGUI.ImageComponent> extends View<T> {
|
|
46
46
|
}
|
|
47
47
|
export interface Image<T = ReactUnity.UGUI.ImageComponent> extends BaseImage<T> {
|
|
48
|
-
source?:
|
|
48
|
+
source?: AssetReferenceOrHttp;
|
|
49
49
|
}
|
|
50
50
|
export interface RawImage extends Image<ReactUnity.UGUI.RawImageComponent> {
|
|
51
51
|
}
|
|
52
52
|
export interface Video extends Image<ReactUnity.UGUI.VideoComponent> {
|
|
53
|
+
source?: AssetReference;
|
|
53
54
|
}
|
|
54
55
|
export interface SvgImage extends Image<ReactUnity.UGUI.SvgComponent> {
|
|
55
56
|
preserveAspect?: boolean;
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.11.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '0.
|
|
1
|
+
export var version = '0.11.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactunity/renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "React renderer for Unity3D",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react": "^18.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@reactunity/scripts": "^0.
|
|
64
|
+
"@reactunity/scripts": "^0.11.0",
|
|
65
65
|
"@types/react-reconciler": "^0.26.6",
|
|
66
66
|
"rimraf": "^3.0.2",
|
|
67
67
|
"typescript": "^4.6.4"
|