@dcl/playground-assets 7.0.6-3807227301.commit-1045452 → 7.0.6-3808564125.commit-7a2650b
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 +267 -70
- package/dist/beta.d.ts +267 -70
- package/dist/index.bundled.d.ts +267 -70
- package/dist/index.js +936 -276
- 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/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 +268 -71
- package/etc/playground-assets.api.json +2889 -882
- package/etc/playground-assets.api.md +251 -82
- package/package.json +3 -3
|
@@ -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;
|
|
@@ -1048,7 +1088,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1048
1088
|
* @param cb - Function to execute when onPointerDown fires
|
|
1049
1089
|
* @param opts - Opts to trigger Feedback and Button
|
|
1050
1090
|
*/
|
|
1051
|
-
onClick(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1091
|
+
onClick(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1052
1092
|
/**
|
|
1053
1093
|
* @public
|
|
1054
1094
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -1056,7 +1096,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1056
1096
|
* @param cb - Function to execute when click fires
|
|
1057
1097
|
* @param opts - Opts to trigger Feedback and Button
|
|
1058
1098
|
*/
|
|
1059
|
-
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1099
|
+
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1060
1100
|
/**
|
|
1061
1101
|
* @public
|
|
1062
1102
|
* Execute callback when the user releases the InputButton pointing at the entity
|
|
@@ -1064,7 +1104,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1064
1104
|
* @param cb - Function to execute when click fires
|
|
1065
1105
|
* @param opts - Opts to trigger Feedback and Button
|
|
1066
1106
|
*/
|
|
1067
|
-
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1107
|
+
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1068
1108
|
};
|
|
1069
1109
|
|
|
1070
1110
|
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
|
@@ -1120,8 +1160,13 @@ export declare function defineComponent<T>(componentId: number, spec: ISchema<T>
|
|
|
1120
1160
|
*/
|
|
1121
1161
|
export declare const DEG2RAD: number;
|
|
1122
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* @public
|
|
1165
|
+
*/
|
|
1166
|
+
export declare function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
1167
|
+
|
|
1123
1168
|
export declare type EcsElements = {
|
|
1124
|
-
entity: Partial<
|
|
1169
|
+
entity: Partial<EntityComponents & CommonProps>;
|
|
1125
1170
|
};
|
|
1126
1171
|
|
|
1127
1172
|
/**
|
|
@@ -1145,7 +1190,10 @@ export declare type EntityComponents = {
|
|
|
1145
1190
|
uiTransform: PBUiTransform;
|
|
1146
1191
|
uiText: PBUiText;
|
|
1147
1192
|
uiBackground: PBUiBackground;
|
|
1148
|
-
|
|
1193
|
+
uiInput: PBUiInput;
|
|
1194
|
+
uiDropdown: PBUiDropdown;
|
|
1195
|
+
onMouseDown: Callback;
|
|
1196
|
+
onMouseUp: Callback;
|
|
1149
1197
|
};
|
|
1150
1198
|
|
|
1151
1199
|
export declare function EntityContainer(): {
|
|
@@ -1160,9 +1208,8 @@ export declare function EntityContainer(): {
|
|
|
1160
1208
|
*/
|
|
1161
1209
|
export declare type EntityPropTypes = {
|
|
1162
1210
|
uiTransform?: UiTransformProps;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
};
|
|
1211
|
+
uiBackground?: UiBackgroundProps;
|
|
1212
|
+
} & Listeners;
|
|
1166
1213
|
|
|
1167
1214
|
/**
|
|
1168
1215
|
* Constant used to define the minimal number value in Babylon.js
|
|
@@ -1173,9 +1220,10 @@ export declare const Epsilon = 0.000001;
|
|
|
1173
1220
|
export declare type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand) => void;
|
|
1174
1221
|
|
|
1175
1222
|
export declare type EventSystemOptions = {
|
|
1176
|
-
button
|
|
1223
|
+
button: InputAction;
|
|
1177
1224
|
hoverText?: string;
|
|
1178
1225
|
maxDistance?: number;
|
|
1226
|
+
showFeedback?: boolean;
|
|
1179
1227
|
};
|
|
1180
1228
|
|
|
1181
1229
|
/** Excludes property keys from T where the property is assignable to U */
|
|
@@ -1549,6 +1597,11 @@ export declare type IncludeUndefined<T> = {
|
|
|
1549
1597
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
|
1550
1598
|
}[keyof T];
|
|
1551
1599
|
|
|
1600
|
+
/**
|
|
1601
|
+
* @public
|
|
1602
|
+
*/
|
|
1603
|
+
export declare function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;
|
|
1604
|
+
|
|
1552
1605
|
export declare const enum InputAction {
|
|
1553
1606
|
IA_POINTER = 0,
|
|
1554
1607
|
IA_PRIMARY = 1,
|
|
@@ -1597,11 +1650,10 @@ export declare type ISchema<T = any> = {
|
|
|
1597
1650
|
extend?: (base?: T) => T;
|
|
1598
1651
|
};
|
|
1599
1652
|
|
|
1600
|
-
export declare const isListener: (key: string) => key is
|
|
1653
|
+
export declare const isListener: (key: string) => key is keyof Listeners;
|
|
1601
1654
|
|
|
1602
1655
|
export declare namespace JSX {
|
|
1603
|
-
export
|
|
1604
|
-
}
|
|
1656
|
+
export type Element = {} | null;
|
|
1605
1657
|
export type IntrinsicElements = EcsElements;
|
|
1606
1658
|
export interface Component {
|
|
1607
1659
|
}
|
|
@@ -1609,8 +1661,14 @@ export declare namespace JSX {
|
|
|
1609
1661
|
|
|
1610
1662
|
export declare type Key = number | string;
|
|
1611
1663
|
|
|
1664
|
+
/**
|
|
1665
|
+
* @public
|
|
1666
|
+
*/
|
|
1667
|
+
export declare function Label(props: EntityPropTypes & UiTextProps): ReactEcs.JSX.Element;
|
|
1668
|
+
|
|
1612
1669
|
export declare type Listeners = {
|
|
1613
|
-
|
|
1670
|
+
onMouseDown?: Callback;
|
|
1671
|
+
onMouseUp?: Callback;
|
|
1614
1672
|
};
|
|
1615
1673
|
|
|
1616
1674
|
export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
|
|
@@ -3095,82 +3153,82 @@ export declare const PBNftShape: {
|
|
|
3095
3153
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
3096
3154
|
};
|
|
3097
3155
|
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
/** a list of the last N pointer commands (from the engine) */
|
|
3101
|
-
commands: PBPointerEventsResult_PointerCommand[];
|
|
3156
|
+
export declare interface PBPointerEvents {
|
|
3157
|
+
pointerEvents: PBPointerEvents_Entry[];
|
|
3102
3158
|
}
|
|
3103
3159
|
|
|
3104
3160
|
/**
|
|
3105
3161
|
* Internal
|
|
3106
3162
|
*/
|
|
3107
|
-
export declare const
|
|
3108
|
-
encode(message:
|
|
3109
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3163
|
+
export declare const PBPointerEvents: {
|
|
3164
|
+
encode(message: PBPointerEvents, writer?: _m0.Writer): _m0.Writer;
|
|
3165
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents;
|
|
3110
3166
|
};
|
|
3111
3167
|
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
button: InputAction;
|
|
3116
|
-
hit: RaycastHit | undefined;
|
|
3117
|
-
state: PointerEventType;
|
|
3118
|
-
/** could be a Lamport timestamp */
|
|
3119
|
-
timestamp: number;
|
|
3120
|
-
/** if the input is analog then we store it here */
|
|
3121
|
-
analog?: number | undefined;
|
|
3168
|
+
export declare interface PBPointerEvents_Entry {
|
|
3169
|
+
eventType: PointerEventType;
|
|
3170
|
+
eventInfo: PBPointerEvents_Info | undefined;
|
|
3122
3171
|
}
|
|
3123
3172
|
|
|
3124
3173
|
/**
|
|
3125
3174
|
* Internal
|
|
3126
3175
|
*/
|
|
3127
|
-
export declare const
|
|
3128
|
-
encode(message:
|
|
3129
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3176
|
+
export declare const PBPointerEvents_Entry: {
|
|
3177
|
+
encode(message: PBPointerEvents_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
3178
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Entry;
|
|
3130
3179
|
};
|
|
3131
3180
|
|
|
3132
|
-
export declare interface
|
|
3133
|
-
|
|
3181
|
+
export declare interface PBPointerEvents_Info {
|
|
3182
|
+
/** default=InputAction.ANY */
|
|
3183
|
+
button?: InputAction | undefined;
|
|
3184
|
+
/** default='Interact' */
|
|
3185
|
+
hoverText?: string | undefined;
|
|
3186
|
+
/** default=10 */
|
|
3187
|
+
maxDistance?: number | undefined;
|
|
3188
|
+
/** default=true */
|
|
3189
|
+
showFeedback?: boolean | undefined;
|
|
3134
3190
|
}
|
|
3135
3191
|
|
|
3136
3192
|
/**
|
|
3137
3193
|
* Internal
|
|
3138
3194
|
*/
|
|
3139
|
-
export declare const
|
|
3140
|
-
encode(message:
|
|
3141
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3195
|
+
export declare const PBPointerEvents_Info: {
|
|
3196
|
+
encode(message: PBPointerEvents_Info, writer?: _m0.Writer): _m0.Writer;
|
|
3197
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Info;
|
|
3142
3198
|
};
|
|
3143
3199
|
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3200
|
+
/** the renderer will set this component to the root entity once per frame with all the events */
|
|
3201
|
+
export declare interface PBPointerEventsResult {
|
|
3202
|
+
/** a list of the last N pointer commands (from the engine) */
|
|
3203
|
+
commands: PBPointerEventsResult_PointerCommand[];
|
|
3147
3204
|
}
|
|
3148
3205
|
|
|
3149
3206
|
/**
|
|
3150
3207
|
* Internal
|
|
3151
3208
|
*/
|
|
3152
|
-
export declare const
|
|
3153
|
-
encode(message:
|
|
3154
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3209
|
+
export declare const PBPointerEventsResult: {
|
|
3210
|
+
encode(message: PBPointerEventsResult, writer?: _m0.Writer): _m0.Writer;
|
|
3211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult;
|
|
3155
3212
|
};
|
|
3156
3213
|
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3214
|
+
/** this message represents a pointer event, used both for UP and DOWN actions */
|
|
3215
|
+
export declare interface PBPointerEventsResult_PointerCommand {
|
|
3216
|
+
/** identifier of the input */
|
|
3217
|
+
button: InputAction;
|
|
3218
|
+
hit: RaycastHit | undefined;
|
|
3219
|
+
state: PointerEventType;
|
|
3220
|
+
/** could be a Lamport timestamp */
|
|
3221
|
+
timestamp: number;
|
|
3222
|
+
/** if the input is analog then we store it here */
|
|
3223
|
+
analog?: number | undefined;
|
|
3166
3224
|
}
|
|
3167
3225
|
|
|
3168
3226
|
/**
|
|
3169
3227
|
* Internal
|
|
3170
3228
|
*/
|
|
3171
|
-
export declare const
|
|
3172
|
-
encode(message:
|
|
3173
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3229
|
+
export declare const PBPointerEventsResult_PointerCommand: {
|
|
3230
|
+
encode(message: PBPointerEventsResult_PointerCommand, writer?: _m0.Writer): _m0.Writer;
|
|
3231
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult_PointerCommand;
|
|
3174
3232
|
};
|
|
3175
3233
|
|
|
3176
3234
|
export declare interface PBPointerLock {
|
|
@@ -3273,8 +3331,14 @@ export declare const PBTextShape: {
|
|
|
3273
3331
|
};
|
|
3274
3332
|
|
|
3275
3333
|
export declare interface PBUiBackground {
|
|
3276
|
-
/** default=(
|
|
3277
|
-
|
|
3334
|
+
/** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
|
|
3335
|
+
color?: PBColor4 | undefined;
|
|
3336
|
+
texture?: TextureUnion | undefined;
|
|
3337
|
+
textureMode: BackgroundTextureMode;
|
|
3338
|
+
/** default=(1/3, 1/3, 1/3, 1/3) */
|
|
3339
|
+
textureSlices?: BorderRect | undefined;
|
|
3340
|
+
/** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
|
|
3341
|
+
uvs: number[];
|
|
3278
3342
|
}
|
|
3279
3343
|
|
|
3280
3344
|
/**
|
|
@@ -3285,6 +3349,78 @@ export declare const PBUiBackground: {
|
|
|
3285
3349
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
3286
3350
|
};
|
|
3287
3351
|
|
|
3352
|
+
export declare interface PBUiDropdown {
|
|
3353
|
+
acceptEmpty: boolean;
|
|
3354
|
+
emptyLabel?: string | undefined;
|
|
3355
|
+
options: string[];
|
|
3356
|
+
/** default=null when accept_empty==true; default=0 when accept_empty==false */
|
|
3357
|
+
selectedIndex?: number | undefined;
|
|
3358
|
+
disabled: boolean;
|
|
3359
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3360
|
+
color?: PBColor4 | undefined;
|
|
3361
|
+
/** default='center' */
|
|
3362
|
+
textAlign?: TextAlignMode | undefined;
|
|
3363
|
+
/** default=0 */
|
|
3364
|
+
font?: Font | undefined;
|
|
3365
|
+
/** default=10 */
|
|
3366
|
+
fontSize?: number | undefined;
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* Internal
|
|
3371
|
+
*/
|
|
3372
|
+
export declare const PBUiDropdown: {
|
|
3373
|
+
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
3374
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
export declare interface PBUiDropdownResult {
|
|
3378
|
+
value: number;
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Internal
|
|
3383
|
+
*/
|
|
3384
|
+
export declare const PBUiDropdownResult: {
|
|
3385
|
+
encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
3386
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
export declare interface PBUiInput {
|
|
3390
|
+
placeholder: string;
|
|
3391
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3392
|
+
color?: PBColor4 | undefined;
|
|
3393
|
+
/** default=(0.3,0.3,0.3,1.0) */
|
|
3394
|
+
placeholderColor?: PBColor4 | undefined;
|
|
3395
|
+
disabled: boolean;
|
|
3396
|
+
/** default='center' */
|
|
3397
|
+
textAlign?: TextAlignMode | undefined;
|
|
3398
|
+
/** default=0 */
|
|
3399
|
+
font?: Font | undefined;
|
|
3400
|
+
/** default=10 */
|
|
3401
|
+
fontSize?: number | undefined;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Internal
|
|
3406
|
+
*/
|
|
3407
|
+
export declare const PBUiInput: {
|
|
3408
|
+
encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
3409
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3412
|
+
export declare interface PBUiInputResult {
|
|
3413
|
+
value: string;
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Internal
|
|
3418
|
+
*/
|
|
3419
|
+
export declare const PBUiInputResult: {
|
|
3420
|
+
encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
|
|
3421
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
3422
|
+
};
|
|
3423
|
+
|
|
3288
3424
|
export declare interface PBUiText {
|
|
3289
3425
|
value: string;
|
|
3290
3426
|
/** default=(1.0,1.0,1.0,1.0) */
|
|
@@ -3554,6 +3690,9 @@ export declare namespace Plane {
|
|
|
3554
3690
|
export function signedDistanceTo(plane: ReadonlyPlane, point: Vector3.ReadonlyVector3): number;
|
|
3555
3691
|
}
|
|
3556
3692
|
|
|
3693
|
+
/** @public */
|
|
3694
|
+
export declare const PointerEvents: ComponentDefinition<PBPointerEvents>;
|
|
3695
|
+
|
|
3557
3696
|
/** @public */
|
|
3558
3697
|
export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
|
|
3559
3698
|
|
|
@@ -3563,9 +3702,9 @@ export declare const pointerEventsSystem: {
|
|
|
3563
3702
|
removeOnClick(entity: unknown): void;
|
|
3564
3703
|
removeOnPointerDown(entity: unknown): void;
|
|
3565
3704
|
removeOnPointerUp(entity: unknown): void;
|
|
3566
|
-
onClick(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3567
|
-
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3568
|
-
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3705
|
+
onClick(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3706
|
+
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3707
|
+
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3569
3708
|
};
|
|
3570
3709
|
|
|
3571
3710
|
export declare const enum PointerEventType {
|
|
@@ -3575,9 +3714,6 @@ export declare const enum PointerEventType {
|
|
|
3575
3714
|
PET_HOVER_LEAVE = 3
|
|
3576
3715
|
}
|
|
3577
3716
|
|
|
3578
|
-
/** @public */
|
|
3579
|
-
export declare const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
|
|
3580
|
-
|
|
3581
3717
|
/** @public */
|
|
3582
3718
|
export declare const PointerLock: ComponentDefinition<PBPointerLock>;
|
|
3583
3719
|
|
|
@@ -3899,8 +4035,7 @@ export declare type ReactBasedUiSystem = {
|
|
|
3899
4035
|
|
|
3900
4036
|
export declare namespace ReactEcs {
|
|
3901
4037
|
export namespace JSX {
|
|
3902
|
-
export
|
|
3903
|
-
}
|
|
4038
|
+
export type Element = {} | null;
|
|
3904
4039
|
export type IntrinsicElements = EcsElements;
|
|
3905
4040
|
export interface Component {
|
|
3906
4041
|
}
|
|
@@ -4317,19 +4452,81 @@ export declare type Transport = {
|
|
|
4317
4452
|
|
|
4318
4453
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
4319
4454
|
|
|
4455
|
+
/**
|
|
4456
|
+
* @public
|
|
4457
|
+
*/
|
|
4458
|
+
export declare type UiAvatarTexture = {
|
|
4459
|
+
avatarTexture?: AvatarTexture;
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4320
4462
|
/** @public */
|
|
4321
4463
|
export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
4322
4464
|
|
|
4465
|
+
/**
|
|
4466
|
+
* @public
|
|
4467
|
+
*/
|
|
4468
|
+
export declare type UiBackgroundProps = Partial<Omit<PBUiBackground, 'texture'>> & UiTextureUnion;
|
|
4469
|
+
|
|
4470
|
+
/**
|
|
4471
|
+
* @public
|
|
4472
|
+
*/
|
|
4473
|
+
export declare type UiButtonProps = PBUiText & {
|
|
4474
|
+
type?: 'primary' | 'secondary';
|
|
4475
|
+
};
|
|
4476
|
+
|
|
4323
4477
|
export declare type UiComponent = () => JSX.Element;
|
|
4324
4478
|
|
|
4479
|
+
/** @public */
|
|
4480
|
+
export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* @public
|
|
4484
|
+
*/
|
|
4485
|
+
export declare type UiDropdownProps = Partial<PBUiDropdown> & {
|
|
4486
|
+
onChange?(value: number): void;
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
/** @public */
|
|
4490
|
+
export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
4491
|
+
|
|
4325
4492
|
/**
|
|
4326
4493
|
* @public
|
|
4327
4494
|
*/
|
|
4328
4495
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
4329
4496
|
|
|
4497
|
+
/** @public */
|
|
4498
|
+
export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* @public
|
|
4502
|
+
*/
|
|
4503
|
+
export declare type UiInputProps = PBUiInput & {
|
|
4504
|
+
onChange?(value: string): void;
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
/** @public */
|
|
4508
|
+
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4509
|
+
|
|
4330
4510
|
/** @public */
|
|
4331
4511
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4332
4512
|
|
|
4513
|
+
/**
|
|
4514
|
+
* @public
|
|
4515
|
+
*/
|
|
4516
|
+
export declare type UiTextProps = PBUiText;
|
|
4517
|
+
|
|
4518
|
+
/**
|
|
4519
|
+
* @public
|
|
4520
|
+
*/
|
|
4521
|
+
export declare type UiTexture = {
|
|
4522
|
+
texture?: Texture;
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
/**
|
|
4526
|
+
* @public
|
|
4527
|
+
*/
|
|
4528
|
+
export declare type UiTextureUnion = UiAvatarTexture | UiTexture;
|
|
4529
|
+
|
|
4333
4530
|
/** @public */
|
|
4334
4531
|
export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
4335
4532
|
|