@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
package/dist/index.bundled.d.ts
CHANGED
@@ -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
|
*/
|
@@ -3317,6 +3362,23 @@ export declare class MessageBus {
|
|
3317
3362
|
private flush;
|
3318
3363
|
}
|
3319
3364
|
|
3365
|
+
/**
|
3366
|
+
* @public
|
3367
|
+
*/
|
3368
|
+
export declare interface Move {
|
3369
|
+
start: PBVector3 | undefined;
|
3370
|
+
end: PBVector3 | undefined;
|
3371
|
+
faceDirection?: boolean | undefined;
|
3372
|
+
}
|
3373
|
+
|
3374
|
+
/**
|
3375
|
+
* @public
|
3376
|
+
*/
|
3377
|
+
export declare namespace Move {
|
3378
|
+
export function encode(message: Move, writer?: _m0.Writer): _m0.Writer;
|
3379
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
3380
|
+
}
|
3381
|
+
|
3320
3382
|
export declare const Name: NameComponent;
|
3321
3383
|
|
3322
3384
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
@@ -4350,6 +4412,24 @@ export declare namespace PBPosition {
|
|
4350
4412
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
4351
4413
|
}
|
4352
4414
|
|
4415
|
+
/**
|
4416
|
+
* @public
|
4417
|
+
*/
|
4418
|
+
export declare interface PBQuaternion {
|
4419
|
+
x: number;
|
4420
|
+
y: number;
|
4421
|
+
z: number;
|
4422
|
+
w: number;
|
4423
|
+
}
|
4424
|
+
|
4425
|
+
/**
|
4426
|
+
* @public
|
4427
|
+
*/
|
4428
|
+
export declare namespace PBQuaternion {
|
4429
|
+
export function encode(message: PBQuaternion, writer?: _m0.Writer): _m0.Writer;
|
4430
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBQuaternion;
|
4431
|
+
}
|
4432
|
+
|
4353
4433
|
/**
|
4354
4434
|
* The PBRaycast component and PBRaycastResult are defined in https://adr.decentraland.org/adr/ADR-200
|
4355
4435
|
*
|
@@ -4496,6 +4576,70 @@ export declare namespace PBTextShape {
|
|
4496
4576
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
4497
4577
|
}
|
4498
4578
|
|
4579
|
+
/**
|
4580
|
+
* @public
|
4581
|
+
*/
|
4582
|
+
export declare interface PBTween {
|
4583
|
+
/** in milliseconds */
|
4584
|
+
duration: number;
|
4585
|
+
easingFunction: EasingFunction;
|
4586
|
+
mode?: {
|
4587
|
+
$case: "move";
|
4588
|
+
move: Move;
|
4589
|
+
} | {
|
4590
|
+
$case: "rotate";
|
4591
|
+
rotate: Rotate;
|
4592
|
+
} | {
|
4593
|
+
$case: "scale";
|
4594
|
+
scale: Scale;
|
4595
|
+
} | undefined;
|
4596
|
+
/** default true (pause or running) */
|
4597
|
+
playing?: boolean | undefined;
|
4598
|
+
/** between 0 and 1 */
|
4599
|
+
currentTime?: number | undefined;
|
4600
|
+
}
|
4601
|
+
|
4602
|
+
/**
|
4603
|
+
* @public
|
4604
|
+
*/
|
4605
|
+
export declare namespace PBTween {
|
4606
|
+
export function encode(message: PBTween, writer?: _m0.Writer): _m0.Writer;
|
4607
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTween;
|
4608
|
+
}
|
4609
|
+
|
4610
|
+
/**
|
4611
|
+
* @public
|
4612
|
+
*/
|
4613
|
+
export declare interface PBTweenSequence {
|
4614
|
+
sequence: PBTween[];
|
4615
|
+
loop?: TweenLoop | undefined;
|
4616
|
+
}
|
4617
|
+
|
4618
|
+
/**
|
4619
|
+
* @public
|
4620
|
+
*/
|
4621
|
+
export declare namespace PBTweenSequence {
|
4622
|
+
export function encode(message: PBTweenSequence, writer?: _m0.Writer): _m0.Writer;
|
4623
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTweenSequence;
|
4624
|
+
}
|
4625
|
+
|
4626
|
+
/**
|
4627
|
+
* @public
|
4628
|
+
*/
|
4629
|
+
export declare interface PBTweenState {
|
4630
|
+
state: TweenStateStatus;
|
4631
|
+
/** between 0 and 1 */
|
4632
|
+
currentTime: number;
|
4633
|
+
}
|
4634
|
+
|
4635
|
+
/**
|
4636
|
+
* @public
|
4637
|
+
*/
|
4638
|
+
export declare namespace PBTweenState {
|
4639
|
+
export function encode(message: PBTweenState, writer?: _m0.Writer): _m0.Writer;
|
4640
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTweenState;
|
4641
|
+
}
|
4642
|
+
|
4499
4643
|
/**
|
4500
4644
|
* @public
|
4501
4645
|
*/
|
@@ -5715,6 +5859,22 @@ export declare const RESERVED_LOCAL_ENTITIES = 65535;
|
|
5715
5859
|
*/
|
5716
5860
|
export declare const RESERVED_STATIC_ENTITIES = 512;
|
5717
5861
|
|
5862
|
+
/**
|
5863
|
+
* @public
|
5864
|
+
*/
|
5865
|
+
export declare interface Rotate {
|
5866
|
+
start: PBQuaternion | undefined;
|
5867
|
+
end: PBQuaternion | undefined;
|
5868
|
+
}
|
5869
|
+
|
5870
|
+
/**
|
5871
|
+
* @public
|
5872
|
+
*/
|
5873
|
+
export declare namespace Rotate {
|
5874
|
+
export function encode(message: Rotate, writer?: _m0.Writer): _m0.Writer;
|
5875
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Rotate;
|
5876
|
+
}
|
5877
|
+
|
5718
5878
|
export declare type RPCSendableMessage = {
|
5719
5879
|
jsonrpc: '2.0';
|
5720
5880
|
id: number;
|
@@ -5914,6 +6074,22 @@ export declare namespace Scalar {
|
|
5914
6074
|
export function normalizeRadians(angle: number): number;
|
5915
6075
|
}
|
5916
6076
|
|
6077
|
+
/**
|
6078
|
+
* @public
|
6079
|
+
*/
|
6080
|
+
export declare interface Scale {
|
6081
|
+
start: PBVector3 | undefined;
|
6082
|
+
end: PBVector3 | undefined;
|
6083
|
+
}
|
6084
|
+
|
6085
|
+
/**
|
6086
|
+
* @public
|
6087
|
+
*/
|
6088
|
+
export declare namespace Scale {
|
6089
|
+
export function encode(message: Scale, writer?: _m0.Writer): _m0.Writer;
|
6090
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Scale;
|
6091
|
+
}
|
6092
|
+
|
5917
6093
|
/**
|
5918
6094
|
* @public
|
5919
6095
|
*/
|
@@ -6220,6 +6396,69 @@ export declare type Transport = {
|
|
6220
6396
|
*/
|
6221
6397
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
6222
6398
|
|
6399
|
+
export declare const Tween: TweenComponentDefinitionExtended;
|
6400
|
+
|
6401
|
+
/**
|
6402
|
+
* @public
|
6403
|
+
*/
|
6404
|
+
export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
|
6405
|
+
/**
|
6406
|
+
* Texture helpers with constructor
|
6407
|
+
*/
|
6408
|
+
Mode: TweenHelper;
|
6409
|
+
}
|
6410
|
+
|
6411
|
+
/**
|
6412
|
+
* @public
|
6413
|
+
*/
|
6414
|
+
export declare interface TweenHelper {
|
6415
|
+
/**
|
6416
|
+
* @returns a move mode tween
|
6417
|
+
*/
|
6418
|
+
Move: (move: Move) => PBTween['mode'];
|
6419
|
+
/**
|
6420
|
+
* @returns a move mode tween
|
6421
|
+
*/
|
6422
|
+
Rotate: (rotate: Rotate) => PBTween['mode'];
|
6423
|
+
/**
|
6424
|
+
* @returns a move mode tween
|
6425
|
+
*/
|
6426
|
+
Scale: (scale: Scale) => PBTween['mode'];
|
6427
|
+
}
|
6428
|
+
|
6429
|
+
/**
|
6430
|
+
* @public
|
6431
|
+
*/
|
6432
|
+
export declare const enum TweenLoop {
|
6433
|
+
TL_RESTART = 0,
|
6434
|
+
TL_YOYO = 1
|
6435
|
+
}
|
6436
|
+
|
6437
|
+
/** @public */
|
6438
|
+
export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
|
6439
|
+
|
6440
|
+
/** @public */
|
6441
|
+
export declare const TweenState: LastWriteWinElementSetComponentDefinition<PBTweenState>;
|
6442
|
+
|
6443
|
+
/**
|
6444
|
+
* @public
|
6445
|
+
*/
|
6446
|
+
export declare const enum TweenStateStatus {
|
6447
|
+
TS_ACTIVE = 0,
|
6448
|
+
TS_COMPLETED = 1,
|
6449
|
+
TS_PAUSED = 2
|
6450
|
+
}
|
6451
|
+
|
6452
|
+
export declare type TweenSystem = {
|
6453
|
+
tweenCompleted(entity: Entity): boolean;
|
6454
|
+
};
|
6455
|
+
|
6456
|
+
/**
|
6457
|
+
* @public
|
6458
|
+
* Register callback functions to a particular entity on video events.
|
6459
|
+
*/
|
6460
|
+
export declare const tweenSystem: TweenSystem;
|
6461
|
+
|
6223
6462
|
/**
|
6224
6463
|
* Avatar Texture
|
6225
6464
|
* @public
|
@@ -7043,7 +7282,6 @@ export declare interface VideoEventsSystem {
|
|
7043
7282
|
}
|
7044
7283
|
|
7045
7284
|
/**
|
7046
|
-
* @alpha
|
7047
7285
|
* @public
|
7048
7286
|
* Register callback functions to a particular entity on video events.
|
7049
7287
|
*/
|