@dcl/react-ecs 0.0.1-3063934984.commit-cdc4e28 → 0.0.1-3108038217.commit-b856fdb

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 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;
@@ -17,13 +24,14 @@ export declare function Container({ width, height, children }: ContainerPropType
17
24
 
18
25
  export declare type ContainerPropTypes = Partial<CommonProps> & EntityPropTypes['uiTransform'];
19
26
 
20
- declare type EcsElements = {
27
+ export declare type EcsElements = {
21
28
  entity: Partial<EntityComponents & CommonProps>;
22
29
  };
23
30
 
24
- declare type EntityComponents = {
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 @@ 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 {
@@ -40,16 +49,21 @@ export declare enum Font {
40
49
  UNRECOGNIZED = -1
41
50
  }
42
51
 
43
- declare namespace JSX {
44
- interface Element {
52
+ export declare namespace JSX {
53
+ export interface Element {
45
54
  }
46
- type IntrinsicElements = EcsElements;
47
- interface Component {
55
+ export type IntrinsicElements = EcsElements;
56
+ export interface Component {
48
57
  }
49
58
  }
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
  /**