@reactunity/renderer 0.21.0 → 0.23.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.
- package/dist/base-BT2GMEbv.d.ts +17122 -0
- package/dist/components-Cbty8Ffc.d.ts +153 -0
- package/dist/editor/index.d.ts +15 -1
- package/dist/editor/index.js +1 -2
- package/dist/editor/jsx-dev-runtime.d.ts +3 -3
- package/dist/editor/jsx-dev-runtime.js +2 -2
- package/dist/editor/jsx-runtime.d.ts +3 -2
- package/dist/editor/jsx-runtime.js +2 -2
- package/dist/editor-Ds4U7pg6.d.ts +19438 -0
- package/dist/index-CBMYN8iy.d.ts +1 -0
- package/dist/index.d.ts +587 -19
- package/dist/index.js +1020 -17
- package/dist/index.js.map +1 -1
- package/dist/jsx-9V8cIFit.d.ts +114 -0
- package/dist/jsx-BZUfiU1y.d.ts +57 -0
- package/dist/jsx-DXzVL17E.d.ts +231 -0
- package/dist/objectSpread2-CDDvZyE7.js +62 -0
- package/dist/tests-DbTTvHZm.d.ts +5044 -0
- package/dist/tests.d.ts +15 -1
- package/dist/tests.js +1 -2
- package/dist/ugui/index.d.ts +3 -1
- package/dist/ugui/index.js +1 -2
- package/dist/ugui/jsx-dev-runtime.d.ts +3 -3
- package/dist/ugui/jsx-dev-runtime.js +2 -2
- package/dist/ugui/jsx-runtime.d.ts +3 -2
- package/dist/ugui/jsx-runtime.js +2 -2
- package/dist/uitoolkit/index.d.ts +3 -1
- package/dist/uitoolkit/index.js +1 -2
- package/dist/uitoolkit/jsx-dev-runtime.d.ts +3 -3
- package/dist/uitoolkit/jsx-dev-runtime.js +2 -2
- package/dist/uitoolkit/jsx-runtime.d.ts +3 -2
- package/dist/uitoolkit/jsx-runtime.js +2 -2
- package/dist/unity-BQNCBoTP.d.ts +86554 -0
- package/dist/webgl-compat.d.ts +64 -1
- package/dist/webgl-compat.js +184 -1
- package/dist/webgl-compat.js.map +1 -1
- package/package.json +29 -20
- package/dist/editor/index.js.map +0 -1
- package/dist/editor/jsx-dev-runtime.js.map +0 -1
- package/dist/editor/jsx-runtime.js.map +0 -1
- package/dist/src/helpers/dictionary-watcher.d.ts +0 -66
- package/dist/src/helpers/dictionary-watcher.js +0 -100
- package/dist/src/helpers/dictionary-watcher.js.map +0 -1
- package/dist/src/helpers/hooks/use-globals.d.ts +0 -6
- package/dist/src/helpers/hooks/use-globals.js +0 -7
- package/dist/src/helpers/hooks/use-globals.js.map +0 -1
- package/dist/src/helpers/hooks/use-reactive-value.d.ts +0 -4
- package/dist/src/helpers/hooks/use-reactive-value.js +0 -29
- package/dist/src/helpers/hooks/use-reactive-value.js.map +0 -1
- package/dist/src/helpers/icons.d.ts +0 -17
- package/dist/src/helpers/icons.js +0 -30
- package/dist/src/helpers/icons.js.map +0 -1
- package/dist/src/models/base.d.ts +0 -56
- package/dist/src/models/base.js +0 -2
- package/dist/src/models/base.js.map +0 -1
- package/dist/src/models/editor/components.d.ts +0 -22
- package/dist/src/models/editor/components.js +0 -2
- package/dist/src/models/editor/components.js.map +0 -1
- package/dist/src/models/editor/environment.d.ts +0 -9
- package/dist/src/models/editor/environment.js +0 -2
- package/dist/src/models/editor/environment.js.map +0 -1
- package/dist/src/models/editor/index.d.ts +0 -3
- package/dist/src/models/editor/index.js +0 -4
- package/dist/src/models/editor/index.js.map +0 -1
- package/dist/src/models/editor/jsx.d.ts +0 -105
- package/dist/src/models/editor/jsx.js +0 -2
- package/dist/src/models/editor/jsx.js.map +0 -1
- package/dist/src/models/environment/dom/common.d.ts +0 -98
- package/dist/src/models/environment/dom/common.js +0 -2
- package/dist/src/models/environment/dom/common.js.map +0 -1
- package/dist/src/models/environment/dom/fetch.d.ts +0 -111
- package/dist/src/models/environment/dom/fetch.js +0 -2
- package/dist/src/models/environment/dom/fetch.js.map +0 -1
- package/dist/src/models/environment/dom/global.d.ts +0 -14
- package/dist/src/models/environment/dom/global.js +0 -2
- package/dist/src/models/environment/dom/global.js.map +0 -1
- package/dist/src/models/environment/dom/xhr.d.ts +0 -161
- package/dist/src/models/environment/dom/xhr.js +0 -2
- package/dist/src/models/environment/dom/xhr.js.map +0 -1
- package/dist/src/models/environment/index.d.ts +0 -43
- package/dist/src/models/environment/index.js +0 -3
- package/dist/src/models/environment/index.js.map +0 -1
- package/dist/src/models/environment/interop.d.ts +0 -23
- package/dist/src/models/environment/interop.js +0 -2
- package/dist/src/models/environment/interop.js.map +0 -1
- package/dist/src/models/generated/editor.d.ts +0 -19444
- package/dist/src/models/generated/editor.js +0 -7
- package/dist/src/models/generated/editor.js.map +0 -1
- package/dist/src/models/generated/index.d.ts +0 -6
- package/dist/src/models/generated/index.js +0 -7
- package/dist/src/models/generated/index.js.map +0 -1
- package/dist/src/models/generated/react.d.ts +0 -16094
- package/dist/src/models/generated/react.js +0 -7
- package/dist/src/models/generated/react.js.map +0 -1
- package/dist/src/models/generated/system.d.ts +0 -36981
- package/dist/src/models/generated/system.js +0 -7
- package/dist/src/models/generated/system.js.map +0 -1
- package/dist/src/models/generated/tests.d.ts +0 -5045
- package/dist/src/models/generated/tests.js +0 -7
- package/dist/src/models/generated/tests.js.map +0 -1
- package/dist/src/models/generated/unity.d.ts +0 -49639
- package/dist/src/models/generated/unity.js +0 -7
- package/dist/src/models/generated/unity.js.map +0 -1
- package/dist/src/models/generated/yoga.d.ts +0 -426
- package/dist/src/models/generated/yoga.js +0 -7
- package/dist/src/models/generated/yoga.js.map +0 -1
- package/dist/src/models/properties/colors.d.ts +0 -150
- package/dist/src/models/properties/colors.js +0 -2
- package/dist/src/models/properties/colors.js.map +0 -1
- package/dist/src/models/properties/common.d.ts +0 -3
- package/dist/src/models/properties/common.js +0 -2
- package/dist/src/models/properties/common.js.map +0 -1
- package/dist/src/models/properties/index.d.ts +0 -7
- package/dist/src/models/properties/index.js +0 -8
- package/dist/src/models/properties/index.js.map +0 -1
- package/dist/src/models/properties/style.d.ts +0 -10
- package/dist/src/models/properties/style.js +0 -2
- package/dist/src/models/properties/style.js.map +0 -1
- package/dist/src/models/properties/styles-enums.d.ts +0 -23
- package/dist/src/models/properties/styles-enums.js +0 -2
- package/dist/src/models/properties/styles-enums.js.map +0 -1
- package/dist/src/models/properties/styles.d.ts +0 -127
- package/dist/src/models/properties/styles.js +0 -2
- package/dist/src/models/properties/styles.js.map +0 -1
- package/dist/src/models/properties/values.d.ts +0 -24
- package/dist/src/models/properties/values.js +0 -2
- package/dist/src/models/properties/values.js.map +0 -1
- package/dist/src/models/properties/yoga-enums.d.ts +0 -9
- package/dist/src/models/properties/yoga-enums.js +0 -2
- package/dist/src/models/properties/yoga-enums.js.map +0 -1
- package/dist/src/models/properties/yoga.d.ts +0 -67
- package/dist/src/models/properties/yoga.js +0 -2
- package/dist/src/models/properties/yoga.js.map +0 -1
- package/dist/src/models/renderer.d.ts +0 -23
- package/dist/src/models/renderer.js +0 -2
- package/dist/src/models/renderer.js.map +0 -1
- package/dist/src/models/richtext.d.ts +0 -69
- package/dist/src/models/richtext.js +0 -2
- package/dist/src/models/richtext.js.map +0 -1
- package/dist/src/models/svg.d.ts +0 -68
- package/dist/src/models/svg.js +0 -2
- package/dist/src/models/svg.js.map +0 -1
- package/dist/src/models/tests/index.d.ts +0 -12
- package/dist/src/models/tests/index.js +0 -2
- package/dist/src/models/tests/index.js.map +0 -1
- package/dist/src/models/ugui/components.d.ts +0 -85
- package/dist/src/models/ugui/components.js +0 -2
- package/dist/src/models/ugui/components.js.map +0 -1
- package/dist/src/models/ugui/events.d.ts +0 -74
- package/dist/src/models/ugui/events.js +0 -2
- package/dist/src/models/ugui/events.js.map +0 -1
- package/dist/src/models/ugui/index.d.ts +0 -4
- package/dist/src/models/ugui/index.js +0 -5
- package/dist/src/models/ugui/index.js.map +0 -1
- package/dist/src/models/ugui/input.d.ts +0 -26
- package/dist/src/models/ugui/input.js +0 -2
- package/dist/src/models/ugui/input.js.map +0 -1
- package/dist/src/models/ugui/jsx.d.ts +0 -67
- package/dist/src/models/ugui/jsx.js +0 -2
- package/dist/src/models/ugui/jsx.js.map +0 -1
- package/dist/src/models/uitoolkit/components.d.ts +0 -98
- package/dist/src/models/uitoolkit/components.js +0 -2
- package/dist/src/models/uitoolkit/components.js.map +0 -1
- package/dist/src/models/uitoolkit/events.d.ts +0 -64
- package/dist/src/models/uitoolkit/events.js +0 -2
- package/dist/src/models/uitoolkit/events.js.map +0 -1
- package/dist/src/models/uitoolkit/index.d.ts +0 -3
- package/dist/src/models/uitoolkit/index.js +0 -4
- package/dist/src/models/uitoolkit/index.js.map +0 -1
- package/dist/src/models/uitoolkit/jsx.d.ts +0 -67
- package/dist/src/models/uitoolkit/jsx.js +0 -2
- package/dist/src/models/uitoolkit/jsx.js.map +0 -1
- package/dist/src/renderer/async/callbacks.d.ts +0 -5
- package/dist/src/renderer/async/callbacks.js +0 -53
- package/dist/src/renderer/async/callbacks.js.map +0 -1
- package/dist/src/renderer/async/commands.d.ts +0 -71
- package/dist/src/renderer/async/commands.js +0 -2
- package/dist/src/renderer/async/commands.js.map +0 -1
- package/dist/src/renderer/async/objects.d.ts +0 -7
- package/dist/src/renderer/async/objects.js +0 -32
- package/dist/src/renderer/async/objects.js.map +0 -1
- package/dist/src/renderer/async/reconciler.d.ts +0 -2
- package/dist/src/renderer/async/reconciler.js +0 -321
- package/dist/src/renderer/async/reconciler.js.map +0 -1
- package/dist/src/renderer/async/serializer.d.ts +0 -6
- package/dist/src/renderer/async/serializer.js +0 -32
- package/dist/src/renderer/async/serializer.js.map +0 -1
- package/dist/src/renderer/async/types.d.ts +0 -45
- package/dist/src/renderer/async/types.js +0 -2
- package/dist/src/renderer/async/types.js.map +0 -1
- package/dist/src/renderer/constants.d.ts +0 -46
- package/dist/src/renderer/constants.js +0 -90
- package/dist/src/renderer/constants.js.map +0 -1
- package/dist/src/renderer/diffing.d.ts +0 -3
- package/dist/src/renderer/diffing.js +0 -79
- package/dist/src/renderer/diffing.js.map +0 -1
- package/dist/src/renderer/renderer.d.ts +0 -23
- package/dist/src/renderer/renderer.js +0 -124
- package/dist/src/renderer/renderer.js.map +0 -1
- package/dist/src/renderer/subcontexts/index.d.ts +0 -6
- package/dist/src/renderer/subcontexts/index.js +0 -7
- package/dist/src/renderer/subcontexts/index.js.map +0 -1
- package/dist/src/renderer/subcontexts/richtext.d.ts +0 -3
- package/dist/src/renderer/subcontexts/richtext.js +0 -53
- package/dist/src/renderer/subcontexts/richtext.js.map +0 -1
- package/dist/src/renderer/subcontexts/svg.d.ts +0 -3
- package/dist/src/renderer/subcontexts/svg.js +0 -71
- package/dist/src/renderer/subcontexts/svg.js.map +0 -1
- package/dist/src/renderer/sync/reconciler.d.ts +0 -2
- package/dist/src/renderer/sync/reconciler.js +0 -80
- package/dist/src/renderer/sync/reconciler.js.map +0 -1
- package/dist/src/version.d.ts +0 -1
- package/dist/src/version.js +0 -2
- package/dist/src/version.js.map +0 -1
- package/dist/src/views/default-view.d.ts +0 -8
- package/dist/src/views/default-view.js +0 -7
- package/dist/src/views/default-view.js.map +0 -1
- package/dist/src/views/error-boundary.d.ts +0 -10
- package/dist/src/views/error-boundary.js +0 -43
- package/dist/src/views/error-boundary.js.map +0 -1
- package/dist/src/webgl-compat/error-messages.d.ts +0 -9
- package/dist/src/webgl-compat/error-messages.js +0 -11
- package/dist/src/webgl-compat/error-messages.js.map +0 -1
- package/dist/src/webgl-compat/index.d.ts +0 -15
- package/dist/src/webgl-compat/index.js +0 -9
- package/dist/src/webgl-compat/index.js.map +0 -1
- package/dist/src/webgl-compat/types.d.ts +0 -21
- package/dist/src/webgl-compat/types.js +0 -2
- package/dist/src/webgl-compat/types.js.map +0 -1
- package/dist/src/webgl-compat/use-event-system.d.ts +0 -3
- package/dist/src/webgl-compat/use-event-system.js +0 -75
- package/dist/src/webgl-compat/use-event-system.js.map +0 -1
- package/dist/src/webgl-compat/use-unity-context.d.ts +0 -31
- package/dist/src/webgl-compat/use-unity-context.js +0 -91
- package/dist/src/webgl-compat/use-unity-context.js.map +0 -1
- package/dist/tests.js.map +0 -1
- package/dist/ugui/index.js.map +0 -1
- package/dist/ugui/jsx-dev-runtime.js.map +0 -1
- package/dist/ugui/jsx-runtime.js.map +0 -1
- package/dist/uitoolkit/index.js.map +0 -1
- package/dist/uitoolkit/jsx-dev-runtime.js.map +0 -1
- 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 +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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../../src/models/properties/values.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +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' | 'contents';
|
|
5
|
-
export type BoxSizing = 'border-box' | 'content-box';
|
|
6
|
-
export type Wrap = 'no-wrap' | 'wrap' | 'wrap-reverse';
|
|
7
|
-
export type Position = 'relative' | 'absolute' | 'fixed' | 'static' | 'sticky' | 'inset';
|
|
8
|
-
export type Overflow = 'visible' | 'hidden' | 'scroll';
|
|
9
|
-
export type Direction = 'inherit' | 'ltr' | 'rtl';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yoga-enums.js","sourceRoot":"","sources":["../../../../src/models/properties/yoga-enums.ts"],"names":[],"mappings":""}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Array2Aux, Array4Aux, PositioningLiteral } from './values';
|
|
2
|
-
import { BoxSizing, 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
|
-
boxSizing?: BoxSizing;
|
|
11
|
-
wrap?: Wrap;
|
|
12
|
-
positionType?: Position;
|
|
13
|
-
justifyContent?: YogaJustify;
|
|
14
|
-
alignContent?: YogaAlign;
|
|
15
|
-
alignSelf?: YogaAlign;
|
|
16
|
-
alignItems?: YogaAlign;
|
|
17
|
-
borderWidth?: number;
|
|
18
|
-
borderStartWidth?: number;
|
|
19
|
-
borderEndWidth?: number;
|
|
20
|
-
borderTopWidth?: number;
|
|
21
|
-
borderRightWidth?: number;
|
|
22
|
-
borderBottomWidth?: number;
|
|
23
|
-
borderLeftWidth?: number;
|
|
24
|
-
aspectRatio?: number;
|
|
25
|
-
flexDirection?: FlexDirection;
|
|
26
|
-
flexShrink?: number;
|
|
27
|
-
flexGrow?: number;
|
|
28
|
-
flexBasis?: YogaValueAux;
|
|
29
|
-
minHeight?: YogaValueAux;
|
|
30
|
-
minWidth?: YogaValueAux;
|
|
31
|
-
maxHeight?: YogaValueAux;
|
|
32
|
-
maxWidth?: YogaValueAux;
|
|
33
|
-
height?: YogaValueAux;
|
|
34
|
-
width?: YogaValueAux;
|
|
35
|
-
left?: YogaValueAux;
|
|
36
|
-
top?: YogaValueAux;
|
|
37
|
-
right?: YogaValueAux;
|
|
38
|
-
start?: YogaValueAux;
|
|
39
|
-
end?: YogaValueAux;
|
|
40
|
-
marginLeft?: YogaValueAux;
|
|
41
|
-
marginTop?: YogaValueAux;
|
|
42
|
-
marginRight?: YogaValueAux;
|
|
43
|
-
marginBottom?: YogaValueAux;
|
|
44
|
-
marginStart?: YogaValueAux;
|
|
45
|
-
marginEnd?: YogaValueAux;
|
|
46
|
-
marginHorizontal?: YogaValueAux;
|
|
47
|
-
bottom?: YogaValueAux;
|
|
48
|
-
margin?: YogaValueAux;
|
|
49
|
-
marginVertical?: YogaValueAux;
|
|
50
|
-
padding?: YogaValueAux;
|
|
51
|
-
paddingVertical?: YogaValueAux;
|
|
52
|
-
paddingHorizontal?: YogaValueAux;
|
|
53
|
-
paddingStart?: YogaValueAux;
|
|
54
|
-
paddingBottom?: YogaValueAux;
|
|
55
|
-
paddingRight?: YogaValueAux;
|
|
56
|
-
paddingTop?: YogaValueAux;
|
|
57
|
-
paddingEnd?: YogaValueAux;
|
|
58
|
-
paddingLeft?: YogaValueAux;
|
|
59
|
-
rowGap?: number;
|
|
60
|
-
columnGap?: number;
|
|
61
|
-
}
|
|
62
|
-
export interface LayoutExtended {
|
|
63
|
-
position?: Position;
|
|
64
|
-
direction?: Direction;
|
|
65
|
-
flexWrap?: Wrap;
|
|
66
|
-
}
|
|
67
|
-
export type LayoutCssCompatible = Omit<Layout, 'styleDirection' | 'position' | 'wrap' | 'margin' | 'padding' | 'borderWidth'> & LayoutExtended;
|
|
@@ -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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"richtext.js","sourceRoot":"","sources":["../../../src/models/richtext.ts"],"names":[],"mappings":""}
|
package/dist/src/models/svg.d.ts
DELETED
|
@@ -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 {};
|
package/dist/src/models/svg.js
DELETED
|
@@ -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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/models/ugui/components.ts"],"names":[],"mappings":""}
|