@dcl/playground-assets 7.3.20 → 7.3.21-6483018672.commit-3538b47
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 +239 -1
- package/dist/beta.d.ts +239 -1
- package/dist/index.bundled.d.ts +239 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +239 -1
- package/etc/playground-assets.api.json +3487 -424
- package/etc/playground-assets.api.md +251 -2
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.3.
|
4
|
+
"version": "7.3.21-6483018672.commit-3538b47",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
@@ -34,5 +34,5 @@
|
|
34
34
|
},
|
35
35
|
"types": "./index.d.ts",
|
36
36
|
"typings": "./index.d.ts",
|
37
|
-
"commit": "
|
37
|
+
"commit": "3538b47686f539bfb09756a15d11c06a90c770ed"
|
38
38
|
}
|
@@ -1184,6 +1184,9 @@ export declare const componentDefinitionByName: {
|
|
1184
1184
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1185
1185
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1186
1186
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
1187
|
+
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
1188
|
+
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
1189
|
+
"core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
|
1187
1190
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
1188
1191
|
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
1189
1192
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
@@ -1542,6 +1545,48 @@ export declare type DisplayType = 'flex' | 'none';
|
|
1542
1545
|
*/
|
1543
1546
|
export declare function Dropdown(props: UiDropdownProps): ReactEcs.JSX.Element;
|
1544
1547
|
|
1548
|
+
/**
|
1549
|
+
* Implementation guidelines for these easing functions can be found
|
1550
|
+
* at https://github.com/ai/easings.net/blob/6fcd5f852a470bf1a7890e8178afa0f471d5f2ec/src/easings/easingsFunctions.ts
|
1551
|
+
*/
|
1552
|
+
/**
|
1553
|
+
* @public
|
1554
|
+
*/
|
1555
|
+
export declare const enum EasingFunction {
|
1556
|
+
/** EF_LINEAR - default */
|
1557
|
+
EF_LINEAR = 0,
|
1558
|
+
EF_EASEINQUAD = 1,
|
1559
|
+
EF_EASEOUTQUAD = 2,
|
1560
|
+
EF_EASEQUAD = 3,
|
1561
|
+
EF_EASEINSINE = 4,
|
1562
|
+
EF_EASEOUTSINE = 5,
|
1563
|
+
EF_EASESINE = 6,
|
1564
|
+
EF_EASEINEXPO = 7,
|
1565
|
+
EF_EASEOUTEXPO = 8,
|
1566
|
+
EF_EASEEXPO = 9,
|
1567
|
+
EF_EASEINELASTIC = 10,
|
1568
|
+
EF_EASEOUTELASTIC = 11,
|
1569
|
+
EF_EASEELASTIC = 12,
|
1570
|
+
EF_EASEINBOUNCE = 13,
|
1571
|
+
EF_EASEOUTBOUNCE = 14,
|
1572
|
+
EF_EASEBOUNCE = 15,
|
1573
|
+
EF_EASEINCUBIC = 16,
|
1574
|
+
EF_EASEOUTCUBIC = 17,
|
1575
|
+
EF_EASECUBIC = 18,
|
1576
|
+
EF_EASEINQUART = 19,
|
1577
|
+
EF_EASEOUTQUART = 20,
|
1578
|
+
EF_EASEQUART = 21,
|
1579
|
+
EF_EASEINQUINT = 22,
|
1580
|
+
EF_EASEOUTQUINT = 23,
|
1581
|
+
EF_EASEQUINT = 24,
|
1582
|
+
EF_EASEINCIRC = 25,
|
1583
|
+
EF_EASEOUTCIRC = 26,
|
1584
|
+
EF_EASECIRC = 27,
|
1585
|
+
EF_EASEINBACK = 28,
|
1586
|
+
EF_EASEOUTBACK = 29,
|
1587
|
+
EF_EASEBACK = 30
|
1588
|
+
}
|
1589
|
+
|
1545
1590
|
/**
|
1546
1591
|
* @public
|
1547
1592
|
*/
|
@@ -3336,6 +3381,23 @@ export declare class MessageBus {
|
|
3336
3381
|
private flush;
|
3337
3382
|
}
|
3338
3383
|
|
3384
|
+
/**
|
3385
|
+
* @public
|
3386
|
+
*/
|
3387
|
+
export declare interface Move {
|
3388
|
+
start: PBVector3 | undefined;
|
3389
|
+
end: PBVector3 | undefined;
|
3390
|
+
faceDirection?: boolean | undefined;
|
3391
|
+
}
|
3392
|
+
|
3393
|
+
/**
|
3394
|
+
* @public
|
3395
|
+
*/
|
3396
|
+
export declare namespace Move {
|
3397
|
+
export function encode(message: Move, writer?: _m0.Writer): _m0.Writer;
|
3398
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
3399
|
+
}
|
3400
|
+
|
3339
3401
|
export declare const Name: NameComponent;
|
3340
3402
|
|
3341
3403
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
@@ -4369,6 +4431,24 @@ export declare namespace PBPosition {
|
|
4369
4431
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
4370
4432
|
}
|
4371
4433
|
|
4434
|
+
/**
|
4435
|
+
* @public
|
4436
|
+
*/
|
4437
|
+
export declare interface PBQuaternion {
|
4438
|
+
x: number;
|
4439
|
+
y: number;
|
4440
|
+
z: number;
|
4441
|
+
w: number;
|
4442
|
+
}
|
4443
|
+
|
4444
|
+
/**
|
4445
|
+
* @public
|
4446
|
+
*/
|
4447
|
+
export declare namespace PBQuaternion {
|
4448
|
+
export function encode(message: PBQuaternion, writer?: _m0.Writer): _m0.Writer;
|
4449
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBQuaternion;
|
4450
|
+
}
|
4451
|
+
|
4372
4452
|
/**
|
4373
4453
|
* The PBRaycast component and PBRaycastResult are defined in https://adr.decentraland.org/adr/ADR-200
|
4374
4454
|
*
|
@@ -4515,6 +4595,70 @@ export declare namespace PBTextShape {
|
|
4515
4595
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
4516
4596
|
}
|
4517
4597
|
|
4598
|
+
/**
|
4599
|
+
* @public
|
4600
|
+
*/
|
4601
|
+
export declare interface PBTween {
|
4602
|
+
/** in milliseconds */
|
4603
|
+
duration: number;
|
4604
|
+
easingFunction: EasingFunction;
|
4605
|
+
mode?: {
|
4606
|
+
$case: "move";
|
4607
|
+
move: Move;
|
4608
|
+
} | {
|
4609
|
+
$case: "rotate";
|
4610
|
+
rotate: Rotate;
|
4611
|
+
} | {
|
4612
|
+
$case: "scale";
|
4613
|
+
scale: Scale;
|
4614
|
+
} | undefined;
|
4615
|
+
/** default true (pause or running) */
|
4616
|
+
playing?: boolean | undefined;
|
4617
|
+
/** between 0 and 1 */
|
4618
|
+
currentTime?: number | undefined;
|
4619
|
+
}
|
4620
|
+
|
4621
|
+
/**
|
4622
|
+
* @public
|
4623
|
+
*/
|
4624
|
+
export declare namespace PBTween {
|
4625
|
+
export function encode(message: PBTween, writer?: _m0.Writer): _m0.Writer;
|
4626
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTween;
|
4627
|
+
}
|
4628
|
+
|
4629
|
+
/**
|
4630
|
+
* @public
|
4631
|
+
*/
|
4632
|
+
export declare interface PBTweenSequence {
|
4633
|
+
sequence: PBTween[];
|
4634
|
+
loop?: TweenLoop | undefined;
|
4635
|
+
}
|
4636
|
+
|
4637
|
+
/**
|
4638
|
+
* @public
|
4639
|
+
*/
|
4640
|
+
export declare namespace PBTweenSequence {
|
4641
|
+
export function encode(message: PBTweenSequence, writer?: _m0.Writer): _m0.Writer;
|
4642
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTweenSequence;
|
4643
|
+
}
|
4644
|
+
|
4645
|
+
/**
|
4646
|
+
* @public
|
4647
|
+
*/
|
4648
|
+
export declare interface PBTweenState {
|
4649
|
+
state: TweenStateStatus;
|
4650
|
+
/** between 0 and 1 */
|
4651
|
+
currentTime: number;
|
4652
|
+
}
|
4653
|
+
|
4654
|
+
/**
|
4655
|
+
* @public
|
4656
|
+
*/
|
4657
|
+
export declare namespace PBTweenState {
|
4658
|
+
export function encode(message: PBTweenState, writer?: _m0.Writer): _m0.Writer;
|
4659
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTweenState;
|
4660
|
+
}
|
4661
|
+
|
4518
4662
|
/**
|
4519
4663
|
* @public
|
4520
4664
|
*/
|
@@ -5734,6 +5878,22 @@ export declare const RESERVED_LOCAL_ENTITIES = 65535;
|
|
5734
5878
|
*/
|
5735
5879
|
export declare const RESERVED_STATIC_ENTITIES = 512;
|
5736
5880
|
|
5881
|
+
/**
|
5882
|
+
* @public
|
5883
|
+
*/
|
5884
|
+
export declare interface Rotate {
|
5885
|
+
start: PBQuaternion | undefined;
|
5886
|
+
end: PBQuaternion | undefined;
|
5887
|
+
}
|
5888
|
+
|
5889
|
+
/**
|
5890
|
+
* @public
|
5891
|
+
*/
|
5892
|
+
export declare namespace Rotate {
|
5893
|
+
export function encode(message: Rotate, writer?: _m0.Writer): _m0.Writer;
|
5894
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Rotate;
|
5895
|
+
}
|
5896
|
+
|
5737
5897
|
export declare type RPCSendableMessage = {
|
5738
5898
|
jsonrpc: '2.0';
|
5739
5899
|
id: number;
|
@@ -5933,6 +6093,22 @@ export declare namespace Scalar {
|
|
5933
6093
|
export function normalizeRadians(angle: number): number;
|
5934
6094
|
}
|
5935
6095
|
|
6096
|
+
/**
|
6097
|
+
* @public
|
6098
|
+
*/
|
6099
|
+
export declare interface Scale {
|
6100
|
+
start: PBVector3 | undefined;
|
6101
|
+
end: PBVector3 | undefined;
|
6102
|
+
}
|
6103
|
+
|
6104
|
+
/**
|
6105
|
+
* @public
|
6106
|
+
*/
|
6107
|
+
export declare namespace Scale {
|
6108
|
+
export function encode(message: Scale, writer?: _m0.Writer): _m0.Writer;
|
6109
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Scale;
|
6110
|
+
}
|
6111
|
+
|
5936
6112
|
/**
|
5937
6113
|
* @public
|
5938
6114
|
*/
|
@@ -6244,6 +6420,69 @@ export declare type Transport = {
|
|
6244
6420
|
*/
|
6245
6421
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
6246
6422
|
|
6423
|
+
export declare const Tween: TweenComponentDefinitionExtended;
|
6424
|
+
|
6425
|
+
/**
|
6426
|
+
* @public
|
6427
|
+
*/
|
6428
|
+
export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
|
6429
|
+
/**
|
6430
|
+
* Texture helpers with constructor
|
6431
|
+
*/
|
6432
|
+
Mode: TweenHelper;
|
6433
|
+
}
|
6434
|
+
|
6435
|
+
/**
|
6436
|
+
* @public
|
6437
|
+
*/
|
6438
|
+
export declare interface TweenHelper {
|
6439
|
+
/**
|
6440
|
+
* @returns a move mode tween
|
6441
|
+
*/
|
6442
|
+
Move: (move: Move) => PBTween['mode'];
|
6443
|
+
/**
|
6444
|
+
* @returns a move mode tween
|
6445
|
+
*/
|
6446
|
+
Rotate: (rotate: Rotate) => PBTween['mode'];
|
6447
|
+
/**
|
6448
|
+
* @returns a move mode tween
|
6449
|
+
*/
|
6450
|
+
Scale: (scale: Scale) => PBTween['mode'];
|
6451
|
+
}
|
6452
|
+
|
6453
|
+
/**
|
6454
|
+
* @public
|
6455
|
+
*/
|
6456
|
+
export declare const enum TweenLoop {
|
6457
|
+
TL_RESTART = 0,
|
6458
|
+
TL_YOYO = 1
|
6459
|
+
}
|
6460
|
+
|
6461
|
+
/** @public */
|
6462
|
+
export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
|
6463
|
+
|
6464
|
+
/** @public */
|
6465
|
+
export declare const TweenState: LastWriteWinElementSetComponentDefinition<PBTweenState>;
|
6466
|
+
|
6467
|
+
/**
|
6468
|
+
* @public
|
6469
|
+
*/
|
6470
|
+
export declare const enum TweenStateStatus {
|
6471
|
+
TS_ACTIVE = 0,
|
6472
|
+
TS_COMPLETED = 1,
|
6473
|
+
TS_PAUSED = 2
|
6474
|
+
}
|
6475
|
+
|
6476
|
+
export declare type TweenSystem = {
|
6477
|
+
tweenCompleted(entity: Entity): boolean;
|
6478
|
+
};
|
6479
|
+
|
6480
|
+
/**
|
6481
|
+
* @public
|
6482
|
+
* Register callback functions to a particular entity on video events.
|
6483
|
+
*/
|
6484
|
+
export declare const tweenSystem: TweenSystem;
|
6485
|
+
|
6247
6486
|
/**
|
6248
6487
|
* Avatar Texture
|
6249
6488
|
* @public
|
@@ -7067,7 +7306,6 @@ export declare interface VideoEventsSystem {
|
|
7067
7306
|
}
|
7068
7307
|
|
7069
7308
|
/**
|
7070
|
-
* @alpha
|
7071
7309
|
* @public
|
7072
7310
|
* Register callback functions to a particular entity on video events.
|
7073
7311
|
*/
|