@dcl/playground-assets 7.5.1-9299912306.commit-7629bda → 7.5.1-9349876127.commit-ca3ef96
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 +35 -108
- package/dist/beta.d.ts +35 -108
- package/dist/index.bundled.d.ts +35 -108
- package/dist/index.js +6 -5
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +35 -108
- package/etc/playground-assets.api.json +357 -1241
- package/etc/playground-assets.api.md +29 -73
- package/package.json +4 -4
package/dist/index.bundled.d.ts
CHANGED
@@ -177,18 +177,6 @@ export declare const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBA
|
|
177
177
|
/** @public */
|
178
178
|
export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
179
179
|
|
180
|
-
/**
|
181
|
-
* @public
|
182
|
-
*/
|
183
|
-
export declare const enum AvatarControlType {
|
184
|
-
/** CCT_NONE - avatar cannot move */
|
185
|
-
CCT_NONE = 0,
|
186
|
-
/** CCT_RELATIVE - avatar moves relative to the camera origin */
|
187
|
-
CCT_RELATIVE = 1,
|
188
|
-
/** CCT_TANK - avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player */
|
189
|
-
CCT_TANK = 2
|
190
|
-
}
|
191
|
-
|
192
180
|
/** @public */
|
193
181
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
194
182
|
|
@@ -209,37 +197,6 @@ export declare const enum AvatarModifierType {
|
|
209
197
|
AMT_DISABLE_PASSPORTS = 1
|
210
198
|
}
|
211
199
|
|
212
|
-
/**
|
213
|
-
* @public
|
214
|
-
*/
|
215
|
-
export declare interface AvatarMovementSettings {
|
216
|
-
controlMode?: AvatarControlType | undefined;
|
217
|
-
/** if not explicitly set, the following properties default to user's preference settings */
|
218
|
-
runSpeed?: number | undefined;
|
219
|
-
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
220
|
-
friction?: number | undefined;
|
221
|
-
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
222
|
-
gravity?: number | undefined;
|
223
|
-
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
224
|
-
jumpHeight?: number | undefined;
|
225
|
-
/** max fall speed in m/s. should normally be negative */
|
226
|
-
maxFallSpeed?: number | undefined;
|
227
|
-
/** speed the player turns in tank mode, in radians/s */
|
228
|
-
turnSpeed?: number | undefined;
|
229
|
-
/** speed the player walks at, in m/s */
|
230
|
-
walkSpeed?: number | undefined;
|
231
|
-
/** whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true */
|
232
|
-
allowWeightedMovement?: boolean | undefined;
|
233
|
-
}
|
234
|
-
|
235
|
-
/**
|
236
|
-
* @public
|
237
|
-
*/
|
238
|
-
export declare namespace AvatarMovementSettings {
|
239
|
-
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
240
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
241
|
-
}
|
242
|
-
|
243
200
|
/** @public */
|
244
201
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
245
202
|
|
@@ -520,40 +477,7 @@ export declare const enum CameraType {
|
|
520
477
|
CT_CINEMATIC = 2
|
521
478
|
}
|
522
479
|
|
523
|
-
export declare type Children =
|
524
|
-
|
525
|
-
/**
|
526
|
-
* @public
|
527
|
-
*/
|
528
|
-
export declare interface CinematicSettings {
|
529
|
-
/** Entity that defines the cinematic camera transform. */
|
530
|
-
cameraEntity: number;
|
531
|
-
/**
|
532
|
-
* Position -> camera's position
|
533
|
-
* Rotation -> camera's direction
|
534
|
-
* scale.z -> zoom level
|
535
|
-
* scale.x and scale.y -> unused
|
536
|
-
*/
|
537
|
-
allowManualRotation?: boolean | undefined;
|
538
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
539
|
-
yawRange?: number | undefined;
|
540
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
541
|
-
pitchRange?: number | undefined;
|
542
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
543
|
-
rollRange?: number | undefined;
|
544
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
545
|
-
zoomMin?: number | undefined;
|
546
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
547
|
-
zoomMax?: number | undefined;
|
548
|
-
}
|
549
|
-
|
550
|
-
/**
|
551
|
-
* @public
|
552
|
-
*/
|
553
|
-
export declare namespace CinematicSettings {
|
554
|
-
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
555
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
556
|
-
}
|
480
|
+
export declare type Children = ReactNode;
|
557
481
|
|
558
482
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
559
483
|
/**
|
@@ -1860,7 +1784,7 @@ export declare const enum EasingFunction {
|
|
1860
1784
|
*/
|
1861
1785
|
export declare interface EcsElements {
|
1862
1786
|
entity: Partial<EntityComponents> & {
|
1863
|
-
children?:
|
1787
|
+
children?: ReactNode;
|
1864
1788
|
key?: Key;
|
1865
1789
|
};
|
1866
1790
|
}
|
@@ -2550,12 +2474,19 @@ export declare type JsonSchemaExtended = {
|
|
2550
2474
|
* @hidden
|
2551
2475
|
*/
|
2552
2476
|
export declare namespace JSX {
|
2553
|
-
export
|
2554
|
-
|
2477
|
+
export interface Element extends ReactElement<any, any> {
|
2478
|
+
}
|
2479
|
+
export interface IntrinsicElements extends EcsElements {
|
2480
|
+
}
|
2555
2481
|
export interface Component {
|
2556
2482
|
}
|
2557
2483
|
}
|
2558
2484
|
|
2485
|
+
/**
|
2486
|
+
* @public
|
2487
|
+
*/
|
2488
|
+
export declare type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
|
2489
|
+
|
2559
2490
|
/**
|
2560
2491
|
* @public
|
2561
2492
|
*/
|
@@ -4204,9 +4135,6 @@ export declare interface PBAvatarModifierArea {
|
|
4204
4135
|
excludeIds: string[];
|
4205
4136
|
/** list of modifiers to apply */
|
4206
4137
|
modifiers: AvatarModifierType[];
|
4207
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4208
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4209
|
-
useColliderRange?: boolean | undefined;
|
4210
4138
|
}
|
4211
4139
|
|
4212
4140
|
/**
|
@@ -4319,7 +4247,7 @@ export declare namespace PBCameraMode {
|
|
4319
4247
|
|
4320
4248
|
/**
|
4321
4249
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4322
|
-
* the player's camera mode (1st-person
|
4250
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4323
4251
|
*
|
4324
4252
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4325
4253
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4329,8 +4257,6 @@ export declare namespace PBCameraMode {
|
|
4329
4257
|
*
|
4330
4258
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4331
4259
|
* is actually a 3D volume.
|
4332
|
-
*
|
4333
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4334
4260
|
*/
|
4335
4261
|
/**
|
4336
4262
|
* @public
|
@@ -4340,9 +4266,6 @@ export declare interface PBCameraModeArea {
|
|
4340
4266
|
area: PBVector3 | undefined;
|
4341
4267
|
/** the camera mode to enforce */
|
4342
4268
|
mode: CameraType;
|
4343
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4344
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4345
|
-
useColliderRange?: boolean | undefined;
|
4346
4269
|
}
|
4347
4270
|
|
4348
4271
|
/**
|
@@ -5338,12 +5261,6 @@ export declare interface PBUiText {
|
|
5338
5261
|
font?: Font | undefined;
|
5339
5262
|
/** size of the text (default: 10) */
|
5340
5263
|
fontSize?: number | undefined;
|
5341
|
-
/** width of the outline (default: 0) */
|
5342
|
-
outlineWidth?: number | undefined;
|
5343
|
-
/** RGBA color of the outline (default: opaque black) */
|
5344
|
-
outlineColor?: PBColor4 | undefined;
|
5345
|
-
/** wrap text when the border is reached (default false) */
|
5346
|
-
textWrapping?: boolean | undefined;
|
5347
5264
|
}
|
5348
5265
|
|
5349
5266
|
/**
|
@@ -5440,8 +5357,6 @@ export declare interface PBUiTransform {
|
|
5440
5357
|
paddingBottom: number;
|
5441
5358
|
/** default: PointerFilterMode.PFM_NONE */
|
5442
5359
|
pointerFilter?: PointerFilterMode | undefined;
|
5443
|
-
/** default: 1 */
|
5444
|
-
opacity?: number | undefined;
|
5445
5360
|
}
|
5446
5361
|
|
5447
5362
|
/**
|
@@ -6362,12 +6277,18 @@ export declare namespace ReactEcs {
|
|
6362
6277
|
/**
|
6363
6278
|
* @public
|
6364
6279
|
*/
|
6365
|
-
export type
|
6280
|
+
export type ReactNode = ReactElement | string | number | boolean | null | undefined | ReactElement[];
|
6281
|
+
/**
|
6282
|
+
* @public
|
6283
|
+
*/
|
6284
|
+
export interface Element extends ReactElement<any, any> {
|
6285
|
+
}
|
6366
6286
|
/**
|
6367
6287
|
* @public
|
6368
6288
|
* HTML tag elements
|
6369
6289
|
*/
|
6370
|
-
export
|
6290
|
+
export interface IntrinsicElements extends EcsElements {
|
6291
|
+
}
|
6371
6292
|
/**
|
6372
6293
|
* @public
|
6373
6294
|
* Component empty interface
|
@@ -6387,6 +6308,20 @@ export declare namespace ReactEcs {
|
|
6387
6308
|
*/
|
6388
6309
|
export declare const ReactEcsRenderer: ReactBasedUiSystem;
|
6389
6310
|
|
6311
|
+
/**
|
6312
|
+
* @public
|
6313
|
+
*/
|
6314
|
+
export declare interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
|
6315
|
+
type: T;
|
6316
|
+
props: P;
|
6317
|
+
key: Key | null;
|
6318
|
+
}
|
6319
|
+
|
6320
|
+
/**
|
6321
|
+
* @public
|
6322
|
+
*/
|
6323
|
+
export declare type ReactNode = ReactElement | string | number | boolean | null | undefined;
|
6324
|
+
|
6390
6325
|
/**
|
6391
6326
|
* @public
|
6392
6327
|
*/
|
@@ -7139,7 +7074,7 @@ export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinit
|
|
7139
7074
|
/**
|
7140
7075
|
* @public
|
7141
7076
|
*/
|
7142
|
-
export declare type UiComponent = () => ReactEcs.JSX.
|
7077
|
+
export declare type UiComponent = () => ReactEcs.JSX.ReactNode;
|
7143
7078
|
|
7144
7079
|
/** @public */
|
7145
7080
|
export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
|
@@ -7205,12 +7140,6 @@ export declare interface UiLabelProps {
|
|
7205
7140
|
textAlign?: TextAlignType | undefined;
|
7206
7141
|
/** Label font type. @defaultValue 'sans-serif' */
|
7207
7142
|
font?: UiFontType | undefined;
|
7208
|
-
/** Outline width of the text. @defaultValue 0 */
|
7209
|
-
outlineWidth?: number | undefined;
|
7210
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
7211
|
-
outlineColor?: PBColor4 | undefined;
|
7212
|
-
/** Text wrapping. @defaultValue false */
|
7213
|
-
textWrapping?: boolean | undefined;
|
7214
7143
|
}
|
7215
7144
|
|
7216
7145
|
/**
|
@@ -7285,8 +7214,6 @@ export declare interface UiTransformProps {
|
|
7285
7214
|
overflow?: OverflowType;
|
7286
7215
|
/** The pointer filter property determines if the ui element blocks the pointer or not (elements with pointer events always block the pointer regardless of this property) **/
|
7287
7216
|
pointerFilter?: PointerFilterType;
|
7288
|
-
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
7289
|
-
opacity?: number;
|
7290
7217
|
}
|
7291
7218
|
|
7292
7219
|
/**
|