@dcl/react-ecs 0.0.1-3277074139.commit-6059d49 → 0.0.1-3283072736.commit-63c5d6a
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 +15 -14
- package/dist/index.js +85 -20
- 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
|
@@ -141,12 +141,14 @@ export declare interface PBUiTransform {
|
|
|
141
141
|
* @public
|
|
142
142
|
*/
|
|
143
143
|
export declare type Position = {
|
|
144
|
-
top:
|
|
145
|
-
right:
|
|
146
|
-
bottom:
|
|
147
|
-
left:
|
|
144
|
+
top: PositionUnit;
|
|
145
|
+
right: PositionUnit;
|
|
146
|
+
bottom: PositionUnit;
|
|
147
|
+
left: PositionUnit;
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
+
export declare type PositionUnit = `${number}px` | `${number}%` | number;
|
|
151
|
+
|
|
150
152
|
declare namespace ReactEcs {
|
|
151
153
|
namespace JSX {
|
|
152
154
|
interface Element {
|
|
@@ -200,17 +202,16 @@ export declare interface UiTransformProps {
|
|
|
200
202
|
alignSelf?: YGAlign;
|
|
201
203
|
alignContent?: YGAlign;
|
|
202
204
|
flexDirection?: YGFlexDirection;
|
|
203
|
-
position?: Position
|
|
204
|
-
padding?: Position
|
|
205
|
-
margin?: Position
|
|
206
|
-
border?: Position;
|
|
205
|
+
position?: Partial<Position>;
|
|
206
|
+
padding?: Partial<Position>;
|
|
207
|
+
margin?: Partial<Position>;
|
|
207
208
|
direction?: YGDirection;
|
|
208
|
-
width?:
|
|
209
|
-
height?:
|
|
210
|
-
minWidth?:
|
|
211
|
-
maxWidth?:
|
|
212
|
-
minHeight?:
|
|
213
|
-
maxHeight?:
|
|
209
|
+
width?: PositionUnit;
|
|
210
|
+
height?: PositionUnit;
|
|
211
|
+
minWidth?: PositionUnit;
|
|
212
|
+
maxWidth?: PositionUnit;
|
|
213
|
+
minHeight?: PositionUnit;
|
|
214
|
+
maxHeight?: PositionUnit;
|
|
214
215
|
flexWrap?: YGWrap;
|
|
215
216
|
flexBasis?: number;
|
|
216
217
|
flexGrow?: number;
|