@dcl/react-ecs 0.0.1-3100621952.commit-d6e10e5 → 0.0.1-3108095849.commit-cc94e35
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/index.d.ts +16 -0
- package/dist/index.js +3 -2
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare interface Color3 {
|
|
|
8
8
|
b: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export declare interface Color4 {
|
|
12
|
+
r: number;
|
|
13
|
+
g: number;
|
|
14
|
+
b: number;
|
|
15
|
+
a: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
export declare type CommonProps = {
|
|
12
19
|
key: Key;
|
|
13
20
|
children: Children;
|
|
@@ -24,6 +31,7 @@ export declare type EcsElements = {
|
|
|
24
31
|
export declare type EntityComponents = {
|
|
25
32
|
uiTransform: PBUiTransform;
|
|
26
33
|
uiText: PBUiText;
|
|
34
|
+
uiStyles: PBUiStyles;
|
|
27
35
|
};
|
|
28
36
|
|
|
29
37
|
/**
|
|
@@ -32,6 +40,7 @@ export declare type EntityComponents = {
|
|
|
32
40
|
export declare type EntityPropTypes = {
|
|
33
41
|
uiTransform?: UiTransformProps;
|
|
34
42
|
uiText?: UiTextProps;
|
|
43
|
+
uiStyles?: UiStylesProps;
|
|
35
44
|
};
|
|
36
45
|
|
|
37
46
|
export declare enum Font {
|
|
@@ -50,6 +59,11 @@ export declare namespace JSX {
|
|
|
50
59
|
|
|
51
60
|
export declare type Key = number | string;
|
|
52
61
|
|
|
62
|
+
export declare interface PBUiStyles {
|
|
63
|
+
/** default=(0.0, 0.0, 0.0, 0.0) */
|
|
64
|
+
backgroundColor?: Color4 | undefined;
|
|
65
|
+
}
|
|
66
|
+
|
|
53
67
|
export declare interface PBUiText {
|
|
54
68
|
value: string;
|
|
55
69
|
/** default=(1.0,1.0,1.0) */
|
|
@@ -164,6 +178,8 @@ export declare type UiComponent = () => JSX.Element;
|
|
|
164
178
|
*/
|
|
165
179
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
166
180
|
|
|
181
|
+
export declare type UiStylesProps = PBUiStyles;
|
|
182
|
+
|
|
167
183
|
export declare type UiTextProps = PBUiText;
|
|
168
184
|
|
|
169
185
|
/**
|