@dcl/playground-assets 7.5.6-9724511758.commit-cb2baa8 → 7.5.6-9766786409.commit-5232ccb
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 +1 -165
- package/dist/beta.d.ts +1 -165
- package/dist/index.bundled.d.ts +1 -165
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +3 -3
- package/dist/playground-assets.d.ts +1 -165
- package/etc/playground-assets.api.json +554 -2474
- package/etc/playground-assets.api.md +0 -123
- package/package.json +4 -4
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.5.6-
|
4
|
+
"version": "7.5.6-9766786409.commit-5232ccb",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
8
8
|
"@dcl/ecs-math": "2.0.2",
|
9
|
-
"@dcl/explorer": "1.0.
|
9
|
+
"@dcl/explorer": "1.0.164182-20240702173148.commit-d4a0e99",
|
10
10
|
"@dcl/js-runtime": "file:../js-runtime",
|
11
11
|
"@dcl/react-ecs": "file:../react-ecs",
|
12
12
|
"@dcl/sdk-commands": "file:../sdk-commands",
|
@@ -35,5 +35,5 @@
|
|
35
35
|
},
|
36
36
|
"types": "./index.d.ts",
|
37
37
|
"typings": "./index.d.ts",
|
38
|
-
"commit": "
|
38
|
+
"commit": "5232ccbf90e7cb93a0ac3348c4bf01143235a56b"
|
39
39
|
}
|
@@ -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
|
|
@@ -522,39 +479,6 @@ export declare const enum CameraType {
|
|
522
479
|
|
523
480
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
524
481
|
|
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
|
-
}
|
557
|
-
|
558
482
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
559
483
|
/**
|
560
484
|
* @public
|
@@ -1354,7 +1278,6 @@ export declare const componentDefinitionByName: {
|
|
1354
1278
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1355
1279
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1356
1280
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1357
|
-
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1358
1281
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1359
1282
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1360
1283
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -4240,9 +4163,6 @@ export declare interface PBAvatarModifierArea {
|
|
4240
4163
|
excludeIds: string[];
|
4241
4164
|
/** list of modifiers to apply */
|
4242
4165
|
modifiers: AvatarModifierType[];
|
4243
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4244
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4245
|
-
useColliderRange?: boolean | undefined;
|
4246
4166
|
}
|
4247
4167
|
|
4248
4168
|
/**
|
@@ -4355,7 +4275,7 @@ export declare namespace PBCameraMode {
|
|
4355
4275
|
|
4356
4276
|
/**
|
4357
4277
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4358
|
-
* the player's camera mode (1st-person
|
4278
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4359
4279
|
*
|
4360
4280
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4361
4281
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4365,8 +4285,6 @@ export declare namespace PBCameraMode {
|
|
4365
4285
|
*
|
4366
4286
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4367
4287
|
* is actually a 3D volume.
|
4368
|
-
*
|
4369
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4370
4288
|
*/
|
4371
4289
|
/**
|
4372
4290
|
* @public
|
@@ -4376,9 +4294,6 @@ export declare interface PBCameraModeArea {
|
|
4376
4294
|
area: PBVector3 | undefined;
|
4377
4295
|
/** the camera mode to enforce */
|
4378
4296
|
mode: CameraType;
|
4379
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4380
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4381
|
-
useColliderRange?: boolean | undefined;
|
4382
4297
|
}
|
4383
4298
|
|
4384
4299
|
/**
|
@@ -5360,21 +5275,6 @@ export declare namespace PBUiInputResult {
|
|
5360
5275
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5361
5276
|
}
|
5362
5277
|
|
5363
|
-
/**
|
5364
|
-
* @public
|
5365
|
-
*/
|
5366
|
-
export declare interface PBUiScrollResult {
|
5367
|
-
value: PBVector2 | undefined;
|
5368
|
-
}
|
5369
|
-
|
5370
|
-
/**
|
5371
|
-
* @public
|
5372
|
-
*/
|
5373
|
-
export declare namespace PBUiScrollResult {
|
5374
|
-
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
5375
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
5376
|
-
}
|
5377
|
-
|
5378
5278
|
/**
|
5379
5279
|
* @public
|
5380
5280
|
*/
|
@@ -5391,10 +5291,6 @@ export declare interface PBUiText {
|
|
5391
5291
|
fontSize?: number | undefined;
|
5392
5292
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
5393
5293
|
textWrap?: TextWrap | undefined;
|
5394
|
-
/** width of the outline (default: 0) */
|
5395
|
-
outlineWidth?: number | undefined;
|
5396
|
-
/** RGBA color of the outline (default: opaque black) */
|
5397
|
-
outlineColor?: PBColor4 | undefined;
|
5398
5294
|
}
|
5399
5295
|
|
5400
5296
|
/**
|
@@ -5491,14 +5387,6 @@ export declare interface PBUiTransform {
|
|
5491
5387
|
paddingBottom: number;
|
5492
5388
|
/** default: PointerFilterMode.PFM_NONE */
|
5493
5389
|
pointerFilter?: PointerFilterMode | undefined;
|
5494
|
-
/** default: 1 */
|
5495
|
-
opacity?: number | undefined;
|
5496
|
-
/** default empty */
|
5497
|
-
elementId?: string | undefined;
|
5498
|
-
/** default position=(0,0) */
|
5499
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
5500
|
-
/** default ShowScrollBar.SSB_BOTH */
|
5501
|
-
scrollVisible?: ShowScrollBar | undefined;
|
5502
5390
|
}
|
5503
5391
|
|
5504
5392
|
/**
|
@@ -6862,43 +6750,6 @@ export declare namespace Schemas {
|
|
6862
6750
|
}) => void;
|
6863
6751
|
}
|
6864
6752
|
|
6865
|
-
/**
|
6866
|
-
* @public
|
6867
|
-
*/
|
6868
|
-
export declare interface ScrollPositionValue {
|
6869
|
-
value?: {
|
6870
|
-
$case: "position";
|
6871
|
-
position: PBVector2;
|
6872
|
-
} | {
|
6873
|
-
$case: "reference";
|
6874
|
-
reference: string;
|
6875
|
-
} | undefined;
|
6876
|
-
}
|
6877
|
-
|
6878
|
-
/**
|
6879
|
-
* @public
|
6880
|
-
*/
|
6881
|
-
export declare namespace ScrollPositionValue {
|
6882
|
-
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
6883
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
6884
|
-
}
|
6885
|
-
|
6886
|
-
/**
|
6887
|
-
* @public
|
6888
|
-
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
6889
|
-
*/
|
6890
|
-
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
6891
|
-
|
6892
|
-
/**
|
6893
|
-
* @public
|
6894
|
-
*/
|
6895
|
-
export declare const enum ShowScrollBar {
|
6896
|
-
SSB_BOTH = 0,
|
6897
|
-
SSB_ONLY_VERTICAL = 1,
|
6898
|
-
SSB_ONLY_HORIZONTAL = 2,
|
6899
|
-
SSB_HIDDEN = 3
|
6900
|
-
}
|
6901
|
-
|
6902
6753
|
/**
|
6903
6754
|
* @public
|
6904
6755
|
*/
|
@@ -7327,10 +7178,6 @@ export declare interface UiLabelProps {
|
|
7327
7178
|
textAlign?: TextAlignType | undefined;
|
7328
7179
|
/** Label font type. @defaultValue 'sans-serif' */
|
7329
7180
|
font?: UiFontType | undefined;
|
7330
|
-
/** Outline width of the text. @defaultValue 0 */
|
7331
|
-
outlineWidth?: number | undefined;
|
7332
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
7333
|
-
outlineColor?: PBColor4 | undefined;
|
7334
7181
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
7335
7182
|
textWrap?: UiTextWrapType | undefined;
|
7336
7183
|
}
|
@@ -7340,9 +7187,6 @@ export declare interface UiLabelProps {
|
|
7340
7187
|
*/
|
7341
7188
|
export declare type uint32 = number;
|
7342
7189
|
|
7343
|
-
/** @public */
|
7344
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
7345
|
-
|
7346
7190
|
/** @public */
|
7347
7191
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
7348
7192
|
|
@@ -7415,14 +7259,6 @@ export declare interface UiTransformProps {
|
|
7415
7259
|
overflow?: OverflowType;
|
7416
7260
|
/** 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) **/
|
7417
7261
|
pointerFilter?: PointerFilterType;
|
7418
|
-
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
7419
|
-
opacity?: number;
|
7420
|
-
/** A reference value to identify the element, default empty */
|
7421
|
-
elementId?: string;
|
7422
|
-
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
7423
|
-
scrollPosition?: PBVector2 | string;
|
7424
|
-
/** default ShowScrollBar.SSB_BOTH */
|
7425
|
-
scrollVisible?: ScrollVisibleType;
|
7426
7262
|
}
|
7427
7263
|
|
7428
7264
|
/**
|