@dcl/playground-assets 7.3.20-6471789070.commit-658c448 → 7.3.21-6473833811.commit-9a3a718
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/alpha.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
|
*/
|
@@ -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
|
*/
|
package/dist/beta.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
|
*/
|