@dcl/playground-assets 7.0.6-3807227301.commit-1045452 → 7.0.6-3808797047.commit-ee7ea04
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 +279 -82
- package/dist/beta.d.ts +279 -82
- package/dist/index.bundled.d.ts +279 -82
- package/dist/index.js +1211 -538
- 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 +8 -2
- package/dist/playground/snippets/info.json +1 -1
- package/dist/playground/snippets/pointer-events.ts +6 -4
- package/dist/playground/snippets/ui-backgrounds.tsx +192 -0
- package/dist/playground/snippets/ui-dropdown.tsx +32 -0
- package/dist/playground/snippets/ui.tsx +17 -14
- package/dist/playground-assets.d.ts +280 -83
- package/etc/playground-assets.api.json +2901 -894
- package/etc/playground-assets.api.md +263 -94
- package/package.json +3 -3
package/dist/alpha.d.ts
CHANGED
|
@@ -93,6 +93,27 @@ export declare const AvatarTexture: {
|
|
|
93
93
|
decode(input: _m0.Reader | Uint8Array, length?: number): AvatarTexture;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
+
export declare const enum BackgroundTextureMode {
|
|
97
|
+
/**
|
|
98
|
+
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
99
|
+
* https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
100
|
+
* https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
101
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
102
|
+
*/
|
|
103
|
+
NINE_SLICES = 0,
|
|
104
|
+
/**
|
|
105
|
+
* CENTER - CENTER enables the texture to be rendered centered in relation to the
|
|
106
|
+
* element. If the element is smaller than the texture then the background
|
|
107
|
+
* should use the element as stencil to cut off the out-of-bounds area
|
|
108
|
+
*/
|
|
109
|
+
CENTER = 1,
|
|
110
|
+
/**
|
|
111
|
+
* STRETCH - STRETCH enables the texture to cover all the area of the container,
|
|
112
|
+
* adopting its aspect ratio.
|
|
113
|
+
*/
|
|
114
|
+
STRETCH = 2
|
|
115
|
+
}
|
|
116
|
+
|
|
96
117
|
/** @public */
|
|
97
118
|
export declare const Billboard: ComponentDefinition<PBBillboard>;
|
|
98
119
|
|
|
@@ -101,6 +122,27 @@ export declare const enum BillboardMode {
|
|
|
101
122
|
BM_Y_AXE = 1
|
|
102
123
|
}
|
|
103
124
|
|
|
125
|
+
/** Defines indents from respective edges */
|
|
126
|
+
export declare interface BorderRect {
|
|
127
|
+
top: number;
|
|
128
|
+
left: number;
|
|
129
|
+
right: number;
|
|
130
|
+
bottom: number;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Internal
|
|
135
|
+
*/
|
|
136
|
+
export declare const BorderRect: {
|
|
137
|
+
encode(message: BorderRect, writer?: _m0.Writer): _m0.Writer;
|
|
138
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BorderRect;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
export declare function Button(props: EntityPropTypes & UiButtonProps): ReactEcs.JSX.Element;
|
|
145
|
+
|
|
104
146
|
/**
|
|
105
147
|
* @public
|
|
106
148
|
*/
|
|
@@ -210,6 +252,8 @@ export declare type ByteBuffer = {
|
|
|
210
252
|
setUint64(offset: number, value: bigint): void;
|
|
211
253
|
};
|
|
212
254
|
|
|
255
|
+
export declare type Callback = () => void;
|
|
256
|
+
|
|
213
257
|
/** @public */
|
|
214
258
|
export declare const CameraMode: ComponentDefinition<PBCameraMode>;
|
|
215
259
|
|
|
@@ -223,7 +267,7 @@ export declare const enum CameraType {
|
|
|
223
267
|
|
|
224
268
|
export declare const CANVAS_ROOT_ENTITY = 0;
|
|
225
269
|
|
|
226
|
-
export declare type Children =
|
|
270
|
+
export declare type Children = unknown;
|
|
227
271
|
|
|
228
272
|
export declare const enum ColliderLayer {
|
|
229
273
|
CL_NONE = 0,
|
|
@@ -1011,10 +1055,6 @@ export declare type ComponentSchema<T extends [ComponentDefinition<any>, ...Comp
|
|
|
1011
1055
|
[K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
|
|
1012
1056
|
};
|
|
1013
1057
|
|
|
1014
|
-
export declare function Container({ width, height, children }: ContainerPropTypes): ReactEcs.JSX.Element;
|
|
1015
|
-
|
|
1016
|
-
export declare type ContainerPropTypes = Partial<CommonProps> & EntityPropTypes['uiTransform'];
|
|
1017
|
-
|
|
1018
1058
|
export declare function createEthereumProvider(): {
|
|
1019
1059
|
send(message: RPCSendableMessage, callback?: ((error: Error | null, result?: any) => void) | undefined): void;
|
|
1020
1060
|
sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
|
|
@@ -1044,7 +1084,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1044
1084
|
* @param cb - Function to execute when click fires
|
|
1045
1085
|
* @param opts - Opts to trigger Feedback and Button
|
|
1046
1086
|
*/
|
|
1047
|
-
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1087
|
+
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1048
1088
|
/**
|
|
1049
1089
|
* @public
|
|
1050
1090
|
* Execute callback when the user releases the InputButton pointing at the entity
|
|
@@ -1052,7 +1092,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1052
1092
|
* @param cb - Function to execute when click fires
|
|
1053
1093
|
* @param opts - Opts to trigger Feedback and Button
|
|
1054
1094
|
*/
|
|
1055
|
-
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1095
|
+
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1056
1096
|
};
|
|
1057
1097
|
|
|
1058
1098
|
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
|
@@ -1108,8 +1148,13 @@ export declare function defineComponent<T>(componentId: number, spec: ISchema<T>
|
|
|
1108
1148
|
*/
|
|
1109
1149
|
export declare const DEG2RAD: number;
|
|
1110
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* @public
|
|
1153
|
+
*/
|
|
1154
|
+
export declare function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
1155
|
+
|
|
1111
1156
|
export declare type EcsElements = {
|
|
1112
|
-
entity: Partial<
|
|
1157
|
+
entity: Partial<EntityComponents & CommonProps>;
|
|
1113
1158
|
};
|
|
1114
1159
|
|
|
1115
1160
|
/**
|
|
@@ -1133,7 +1178,10 @@ export declare type EntityComponents = {
|
|
|
1133
1178
|
uiTransform: PBUiTransform;
|
|
1134
1179
|
uiText: PBUiText;
|
|
1135
1180
|
uiBackground: PBUiBackground;
|
|
1136
|
-
|
|
1181
|
+
uiInput: PBUiInput;
|
|
1182
|
+
uiDropdown: PBUiDropdown;
|
|
1183
|
+
onMouseDown: Callback;
|
|
1184
|
+
onMouseUp: Callback;
|
|
1137
1185
|
};
|
|
1138
1186
|
|
|
1139
1187
|
export declare function EntityContainer(): {
|
|
@@ -1148,9 +1196,8 @@ export declare function EntityContainer(): {
|
|
|
1148
1196
|
*/
|
|
1149
1197
|
export declare type EntityPropTypes = {
|
|
1150
1198
|
uiTransform?: UiTransformProps;
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
};
|
|
1199
|
+
uiBackground?: UiBackgroundProps;
|
|
1200
|
+
} & Listeners;
|
|
1154
1201
|
|
|
1155
1202
|
/**
|
|
1156
1203
|
* Constant used to define the minimal number value in Babylon.js
|
|
@@ -1161,9 +1208,10 @@ export declare const Epsilon = 0.000001;
|
|
|
1161
1208
|
export declare type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand) => void;
|
|
1162
1209
|
|
|
1163
1210
|
export declare type EventSystemOptions = {
|
|
1164
|
-
button
|
|
1211
|
+
button: InputAction;
|
|
1165
1212
|
hoverText?: string;
|
|
1166
1213
|
maxDistance?: number;
|
|
1214
|
+
showFeedback?: boolean;
|
|
1167
1215
|
};
|
|
1168
1216
|
|
|
1169
1217
|
/** Excludes property keys from T where the property is assignable to U */
|
|
@@ -1537,6 +1585,11 @@ export declare type IncludeUndefined<T> = {
|
|
|
1537
1585
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
|
1538
1586
|
}[keyof T];
|
|
1539
1587
|
|
|
1588
|
+
/**
|
|
1589
|
+
* @public
|
|
1590
|
+
*/
|
|
1591
|
+
export declare function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;
|
|
1592
|
+
|
|
1540
1593
|
export declare const enum InputAction {
|
|
1541
1594
|
IA_POINTER = 0,
|
|
1542
1595
|
IA_PRIMARY = 1,
|
|
@@ -1585,11 +1638,10 @@ export declare type ISchema<T = any> = {
|
|
|
1585
1638
|
extend?: (base?: T) => T;
|
|
1586
1639
|
};
|
|
1587
1640
|
|
|
1588
|
-
export declare const isListener: (key: string) => key is
|
|
1641
|
+
export declare const isListener: (key: string) => key is keyof Listeners;
|
|
1589
1642
|
|
|
1590
1643
|
export declare namespace JSX {
|
|
1591
|
-
export
|
|
1592
|
-
}
|
|
1644
|
+
export type Element = {} | null;
|
|
1593
1645
|
export type IntrinsicElements = EcsElements;
|
|
1594
1646
|
export interface Component {
|
|
1595
1647
|
}
|
|
@@ -1597,8 +1649,14 @@ export declare namespace JSX {
|
|
|
1597
1649
|
|
|
1598
1650
|
export declare type Key = number | string;
|
|
1599
1651
|
|
|
1652
|
+
/**
|
|
1653
|
+
* @public
|
|
1654
|
+
*/
|
|
1655
|
+
export declare function Label(props: EntityPropTypes & UiTextProps): ReactEcs.JSX.Element;
|
|
1656
|
+
|
|
1600
1657
|
export declare type Listeners = {
|
|
1601
|
-
|
|
1658
|
+
onMouseDown?: Callback;
|
|
1659
|
+
onMouseUp?: Callback;
|
|
1602
1660
|
};
|
|
1603
1661
|
|
|
1604
1662
|
export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
|
|
@@ -2843,10 +2901,10 @@ export declare const PBGltfContainer: {
|
|
|
2843
2901
|
|
|
2844
2902
|
export declare interface PBMaterial {
|
|
2845
2903
|
material?: {
|
|
2846
|
-
$case:
|
|
2904
|
+
$case: "unlit";
|
|
2847
2905
|
unlit: PBMaterial_UnlitMaterial;
|
|
2848
2906
|
} | {
|
|
2849
|
-
$case:
|
|
2907
|
+
$case: "pbr";
|
|
2850
2908
|
pbr: PBMaterial_PbrMaterial;
|
|
2851
2909
|
};
|
|
2852
2910
|
}
|
|
@@ -2923,16 +2981,16 @@ export declare interface PBMeshCollider {
|
|
|
2923
2981
|
/** default = ColliderLayer.Physics | ColliderLayer.Pointer */
|
|
2924
2982
|
collisionMask?: number | undefined;
|
|
2925
2983
|
mesh?: {
|
|
2926
|
-
$case:
|
|
2984
|
+
$case: "box";
|
|
2927
2985
|
box: PBMeshCollider_BoxMesh;
|
|
2928
2986
|
} | {
|
|
2929
|
-
$case:
|
|
2987
|
+
$case: "sphere";
|
|
2930
2988
|
sphere: PBMeshCollider_SphereMesh;
|
|
2931
2989
|
} | {
|
|
2932
|
-
$case:
|
|
2990
|
+
$case: "cylinder";
|
|
2933
2991
|
cylinder: PBMeshCollider_CylinderMesh;
|
|
2934
2992
|
} | {
|
|
2935
|
-
$case:
|
|
2993
|
+
$case: "plane";
|
|
2936
2994
|
plane: PBMeshCollider_PlaneMesh;
|
|
2937
2995
|
};
|
|
2938
2996
|
}
|
|
@@ -2995,16 +3053,16 @@ export declare const PBMeshCollider_SphereMesh: {
|
|
|
2995
3053
|
|
|
2996
3054
|
export declare interface PBMeshRenderer {
|
|
2997
3055
|
mesh?: {
|
|
2998
|
-
$case:
|
|
3056
|
+
$case: "box";
|
|
2999
3057
|
box: PBMeshRenderer_BoxMesh;
|
|
3000
3058
|
} | {
|
|
3001
|
-
$case:
|
|
3059
|
+
$case: "sphere";
|
|
3002
3060
|
sphere: PBMeshRenderer_SphereMesh;
|
|
3003
3061
|
} | {
|
|
3004
|
-
$case:
|
|
3062
|
+
$case: "cylinder";
|
|
3005
3063
|
cylinder: PBMeshRenderer_CylinderMesh;
|
|
3006
3064
|
} | {
|
|
3007
|
-
$case:
|
|
3065
|
+
$case: "plane";
|
|
3008
3066
|
plane: PBMeshRenderer_PlaneMesh;
|
|
3009
3067
|
};
|
|
3010
3068
|
}
|
|
@@ -3083,82 +3141,82 @@ export declare const PBNftShape: {
|
|
|
3083
3141
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
3084
3142
|
};
|
|
3085
3143
|
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
/** a list of the last N pointer commands (from the engine) */
|
|
3089
|
-
commands: PBPointerEventsResult_PointerCommand[];
|
|
3144
|
+
export declare interface PBPointerEvents {
|
|
3145
|
+
pointerEvents: PBPointerEvents_Entry[];
|
|
3090
3146
|
}
|
|
3091
3147
|
|
|
3092
3148
|
/**
|
|
3093
3149
|
* Internal
|
|
3094
3150
|
*/
|
|
3095
|
-
export declare const
|
|
3096
|
-
encode(message:
|
|
3097
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3151
|
+
export declare const PBPointerEvents: {
|
|
3152
|
+
encode(message: PBPointerEvents, writer?: _m0.Writer): _m0.Writer;
|
|
3153
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents;
|
|
3098
3154
|
};
|
|
3099
3155
|
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
button: InputAction;
|
|
3104
|
-
hit: RaycastHit | undefined;
|
|
3105
|
-
state: PointerEventType;
|
|
3106
|
-
/** could be a Lamport timestamp */
|
|
3107
|
-
timestamp: number;
|
|
3108
|
-
/** if the input is analog then we store it here */
|
|
3109
|
-
analog?: number | undefined;
|
|
3156
|
+
export declare interface PBPointerEvents_Entry {
|
|
3157
|
+
eventType: PointerEventType;
|
|
3158
|
+
eventInfo: PBPointerEvents_Info | undefined;
|
|
3110
3159
|
}
|
|
3111
3160
|
|
|
3112
3161
|
/**
|
|
3113
3162
|
* Internal
|
|
3114
3163
|
*/
|
|
3115
|
-
export declare const
|
|
3116
|
-
encode(message:
|
|
3117
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3164
|
+
export declare const PBPointerEvents_Entry: {
|
|
3165
|
+
encode(message: PBPointerEvents_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
3166
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Entry;
|
|
3118
3167
|
};
|
|
3119
3168
|
|
|
3120
|
-
export declare interface
|
|
3121
|
-
|
|
3169
|
+
export declare interface PBPointerEvents_Info {
|
|
3170
|
+
/** default=InputAction.ANY */
|
|
3171
|
+
button?: InputAction | undefined;
|
|
3172
|
+
/** default='Interact' */
|
|
3173
|
+
hoverText?: string | undefined;
|
|
3174
|
+
/** default=10 */
|
|
3175
|
+
maxDistance?: number | undefined;
|
|
3176
|
+
/** default=true */
|
|
3177
|
+
showFeedback?: boolean | undefined;
|
|
3122
3178
|
}
|
|
3123
3179
|
|
|
3124
3180
|
/**
|
|
3125
3181
|
* Internal
|
|
3126
3182
|
*/
|
|
3127
|
-
export declare const
|
|
3128
|
-
encode(message:
|
|
3129
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3183
|
+
export declare const PBPointerEvents_Info: {
|
|
3184
|
+
encode(message: PBPointerEvents_Info, writer?: _m0.Writer): _m0.Writer;
|
|
3185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Info;
|
|
3130
3186
|
};
|
|
3131
3187
|
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3188
|
+
/** the renderer will set this component to the root entity once per frame with all the events */
|
|
3189
|
+
export declare interface PBPointerEventsResult {
|
|
3190
|
+
/** a list of the last N pointer commands (from the engine) */
|
|
3191
|
+
commands: PBPointerEventsResult_PointerCommand[];
|
|
3135
3192
|
}
|
|
3136
3193
|
|
|
3137
3194
|
/**
|
|
3138
3195
|
* Internal
|
|
3139
3196
|
*/
|
|
3140
|
-
export declare const
|
|
3141
|
-
encode(message:
|
|
3142
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3197
|
+
export declare const PBPointerEventsResult: {
|
|
3198
|
+
encode(message: PBPointerEventsResult, writer?: _m0.Writer): _m0.Writer;
|
|
3199
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult;
|
|
3143
3200
|
};
|
|
3144
3201
|
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3202
|
+
/** this message represents a pointer event, used both for UP and DOWN actions */
|
|
3203
|
+
export declare interface PBPointerEventsResult_PointerCommand {
|
|
3204
|
+
/** identifier of the input */
|
|
3205
|
+
button: InputAction;
|
|
3206
|
+
hit: RaycastHit | undefined;
|
|
3207
|
+
state: PointerEventType;
|
|
3208
|
+
/** could be a Lamport timestamp */
|
|
3209
|
+
timestamp: number;
|
|
3210
|
+
/** if the input is analog then we store it here */
|
|
3211
|
+
analog?: number | undefined;
|
|
3154
3212
|
}
|
|
3155
3213
|
|
|
3156
3214
|
/**
|
|
3157
3215
|
* Internal
|
|
3158
3216
|
*/
|
|
3159
|
-
export declare const
|
|
3160
|
-
encode(message:
|
|
3161
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3217
|
+
export declare const PBPointerEventsResult_PointerCommand: {
|
|
3218
|
+
encode(message: PBPointerEventsResult_PointerCommand, writer?: _m0.Writer): _m0.Writer;
|
|
3219
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult_PointerCommand;
|
|
3162
3220
|
};
|
|
3163
3221
|
|
|
3164
3222
|
export declare interface PBPointerLock {
|
|
@@ -3261,8 +3319,14 @@ export declare const PBTextShape: {
|
|
|
3261
3319
|
};
|
|
3262
3320
|
|
|
3263
3321
|
export declare interface PBUiBackground {
|
|
3264
|
-
/** default=(
|
|
3265
|
-
|
|
3322
|
+
/** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
|
|
3323
|
+
color?: PBColor4 | undefined;
|
|
3324
|
+
texture?: TextureUnion | undefined;
|
|
3325
|
+
textureMode: BackgroundTextureMode;
|
|
3326
|
+
/** default=(1/3, 1/3, 1/3, 1/3) */
|
|
3327
|
+
textureSlices?: BorderRect | undefined;
|
|
3328
|
+
/** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
|
|
3329
|
+
uvs: number[];
|
|
3266
3330
|
}
|
|
3267
3331
|
|
|
3268
3332
|
/**
|
|
@@ -3273,6 +3337,78 @@ export declare const PBUiBackground: {
|
|
|
3273
3337
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
3274
3338
|
};
|
|
3275
3339
|
|
|
3340
|
+
export declare interface PBUiDropdown {
|
|
3341
|
+
acceptEmpty: boolean;
|
|
3342
|
+
emptyLabel?: string | undefined;
|
|
3343
|
+
options: string[];
|
|
3344
|
+
/** default=null when accept_empty==true; default=0 when accept_empty==false */
|
|
3345
|
+
selectedIndex?: number | undefined;
|
|
3346
|
+
disabled: boolean;
|
|
3347
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3348
|
+
color?: PBColor4 | undefined;
|
|
3349
|
+
/** default='center' */
|
|
3350
|
+
textAlign?: TextAlignMode | undefined;
|
|
3351
|
+
/** default=0 */
|
|
3352
|
+
font?: Font | undefined;
|
|
3353
|
+
/** default=10 */
|
|
3354
|
+
fontSize?: number | undefined;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* Internal
|
|
3359
|
+
*/
|
|
3360
|
+
export declare const PBUiDropdown: {
|
|
3361
|
+
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
3362
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
3363
|
+
};
|
|
3364
|
+
|
|
3365
|
+
export declare interface PBUiDropdownResult {
|
|
3366
|
+
value: number;
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* Internal
|
|
3371
|
+
*/
|
|
3372
|
+
export declare const PBUiDropdownResult: {
|
|
3373
|
+
encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
3374
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
export declare interface PBUiInput {
|
|
3378
|
+
placeholder: string;
|
|
3379
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3380
|
+
color?: PBColor4 | undefined;
|
|
3381
|
+
/** default=(0.3,0.3,0.3,1.0) */
|
|
3382
|
+
placeholderColor?: PBColor4 | undefined;
|
|
3383
|
+
disabled: boolean;
|
|
3384
|
+
/** default='center' */
|
|
3385
|
+
textAlign?: TextAlignMode | undefined;
|
|
3386
|
+
/** default=0 */
|
|
3387
|
+
font?: Font | undefined;
|
|
3388
|
+
/** default=10 */
|
|
3389
|
+
fontSize?: number | undefined;
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Internal
|
|
3394
|
+
*/
|
|
3395
|
+
export declare const PBUiInput: {
|
|
3396
|
+
encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
3397
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
3398
|
+
};
|
|
3399
|
+
|
|
3400
|
+
export declare interface PBUiInputResult {
|
|
3401
|
+
value: string;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Internal
|
|
3406
|
+
*/
|
|
3407
|
+
export declare const PBUiInputResult: {
|
|
3408
|
+
encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
|
|
3409
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3276
3412
|
export declare interface PBUiText {
|
|
3277
3413
|
value: string;
|
|
3278
3414
|
/** default=(1.0,1.0,1.0,1.0) */
|
|
@@ -3542,6 +3678,9 @@ export declare namespace Plane {
|
|
|
3542
3678
|
export function signedDistanceTo(plane: ReadonlyPlane, point: Vector3.ReadonlyVector3): number;
|
|
3543
3679
|
}
|
|
3544
3680
|
|
|
3681
|
+
/** @public */
|
|
3682
|
+
export declare const PointerEvents: ComponentDefinition<PBPointerEvents>;
|
|
3683
|
+
|
|
3545
3684
|
/** @public */
|
|
3546
3685
|
export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
|
|
3547
3686
|
|
|
@@ -3551,9 +3690,9 @@ export declare const pointerEventsSystem: {
|
|
|
3551
3690
|
removeOnClick(entity: unknown): void;
|
|
3552
3691
|
removeOnPointerDown(entity: unknown): void;
|
|
3553
3692
|
removeOnPointerUp(entity: unknown): void;
|
|
3554
|
-
onClick(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3555
|
-
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3556
|
-
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3693
|
+
onClick(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3694
|
+
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3695
|
+
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3557
3696
|
};
|
|
3558
3697
|
|
|
3559
3698
|
export declare const enum PointerEventType {
|
|
@@ -3563,9 +3702,6 @@ export declare const enum PointerEventType {
|
|
|
3563
3702
|
PET_HOVER_LEAVE = 3
|
|
3564
3703
|
}
|
|
3565
3704
|
|
|
3566
|
-
/** @public */
|
|
3567
|
-
export declare const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
|
|
3568
|
-
|
|
3569
3705
|
/** @public */
|
|
3570
3706
|
export declare const PointerLock: ComponentDefinition<PBPointerLock>;
|
|
3571
3707
|
|
|
@@ -3887,8 +4023,7 @@ export declare type ReactBasedUiSystem = {
|
|
|
3887
4023
|
|
|
3888
4024
|
export declare namespace ReactEcs {
|
|
3889
4025
|
export namespace JSX {
|
|
3890
|
-
export
|
|
3891
|
-
}
|
|
4026
|
+
export type Element = {} | null;
|
|
3892
4027
|
export type IntrinsicElements = EcsElements;
|
|
3893
4028
|
export interface Component {
|
|
3894
4029
|
}
|
|
@@ -4217,10 +4352,10 @@ export declare type TextureHelper = {
|
|
|
4217
4352
|
|
|
4218
4353
|
export declare interface TextureUnion {
|
|
4219
4354
|
tex?: {
|
|
4220
|
-
$case:
|
|
4355
|
+
$case: "texture";
|
|
4221
4356
|
texture: Texture;
|
|
4222
4357
|
} | {
|
|
4223
|
-
$case:
|
|
4358
|
+
$case: "avatarTexture";
|
|
4224
4359
|
avatarTexture: AvatarTexture;
|
|
4225
4360
|
};
|
|
4226
4361
|
}
|
|
@@ -4305,19 +4440,81 @@ export declare type Transport = {
|
|
|
4305
4440
|
|
|
4306
4441
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
4307
4442
|
|
|
4443
|
+
/**
|
|
4444
|
+
* @public
|
|
4445
|
+
*/
|
|
4446
|
+
export declare type UiAvatarTexture = {
|
|
4447
|
+
avatarTexture?: AvatarTexture;
|
|
4448
|
+
};
|
|
4449
|
+
|
|
4308
4450
|
/** @public */
|
|
4309
4451
|
export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
4310
4452
|
|
|
4453
|
+
/**
|
|
4454
|
+
* @public
|
|
4455
|
+
*/
|
|
4456
|
+
export declare type UiBackgroundProps = Partial<Omit<PBUiBackground, 'texture'>> & UiTextureUnion;
|
|
4457
|
+
|
|
4458
|
+
/**
|
|
4459
|
+
* @public
|
|
4460
|
+
*/
|
|
4461
|
+
export declare type UiButtonProps = PBUiText & {
|
|
4462
|
+
type?: 'primary' | 'secondary';
|
|
4463
|
+
};
|
|
4464
|
+
|
|
4311
4465
|
export declare type UiComponent = () => JSX.Element;
|
|
4312
4466
|
|
|
4467
|
+
/** @public */
|
|
4468
|
+
export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
4469
|
+
|
|
4470
|
+
/**
|
|
4471
|
+
* @public
|
|
4472
|
+
*/
|
|
4473
|
+
export declare type UiDropdownProps = Partial<PBUiDropdown> & {
|
|
4474
|
+
onChange?(value: number): void;
|
|
4475
|
+
};
|
|
4476
|
+
|
|
4477
|
+
/** @public */
|
|
4478
|
+
export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
4479
|
+
|
|
4313
4480
|
/**
|
|
4314
4481
|
* @public
|
|
4315
4482
|
*/
|
|
4316
4483
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
4317
4484
|
|
|
4485
|
+
/** @public */
|
|
4486
|
+
export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
4487
|
+
|
|
4488
|
+
/**
|
|
4489
|
+
* @public
|
|
4490
|
+
*/
|
|
4491
|
+
export declare type UiInputProps = PBUiInput & {
|
|
4492
|
+
onChange?(value: string): void;
|
|
4493
|
+
};
|
|
4494
|
+
|
|
4495
|
+
/** @public */
|
|
4496
|
+
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4497
|
+
|
|
4318
4498
|
/** @public */
|
|
4319
4499
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4320
4500
|
|
|
4501
|
+
/**
|
|
4502
|
+
* @public
|
|
4503
|
+
*/
|
|
4504
|
+
export declare type UiTextProps = PBUiText;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* @public
|
|
4508
|
+
*/
|
|
4509
|
+
export declare type UiTexture = {
|
|
4510
|
+
texture?: Texture;
|
|
4511
|
+
};
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* @public
|
|
4515
|
+
*/
|
|
4516
|
+
export declare type UiTextureUnion = UiAvatarTexture | UiTexture;
|
|
4517
|
+
|
|
4321
4518
|
/** @public */
|
|
4322
4519
|
export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
4323
4520
|
|