@reactunity/renderer 0.20.1 → 0.23.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.
Files changed (242) hide show
  1. package/dist/base-BT2GMEbv.d.ts +17122 -0
  2. package/dist/components-Cbty8Ffc.d.ts +153 -0
  3. package/dist/editor/index.d.ts +15 -1
  4. package/dist/editor/index.js +1 -2
  5. package/dist/editor/jsx-dev-runtime.d.ts +3 -3
  6. package/dist/editor/jsx-dev-runtime.js +2 -2
  7. package/dist/editor/jsx-runtime.d.ts +3 -2
  8. package/dist/editor/jsx-runtime.js +2 -2
  9. package/dist/editor-Ds4U7pg6.d.ts +19438 -0
  10. package/dist/index-CBMYN8iy.d.ts +1 -0
  11. package/dist/index.d.ts +587 -19
  12. package/dist/index.js +1016 -17
  13. package/dist/index.js.map +1 -1
  14. package/dist/jsx-9V8cIFit.d.ts +114 -0
  15. package/dist/jsx-BZUfiU1y.d.ts +57 -0
  16. package/dist/jsx-DXzVL17E.d.ts +231 -0
  17. package/dist/objectSpread2-CDDvZyE7.js +62 -0
  18. package/dist/tests-DbTTvHZm.d.ts +5044 -0
  19. package/dist/tests.d.ts +15 -1
  20. package/dist/tests.js +1 -2
  21. package/dist/ugui/index.d.ts +3 -1
  22. package/dist/ugui/index.js +1 -2
  23. package/dist/ugui/jsx-dev-runtime.d.ts +3 -3
  24. package/dist/ugui/jsx-dev-runtime.js +2 -2
  25. package/dist/ugui/jsx-runtime.d.ts +3 -2
  26. package/dist/ugui/jsx-runtime.js +2 -2
  27. package/dist/uitoolkit/index.d.ts +3 -1
  28. package/dist/uitoolkit/index.js +1 -2
  29. package/dist/uitoolkit/jsx-dev-runtime.d.ts +3 -3
  30. package/dist/uitoolkit/jsx-dev-runtime.js +2 -2
  31. package/dist/uitoolkit/jsx-runtime.d.ts +3 -2
  32. package/dist/uitoolkit/jsx-runtime.js +2 -2
  33. package/dist/unity-BQNCBoTP.d.ts +86554 -0
  34. package/dist/webgl-compat.d.ts +64 -1
  35. package/dist/webgl-compat.js +184 -1
  36. package/dist/webgl-compat.js.map +1 -1
  37. package/package.json +29 -20
  38. package/dist/editor/index.js.map +0 -1
  39. package/dist/editor/jsx-dev-runtime.js.map +0 -1
  40. package/dist/editor/jsx-runtime.js.map +0 -1
  41. package/dist/src/helpers/dictionary-watcher.d.ts +0 -66
  42. package/dist/src/helpers/dictionary-watcher.js +0 -100
  43. package/dist/src/helpers/dictionary-watcher.js.map +0 -1
  44. package/dist/src/helpers/hooks/use-globals.d.ts +0 -6
  45. package/dist/src/helpers/hooks/use-globals.js +0 -7
  46. package/dist/src/helpers/hooks/use-globals.js.map +0 -1
  47. package/dist/src/helpers/hooks/use-reactive-value.d.ts +0 -4
  48. package/dist/src/helpers/hooks/use-reactive-value.js +0 -29
  49. package/dist/src/helpers/hooks/use-reactive-value.js.map +0 -1
  50. package/dist/src/helpers/icons.d.ts +0 -17
  51. package/dist/src/helpers/icons.js +0 -30
  52. package/dist/src/helpers/icons.js.map +0 -1
  53. package/dist/src/models/base.d.ts +0 -56
  54. package/dist/src/models/base.js +0 -2
  55. package/dist/src/models/base.js.map +0 -1
  56. package/dist/src/models/editor/components.d.ts +0 -22
  57. package/dist/src/models/editor/components.js +0 -2
  58. package/dist/src/models/editor/components.js.map +0 -1
  59. package/dist/src/models/editor/environment.d.ts +0 -9
  60. package/dist/src/models/editor/environment.js +0 -2
  61. package/dist/src/models/editor/environment.js.map +0 -1
  62. package/dist/src/models/editor/index.d.ts +0 -3
  63. package/dist/src/models/editor/index.js +0 -4
  64. package/dist/src/models/editor/index.js.map +0 -1
  65. package/dist/src/models/editor/jsx.d.ts +0 -105
  66. package/dist/src/models/editor/jsx.js +0 -2
  67. package/dist/src/models/editor/jsx.js.map +0 -1
  68. package/dist/src/models/environment/dom/common.d.ts +0 -98
  69. package/dist/src/models/environment/dom/common.js +0 -2
  70. package/dist/src/models/environment/dom/common.js.map +0 -1
  71. package/dist/src/models/environment/dom/fetch.d.ts +0 -111
  72. package/dist/src/models/environment/dom/fetch.js +0 -2
  73. package/dist/src/models/environment/dom/fetch.js.map +0 -1
  74. package/dist/src/models/environment/dom/global.d.ts +0 -14
  75. package/dist/src/models/environment/dom/global.js +0 -2
  76. package/dist/src/models/environment/dom/global.js.map +0 -1
  77. package/dist/src/models/environment/dom/xhr.d.ts +0 -161
  78. package/dist/src/models/environment/dom/xhr.js +0 -2
  79. package/dist/src/models/environment/dom/xhr.js.map +0 -1
  80. package/dist/src/models/environment/index.d.ts +0 -43
  81. package/dist/src/models/environment/index.js +0 -3
  82. package/dist/src/models/environment/index.js.map +0 -1
  83. package/dist/src/models/environment/interop.d.ts +0 -23
  84. package/dist/src/models/environment/interop.js +0 -2
  85. package/dist/src/models/environment/interop.js.map +0 -1
  86. package/dist/src/models/generated/editor.d.ts +0 -18769
  87. package/dist/src/models/generated/editor.js +0 -7
  88. package/dist/src/models/generated/editor.js.map +0 -1
  89. package/dist/src/models/generated/index.d.ts +0 -6
  90. package/dist/src/models/generated/index.js +0 -7
  91. package/dist/src/models/generated/index.js.map +0 -1
  92. package/dist/src/models/generated/react.d.ts +0 -15627
  93. package/dist/src/models/generated/react.js +0 -7
  94. package/dist/src/models/generated/react.js.map +0 -1
  95. package/dist/src/models/generated/system.d.ts +0 -36981
  96. package/dist/src/models/generated/system.js +0 -7
  97. package/dist/src/models/generated/system.js.map +0 -1
  98. package/dist/src/models/generated/tests.d.ts +0 -5045
  99. package/dist/src/models/generated/tests.js +0 -7
  100. package/dist/src/models/generated/tests.js.map +0 -1
  101. package/dist/src/models/generated/unity.d.ts +0 -48288
  102. package/dist/src/models/generated/unity.js +0 -7
  103. package/dist/src/models/generated/unity.js.map +0 -1
  104. package/dist/src/models/generated/yoga.d.ts +0 -420
  105. package/dist/src/models/generated/yoga.js +0 -7
  106. package/dist/src/models/generated/yoga.js.map +0 -1
  107. package/dist/src/models/properties/colors.d.ts +0 -150
  108. package/dist/src/models/properties/colors.js +0 -2
  109. package/dist/src/models/properties/colors.js.map +0 -1
  110. package/dist/src/models/properties/common.d.ts +0 -3
  111. package/dist/src/models/properties/common.js +0 -2
  112. package/dist/src/models/properties/common.js.map +0 -1
  113. package/dist/src/models/properties/index.d.ts +0 -7
  114. package/dist/src/models/properties/index.js +0 -8
  115. package/dist/src/models/properties/index.js.map +0 -1
  116. package/dist/src/models/properties/style.d.ts +0 -10
  117. package/dist/src/models/properties/style.js +0 -2
  118. package/dist/src/models/properties/style.js.map +0 -1
  119. package/dist/src/models/properties/styles-enums.d.ts +0 -23
  120. package/dist/src/models/properties/styles-enums.js +0 -2
  121. package/dist/src/models/properties/styles-enums.js.map +0 -1
  122. package/dist/src/models/properties/styles.d.ts +0 -127
  123. package/dist/src/models/properties/styles.js +0 -2
  124. package/dist/src/models/properties/styles.js.map +0 -1
  125. package/dist/src/models/properties/values.d.ts +0 -24
  126. package/dist/src/models/properties/values.js +0 -2
  127. package/dist/src/models/properties/values.js.map +0 -1
  128. package/dist/src/models/properties/yoga-enums.d.ts +0 -8
  129. package/dist/src/models/properties/yoga-enums.js +0 -2
  130. package/dist/src/models/properties/yoga-enums.js.map +0 -1
  131. package/dist/src/models/properties/yoga.d.ts +0 -66
  132. package/dist/src/models/properties/yoga.js +0 -2
  133. package/dist/src/models/properties/yoga.js.map +0 -1
  134. package/dist/src/models/renderer.d.ts +0 -23
  135. package/dist/src/models/renderer.js +0 -2
  136. package/dist/src/models/renderer.js.map +0 -1
  137. package/dist/src/models/richtext.d.ts +0 -69
  138. package/dist/src/models/richtext.js +0 -2
  139. package/dist/src/models/richtext.js.map +0 -1
  140. package/dist/src/models/svg.d.ts +0 -68
  141. package/dist/src/models/svg.js +0 -2
  142. package/dist/src/models/svg.js.map +0 -1
  143. package/dist/src/models/tests/index.d.ts +0 -12
  144. package/dist/src/models/tests/index.js +0 -2
  145. package/dist/src/models/tests/index.js.map +0 -1
  146. package/dist/src/models/ugui/components.d.ts +0 -85
  147. package/dist/src/models/ugui/components.js +0 -2
  148. package/dist/src/models/ugui/components.js.map +0 -1
  149. package/dist/src/models/ugui/events.d.ts +0 -74
  150. package/dist/src/models/ugui/events.js +0 -2
  151. package/dist/src/models/ugui/events.js.map +0 -1
  152. package/dist/src/models/ugui/index.d.ts +0 -4
  153. package/dist/src/models/ugui/index.js +0 -5
  154. package/dist/src/models/ugui/index.js.map +0 -1
  155. package/dist/src/models/ugui/input.d.ts +0 -26
  156. package/dist/src/models/ugui/input.js +0 -2
  157. package/dist/src/models/ugui/input.js.map +0 -1
  158. package/dist/src/models/ugui/jsx.d.ts +0 -67
  159. package/dist/src/models/ugui/jsx.js +0 -2
  160. package/dist/src/models/ugui/jsx.js.map +0 -1
  161. package/dist/src/models/uitoolkit/components.d.ts +0 -90
  162. package/dist/src/models/uitoolkit/components.js +0 -2
  163. package/dist/src/models/uitoolkit/components.js.map +0 -1
  164. package/dist/src/models/uitoolkit/events.d.ts +0 -64
  165. package/dist/src/models/uitoolkit/events.js +0 -2
  166. package/dist/src/models/uitoolkit/events.js.map +0 -1
  167. package/dist/src/models/uitoolkit/index.d.ts +0 -3
  168. package/dist/src/models/uitoolkit/index.js +0 -4
  169. package/dist/src/models/uitoolkit/index.js.map +0 -1
  170. package/dist/src/models/uitoolkit/jsx.d.ts +0 -65
  171. package/dist/src/models/uitoolkit/jsx.js +0 -2
  172. package/dist/src/models/uitoolkit/jsx.js.map +0 -1
  173. package/dist/src/renderer/async/callbacks.d.ts +0 -5
  174. package/dist/src/renderer/async/callbacks.js +0 -53
  175. package/dist/src/renderer/async/callbacks.js.map +0 -1
  176. package/dist/src/renderer/async/commands.d.ts +0 -71
  177. package/dist/src/renderer/async/commands.js +0 -2
  178. package/dist/src/renderer/async/commands.js.map +0 -1
  179. package/dist/src/renderer/async/objects.d.ts +0 -7
  180. package/dist/src/renderer/async/objects.js +0 -32
  181. package/dist/src/renderer/async/objects.js.map +0 -1
  182. package/dist/src/renderer/async/reconciler.d.ts +0 -2
  183. package/dist/src/renderer/async/reconciler.js +0 -321
  184. package/dist/src/renderer/async/reconciler.js.map +0 -1
  185. package/dist/src/renderer/async/serializer.d.ts +0 -6
  186. package/dist/src/renderer/async/serializer.js +0 -32
  187. package/dist/src/renderer/async/serializer.js.map +0 -1
  188. package/dist/src/renderer/async/types.d.ts +0 -45
  189. package/dist/src/renderer/async/types.js +0 -2
  190. package/dist/src/renderer/async/types.js.map +0 -1
  191. package/dist/src/renderer/constants.d.ts +0 -46
  192. package/dist/src/renderer/constants.js +0 -90
  193. package/dist/src/renderer/constants.js.map +0 -1
  194. package/dist/src/renderer/diffing.d.ts +0 -3
  195. package/dist/src/renderer/diffing.js +0 -79
  196. package/dist/src/renderer/diffing.js.map +0 -1
  197. package/dist/src/renderer/renderer.d.ts +0 -23
  198. package/dist/src/renderer/renderer.js +0 -124
  199. package/dist/src/renderer/renderer.js.map +0 -1
  200. package/dist/src/renderer/subcontexts/index.d.ts +0 -6
  201. package/dist/src/renderer/subcontexts/index.js +0 -7
  202. package/dist/src/renderer/subcontexts/index.js.map +0 -1
  203. package/dist/src/renderer/subcontexts/richtext.d.ts +0 -3
  204. package/dist/src/renderer/subcontexts/richtext.js +0 -53
  205. package/dist/src/renderer/subcontexts/richtext.js.map +0 -1
  206. package/dist/src/renderer/subcontexts/svg.d.ts +0 -3
  207. package/dist/src/renderer/subcontexts/svg.js +0 -71
  208. package/dist/src/renderer/subcontexts/svg.js.map +0 -1
  209. package/dist/src/renderer/sync/reconciler.d.ts +0 -2
  210. package/dist/src/renderer/sync/reconciler.js +0 -80
  211. package/dist/src/renderer/sync/reconciler.js.map +0 -1
  212. package/dist/src/version.d.ts +0 -1
  213. package/dist/src/version.js +0 -2
  214. package/dist/src/version.js.map +0 -1
  215. package/dist/src/views/default-view.d.ts +0 -8
  216. package/dist/src/views/default-view.js +0 -7
  217. package/dist/src/views/default-view.js.map +0 -1
  218. package/dist/src/views/error-boundary.d.ts +0 -10
  219. package/dist/src/views/error-boundary.js +0 -43
  220. package/dist/src/views/error-boundary.js.map +0 -1
  221. package/dist/src/webgl-compat/error-messages.d.ts +0 -9
  222. package/dist/src/webgl-compat/error-messages.js +0 -11
  223. package/dist/src/webgl-compat/error-messages.js.map +0 -1
  224. package/dist/src/webgl-compat/index.d.ts +0 -15
  225. package/dist/src/webgl-compat/index.js +0 -9
  226. package/dist/src/webgl-compat/index.js.map +0 -1
  227. package/dist/src/webgl-compat/types.d.ts +0 -21
  228. package/dist/src/webgl-compat/types.js +0 -2
  229. package/dist/src/webgl-compat/types.js.map +0 -1
  230. package/dist/src/webgl-compat/use-event-system.d.ts +0 -3
  231. package/dist/src/webgl-compat/use-event-system.js +0 -75
  232. package/dist/src/webgl-compat/use-event-system.js.map +0 -1
  233. package/dist/src/webgl-compat/use-unity-context.d.ts +0 -31
  234. package/dist/src/webgl-compat/use-unity-context.js +0 -91
  235. package/dist/src/webgl-compat/use-unity-context.js.map +0 -1
  236. package/dist/tests.js.map +0 -1
  237. package/dist/ugui/index.js.map +0 -1
  238. package/dist/ugui/jsx-dev-runtime.js.map +0 -1
  239. package/dist/ugui/jsx-runtime.js.map +0 -1
  240. package/dist/uitoolkit/index.js.map +0 -1
  241. package/dist/uitoolkit/jsx-dev-runtime.js.map +0 -1
  242. package/dist/uitoolkit/jsx-runtime.js.map +0 -1
@@ -1,23 +0,0 @@
1
- export type CssKeyword = 'initial' | 'inherit' | 'auto' | 'none' | 'unset' | 'default' | 'revert';
2
- export type FontWeight = 'thin' | 100 | 'extra-light' | 200 | 'light' | 300 | 'regular' | 400 | 'medium' | 500 | 'semi-bold' | 600 | 'bold' | 700 | 'heavy' | 800 | 'black' | 900;
3
- export type FontStyles = 'normal' | 'bold' | 'italic' | 'underline' | 'lowercase' | 'uppercase' | 'smallcaps' | 'strikethrough' | 'superscript' | 'subscript' | 'highlight';
4
- export type TextTransform = 'none' | 'lowercase' | 'uppercase' | 'smallcaps' | 'capitalize';
5
- export type TextOverflowModes = 'overflow' | 'ellipsis' | 'masking' | 'truncate' | 'scroll-rect' | 'page' | 'linked';
6
- export type PointerEvents = 'auto' | 'visible' | 'all' | 'none';
7
- export type Visibility = 'visible' | 'hidden';
8
- export type Appearance = 'none' | 'button' | 'input' | 'toggle';
9
- export type NavigationMode = 'none' | 'horizontal' | 'vertical' | 'automatic' | 'explicit';
10
- export type WhiteSpace = 'normal' | 'nowrap';
11
- export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
12
- export type BorderStyle = 'solid' | 'none' | 'hidden' | 'dotted' | 'dashed' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
13
- export type BackgroundBlendMode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
14
- export type CursorType = 'auto' | 'default' | 'none' | 'context-menu' | 'help' | 'pointer' | 'progress' | 'wait' | 'cell' | 'crosshair' | 'text' | 'vertical-text' | 'alias' | 'copy' | 'move' | 'no-drop' | 'not-allowed' | 'e-resize' | 'n-resize' | 'ne-resize' | 'nw-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'w-resize' | 'ew-resize' | 'ns-resize' | 'nesw-resize' | 'nwse-resize' | 'col-resize' | 'row-resize' | 'all-scroll' | 'zoom-in' | 'zoom-out' | 'grab' | 'grabbing';
15
- export type TextAlign = 'top-left' | 'top' | 'top-right' | 'top-justified' | 'top-flush' | 'top-geo-aligned' | 'left' | 'center' | 'right' | 'justified' | 'flush' | 'center-geo-aligned' | 'bottom-left' | 'bottom' | 'bottom-right' | 'bottom-justified' | 'bottom-flush' | 'bottom-geo-aligned' | 'baseline-left' | 'baseline' | 'baseline-right' | 'baseline-justified' | 'baseline-flush' | 'baseline-geo-aligned' | 'midline-left' | 'midline' | 'midline-right' | 'midline-justified' | 'midline-flush' | 'midline-geo-aligned' | 'capline-left' | 'capline' | 'capline-right' | 'capline-justified' | 'capline-flush' | 'capline-geo-aligned' | 'converted';
16
- export type VerticalAlign = 'top' | 'middle' | 'bottom' | 'baseline' | 'geometry' | 'capline';
17
- export type TimingFunctionType = 'ease' | 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'step-start' | 'step-end';
18
- export type AnimationFillMode = 'none' | 'both' | 'forwards' | 'backwards';
19
- export type AnimationDirection = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
20
- export type AnimationPlayState = 'running' | 'paused';
21
- export type BackgroundSize = 'cover' | 'contain';
22
- export type BackgroundRepeat = 'repeat' | 'space' | 'round' | 'no-repeat';
23
- export type BorderImageRepeat = 'stretch' | 'repeat' | 'space' | 'round';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=styles-enums.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles-enums.js","sourceRoot":"","sources":["../../../../src/models/properties/styles-enums.ts"],"names":[],"mappings":""}
@@ -1,127 +0,0 @@
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/models/properties/styles.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=values.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"values.js","sourceRoot":"","sources":["../../../../src/models/properties/values.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=yoga-enums.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yoga-enums.js","sourceRoot":"","sources":["../../../../src/models/properties/yoga-enums.ts"],"names":[],"mappings":""}
@@ -1,66 +0,0 @@
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=yoga.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yoga.js","sourceRoot":"","sources":["../../../../src/models/properties/yoga.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import type Reconciler from 'react-reconciler';
2
- import type { ReactUnity } from './generated';
3
- export type Unique<T, K> = T & {
4
- $type: K;
5
- };
6
- export type NativeInstance = ReactUnity.IReactComponent;
7
- export type NativeTextInstance = ReactUnity.ITextComponent;
8
- export type NativeContainerInstance = ReactUnity.IReactComponent;
9
- export type InstanceTag = string;
10
- export type Props = React.RefAttributes<NativeInstance> & {
11
- [key: string]: any;
12
- children?: React.ReactNode;
13
- };
14
- export type SuspenseInstance = NativeInstance;
15
- export type HydratableInstance = NativeInstance;
16
- export type FormInstance = NativeInstance;
17
- export type PublicInstance = any;
18
- export type HostContext = Record<string, unknown>;
19
- export type ChildSet = Record<string, unknown>;
20
- export type TimeoutHandle = number;
21
- export type TransitionStatus = null | 'NotPendingTransition';
22
- export type NoTimeout = -1;
23
- export type CommonConfig = Reconciler.HostConfig<InstanceTag, Props, NativeContainerInstance, NativeInstance, NativeTextInstance, SuspenseInstance, HydratableInstance, FormInstance, PublicInstance, HostContext, ChildSet, TimeoutHandle, NoTimeout, TransitionStatus>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../src/models/renderer.ts"],"names":[],"mappings":""}
@@ -1,69 +0,0 @@
1
- import * as React from 'react';
2
- import { UnityEngine } from './generated';
3
- export type RichTextTags = RichTextValueTag;
4
- export interface RichTextVoidTag extends React.Attributes {
5
- children?: any;
6
- }
7
- export interface RichTextValueTag<T = string | number> extends React.Attributes {
8
- value?: T | (string & {});
9
- children?: any;
10
- }
11
- export interface RichTextColorTag extends React.Attributes {
12
- value?: string | UnityEngine.Color;
13
- children?: any;
14
- }
15
- export interface RichTextFontTag extends React.Attributes {
16
- value?: string;
17
- material?: string;
18
- children?: any;
19
- }
20
- export interface RichTextSpriteTag extends React.Attributes {
21
- value?: string | number;
22
- children?: any;
23
- name?: string;
24
- index?: string | number;
25
- color?: string;
26
- }
27
- export interface RichTextElements {
28
- nbsp: RichTextVoidTag;
29
- zwsp: RichTextVoidTag;
30
- br: RichTextVoidTag;
31
- shy: RichTextVoidTag;
32
- cr: RichTextVoidTag;
33
- lf: RichTextVoidTag;
34
- align: RichTextValueTag<'right' | 'center' | 'left'>;
35
- alpha: RichTextValueTag<string>;
36
- color: RichTextColorTag;
37
- b: RichTextVoidTag;
38
- i: RichTextVoidTag;
39
- cspace: RichTextValueTag<number>;
40
- font: RichTextFontTag;
41
- indent: RichTextValueTag<number>;
42
- 'line-height': RichTextValueTag<number>;
43
- 'line-indent': RichTextValueTag<number>;
44
- link: RichTextValueTag;
45
- lowercase: RichTextVoidTag;
46
- uppercase: RichTextVoidTag;
47
- smallcaps: RichTextVoidTag;
48
- allcaps: RichTextVoidTag;
49
- margin: RichTextValueTag<number>;
50
- 'margin-left': RichTextValueTag<number>;
51
- 'margin-right': RichTextValueTag<number>;
52
- mark: RichTextValueTag;
53
- mspace: RichTextVoidTag;
54
- noparse: RichTextVoidTag;
55
- nobr: RichTextVoidTag;
56
- page: RichTextVoidTag;
57
- pos: RichTextValueTag<number>;
58
- scale: RichTextValueTag<number>;
59
- size: RichTextValueTag<number>;
60
- space: RichTextValueTag<number>;
61
- sprite: RichTextSpriteTag;
62
- s: RichTextVoidTag;
63
- u: RichTextVoidTag;
64
- style: RichTextValueTag;
65
- sub: RichTextVoidTag;
66
- sup: RichTextVoidTag;
67
- voffset: RichTextValueTag<number>;
68
- width: RichTextValueTag<number>;
69
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=richtext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"richtext.js","sourceRoot":"","sources":["../../../src/models/richtext.ts"],"names":[],"mappings":""}
@@ -1,68 +0,0 @@
1
- import type * as React from 'react';
2
- import { Style } from './properties';
3
- type SVGProps<T> = React.Attributes & Omit<React.SVGAttributes<T>, keyof React.DOMAttributes<T> | keyof React.AriaAttributes | 'style'> & {
4
- style?: Style | React.CSSProperties | string | undefined;
5
- children?: any;
6
- };
7
- export type SVGEelement = SVGProps<SVGSVGElement>;
8
- export interface SVGElements {
9
- svg: SVGEelement;
10
- animate: SVGProps<SVGElement>;
11
- animateMotion: SVGProps<SVGElement>;
12
- animateTransform: SVGProps<SVGElement>;
13
- circle: SVGProps<SVGCircleElement>;
14
- clipPath: SVGProps<SVGClipPathElement>;
15
- defs: SVGProps<SVGDefsElement>;
16
- desc: SVGProps<SVGDescElement>;
17
- ellipse: SVGProps<SVGEllipseElement>;
18
- feBlend: SVGProps<SVGFEBlendElement>;
19
- feColorMatrix: SVGProps<SVGFEColorMatrixElement>;
20
- feComponentTransfer: SVGProps<SVGFEComponentTransferElement>;
21
- feComposite: SVGProps<SVGFECompositeElement>;
22
- feConvolveMatrix: SVGProps<SVGFEConvolveMatrixElement>;
23
- feDiffuseLighting: SVGProps<SVGFEDiffuseLightingElement>;
24
- feDisplacementMap: SVGProps<SVGFEDisplacementMapElement>;
25
- feDistantLight: SVGProps<SVGFEDistantLightElement>;
26
- feDropShadow: SVGProps<SVGFEDropShadowElement>;
27
- feFlood: SVGProps<SVGFEFloodElement>;
28
- feFuncA: SVGProps<SVGFEFuncAElement>;
29
- feFuncB: SVGProps<SVGFEFuncBElement>;
30
- feFuncG: SVGProps<SVGFEFuncGElement>;
31
- feFuncR: SVGProps<SVGFEFuncRElement>;
32
- feGaussianBlur: SVGProps<SVGFEGaussianBlurElement>;
33
- feImage: SVGProps<SVGFEImageElement>;
34
- feMerge: SVGProps<SVGFEMergeElement>;
35
- feMergeNode: SVGProps<SVGFEMergeNodeElement>;
36
- feMorphology: SVGProps<SVGFEMorphologyElement>;
37
- feOffset: SVGProps<SVGFEOffsetElement>;
38
- fePointLight: SVGProps<SVGFEPointLightElement>;
39
- feSpecularLighting: SVGProps<SVGFESpecularLightingElement>;
40
- feSpotLight: SVGProps<SVGFESpotLightElement>;
41
- feTile: SVGProps<SVGFETileElement>;
42
- feTurbulence: SVGProps<SVGFETurbulenceElement>;
43
- filter: SVGProps<SVGFilterElement>;
44
- foreignObject: SVGProps<SVGForeignObjectElement>;
45
- g: SVGProps<SVGGElement>;
46
- image: SVGProps<SVGImageElement>;
47
- line: SVGProps<SVGLineElement>;
48
- linearGradient: SVGProps<SVGLinearGradientElement>;
49
- marker: SVGProps<SVGMarkerElement>;
50
- mask: SVGProps<SVGMaskElement>;
51
- metadata: SVGProps<SVGMetadataElement>;
52
- mpath: SVGProps<SVGElement>;
53
- path: SVGProps<SVGPathElement>;
54
- pattern: SVGProps<SVGPatternElement>;
55
- polygon: SVGProps<SVGPolygonElement>;
56
- polyline: SVGProps<SVGPolylineElement>;
57
- radialGradient: SVGProps<SVGRadialGradientElement>;
58
- rect: SVGProps<SVGRectElement>;
59
- stop: SVGProps<SVGStopElement>;
60
- switch: SVGProps<SVGSwitchElement>;
61
- symbol: SVGProps<SVGSymbolElement>;
62
- text: SVGProps<SVGTextElement>;
63
- textPath: SVGProps<SVGTextPathElement>;
64
- tspan: SVGProps<SVGTSpanElement>;
65
- use: SVGProps<SVGUseElement>;
66
- view: SVGProps<SVGViewElement>;
67
- }
68
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/models/svg.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { NUnit, UnityEngine } from '../generated';
2
- declare global {
3
- var Assert: NUnit.Framework.Assert;
4
- var Has: NUnit.Framework.Has;
5
- var Is: NUnit.Framework.Is;
6
- var Iz: NUnit.Framework.Iz;
7
- var Contains: NUnit.Framework.Contains;
8
- var Does: NUnit.Framework.Does;
9
- var Assume: NUnit.Framework.Assume;
10
- var Throws: NUnit.Framework.Throws;
11
- var LogAssert: UnityEngine.TestTools.LogAssert;
12
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/tests/index.ts"],"names":[],"mappings":""}
@@ -1,85 +0,0 @@
1
- import { BaseCmpProps, ContentSrcProps } from '../base';
2
- import { ReactUnity, UnityEngine } from '../generated';
3
- import { AnchorTarget, ScrollDirection } from '../properties';
4
- import { AssetReference, AssetReferenceOrHttp } from '../properties/values';
5
- import { ActionCallback, Events } from './events';
6
- export interface View<T = ReactUnity.UGUI.UGUIComponent> extends Events<T>, BaseCmpProps {
7
- active?: boolean;
8
- eventViewport?: UnityEngine.RectTransform | UnityEngine.GameObject | ReactUnity.UGUI.UGUIComponent;
9
- }
10
- export interface Text extends View<ReactUnity.UGUI.TextComponent> {
11
- richText?: boolean;
12
- }
13
- export interface Label extends View<ReactUnity.UGUI.LabelComponent> {
14
- for?: ReactUnity.UGUI.UGUIComponent | string;
15
- }
16
- export interface Icon extends View<ReactUnity.UGUI.IconComponent> {
17
- set?: ReactUnity.Styling.IconSet | string;
18
- }
19
- export interface Scroll extends View<ReactUnity.UGUI.ScrollComponent> {
20
- onValueChanged?: (ev: UnityEngine.Vector2, sender: ReactUnity.UGUI.ScrollComponent) => void;
21
- direction?: ScrollDirection;
22
- alwaysShow?: ScrollDirection;
23
- sensitivity?: number;
24
- elasticity?: number;
25
- smoothness?: number;
26
- }
27
- export interface Button extends Omit<View<ReactUnity.UGUI.ButtonComponent>, 'onClick'> {
28
- onClick?: ActionCallback<ReactUnity.UGUI.ButtonComponent>;
29
- disabled?: boolean;
30
- }
31
- export interface Toggle extends View<ReactUnity.UGUI.ToggleComponent> {
32
- value?: any;
33
- checked?: boolean;
34
- onChange?: (val: boolean, sender: ReactUnity.UGUI.ToggleComponent) => void;
35
- disabled?: boolean;
36
- indeterminate?: boolean;
37
- }
38
- export interface Anchor extends View<ReactUnity.UGUI.AnchorComponent> {
39
- url?: string;
40
- href?: string;
41
- disabled?: boolean;
42
- /** Works in WebGL only */
43
- target?: AnchorTarget;
44
- }
45
- export interface BaseImage<T = ReactUnity.UGUI.ImageComponent> extends View<T> {
46
- src?: AssetReferenceOrHttp;
47
- source?: AssetReferenceOrHttp;
48
- alt?: string;
49
- }
50
- export interface Image<T = ReactUnity.UGUI.ImageComponent> extends BaseImage<T> {
51
- preserveAspect?: boolean;
52
- }
53
- export interface RawImage extends BaseImage<ReactUnity.UGUI.RawImageComponent> {
54
- }
55
- export interface Video extends BaseImage<ReactUnity.UGUI.VideoComponent> {
56
- src?: AssetReference;
57
- source?: AssetReference;
58
- }
59
- export interface SvgImage<T = ReactUnity.UGUI.SvgImageComponent> extends Image<T> {
60
- }
61
- export interface Render<T = ReactUnity.UGUI.RenderComponent> extends BaseImage<T> {
62
- width: number;
63
- height: number;
64
- src?: never;
65
- source?: never;
66
- camera?: UnityEngine.Camera | UnityEngine.GameObject;
67
- onMount?: (camera: UnityEngine.Camera, sender: T) => void;
68
- onUnmount?: (camera: UnityEngine.Camera, sender: T) => void;
69
- }
70
- export interface Object extends Render<ReactUnity.UGUI.ObjectComponent> {
71
- target?: UnityEngine.GameObject;
72
- }
73
- export interface Prefab<T = ReactUnity.UGUI.PrefabComponent> extends View<T> {
74
- target?: UnityEngine.GameObject | UnityEngine.Component;
75
- onMount?: (camera: UnityEngine.GameObject, sender: T) => void;
76
- onUnmount?: (camera: UnityEngine.GameObject, sender: T) => void;
77
- }
78
- export interface Portal<T = ReactUnity.UGUI.PortalComponent> extends View<T> {
79
- target?: UnityEngine.GameObject | UnityEngine.Component | UnityEngine.Transform | ReactUnity.UGUI.UGUIComponent;
80
- eventCamera?: UnityEngine.Camera | UnityEngine.GameObject;
81
- onMount?: (camera: UnityEngine.Transform, sender: T) => void;
82
- onUnmount?: (camera: UnityEngine.Transform, sender: T) => void;
83
- }
84
- export interface Svg<T = ReactUnity.UGUI.SvgComponent> extends SvgImage<T>, ContentSrcProps {
85
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/models/ugui/components.ts"],"names":[],"mappings":""}