@dcl/playground-assets 7.0.6-3939099974.commit-727d673 → 7.0.6-3987590195.commit-4fc1536

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.6-3939099974.commit-727d673",
3
+ "version": "7.0.6-3987590195.commit-4fc1536",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -37,5 +37,5 @@
37
37
  "displayName": "SDK",
38
38
  "tsconfig": "./tsconfig.json"
39
39
  },
40
- "commit": "727d673f8e1a299bf65a92b41a6fb76f2e9c4711"
40
+ "commit": "4fc1536e9bdd2501b3d9918ec7345084f7a49aca"
41
41
  }
@@ -94,13 +94,10 @@ function createTextShapes() {
94
94
  createBillboards()
95
95
  createTextShapes()
96
96
 
97
- const BouncingBillboard = engine.defineComponent(
98
- {
99
- t: Schemas.Number,
100
- originalPosition: Schemas.Vector3
101
- },
102
- 123123
103
- )
97
+ const BouncingBillboard = engine.defineComponent('bouncing billboard', {
98
+ t: Schemas.Number,
99
+ originalPosition: Schemas.Vector3
100
+ })
104
101
 
105
102
  engine.addSystem((dt: number) => {
106
103
  for (const [entity] of engine.getEntitiesWith(Billboard, Transform)) {
@@ -1,4 +1,4 @@
1
- import { engine, YGFlexDirection, BackgroundTextureMode } from '@dcl/sdk/ecs'
1
+ import { engine } from '@dcl/sdk/ecs'
2
2
  import { Color4 } from '@dcl/sdk/math'
3
3
  import ReactEcs, {
4
4
  UiEntity,
@@ -34,7 +34,7 @@ const options = [
34
34
  }}
35
35
  uiBackground={{
36
36
  color: tint2,
37
- textureMode: BackgroundTextureMode.STRETCH,
37
+ textureMode: 'stretch',
38
38
  texture: {
39
39
  src
40
40
  }
@@ -58,7 +58,7 @@ const options = [
58
58
  }}
59
59
  uiBackground={{
60
60
  color: tint,
61
- textureMode: BackgroundTextureMode.NINE_SLICES,
61
+ textureMode: 'nine-slices',
62
62
  texture: {
63
63
  src
64
64
  }
@@ -87,7 +87,7 @@ const options = [
87
87
  }}
88
88
  uiBackground={{
89
89
  color: tint,
90
- textureMode: BackgroundTextureMode.NINE_SLICES,
90
+ textureMode: 'nine-slices',
91
91
  texture: {
92
92
  src: centeredImage
93
93
  }
@@ -107,7 +107,7 @@ const options = [
107
107
  height: 256
108
108
  }}
109
109
  uiBackground={{
110
- textureMode: BackgroundTextureMode.NINE_SLICES,
110
+ textureMode: 'nine-slices',
111
111
  texture: {
112
112
  src: centeredImage
113
113
  },
@@ -135,7 +135,7 @@ const options = [
135
135
  height: 128 + Math.sin(dt * 0.2) * 64
136
136
  }}
137
137
  uiBackground={{
138
- textureMode: BackgroundTextureMode.CENTER,
138
+ textureMode: 'center',
139
139
  texture: {
140
140
  src: centeredImage
141
141
  }
@@ -153,7 +153,7 @@ const options = [
153
153
  height: 128 + Math.sin(dt * 0.2) * 64
154
154
  }}
155
155
  uiBackground={{
156
- textureMode: BackgroundTextureMode.CENTER,
156
+ textureMode: 'center',
157
157
  avatarTexture: {
158
158
  userId: userId ?? ''
159
159
  }
@@ -177,7 +177,7 @@ export const ui = () => {
177
177
  uiTransform={{
178
178
  width: '100%',
179
179
  height: '50%',
180
- flexDirection: YGFlexDirection.YGFD_COLUMN,
180
+ flexDirection: 'column',
181
181
  margin: { left: 300 }
182
182
  }}
183
183
  uiBackground={{ color: Color4.Black() }}
@@ -1,10 +1,24 @@
1
- import {
2
- YGFlexDirection,
3
- } from '@dcl/sdk/ecs'
4
1
  import { Color4 } from '@dcl/sdk/math'
5
- import ReactEcs, { UiEntity, Label, ReactEcsRenderer, Dropdown } from '@dcl/sdk/react-ecs'
2
+ import ReactEcs, {
3
+ UiEntity,
4
+ Label,
5
+ ReactEcsRenderer,
6
+ Dropdown
7
+ } from '@dcl/sdk/react-ecs'
6
8
 
7
- const colorList = ['Red', 'Green', 'Blue', 'Black', 'White', 'Purple', 'Magenta', 'Yellow', 'Gray', 'Teal', 'Clear']
9
+ const colorList = [
10
+ 'Red',
11
+ 'Green',
12
+ 'Blue',
13
+ 'Black',
14
+ 'White',
15
+ 'Purple',
16
+ 'Magenta',
17
+ 'Yellow',
18
+ 'Gray',
19
+ 'Teal',
20
+ 'Clear'
21
+ ]
8
22
 
9
23
  let selectedColorIndex = 0
10
24
 
@@ -16,17 +30,16 @@ export const ui = () => {
16
30
  return (
17
31
  <UiEntity
18
32
  uiTransform={{
19
- width: "100%",
20
- height: "3000px",
21
- flexDirection: YGFlexDirection.YGFD_COLUMN
33
+ width: '100%',
34
+ height: '3000px',
35
+ flexDirection: 'column'
22
36
  }}
23
37
  uiBackground={{ color: (Color4 as any)[colorList[selectedColorIndex]]() }}
24
38
  >
25
- <Label value="Select a color" fontSize={29} />
39
+ <Label value="Select a color" fontSize={29} />
26
40
  <Dropdown options={colorList} onChange={selectOption} />
27
41
  </UiEntity>
28
42
  )
29
43
  }
30
44
 
31
-
32
45
  ReactEcsRenderer.setUiRenderer(ui)
@@ -7,9 +7,6 @@ import {
7
7
  InputAction,
8
8
  inputSystem,
9
9
  PointerEvents,
10
- YGAlign,
11
- YGDisplay,
12
- YGJustify,
13
10
  PointerEventType
14
11
  } from '@dcl/sdk/ecs'
15
12
  import { Vector3, Color4, Quaternion } from '@dcl/sdk/math'
@@ -30,9 +27,9 @@ export const uiComponent = () => (
30
27
  uiTransform={{
31
28
  width: '100%',
32
29
  height: '20%',
33
- justifyContent: YGJustify.YGJ_CENTER,
34
- alignItems: YGAlign.YGA_CENTER,
35
- display: YGDisplay.YGD_FLEX
30
+ justifyContent: 'center',
31
+ alignItems: 'center',
32
+ display: 'flex'
36
33
  }}
37
34
  >
38
35
  <Label
@@ -45,9 +42,9 @@ export const uiComponent = () => (
45
42
  uiTransform={{
46
43
  width: '100%',
47
44
  height: '20%',
48
- justifyContent: YGJustify.YGJ_CENTER,
49
- alignItems: YGAlign.YGA_CENTER,
50
- display: YGDisplay.YGD_FLEX
45
+ justifyContent: 'center',
46
+ alignItems: 'center',
47
+ display: 'flex'
51
48
  }}
52
49
  >
53
50
  <Label
@@ -60,9 +57,9 @@ export const uiComponent = () => (
60
57
  uiTransform={{
61
58
  width: '100%',
62
59
  height: '100px',
63
- justifyContent: YGJustify.YGJ_CENTER,
64
- alignItems: YGAlign.YGA_CENTER,
65
- display: YGDisplay.YGD_FLEX
60
+ justifyContent: 'center',
61
+ alignItems: 'center',
62
+ display: 'flex'
66
63
  }}
67
64
  >
68
65
  <Label
@@ -1,5 +1,10 @@
1
1
  import _m0 from 'protobufjs/minimal';
2
2
 
3
+ /**
4
+ * @public
5
+ */
6
+ export declare type AlignType = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | 'space-between' | 'space-around';
7
+
3
8
  export declare const AMOUNT_VERSION_AVAILABLE: number;
4
9
 
5
10
  export declare const Animator: AnimatorComponentDefinitionExtended;
@@ -990,7 +995,8 @@ export declare type CommonProps = {
990
995
  * @public
991
996
  */
992
997
  export declare type ComponentDefinition<T> = {
993
- _id: number;
998
+ readonly componentId: number;
999
+ readonly componentName: string;
994
1000
  /**
995
1001
  * Return the default value of the current component
996
1002
  */
@@ -1107,6 +1113,8 @@ export declare enum CrdtMessageType {
1107
1113
  MAX_MESSAGE_TYPE = 4
1108
1114
  }
1109
1115
 
1116
+ export declare function createComponentDefinitionFromSchema<T>(componentName: string, componentId: number, schema: ISchema<T>): ComponentDefinition<T>;
1117
+
1110
1118
  export declare function createEthereumProvider(): {
1111
1119
  send(message: RPCSendableMessage, callback?: ((error: Error | null, result?: any) => void) | undefined): void;
1112
1120
  sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
@@ -1204,8 +1212,6 @@ export declare type DeepReadonlyObject<T> = {
1204
1212
  */
1205
1213
  export declare type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
1206
1214
 
1207
- export declare function defineComponent<T>(componentId: number, spec: ISchema<T>): ComponentDefinition<T>;
1208
-
1209
1215
  /**
1210
1216
  * Constant used to convert from Euler degrees to radians
1211
1217
  * @public
@@ -1246,6 +1252,11 @@ export declare type DeleteEntityMessageBody = {
1246
1252
  entityId: Entity;
1247
1253
  };
1248
1254
 
1255
+ /**
1256
+ * @public
1257
+ */
1258
+ export declare type DisplayType = 'flex' | 'none';
1259
+
1249
1260
  /**
1250
1261
  * @public
1251
1262
  */
@@ -1368,6 +1379,16 @@ export declare type ExcludeUndefined<T> = {
1368
1379
  */
1369
1380
  export declare const executeTask: (task: Task<unknown>) => void;
1370
1381
 
1382
+ /**
1383
+ * @public
1384
+ */
1385
+ export declare type FlexDirectionType = 'row' | 'column' | 'column-reverse' | 'row-reverse';
1386
+
1387
+ /**
1388
+ * @public
1389
+ */
1390
+ export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
1391
+
1371
1392
  /** @public */
1372
1393
  export declare type FloatArray = number[];
1373
1394
 
@@ -1457,42 +1478,40 @@ export declare type IEngine = {
1457
1478
  removeSystem(selector: string | SystemFn): boolean;
1458
1479
  /**
1459
1480
  * Registers a custom component definition.
1460
- * @param component - The component definition
1461
- * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1481
+ * @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
1482
+ * @param componentDefinition - The component definition
1462
1483
  */
1463
- registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
1484
+ registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
1464
1485
  /**
1465
1486
  * Define a component and add it to the engine.
1466
1487
  * @param spec - An object with schema fields
1467
- * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1488
+ * @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
1468
1489
  * @param constructorDefault - the initial value prefilled when a component is created without a value
1469
1490
  * @returns The component definition
1470
1491
  *
1471
1492
  * ```ts
1472
- * const DoorComponentId = 10017
1473
- * const Door = engine.defineComponent({
1493
+ * const Door = engine.defineComponent("my-scene::Door", {
1474
1494
  * id: Schemas.Int,
1475
1495
  * name: Schemas.String
1476
- * }, DoorComponentId)
1477
- *
1496
+ * })
1478
1497
  * ```
1479
1498
  */
1480
- defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
1499
+ defineComponent<T extends Spec>(componentName: string, spec: T, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
1481
1500
  /**
1482
1501
  * Define a component and add it to the engine.
1502
+ * @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
1483
1503
  * @param spec - An object with schema fields
1484
- * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1485
1504
  * @returns The component definition
1486
1505
  *
1487
1506
  * ```ts
1488
1507
  * const StateComponentId = 10023
1489
- * const StateComponent = engine.defineComponent(Schemas.Bool, VisibleComponentId)
1508
+ * const StateComponent = engine.defineComponentFromSchema("my-lib::VisibleComponent", Schemas.Bool)
1490
1509
  * ```
1491
1510
  */
1492
- defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
1511
+ defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): ComponentDefinition<T>;
1493
1512
  /**
1494
1513
  * Get the component definition from the component id.
1495
- * @param componentId - component number used to identify the component descriptor
1514
+ * @param componentId - component number or name used to identify the component descriptor
1496
1515
  * @returns the component definition, throw an error if it doesn't exist
1497
1516
  * ```ts
1498
1517
  * const StateComponentId = 10023
@@ -1502,7 +1521,7 @@ export declare type IEngine = {
1502
1521
  getComponent<T>(componentId: number): ComponentDefinition<T>;
1503
1522
  /**
1504
1523
  * Get the component definition from the component id.
1505
- * @param componentId - component number used to identify the component descriptor
1524
+ * @param componentId - component number or name used to identify the component descriptor
1506
1525
  * @returns the component definition or null if its not founded
1507
1526
  * ```ts
1508
1527
  * const StateComponentId = 10023
@@ -1554,6 +1573,11 @@ export declare type IEngine = {
1554
1573
  * Iterator of registered components
1555
1574
  */
1556
1575
  componentsIter(): Iterable<ComponentDefinition<unknown>>;
1576
+ /**
1577
+ * Seals the engine components. It is used to clearly define the scope of the
1578
+ * components that will be available to this engine and to run optimizations.
1579
+ */
1580
+ seal(): void;
1557
1581
  };
1558
1582
 
1559
1583
  /**
@@ -1806,12 +1830,17 @@ export declare namespace JSX {
1806
1830
  }
1807
1831
  }
1808
1832
 
1833
+ /**
1834
+ * @public
1835
+ */
1836
+ export declare type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
1837
+
1809
1838
  export declare type Key = number | string;
1810
1839
 
1811
1840
  /**
1812
1841
  * @public
1813
1842
  */
1814
- export declare function Label(props: EntityPropTypes & UiTextProps): ReactEcs.JSX.Element;
1843
+ export declare function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
1815
1844
 
1816
1845
  export declare type Listeners = {
1817
1846
  onMouseDown?: Callback;
@@ -2849,6 +2878,8 @@ export declare const onRealmChangedObservable: Observable<{
2849
2878
 
2850
2879
  export declare const onSceneReadyObservable: Observable<unknown>;
2851
2880
 
2881
+ export declare function onStart(): Promise<void>;
2882
+
2852
2883
  export declare function onUpdate(deltaTime: number): Promise<void>;
2853
2884
 
2854
2885
  export declare const onVideoEvent: Observable<{
@@ -2859,6 +2890,11 @@ export declare const onVideoEvent: Observable<{
2859
2890
  totalVideoLength: number;
2860
2891
  }>;
2861
2892
 
2893
+ /**
2894
+ * @public
2895
+ */
2896
+ export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
2897
+
2862
2898
  export declare interface PBAnimationState {
2863
2899
  name: string;
2864
2900
  clip: string;
@@ -3887,6 +3923,11 @@ export declare type Position = {
3887
3923
  left: PositionUnit;
3888
3924
  };
3889
3925
 
3926
+ /**
3927
+ * @public
3928
+ */
3929
+ export declare type PositionType = 'absolute' | 'relative';
3930
+
3890
3931
  export declare type PositionUnit = `${number}px` | `${number}%` | number;
3891
3932
 
3892
3933
  export declare type PutComponentMessage = CrdtMessageHeader & PutComponentMessageBody;
@@ -4511,6 +4552,11 @@ export declare const enum TextAlignMode {
4511
4552
  TAM_BOTTOM_RIGHT = 8
4512
4553
  }
4513
4554
 
4555
+ /**
4556
+ * @public
4557
+ */
4558
+ export declare type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
4559
+
4514
4560
  /** @public */
4515
4561
  export declare const TextShape: ComponentDefinition<PBTextShape>;
4516
4562
 
@@ -4536,6 +4582,11 @@ export declare const enum TextureFilterMode {
4536
4582
  TFM_TRILINEAR = 2
4537
4583
  }
4538
4584
 
4585
+ /**
4586
+ * @public
4587
+ */
4588
+ export declare type TextureFilterType = 'point' | 'bi-linear' | 'tri-linear';
4589
+
4539
4590
  /**
4540
4591
  * @public
4541
4592
  */
@@ -4550,6 +4601,22 @@ export declare type TextureHelper = {
4550
4601
  Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
4551
4602
  };
4552
4603
 
4604
+ /**
4605
+ * @public
4606
+ * NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
4607
+ * https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
4608
+ * https://docs.unity3d.com/Manual/9SliceSprites.html
4609
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
4610
+
4611
+ * CENTER - CENTER enables the texture to be rendered centered in relation to the
4612
+ * element. If the element is smaller than the texture then the background
4613
+ * should use the element as stencil to cut off the out-of-bounds area
4614
+
4615
+ * STRETCH - STRETCH enables the texture to cover all the area of the container,
4616
+ * adopting its aspect ratio.
4617
+ */
4618
+ export declare type TextureMode = 'nine-slices' | 'center' | 'stretch';
4619
+
4553
4620
  export declare interface TextureUnion {
4554
4621
  tex?: {
4555
4622
  $case: "texture";
@@ -4575,6 +4642,11 @@ export declare const enum TextureWrapMode {
4575
4642
  TWM_MIRROR_ONCE = 3
4576
4643
  }
4577
4644
 
4645
+ /**
4646
+ * @public
4647
+ */
4648
+ export declare type TextureWrapType = 'repeat' | 'clamp' | 'mirror' | 'mirror-once';
4649
+
4578
4650
  /**
4579
4651
  * Constant used to convert a value to gamma space
4580
4652
  * @public
@@ -4644,7 +4716,11 @@ export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
4644
4716
  * @public
4645
4717
  */
4646
4718
  export declare type UiAvatarTexture = {
4647
- avatarTexture?: AvatarTexture;
4719
+ avatarTexture?: {
4720
+ userId: string;
4721
+ wrapMode?: TextureWrapType;
4722
+ filterMode?: TextureFilterType;
4723
+ };
4648
4724
  };
4649
4725
 
4650
4726
  /** @public */
@@ -4653,12 +4729,17 @@ export declare const UiBackground: ComponentDefinition<PBUiBackground>;
4653
4729
  /**
4654
4730
  * @public
4655
4731
  */
4656
- export declare type UiBackgroundProps = Partial<Omit<PBUiBackground, 'texture'>> & UiTextureUnion;
4732
+ export declare type UiBackgroundProps = {
4733
+ color?: PBColor4 | undefined;
4734
+ textureMode?: TextureMode;
4735
+ textureSlices?: BorderRect | undefined;
4736
+ uvs?: number[];
4737
+ } & UiTextureUnion;
4657
4738
 
4658
4739
  /**
4659
4740
  * @public
4660
4741
  */
4661
- export declare type UiButtonProps = PBUiText & {
4742
+ export declare type UiButtonProps = UiLabelProps & {
4662
4743
  type?: 'primary' | 'secondary';
4663
4744
  };
4664
4745
 
@@ -4670,8 +4751,10 @@ export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
4670
4751
  /**
4671
4752
  * @public
4672
4753
  */
4673
- export declare type UiDropdownProps = Partial<PBUiDropdown> & {
4754
+ export declare type UiDropdownProps = Partial<Omit<PBUiDropdown, 'textAlign' | 'font'>> & {
4674
4755
  onChange?(value: number): void;
4756
+ font?: UiFontType;
4757
+ textAlign?: TextAlignType;
4675
4758
  };
4676
4759
 
4677
4760
  /** @public */
@@ -4682,19 +4765,36 @@ export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
4682
4765
  */
4683
4766
  export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
4684
4767
 
4768
+ /**
4769
+ * @public
4770
+ */
4771
+ export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
4772
+
4685
4773
  /** @public */
4686
4774
  export declare const UiInput: ComponentDefinition<PBUiInput>;
4687
4775
 
4688
4776
  /**
4689
4777
  * @public
4690
4778
  */
4691
- export declare type UiInputProps = PBUiInput & {
4779
+ export declare type UiInputProps = Omit<PBUiInput, 'font' | 'textAlign'> & {
4692
4780
  onChange?(value: string): void;
4781
+ font?: UiFontType;
4782
+ textAlign?: TextAlignType;
4693
4783
  };
4694
4784
 
4695
4785
  /** @public */
4696
4786
  export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
4697
4787
 
4788
+ /**
4789
+ * @public
4790
+ */
4791
+ export declare type UiLabelProps = Omit<PBUiText, 'textAlign' | 'font'> & {
4792
+ /** default='middle-center' */
4793
+ textAlign?: TextAlignType | undefined;
4794
+ /** default='sans-serif' */
4795
+ font?: UiFontType | undefined;
4796
+ };
4797
+
4698
4798
  export declare type Uint32 = number;
4699
4799
 
4700
4800
  /**
@@ -4705,16 +4805,15 @@ export declare type uint32 = number;
4705
4805
  /** @public */
4706
4806
  export declare const UiText: ComponentDefinition<PBUiText>;
4707
4807
 
4708
- /**
4709
- * @public
4710
- */
4711
- export declare type UiTextProps = PBUiText;
4712
-
4713
4808
  /**
4714
4809
  * @public
4715
4810
  */
4716
4811
  export declare type UiTexture = {
4717
- texture?: Texture;
4812
+ texture?: {
4813
+ src: string;
4814
+ wrapMode?: TextureWrapType;
4815
+ filterMode?: TextureFilterType;
4816
+ };
4718
4817
  };
4719
4818
 
4720
4819
  /**
@@ -4729,14 +4828,14 @@ export declare const UiTransform: ComponentDefinition<PBUiTransform>;
4729
4828
  * @public
4730
4829
  */
4731
4830
  export declare interface UiTransformProps {
4732
- display?: YGDisplay;
4831
+ display?: DisplayType;
4733
4832
  flex?: number;
4734
- justifyContent?: YGJustify;
4735
- positionType?: YGPositionType;
4736
- alignItems?: YGAlign;
4737
- alignSelf?: YGAlign;
4738
- alignContent?: YGAlign;
4739
- flexDirection?: YGFlexDirection;
4833
+ justifyContent?: JustifyType;
4834
+ positionType?: PositionType;
4835
+ alignItems?: AlignType;
4836
+ alignSelf?: AlignType;
4837
+ alignContent?: AlignType;
4838
+ flexDirection?: FlexDirectionType;
4740
4839
  position?: Partial<Position>;
4741
4840
  padding?: Partial<Position>;
4742
4841
  margin?: Partial<Position>;
@@ -4746,11 +4845,11 @@ export declare interface UiTransformProps {
4746
4845
  maxWidth?: PositionUnit;
4747
4846
  minHeight?: PositionUnit;
4748
4847
  maxHeight?: PositionUnit;
4749
- flexWrap?: YGWrap;
4848
+ flexWrap?: FlexWrapType;
4750
4849
  flexBasis?: number;
4751
4850
  flexGrow?: number;
4752
4851
  flexShrink?: number;
4753
- overflow?: YGOverflow;
4852
+ overflow?: OverflowType;
4754
4853
  }
4755
4854
 
4756
4855
  /**