@reactunity/renderer 0.15.2 → 0.16.1

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 (172) hide show
  1. package/dist/editor/index.d.ts +1 -0
  2. package/dist/editor/index.js +17 -0
  3. package/dist/editor/jsx-dev-runtime.d.ts +2 -0
  4. package/dist/editor/jsx-dev-runtime.js +17 -0
  5. package/dist/editor/jsx-runtime.d.ts +2 -0
  6. package/dist/editor/jsx-runtime.js +17 -0
  7. package/dist/index.d.ts +9 -9
  8. package/dist/index.js +31 -9
  9. package/dist/src/helpers/dictionary-watcher.d.ts +66 -66
  10. package/dist/src/helpers/dictionary-watcher.js +104 -98
  11. package/dist/src/helpers/hooks/use-globals.d.ts +6 -6
  12. package/dist/src/helpers/hooks/use-globals.js +9 -6
  13. package/dist/src/helpers/hooks/use-reactive-value.d.ts +4 -4
  14. package/dist/src/helpers/hooks/use-reactive-value.js +31 -27
  15. package/dist/src/helpers/icons.d.ts +11 -7
  16. package/dist/src/helpers/icons.js +32 -29
  17. package/dist/src/models/base.d.ts +56 -56
  18. package/dist/src/models/base.js +3 -2
  19. package/dist/src/models/editor/components.d.ts +22 -22
  20. package/dist/src/models/editor/components.js +2 -1
  21. package/dist/src/models/editor/environment.d.ts +9 -10
  22. package/dist/src/models/editor/environment.js +2 -1
  23. package/dist/src/models/editor/index.d.ts +3 -3
  24. package/dist/src/models/editor/index.js +19 -3
  25. package/dist/src/models/editor/jsx.d.ts +111 -104
  26. package/dist/src/models/editor/jsx.js +2 -1
  27. package/dist/src/models/environment/dom/common.d.ts +85 -85
  28. package/dist/src/models/environment/dom/common.js +2 -1
  29. package/dist/src/models/environment/dom/fetch.d.ts +111 -111
  30. package/dist/src/models/environment/dom/fetch.js +2 -1
  31. package/dist/src/models/environment/dom/global.d.ts +11 -11
  32. package/dist/src/models/environment/dom/global.js +2 -1
  33. package/dist/src/models/environment/dom/xhr.d.ts +161 -161
  34. package/dist/src/models/environment/dom/xhr.js +2 -1
  35. package/dist/src/models/environment/index.d.ts +43 -47
  36. package/dist/src/models/environment/index.js +18 -3
  37. package/dist/src/models/environment/interop.d.ts +23 -23
  38. package/dist/src/models/environment/interop.js +2 -1
  39. package/dist/src/models/generated/editor.d.ts +18501 -18501
  40. package/dist/src/models/generated/editor.js +7 -6
  41. package/dist/src/models/generated/index.d.ts +6 -6
  42. package/dist/src/models/generated/index.js +22 -6
  43. package/dist/src/models/generated/react.d.ts +15214 -15214
  44. package/dist/src/models/generated/react.js +7 -6
  45. package/dist/src/models/generated/system.d.ts +36731 -36731
  46. package/dist/src/models/generated/system.js +7 -6
  47. package/dist/src/models/generated/tests.d.ts +5023 -5023
  48. package/dist/src/models/generated/tests.js +7 -6
  49. package/dist/src/models/generated/unity.d.ts +43446 -43446
  50. package/dist/src/models/generated/unity.js +7 -6
  51. package/dist/src/models/generated/yoga.d.ts +368 -368
  52. package/dist/src/models/generated/yoga.js +7 -6
  53. package/dist/src/models/properties/colors.d.ts +150 -150
  54. package/dist/src/models/properties/colors.js +2 -1
  55. package/dist/src/models/properties/common.d.ts +2 -2
  56. package/dist/src/models/properties/common.js +2 -1
  57. package/dist/src/models/properties/index.d.ts +7 -7
  58. package/dist/src/models/properties/index.js +23 -7
  59. package/dist/src/models/properties/style.d.ts +10 -10
  60. package/dist/src/models/properties/style.js +2 -1
  61. package/dist/src/models/properties/styles-enums.d.ts +23 -23
  62. package/dist/src/models/properties/styles-enums.js +2 -1
  63. package/dist/src/models/properties/styles.d.ts +127 -127
  64. package/dist/src/models/properties/styles.js +2 -1
  65. package/dist/src/models/properties/values.d.ts +24 -24
  66. package/dist/src/models/properties/values.js +2 -1
  67. package/dist/src/models/properties/yoga-enums.d.ts +8 -8
  68. package/dist/src/models/properties/yoga-enums.js +2 -1
  69. package/dist/src/models/properties/yoga.d.ts +66 -66
  70. package/dist/src/models/properties/yoga.js +2 -1
  71. package/dist/src/models/renderer.d.ts +20 -20
  72. package/dist/src/models/renderer.js +2 -1
  73. package/dist/src/models/richtext.d.ts +69 -69
  74. package/dist/src/models/richtext.js +3 -2
  75. package/dist/src/models/svg.d.ts +68 -68
  76. package/dist/src/models/svg.js +2 -1
  77. package/dist/src/models/tests/index.d.ts +12 -12
  78. package/dist/src/models/tests/index.js +2 -1
  79. package/dist/src/models/ugui/components.d.ts +86 -86
  80. package/dist/src/models/ugui/components.js +2 -1
  81. package/dist/src/models/ugui/events.d.ts +74 -74
  82. package/dist/src/models/ugui/events.js +3 -2
  83. package/dist/src/models/ugui/index.d.ts +4 -4
  84. package/dist/src/models/ugui/index.js +20 -4
  85. package/dist/src/models/ugui/input.d.ts +26 -26
  86. package/dist/src/models/ugui/input.js +2 -1
  87. package/dist/src/models/ugui/jsx.d.ts +67 -60
  88. package/dist/src/models/ugui/jsx.js +2 -1
  89. package/dist/src/models/uitoolkit/components.d.ts +82 -82
  90. package/dist/src/models/uitoolkit/components.js +2 -1
  91. package/dist/src/models/uitoolkit/events.d.ts +64 -64
  92. package/dist/src/models/uitoolkit/events.js +2 -1
  93. package/dist/src/models/uitoolkit/index.d.ts +3 -3
  94. package/dist/src/models/uitoolkit/index.js +19 -3
  95. package/dist/src/models/uitoolkit/jsx.d.ts +71 -64
  96. package/dist/src/models/uitoolkit/jsx.js +2 -1
  97. package/dist/src/renderer/async/callbacks.d.ts +5 -6
  98. package/dist/src/renderer/async/callbacks.js +55 -52
  99. package/dist/src/renderer/async/commands.d.ts +98 -47
  100. package/dist/src/renderer/async/commands.js +2 -1
  101. package/dist/src/renderer/async/objects.d.ts +7 -8
  102. package/dist/src/renderer/async/objects.js +34 -31
  103. package/dist/src/renderer/async/reconciler.d.ts +2 -2
  104. package/dist/src/renderer/async/reconciler.js +307 -283
  105. package/dist/src/renderer/async/serializer.d.ts +6 -9
  106. package/dist/src/renderer/async/serializer.js +35 -31
  107. package/dist/src/renderer/async/types.d.ts +45 -45
  108. package/dist/src/renderer/async/types.js +2 -1
  109. package/dist/src/renderer/constants.d.ts +30 -30
  110. package/dist/src/renderer/constants.js +75 -70
  111. package/dist/src/renderer/diffing.d.ts +3 -3
  112. package/dist/src/renderer/diffing.js +87 -83
  113. package/dist/src/renderer/renderer.d.ts +26 -26
  114. package/dist/src/renderer/renderer.js +97 -93
  115. package/dist/src/renderer/subcontexts/index.d.ts +6 -6
  116. package/dist/src/renderer/subcontexts/index.js +9 -6
  117. package/dist/src/renderer/subcontexts/richtext.d.ts +3 -3
  118. package/dist/src/renderer/subcontexts/richtext.js +57 -52
  119. package/dist/src/renderer/subcontexts/svg.d.ts +3 -3
  120. package/dist/src/renderer/subcontexts/svg.js +75 -70
  121. package/dist/src/renderer/sync/reconciler.d.ts +2 -2
  122. package/dist/src/renderer/sync/reconciler.js +38 -35
  123. package/dist/src/version.d.ts +1 -1
  124. package/dist/src/version.js +4 -1
  125. package/dist/src/views/default-view.d.ts +8 -8
  126. package/dist/src/views/default-view.js +11 -7
  127. package/dist/src/views/error-boundary.d.ts +10 -10
  128. package/dist/src/views/error-boundary.js +45 -53
  129. package/dist/src/webgl-compat/error-messages.d.ts +9 -9
  130. package/dist/src/webgl-compat/error-messages.js +13 -10
  131. package/dist/src/webgl-compat/index.d.ts +13 -13
  132. package/dist/src/webgl-compat/index.js +13 -8
  133. package/dist/src/webgl-compat/types.d.ts +21 -21
  134. package/dist/src/webgl-compat/types.js +2 -1
  135. package/dist/src/webgl-compat/use-event-system.d.ts +3 -3
  136. package/dist/src/webgl-compat/use-event-system.js +82 -76
  137. package/dist/src/webgl-compat/use-unity-context.d.ts +31 -31
  138. package/dist/src/webgl-compat/use-unity-context.js +96 -91
  139. package/dist/tests.d.ts +1 -1
  140. package/dist/tests.js +17 -1
  141. package/dist/ugui/index.d.ts +1 -0
  142. package/dist/ugui/index.js +17 -0
  143. package/dist/ugui/jsx-dev-runtime.d.ts +2 -0
  144. package/dist/ugui/jsx-dev-runtime.js +17 -0
  145. package/dist/ugui/jsx-runtime.d.ts +2 -0
  146. package/dist/ugui/jsx-runtime.js +17 -0
  147. package/dist/uitoolkit/index.d.ts +1 -0
  148. package/dist/uitoolkit/index.js +17 -0
  149. package/dist/uitoolkit/jsx-dev-runtime.d.ts +2 -0
  150. package/dist/uitoolkit/jsx-dev-runtime.js +17 -0
  151. package/dist/uitoolkit/jsx-runtime.d.ts +2 -0
  152. package/dist/uitoolkit/jsx-runtime.js +17 -0
  153. package/dist/webgl-compat.d.ts +1 -1
  154. package/dist/webgl-compat.js +17 -1
  155. package/package.json +16 -32
  156. package/dist/editor.d.ts +0 -1
  157. package/dist/editor.js +0 -1
  158. package/dist/src/models/environment/jsx.d.ts +0 -45
  159. package/dist/src/models/environment/jsx.js +0 -1
  160. package/dist/ugui.d.ts +0 -1
  161. package/dist/ugui.js +0 -1
  162. package/dist/uitoolkit.d.ts +0 -1
  163. package/dist/uitoolkit.js +0 -1
  164. package/editor.ts +0 -1
  165. package/tests.ts +0 -1
  166. package/tsconfig.editor.json +0 -6
  167. package/tsconfig.ugui.json +0 -6
  168. package/tsconfig.uitoolkit.json +0 -6
  169. package/ugui.ts +0 -1
  170. package/uitoolkit.ts +0 -1
  171. package/version.js +0 -3
  172. package/webgl-compat.ts +0 -1
@@ -1,127 +1,127 @@
1
- import { SafeString } from './common';
2
- import { AnimationDirection, AnimationFillMode, AnimationPlayState, Appearance, BackgroundBlendMode, BackgroundRepeat, BackgroundSize, BorderImageRepeat, BorderStyle, CursorType, FontStyles, FontWeight, NavigationMode, ObjectFit, PointerEvents, TextAlign, TextOverflowModes, TextTransform, TimingFunctionType, VerticalAlign, Visibility, WhiteSpace } from './styles-enums';
3
- import { Array2Aux, AssetReference, AssetReferenceOrHttp, ColorAux, NumberAux, Vector2Aux, Vector3Aux } from './values';
4
- import { YogaValue2Aux, YogaValueAux } from './yoga';
5
- export interface RenderStyle {
6
- opacity?: NumberAux;
7
- zIndex?: number;
8
- sortingLayer?: number;
9
- order?: number;
10
- visibility?: Visibility | boolean;
11
- cursor?: CursorType;
12
- pointerEvents?: PointerEvents;
13
- content?: SafeString;
14
- appearance?: Appearance;
15
- navigation?: NavigationMode;
16
- backgroundBlendMode?: BackgroundBlendMode;
17
- backgroundColor?: ColorAux;
18
- backgroundImage?: AssetReferenceOrHttp;
19
- backgroundPositionX?: YogaValueAux;
20
- backgroundPositionY?: YogaValueAux;
21
- backgroundSize?: BackgroundSize | YogaValue2Aux;
22
- backgroundRepeatX?: BackgroundRepeat;
23
- backgroundRepeatY?: BackgroundRepeat;
24
- maskImage?: AssetReferenceOrHttp;
25
- maskPositionX?: YogaValueAux;
26
- maskPositionY?: YogaValueAux;
27
- maskSize?: BackgroundSize | YogaValue2Aux;
28
- maskRepeatX?: YogaValueAux;
29
- maskRepeatY?: YogaValueAux;
30
- outlineColor?: ColorAux;
31
- outlineStyle?: BorderStyle;
32
- outlineWidth?: number;
33
- outlineOffset?: number;
34
- borderTopLeftRadius?: Array2Aux<YogaValueAux>;
35
- borderTopRightRadius?: Array2Aux<YogaValueAux>;
36
- borderBottomRightRadius?: Array2Aux<YogaValueAux>;
37
- borderBottomLeftRadius?: Array2Aux<YogaValueAux>;
38
- borderTopColor?: ColorAux;
39
- borderRightColor?: ColorAux;
40
- borderBottomColor?: ColorAux;
41
- borderLeftColor?: ColorAux;
42
- borderTopStyle?: BorderStyle;
43
- borderRightStyle?: BorderStyle;
44
- borderBottomStyle?: BorderStyle;
45
- borderLeftStyle?: BorderStyle;
46
- borderImageSource?: AssetReferenceOrHttp;
47
- borderImageSlice?: YogaValueAux;
48
- borderImageRepeat?: BorderImageRepeat;
49
- borderImageOutset?: YogaValueAux;
50
- borderImageWidth?: YogaValueAux;
51
- boxShadow?: SafeString;
52
- objectFit?: ObjectFit;
53
- objectPosition?: YogaValue2Aux;
54
- transformOrigin?: Vector2Aux;
55
- translate?: YogaValue2Aux;
56
- translateZ?: YogaValueAux;
57
- scale?: Vector2Aux;
58
- rotate?: Vector3Aux;
59
- stateDuration?: number;
60
- color?: ColorAux;
61
- fontFamily?: AssetReference;
62
- fontWeight?: FontWeight;
63
- fontStyle?: FontStyles;
64
- textTransform?: TextTransform;
65
- fontSize?: YogaValueAux;
66
- textOverflow?: TextOverflowModes;
67
- textAlign?: TextAlign;
68
- verticalAlign?: VerticalAlign;
69
- whiteSpace?: WhiteSpace;
70
- textStrokeWidth?: NumberAux;
71
- textStrokeColor?: ColorAux;
72
- lineHeight?: number;
73
- letterSpacing?: number;
74
- wordSpacing?: number;
75
- maxLines?: number;
76
- transitionProperty?: keyof RenderStyle;
77
- transitionDuration?: number;
78
- transitionTimingFunction?: TimingFunctionType;
79
- transitionDelay?: number;
80
- transitionPlayState?: AnimationPlayState;
81
- motionDuration?: number;
82
- motionTimingFunction?: TimingFunctionType;
83
- motionDelay?: number;
84
- animationDelay?: number;
85
- animationDirection?: AnimationDirection;
86
- animationDuration?: number;
87
- animationFillMode?: AnimationFillMode;
88
- animationIterationCount?: number;
89
- animationName?: SafeString;
90
- animationPlayState?: AnimationPlayState;
91
- animationTimingFunction?: TimingFunctionType;
92
- audioClip?: AssetReferenceOrHttp;
93
- audioIterationCount?: number;
94
- audioDelay?: number;
95
- all?: SafeString;
96
- background?: SafeString;
97
- backgroundPosition?: SafeString;
98
- backgroundRepeat?: BackgroundRepeat;
99
- outline?: SafeString;
100
- border?: SafeString;
101
- borderTop?: SafeString;
102
- borderRight?: SafeString;
103
- borderBottom?: SafeString;
104
- borderLeft?: SafeString;
105
- borderWidth?: SafeString;
106
- borderStyle?: BorderStyle;
107
- borderColor?: ColorAux;
108
- borderRadius?: Array2Aux<YogaValueAux>;
109
- borderImage?: SafeString;
110
- margin?: SafeString | number;
111
- mask?: SafeString;
112
- maskPosition?: SafeString;
113
- maskRepeat?: SafeString;
114
- padding?: SafeString | number;
115
- inset?: SafeString | number;
116
- flex?: SafeString;
117
- flexFlow?: SafeString;
118
- font?: SafeString;
119
- textStroke?: SafeString;
120
- animation?: SafeString;
121
- transition?: SafeString;
122
- motion?: SafeString;
123
- audio?: SafeString;
124
- transform?: SafeString;
125
- gap?: SafeString | number;
126
- [variable: `--${string}`]: any;
127
- }
1
+ import { SafeString } from './common';
2
+ import { AnimationDirection, AnimationFillMode, AnimationPlayState, Appearance, BackgroundBlendMode, BackgroundRepeat, BackgroundSize, BorderImageRepeat, BorderStyle, CursorType, FontStyles, FontWeight, NavigationMode, ObjectFit, PointerEvents, TextAlign, TextOverflowModes, TextTransform, TimingFunctionType, VerticalAlign, Visibility, WhiteSpace } from './styles-enums';
3
+ import { Array2Aux, AssetReference, AssetReferenceOrHttp, ColorAux, NumberAux, Vector2Aux, Vector3Aux } from './values';
4
+ import { YogaValue2Aux, YogaValueAux } from './yoga';
5
+ export interface RenderStyle {
6
+ opacity?: NumberAux;
7
+ zIndex?: number;
8
+ sortingLayer?: number;
9
+ order?: number;
10
+ visibility?: Visibility | boolean;
11
+ cursor?: CursorType;
12
+ pointerEvents?: PointerEvents;
13
+ content?: SafeString;
14
+ appearance?: Appearance;
15
+ navigation?: NavigationMode;
16
+ backgroundBlendMode?: BackgroundBlendMode;
17
+ backgroundColor?: ColorAux;
18
+ backgroundImage?: AssetReferenceOrHttp;
19
+ backgroundPositionX?: YogaValueAux;
20
+ backgroundPositionY?: YogaValueAux;
21
+ backgroundSize?: BackgroundSize | YogaValue2Aux;
22
+ backgroundRepeatX?: BackgroundRepeat;
23
+ backgroundRepeatY?: BackgroundRepeat;
24
+ maskImage?: AssetReferenceOrHttp;
25
+ maskPositionX?: YogaValueAux;
26
+ maskPositionY?: YogaValueAux;
27
+ maskSize?: BackgroundSize | YogaValue2Aux;
28
+ maskRepeatX?: YogaValueAux;
29
+ maskRepeatY?: YogaValueAux;
30
+ outlineColor?: ColorAux;
31
+ outlineStyle?: BorderStyle;
32
+ outlineWidth?: number;
33
+ outlineOffset?: number;
34
+ borderTopLeftRadius?: Array2Aux<YogaValueAux>;
35
+ borderTopRightRadius?: Array2Aux<YogaValueAux>;
36
+ borderBottomRightRadius?: Array2Aux<YogaValueAux>;
37
+ borderBottomLeftRadius?: Array2Aux<YogaValueAux>;
38
+ borderTopColor?: ColorAux;
39
+ borderRightColor?: ColorAux;
40
+ borderBottomColor?: ColorAux;
41
+ borderLeftColor?: ColorAux;
42
+ borderTopStyle?: BorderStyle;
43
+ borderRightStyle?: BorderStyle;
44
+ borderBottomStyle?: BorderStyle;
45
+ borderLeftStyle?: BorderStyle;
46
+ borderImageSource?: AssetReferenceOrHttp;
47
+ borderImageSlice?: YogaValueAux;
48
+ borderImageRepeat?: BorderImageRepeat;
49
+ borderImageOutset?: YogaValueAux;
50
+ borderImageWidth?: YogaValueAux;
51
+ boxShadow?: SafeString;
52
+ objectFit?: ObjectFit;
53
+ objectPosition?: YogaValue2Aux;
54
+ transformOrigin?: Vector2Aux;
55
+ translate?: YogaValue2Aux;
56
+ translateZ?: YogaValueAux;
57
+ scale?: Vector2Aux;
58
+ rotate?: Vector3Aux;
59
+ stateDuration?: number;
60
+ color?: ColorAux;
61
+ fontFamily?: AssetReference;
62
+ fontWeight?: FontWeight;
63
+ fontStyle?: FontStyles;
64
+ textTransform?: TextTransform;
65
+ fontSize?: YogaValueAux;
66
+ textOverflow?: TextOverflowModes;
67
+ textAlign?: TextAlign;
68
+ verticalAlign?: VerticalAlign;
69
+ whiteSpace?: WhiteSpace;
70
+ textStrokeWidth?: NumberAux;
71
+ textStrokeColor?: ColorAux;
72
+ lineHeight?: number;
73
+ letterSpacing?: number;
74
+ wordSpacing?: number;
75
+ maxLines?: number;
76
+ transitionProperty?: keyof RenderStyle;
77
+ transitionDuration?: number;
78
+ transitionTimingFunction?: TimingFunctionType;
79
+ transitionDelay?: number;
80
+ transitionPlayState?: AnimationPlayState;
81
+ motionDuration?: number;
82
+ motionTimingFunction?: TimingFunctionType;
83
+ motionDelay?: number;
84
+ animationDelay?: number;
85
+ animationDirection?: AnimationDirection;
86
+ animationDuration?: number;
87
+ animationFillMode?: AnimationFillMode;
88
+ animationIterationCount?: number;
89
+ animationName?: SafeString;
90
+ animationPlayState?: AnimationPlayState;
91
+ animationTimingFunction?: TimingFunctionType;
92
+ audioClip?: AssetReferenceOrHttp;
93
+ audioIterationCount?: number;
94
+ audioDelay?: number;
95
+ all?: SafeString;
96
+ background?: SafeString;
97
+ backgroundPosition?: SafeString;
98
+ backgroundRepeat?: BackgroundRepeat;
99
+ outline?: SafeString;
100
+ border?: SafeString;
101
+ borderTop?: SafeString;
102
+ borderRight?: SafeString;
103
+ borderBottom?: SafeString;
104
+ borderLeft?: SafeString;
105
+ borderWidth?: SafeString;
106
+ borderStyle?: BorderStyle;
107
+ borderColor?: ColorAux;
108
+ borderRadius?: Array2Aux<YogaValueAux>;
109
+ borderImage?: SafeString;
110
+ margin?: SafeString | number;
111
+ mask?: SafeString;
112
+ maskPosition?: SafeString;
113
+ maskRepeat?: SafeString;
114
+ padding?: SafeString | number;
115
+ inset?: SafeString | number;
116
+ flex?: SafeString;
117
+ flexFlow?: SafeString;
118
+ font?: SafeString;
119
+ textStroke?: SafeString;
120
+ animation?: SafeString;
121
+ transition?: SafeString;
122
+ motion?: SafeString;
123
+ audio?: SafeString;
124
+ transform?: SafeString;
125
+ gap?: SafeString | number;
126
+ [variable: `--${string}`]: any;
127
+ }
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +1,24 @@
1
- import { UnityEngine } from '../generated';
2
- import { KnownColors } from './colors';
3
- type PositioningLiteralHorizontal = 'left' | 'right' | 'center';
4
- type PositioningLiteralVertical = 'top' | 'bottom' | 'center';
5
- export type PositioningLiteral = PositioningLiteralVertical | PositioningLiteralHorizontal | `${PositioningLiteralVertical} ${PositioningLiteralHorizontal}` | `${PositioningLiteralHorizontal} ${PositioningLiteralVertical}`;
6
- export type Array2Aux<T> = T | [] | [T] | [T, T] | T[];
7
- export type Array3Aux<T> = Array2Aux<T> | [T, T, T];
8
- export type Array4Aux<T> = Array3Aux<T> | [T, T, T, T];
9
- export type Vector2Aux = (string & {}) | Array2Aux<number> | PositioningLiteral;
10
- export type Vector3Aux = (string & {}) | Array3Aux<number>;
11
- export type RectOffsetAux = Array4Aux<number>;
12
- export type KnownColor = keyof KnownColors;
13
- export type HexColor = (string & {});
14
- export type ColorAux = KnownColor | HexColor | number | Array4Aux<number> | UnityEngine.Color;
15
- export type NumberAux = (string & {}) | number;
16
- export type HttpSource = {
17
- url: string;
18
- body?: string;
19
- headers?: Record<string, string>;
20
- method?: string;
21
- };
22
- export type AssetReference = string | UnityEngine.Object;
23
- export type AssetReferenceOrHttp = AssetReference | HttpSource;
24
- export {};
1
+ import { UnityEngine } from '../generated';
2
+ import { KnownColors } from './colors';
3
+ type PositioningLiteralHorizontal = 'left' | 'right' | 'center';
4
+ type PositioningLiteralVertical = 'top' | 'bottom' | 'center';
5
+ export type PositioningLiteral = PositioningLiteralVertical | PositioningLiteralHorizontal | `${PositioningLiteralVertical} ${PositioningLiteralHorizontal}` | `${PositioningLiteralHorizontal} ${PositioningLiteralVertical}`;
6
+ export type Array2Aux<T> = T | [] | [T] | [T, T] | T[];
7
+ export type Array3Aux<T> = Array2Aux<T> | [T, T, T];
8
+ export type Array4Aux<T> = Array3Aux<T> | [T, T, T, T];
9
+ export type Vector2Aux = (string & {}) | Array2Aux<number> | PositioningLiteral;
10
+ export type Vector3Aux = (string & {}) | Array3Aux<number>;
11
+ export type RectOffsetAux = Array4Aux<number>;
12
+ export type KnownColor = keyof KnownColors;
13
+ export type HexColor = (string & {});
14
+ export type ColorAux = KnownColor | HexColor | number | Array4Aux<number> | UnityEngine.Color;
15
+ export type NumberAux = (string & {}) | number;
16
+ export type HttpSource = {
17
+ url: string;
18
+ body?: string;
19
+ headers?: Record<string, string>;
20
+ method?: string;
21
+ };
22
+ export type AssetReference = string | UnityEngine.Object;
23
+ export type AssetReferenceOrHttp = AssetReference | HttpSource;
24
+ export {};
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
- export type FlexDirection = 'column' | 'column-reverse' | 'row' | 'row-reverse';
2
- export type YogaAlign = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | 'space-between' | 'space-around';
3
- export type YogaJustify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
4
- export type Display = 'flex' | 'none';
5
- export type Wrap = 'no-wrap' | 'wrap' | 'wrap-reverse';
6
- export type Position = 'relative' | 'absolute' | 'fixed' | 'static' | 'sticky' | 'inset';
7
- export type Overflow = 'visible' | 'hidden' | 'scroll';
8
- export type Direction = 'inherit' | 'ltr' | 'rtl';
1
+ export type FlexDirection = 'column' | 'column-reverse' | 'row' | 'row-reverse';
2
+ export type YogaAlign = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | 'space-between' | 'space-around';
3
+ export type YogaJustify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
4
+ export type Display = 'flex' | 'none';
5
+ export type Wrap = 'no-wrap' | 'wrap' | 'wrap-reverse';
6
+ export type Position = 'relative' | 'absolute' | 'fixed' | 'static' | 'sticky' | 'inset';
7
+ export type Overflow = 'visible' | 'hidden' | 'scroll';
8
+ export type Direction = 'inherit' | 'ltr' | 'rtl';
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,66 +1,66 @@
1
- import { Array2Aux, Array4Aux, PositioningLiteral } from './values';
2
- import { Direction, Display, FlexDirection, Overflow, Position, Wrap, YogaAlign, YogaJustify } from './yoga-enums';
3
- export type YogaValueAux = 'auto' | number | null | undefined | boolean | (string & {});
4
- export type YogaValue2Aux = Array2Aux<YogaValueAux> | PositioningLiteral;
5
- export type YogaValue4Aux = Array4Aux<YogaValueAux>;
6
- export interface Layout {
7
- overflow?: Overflow;
8
- styleDirection?: Direction;
9
- display?: Display;
10
- wrap?: Wrap;
11
- positionType?: Position;
12
- justifyContent?: YogaJustify;
13
- alignContent?: YogaAlign;
14
- alignSelf?: YogaAlign;
15
- alignItems?: YogaAlign;
16
- borderWidth?: number;
17
- borderStartWidth?: number;
18
- borderEndWidth?: number;
19
- borderTopWidth?: number;
20
- borderRightWidth?: number;
21
- borderBottomWidth?: number;
22
- borderLeftWidth?: number;
23
- aspectRatio?: number;
24
- flexDirection?: FlexDirection;
25
- flexShrink?: number;
26
- flexGrow?: number;
27
- flexBasis?: YogaValueAux;
28
- minHeight?: YogaValueAux;
29
- minWidth?: YogaValueAux;
30
- maxHeight?: YogaValueAux;
31
- maxWidth?: YogaValueAux;
32
- height?: YogaValueAux;
33
- width?: YogaValueAux;
34
- left?: YogaValueAux;
35
- top?: YogaValueAux;
36
- right?: YogaValueAux;
37
- start?: YogaValueAux;
38
- end?: YogaValueAux;
39
- marginLeft?: YogaValueAux;
40
- marginTop?: YogaValueAux;
41
- marginRight?: YogaValueAux;
42
- marginBottom?: YogaValueAux;
43
- marginStart?: YogaValueAux;
44
- marginEnd?: YogaValueAux;
45
- marginHorizontal?: YogaValueAux;
46
- bottom?: YogaValueAux;
47
- margin?: YogaValueAux;
48
- marginVertical?: YogaValueAux;
49
- padding?: YogaValueAux;
50
- paddingVertical?: YogaValueAux;
51
- paddingHorizontal?: YogaValueAux;
52
- paddingStart?: YogaValueAux;
53
- paddingBottom?: YogaValueAux;
54
- paddingRight?: YogaValueAux;
55
- paddingTop?: YogaValueAux;
56
- paddingEnd?: YogaValueAux;
57
- paddingLeft?: YogaValueAux;
58
- rowGap?: number;
59
- columnGap?: number;
60
- }
61
- export interface LayoutExtended {
62
- position?: Position;
63
- direction?: Direction;
64
- flexWrap?: Wrap;
65
- }
66
- export type LayoutCssCompatible = Omit<Layout, 'styleDirection' | 'position' | 'wrap' | 'margin' | 'padding' | 'borderWidth'> & LayoutExtended;
1
+ import { Array2Aux, Array4Aux, PositioningLiteral } from './values';
2
+ import { Direction, Display, FlexDirection, Overflow, Position, Wrap, YogaAlign, YogaJustify } from './yoga-enums';
3
+ export type YogaValueAux = 'auto' | number | null | undefined | boolean | (string & {});
4
+ export type YogaValue2Aux = Array2Aux<YogaValueAux> | PositioningLiteral;
5
+ export type YogaValue4Aux = Array4Aux<YogaValueAux>;
6
+ export interface Layout {
7
+ overflow?: Overflow;
8
+ styleDirection?: Direction;
9
+ display?: Display;
10
+ wrap?: Wrap;
11
+ positionType?: Position;
12
+ justifyContent?: YogaJustify;
13
+ alignContent?: YogaAlign;
14
+ alignSelf?: YogaAlign;
15
+ alignItems?: YogaAlign;
16
+ borderWidth?: number;
17
+ borderStartWidth?: number;
18
+ borderEndWidth?: number;
19
+ borderTopWidth?: number;
20
+ borderRightWidth?: number;
21
+ borderBottomWidth?: number;
22
+ borderLeftWidth?: number;
23
+ aspectRatio?: number;
24
+ flexDirection?: FlexDirection;
25
+ flexShrink?: number;
26
+ flexGrow?: number;
27
+ flexBasis?: YogaValueAux;
28
+ minHeight?: YogaValueAux;
29
+ minWidth?: YogaValueAux;
30
+ maxHeight?: YogaValueAux;
31
+ maxWidth?: YogaValueAux;
32
+ height?: YogaValueAux;
33
+ width?: YogaValueAux;
34
+ left?: YogaValueAux;
35
+ top?: YogaValueAux;
36
+ right?: YogaValueAux;
37
+ start?: YogaValueAux;
38
+ end?: YogaValueAux;
39
+ marginLeft?: YogaValueAux;
40
+ marginTop?: YogaValueAux;
41
+ marginRight?: YogaValueAux;
42
+ marginBottom?: YogaValueAux;
43
+ marginStart?: YogaValueAux;
44
+ marginEnd?: YogaValueAux;
45
+ marginHorizontal?: YogaValueAux;
46
+ bottom?: YogaValueAux;
47
+ margin?: YogaValueAux;
48
+ marginVertical?: YogaValueAux;
49
+ padding?: YogaValueAux;
50
+ paddingVertical?: YogaValueAux;
51
+ paddingHorizontal?: YogaValueAux;
52
+ paddingStart?: YogaValueAux;
53
+ paddingBottom?: YogaValueAux;
54
+ paddingRight?: YogaValueAux;
55
+ paddingTop?: YogaValueAux;
56
+ paddingEnd?: YogaValueAux;
57
+ paddingLeft?: YogaValueAux;
58
+ rowGap?: number;
59
+ columnGap?: number;
60
+ }
61
+ export interface LayoutExtended {
62
+ position?: Position;
63
+ direction?: Direction;
64
+ flexWrap?: Wrap;
65
+ }
66
+ export type LayoutCssCompatible = Omit<Layout, 'styleDirection' | 'position' | 'wrap' | 'margin' | 'padding' | 'borderWidth'> & LayoutExtended;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +1,20 @@
1
- import { ReactUnity } from './generated';
2
- export type Unique<T, K> = T & {
3
- $type: K;
4
- };
5
- export type NativeInstance = ReactUnity.IReactComponent;
6
- export type NativeTextInstance = ReactUnity.ITextComponent;
7
- export type NativeContainerInstance = ReactUnity.IReactComponent;
8
- export type InstanceTag = string;
9
- export type Props = React.RefAttributes<NativeInstance> & {
10
- [key: string]: any;
11
- children?: React.ReactNode;
12
- };
13
- export type SuspenseInstance = NativeInstance;
14
- export type HydratableInstance = NativeInstance;
15
- export type PublicInstance = any;
16
- export type HostContext = Record<string, unknown>;
17
- export type UpdatePayload = Record<string, unknown>;
18
- export type ChildSet = Record<string, unknown>;
19
- export type TimeoutHandle = number;
20
- export type NoTimeout = -1;
1
+ import { ReactUnity } from './generated';
2
+ export type Unique<T, K> = T & {
3
+ $type: K;
4
+ };
5
+ export type NativeInstance = ReactUnity.IReactComponent;
6
+ export type NativeTextInstance = ReactUnity.ITextComponent;
7
+ export type NativeContainerInstance = ReactUnity.IReactComponent;
8
+ export type InstanceTag = string;
9
+ export type Props = React.RefAttributes<NativeInstance> & {
10
+ [key: string]: any;
11
+ children?: React.ReactNode;
12
+ };
13
+ export type SuspenseInstance = NativeInstance;
14
+ export type HydratableInstance = NativeInstance;
15
+ export type PublicInstance = any;
16
+ export type HostContext = Record<string, unknown>;
17
+ export type UpdatePayload = Record<string, unknown>;
18
+ export type ChildSet = Record<string, unknown>;
19
+ export type TimeoutHandle = number;
20
+ export type NoTimeout = -1;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });