@dcl/playground-assets 7.0.6-3942933325.commit-70f967f → 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.
- package/dist/alpha.d.ts +114 -21
- package/dist/beta.d.ts +114 -21
- package/dist/index.bundled.d.ts +114 -21
- package/dist/index.js +212 -26
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/ui-backgrounds.tsx +8 -8
- package/dist/playground/snippets/ui-dropdown.tsx +23 -10
- package/dist/playground/snippets/ui.tsx +9 -12
- package/dist/playground-assets.d.ts +114 -21
- package/etc/playground-assets.api.json +490 -71
- package/etc/playground-assets.api.md +75 -19
- package/package.json +3 -3
package/dist/alpha.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1235,6 +1240,11 @@ export declare type DeleteEntityMessageBody = {
|
|
|
1235
1240
|
entityId: Entity;
|
|
1236
1241
|
};
|
|
1237
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* @public
|
|
1245
|
+
*/
|
|
1246
|
+
export declare type DisplayType = 'flex' | 'none';
|
|
1247
|
+
|
|
1238
1248
|
/**
|
|
1239
1249
|
* @public
|
|
1240
1250
|
*/
|
|
@@ -1357,6 +1367,16 @@ export declare type ExcludeUndefined<T> = {
|
|
|
1357
1367
|
*/
|
|
1358
1368
|
export declare const executeTask: (task: Task<unknown>) => void;
|
|
1359
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* @public
|
|
1372
|
+
*/
|
|
1373
|
+
export declare type FlexDirectionType = 'row' | 'column' | 'column-reverse' | 'row-reverse';
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* @public
|
|
1377
|
+
*/
|
|
1378
|
+
export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
1379
|
+
|
|
1360
1380
|
/** @public */
|
|
1361
1381
|
export declare type FloatArray = number[];
|
|
1362
1382
|
|
|
@@ -1798,12 +1818,17 @@ export declare namespace JSX {
|
|
|
1798
1818
|
}
|
|
1799
1819
|
}
|
|
1800
1820
|
|
|
1821
|
+
/**
|
|
1822
|
+
* @public
|
|
1823
|
+
*/
|
|
1824
|
+
export declare type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
1825
|
+
|
|
1801
1826
|
export declare type Key = number | string;
|
|
1802
1827
|
|
|
1803
1828
|
/**
|
|
1804
1829
|
* @public
|
|
1805
1830
|
*/
|
|
1806
|
-
export declare function Label(props: EntityPropTypes &
|
|
1831
|
+
export declare function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
|
|
1807
1832
|
|
|
1808
1833
|
export declare type Listeners = {
|
|
1809
1834
|
onMouseDown?: Callback;
|
|
@@ -2853,6 +2878,11 @@ export declare const onVideoEvent: Observable<{
|
|
|
2853
2878
|
totalVideoLength: number;
|
|
2854
2879
|
}>;
|
|
2855
2880
|
|
|
2881
|
+
/**
|
|
2882
|
+
* @public
|
|
2883
|
+
*/
|
|
2884
|
+
export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
2885
|
+
|
|
2856
2886
|
export declare interface PBAnimationState {
|
|
2857
2887
|
name: string;
|
|
2858
2888
|
clip: string;
|
|
@@ -3881,6 +3911,11 @@ export declare type Position = {
|
|
|
3881
3911
|
left: PositionUnit;
|
|
3882
3912
|
};
|
|
3883
3913
|
|
|
3914
|
+
/**
|
|
3915
|
+
* @public
|
|
3916
|
+
*/
|
|
3917
|
+
export declare type PositionType = 'absolute' | 'relative';
|
|
3918
|
+
|
|
3884
3919
|
export declare type PositionUnit = `${number}px` | `${number}%` | number;
|
|
3885
3920
|
|
|
3886
3921
|
export declare type PutComponentMessage = CrdtMessageHeader & PutComponentMessageBody;
|
|
@@ -4505,6 +4540,11 @@ export declare const enum TextAlignMode {
|
|
|
4505
4540
|
TAM_BOTTOM_RIGHT = 8
|
|
4506
4541
|
}
|
|
4507
4542
|
|
|
4543
|
+
/**
|
|
4544
|
+
* @public
|
|
4545
|
+
*/
|
|
4546
|
+
export declare type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
4547
|
+
|
|
4508
4548
|
/** @public */
|
|
4509
4549
|
export declare const TextShape: ComponentDefinition<PBTextShape>;
|
|
4510
4550
|
|
|
@@ -4530,6 +4570,11 @@ export declare const enum TextureFilterMode {
|
|
|
4530
4570
|
TFM_TRILINEAR = 2
|
|
4531
4571
|
}
|
|
4532
4572
|
|
|
4573
|
+
/**
|
|
4574
|
+
* @public
|
|
4575
|
+
*/
|
|
4576
|
+
export declare type TextureFilterType = 'point' | 'bi-linear' | 'tri-linear';
|
|
4577
|
+
|
|
4533
4578
|
/**
|
|
4534
4579
|
* @public
|
|
4535
4580
|
*/
|
|
@@ -4544,6 +4589,22 @@ export declare type TextureHelper = {
|
|
|
4544
4589
|
Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
|
|
4545
4590
|
};
|
|
4546
4591
|
|
|
4592
|
+
/**
|
|
4593
|
+
* @public
|
|
4594
|
+
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
4595
|
+
* https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
4596
|
+
* https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
4597
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
4598
|
+
|
|
4599
|
+
* CENTER - CENTER enables the texture to be rendered centered in relation to the
|
|
4600
|
+
* element. If the element is smaller than the texture then the background
|
|
4601
|
+
* should use the element as stencil to cut off the out-of-bounds area
|
|
4602
|
+
|
|
4603
|
+
* STRETCH - STRETCH enables the texture to cover all the area of the container,
|
|
4604
|
+
* adopting its aspect ratio.
|
|
4605
|
+
*/
|
|
4606
|
+
export declare type TextureMode = 'nine-slices' | 'center' | 'stretch';
|
|
4607
|
+
|
|
4547
4608
|
export declare interface TextureUnion {
|
|
4548
4609
|
tex?: {
|
|
4549
4610
|
$case: "texture";
|
|
@@ -4569,6 +4630,11 @@ export declare const enum TextureWrapMode {
|
|
|
4569
4630
|
TWM_MIRROR_ONCE = 3
|
|
4570
4631
|
}
|
|
4571
4632
|
|
|
4633
|
+
/**
|
|
4634
|
+
* @public
|
|
4635
|
+
*/
|
|
4636
|
+
export declare type TextureWrapType = 'repeat' | 'clamp' | 'mirror' | 'mirror-once';
|
|
4637
|
+
|
|
4572
4638
|
/**
|
|
4573
4639
|
* Constant used to convert a value to gamma space
|
|
4574
4640
|
* @public
|
|
@@ -4638,7 +4704,11 @@ export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
|
4638
4704
|
* @public
|
|
4639
4705
|
*/
|
|
4640
4706
|
export declare type UiAvatarTexture = {
|
|
4641
|
-
avatarTexture?:
|
|
4707
|
+
avatarTexture?: {
|
|
4708
|
+
userId: string;
|
|
4709
|
+
wrapMode?: TextureWrapType;
|
|
4710
|
+
filterMode?: TextureFilterType;
|
|
4711
|
+
};
|
|
4642
4712
|
};
|
|
4643
4713
|
|
|
4644
4714
|
/** @public */
|
|
@@ -4647,12 +4717,17 @@ export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
|
4647
4717
|
/**
|
|
4648
4718
|
* @public
|
|
4649
4719
|
*/
|
|
4650
|
-
export declare type UiBackgroundProps =
|
|
4720
|
+
export declare type UiBackgroundProps = {
|
|
4721
|
+
color?: PBColor4 | undefined;
|
|
4722
|
+
textureMode?: TextureMode;
|
|
4723
|
+
textureSlices?: BorderRect | undefined;
|
|
4724
|
+
uvs?: number[];
|
|
4725
|
+
} & UiTextureUnion;
|
|
4651
4726
|
|
|
4652
4727
|
/**
|
|
4653
4728
|
* @public
|
|
4654
4729
|
*/
|
|
4655
|
-
export declare type UiButtonProps =
|
|
4730
|
+
export declare type UiButtonProps = UiLabelProps & {
|
|
4656
4731
|
type?: 'primary' | 'secondary';
|
|
4657
4732
|
};
|
|
4658
4733
|
|
|
@@ -4664,8 +4739,10 @@ export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
|
4664
4739
|
/**
|
|
4665
4740
|
* @public
|
|
4666
4741
|
*/
|
|
4667
|
-
export declare type UiDropdownProps = Partial<PBUiDropdown
|
|
4742
|
+
export declare type UiDropdownProps = Partial<Omit<PBUiDropdown, 'textAlign' | 'font'>> & {
|
|
4668
4743
|
onChange?(value: number): void;
|
|
4744
|
+
font?: UiFontType;
|
|
4745
|
+
textAlign?: TextAlignType;
|
|
4669
4746
|
};
|
|
4670
4747
|
|
|
4671
4748
|
/** @public */
|
|
@@ -4676,19 +4753,36 @@ export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
|
4676
4753
|
*/
|
|
4677
4754
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
4678
4755
|
|
|
4756
|
+
/**
|
|
4757
|
+
* @public
|
|
4758
|
+
*/
|
|
4759
|
+
export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
4760
|
+
|
|
4679
4761
|
/** @public */
|
|
4680
4762
|
export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
4681
4763
|
|
|
4682
4764
|
/**
|
|
4683
4765
|
* @public
|
|
4684
4766
|
*/
|
|
4685
|
-
export declare type UiInputProps = PBUiInput & {
|
|
4767
|
+
export declare type UiInputProps = Omit<PBUiInput, 'font' | 'textAlign'> & {
|
|
4686
4768
|
onChange?(value: string): void;
|
|
4769
|
+
font?: UiFontType;
|
|
4770
|
+
textAlign?: TextAlignType;
|
|
4687
4771
|
};
|
|
4688
4772
|
|
|
4689
4773
|
/** @public */
|
|
4690
4774
|
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4691
4775
|
|
|
4776
|
+
/**
|
|
4777
|
+
* @public
|
|
4778
|
+
*/
|
|
4779
|
+
export declare type UiLabelProps = Omit<PBUiText, 'textAlign' | 'font'> & {
|
|
4780
|
+
/** default='middle-center' */
|
|
4781
|
+
textAlign?: TextAlignType | undefined;
|
|
4782
|
+
/** default='sans-serif' */
|
|
4783
|
+
font?: UiFontType | undefined;
|
|
4784
|
+
};
|
|
4785
|
+
|
|
4692
4786
|
export declare type Uint32 = number;
|
|
4693
4787
|
|
|
4694
4788
|
/**
|
|
@@ -4699,16 +4793,15 @@ export declare type uint32 = number;
|
|
|
4699
4793
|
/** @public */
|
|
4700
4794
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4701
4795
|
|
|
4702
|
-
/**
|
|
4703
|
-
* @public
|
|
4704
|
-
*/
|
|
4705
|
-
export declare type UiTextProps = PBUiText;
|
|
4706
|
-
|
|
4707
4796
|
/**
|
|
4708
4797
|
* @public
|
|
4709
4798
|
*/
|
|
4710
4799
|
export declare type UiTexture = {
|
|
4711
|
-
texture?:
|
|
4800
|
+
texture?: {
|
|
4801
|
+
src: string;
|
|
4802
|
+
wrapMode?: TextureWrapType;
|
|
4803
|
+
filterMode?: TextureFilterType;
|
|
4804
|
+
};
|
|
4712
4805
|
};
|
|
4713
4806
|
|
|
4714
4807
|
/**
|
|
@@ -4723,14 +4816,14 @@ export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
|
4723
4816
|
* @public
|
|
4724
4817
|
*/
|
|
4725
4818
|
export declare interface UiTransformProps {
|
|
4726
|
-
display?:
|
|
4819
|
+
display?: DisplayType;
|
|
4727
4820
|
flex?: number;
|
|
4728
|
-
justifyContent?:
|
|
4729
|
-
positionType?:
|
|
4730
|
-
alignItems?:
|
|
4731
|
-
alignSelf?:
|
|
4732
|
-
alignContent?:
|
|
4733
|
-
flexDirection?:
|
|
4821
|
+
justifyContent?: JustifyType;
|
|
4822
|
+
positionType?: PositionType;
|
|
4823
|
+
alignItems?: AlignType;
|
|
4824
|
+
alignSelf?: AlignType;
|
|
4825
|
+
alignContent?: AlignType;
|
|
4826
|
+
flexDirection?: FlexDirectionType;
|
|
4734
4827
|
position?: Partial<Position>;
|
|
4735
4828
|
padding?: Partial<Position>;
|
|
4736
4829
|
margin?: Partial<Position>;
|
|
@@ -4740,11 +4833,11 @@ export declare interface UiTransformProps {
|
|
|
4740
4833
|
maxWidth?: PositionUnit;
|
|
4741
4834
|
minHeight?: PositionUnit;
|
|
4742
4835
|
maxHeight?: PositionUnit;
|
|
4743
|
-
flexWrap?:
|
|
4836
|
+
flexWrap?: FlexWrapType;
|
|
4744
4837
|
flexBasis?: number;
|
|
4745
4838
|
flexGrow?: number;
|
|
4746
4839
|
flexShrink?: number;
|
|
4747
|
-
overflow?:
|
|
4840
|
+
overflow?: OverflowType;
|
|
4748
4841
|
}
|
|
4749
4842
|
|
|
4750
4843
|
/**
|
package/dist/beta.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1235,6 +1240,11 @@ export declare type DeleteEntityMessageBody = {
|
|
|
1235
1240
|
entityId: Entity;
|
|
1236
1241
|
};
|
|
1237
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* @public
|
|
1245
|
+
*/
|
|
1246
|
+
export declare type DisplayType = 'flex' | 'none';
|
|
1247
|
+
|
|
1238
1248
|
/**
|
|
1239
1249
|
* @public
|
|
1240
1250
|
*/
|
|
@@ -1357,6 +1367,16 @@ export declare type ExcludeUndefined<T> = {
|
|
|
1357
1367
|
*/
|
|
1358
1368
|
export declare const executeTask: (task: Task<unknown>) => void;
|
|
1359
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* @public
|
|
1372
|
+
*/
|
|
1373
|
+
export declare type FlexDirectionType = 'row' | 'column' | 'column-reverse' | 'row-reverse';
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* @public
|
|
1377
|
+
*/
|
|
1378
|
+
export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
1379
|
+
|
|
1360
1380
|
/** @public */
|
|
1361
1381
|
export declare type FloatArray = number[];
|
|
1362
1382
|
|
|
@@ -1798,12 +1818,17 @@ export declare namespace JSX {
|
|
|
1798
1818
|
}
|
|
1799
1819
|
}
|
|
1800
1820
|
|
|
1821
|
+
/**
|
|
1822
|
+
* @public
|
|
1823
|
+
*/
|
|
1824
|
+
export declare type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
1825
|
+
|
|
1801
1826
|
export declare type Key = number | string;
|
|
1802
1827
|
|
|
1803
1828
|
/**
|
|
1804
1829
|
* @public
|
|
1805
1830
|
*/
|
|
1806
|
-
export declare function Label(props: EntityPropTypes &
|
|
1831
|
+
export declare function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
|
|
1807
1832
|
|
|
1808
1833
|
export declare type Listeners = {
|
|
1809
1834
|
onMouseDown?: Callback;
|
|
@@ -2853,6 +2878,11 @@ export declare const onVideoEvent: Observable<{
|
|
|
2853
2878
|
totalVideoLength: number;
|
|
2854
2879
|
}>;
|
|
2855
2880
|
|
|
2881
|
+
/**
|
|
2882
|
+
* @public
|
|
2883
|
+
*/
|
|
2884
|
+
export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
2885
|
+
|
|
2856
2886
|
export declare interface PBAnimationState {
|
|
2857
2887
|
name: string;
|
|
2858
2888
|
clip: string;
|
|
@@ -3881,6 +3911,11 @@ export declare type Position = {
|
|
|
3881
3911
|
left: PositionUnit;
|
|
3882
3912
|
};
|
|
3883
3913
|
|
|
3914
|
+
/**
|
|
3915
|
+
* @public
|
|
3916
|
+
*/
|
|
3917
|
+
export declare type PositionType = 'absolute' | 'relative';
|
|
3918
|
+
|
|
3884
3919
|
export declare type PositionUnit = `${number}px` | `${number}%` | number;
|
|
3885
3920
|
|
|
3886
3921
|
export declare type PutComponentMessage = CrdtMessageHeader & PutComponentMessageBody;
|
|
@@ -4505,6 +4540,11 @@ export declare const enum TextAlignMode {
|
|
|
4505
4540
|
TAM_BOTTOM_RIGHT = 8
|
|
4506
4541
|
}
|
|
4507
4542
|
|
|
4543
|
+
/**
|
|
4544
|
+
* @public
|
|
4545
|
+
*/
|
|
4546
|
+
export declare type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
4547
|
+
|
|
4508
4548
|
/** @public */
|
|
4509
4549
|
export declare const TextShape: ComponentDefinition<PBTextShape>;
|
|
4510
4550
|
|
|
@@ -4530,6 +4570,11 @@ export declare const enum TextureFilterMode {
|
|
|
4530
4570
|
TFM_TRILINEAR = 2
|
|
4531
4571
|
}
|
|
4532
4572
|
|
|
4573
|
+
/**
|
|
4574
|
+
* @public
|
|
4575
|
+
*/
|
|
4576
|
+
export declare type TextureFilterType = 'point' | 'bi-linear' | 'tri-linear';
|
|
4577
|
+
|
|
4533
4578
|
/**
|
|
4534
4579
|
* @public
|
|
4535
4580
|
*/
|
|
@@ -4544,6 +4589,22 @@ export declare type TextureHelper = {
|
|
|
4544
4589
|
Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
|
|
4545
4590
|
};
|
|
4546
4591
|
|
|
4592
|
+
/**
|
|
4593
|
+
* @public
|
|
4594
|
+
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
4595
|
+
* https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
4596
|
+
* https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
4597
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
4598
|
+
|
|
4599
|
+
* CENTER - CENTER enables the texture to be rendered centered in relation to the
|
|
4600
|
+
* element. If the element is smaller than the texture then the background
|
|
4601
|
+
* should use the element as stencil to cut off the out-of-bounds area
|
|
4602
|
+
|
|
4603
|
+
* STRETCH - STRETCH enables the texture to cover all the area of the container,
|
|
4604
|
+
* adopting its aspect ratio.
|
|
4605
|
+
*/
|
|
4606
|
+
export declare type TextureMode = 'nine-slices' | 'center' | 'stretch';
|
|
4607
|
+
|
|
4547
4608
|
export declare interface TextureUnion {
|
|
4548
4609
|
tex?: {
|
|
4549
4610
|
$case: "texture";
|
|
@@ -4569,6 +4630,11 @@ export declare const enum TextureWrapMode {
|
|
|
4569
4630
|
TWM_MIRROR_ONCE = 3
|
|
4570
4631
|
}
|
|
4571
4632
|
|
|
4633
|
+
/**
|
|
4634
|
+
* @public
|
|
4635
|
+
*/
|
|
4636
|
+
export declare type TextureWrapType = 'repeat' | 'clamp' | 'mirror' | 'mirror-once';
|
|
4637
|
+
|
|
4572
4638
|
/**
|
|
4573
4639
|
* Constant used to convert a value to gamma space
|
|
4574
4640
|
* @public
|
|
@@ -4638,7 +4704,11 @@ export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
|
4638
4704
|
* @public
|
|
4639
4705
|
*/
|
|
4640
4706
|
export declare type UiAvatarTexture = {
|
|
4641
|
-
avatarTexture?:
|
|
4707
|
+
avatarTexture?: {
|
|
4708
|
+
userId: string;
|
|
4709
|
+
wrapMode?: TextureWrapType;
|
|
4710
|
+
filterMode?: TextureFilterType;
|
|
4711
|
+
};
|
|
4642
4712
|
};
|
|
4643
4713
|
|
|
4644
4714
|
/** @public */
|
|
@@ -4647,12 +4717,17 @@ export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
|
4647
4717
|
/**
|
|
4648
4718
|
* @public
|
|
4649
4719
|
*/
|
|
4650
|
-
export declare type UiBackgroundProps =
|
|
4720
|
+
export declare type UiBackgroundProps = {
|
|
4721
|
+
color?: PBColor4 | undefined;
|
|
4722
|
+
textureMode?: TextureMode;
|
|
4723
|
+
textureSlices?: BorderRect | undefined;
|
|
4724
|
+
uvs?: number[];
|
|
4725
|
+
} & UiTextureUnion;
|
|
4651
4726
|
|
|
4652
4727
|
/**
|
|
4653
4728
|
* @public
|
|
4654
4729
|
*/
|
|
4655
|
-
export declare type UiButtonProps =
|
|
4730
|
+
export declare type UiButtonProps = UiLabelProps & {
|
|
4656
4731
|
type?: 'primary' | 'secondary';
|
|
4657
4732
|
};
|
|
4658
4733
|
|
|
@@ -4664,8 +4739,10 @@ export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
|
4664
4739
|
/**
|
|
4665
4740
|
* @public
|
|
4666
4741
|
*/
|
|
4667
|
-
export declare type UiDropdownProps = Partial<PBUiDropdown
|
|
4742
|
+
export declare type UiDropdownProps = Partial<Omit<PBUiDropdown, 'textAlign' | 'font'>> & {
|
|
4668
4743
|
onChange?(value: number): void;
|
|
4744
|
+
font?: UiFontType;
|
|
4745
|
+
textAlign?: TextAlignType;
|
|
4669
4746
|
};
|
|
4670
4747
|
|
|
4671
4748
|
/** @public */
|
|
@@ -4676,19 +4753,36 @@ export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
|
4676
4753
|
*/
|
|
4677
4754
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
4678
4755
|
|
|
4756
|
+
/**
|
|
4757
|
+
* @public
|
|
4758
|
+
*/
|
|
4759
|
+
export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
4760
|
+
|
|
4679
4761
|
/** @public */
|
|
4680
4762
|
export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
4681
4763
|
|
|
4682
4764
|
/**
|
|
4683
4765
|
* @public
|
|
4684
4766
|
*/
|
|
4685
|
-
export declare type UiInputProps = PBUiInput & {
|
|
4767
|
+
export declare type UiInputProps = Omit<PBUiInput, 'font' | 'textAlign'> & {
|
|
4686
4768
|
onChange?(value: string): void;
|
|
4769
|
+
font?: UiFontType;
|
|
4770
|
+
textAlign?: TextAlignType;
|
|
4687
4771
|
};
|
|
4688
4772
|
|
|
4689
4773
|
/** @public */
|
|
4690
4774
|
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4691
4775
|
|
|
4776
|
+
/**
|
|
4777
|
+
* @public
|
|
4778
|
+
*/
|
|
4779
|
+
export declare type UiLabelProps = Omit<PBUiText, 'textAlign' | 'font'> & {
|
|
4780
|
+
/** default='middle-center' */
|
|
4781
|
+
textAlign?: TextAlignType | undefined;
|
|
4782
|
+
/** default='sans-serif' */
|
|
4783
|
+
font?: UiFontType | undefined;
|
|
4784
|
+
};
|
|
4785
|
+
|
|
4692
4786
|
export declare type Uint32 = number;
|
|
4693
4787
|
|
|
4694
4788
|
/**
|
|
@@ -4699,16 +4793,15 @@ export declare type uint32 = number;
|
|
|
4699
4793
|
/** @public */
|
|
4700
4794
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4701
4795
|
|
|
4702
|
-
/**
|
|
4703
|
-
* @public
|
|
4704
|
-
*/
|
|
4705
|
-
export declare type UiTextProps = PBUiText;
|
|
4706
|
-
|
|
4707
4796
|
/**
|
|
4708
4797
|
* @public
|
|
4709
4798
|
*/
|
|
4710
4799
|
export declare type UiTexture = {
|
|
4711
|
-
texture?:
|
|
4800
|
+
texture?: {
|
|
4801
|
+
src: string;
|
|
4802
|
+
wrapMode?: TextureWrapType;
|
|
4803
|
+
filterMode?: TextureFilterType;
|
|
4804
|
+
};
|
|
4712
4805
|
};
|
|
4713
4806
|
|
|
4714
4807
|
/**
|
|
@@ -4723,14 +4816,14 @@ export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
|
4723
4816
|
* @public
|
|
4724
4817
|
*/
|
|
4725
4818
|
export declare interface UiTransformProps {
|
|
4726
|
-
display?:
|
|
4819
|
+
display?: DisplayType;
|
|
4727
4820
|
flex?: number;
|
|
4728
|
-
justifyContent?:
|
|
4729
|
-
positionType?:
|
|
4730
|
-
alignItems?:
|
|
4731
|
-
alignSelf?:
|
|
4732
|
-
alignContent?:
|
|
4733
|
-
flexDirection?:
|
|
4821
|
+
justifyContent?: JustifyType;
|
|
4822
|
+
positionType?: PositionType;
|
|
4823
|
+
alignItems?: AlignType;
|
|
4824
|
+
alignSelf?: AlignType;
|
|
4825
|
+
alignContent?: AlignType;
|
|
4826
|
+
flexDirection?: FlexDirectionType;
|
|
4734
4827
|
position?: Partial<Position>;
|
|
4735
4828
|
padding?: Partial<Position>;
|
|
4736
4829
|
margin?: Partial<Position>;
|
|
@@ -4740,11 +4833,11 @@ export declare interface UiTransformProps {
|
|
|
4740
4833
|
maxWidth?: PositionUnit;
|
|
4741
4834
|
minHeight?: PositionUnit;
|
|
4742
4835
|
maxHeight?: PositionUnit;
|
|
4743
|
-
flexWrap?:
|
|
4836
|
+
flexWrap?: FlexWrapType;
|
|
4744
4837
|
flexBasis?: number;
|
|
4745
4838
|
flexGrow?: number;
|
|
4746
4839
|
flexShrink?: number;
|
|
4747
|
-
overflow?:
|
|
4840
|
+
overflow?: OverflowType;
|
|
4748
4841
|
}
|
|
4749
4842
|
|
|
4750
4843
|
/**
|