@dcl/playground-assets 7.10.5 → 7.10.6-18360453790.commit-2ff55cb
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 +153 -3
- package/dist/beta.d.ts +153 -3
- package/dist/index.bundled.d.ts +153 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +3 -3
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +153 -3
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +2005 -329
- package/etc/playground-assets.api.md +72 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
@@ -3666,6 +3666,22 @@ export declare namespace Move {
|
|
3666
3666
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
3667
3667
|
}
|
3668
3668
|
|
3669
|
+
/**
|
3670
|
+
* @public
|
3671
|
+
*/
|
3672
|
+
export declare interface MoveContinuous {
|
3673
|
+
direction: PBVector3 | undefined;
|
3674
|
+
speed: number;
|
3675
|
+
}
|
3676
|
+
|
3677
|
+
/**
|
3678
|
+
* @public
|
3679
|
+
*/
|
3680
|
+
export declare namespace MoveContinuous {
|
3681
|
+
export function encode(message: MoveContinuous, writer?: _m0.Writer): _m0.Writer;
|
3682
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
3683
|
+
}
|
3684
|
+
|
3669
3685
|
export declare const Name: NameComponent;
|
3670
3686
|
|
3671
3687
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
@@ -5562,6 +5578,15 @@ export declare interface PBTween {
|
|
5562
5578
|
} | {
|
5563
5579
|
$case: "textureMove";
|
5564
5580
|
textureMove: TextureMove;
|
5581
|
+
} | {
|
5582
|
+
$case: "rotateContinuous";
|
5583
|
+
rotateContinuous: RotateContinuous;
|
5584
|
+
} | {
|
5585
|
+
$case: "moveContinuous";
|
5586
|
+
moveContinuous: MoveContinuous;
|
5587
|
+
} | {
|
5588
|
+
$case: "textureMoveContinuous";
|
5589
|
+
textureMoveContinuous: TextureMoveContinuous;
|
5565
5590
|
} | undefined;
|
5566
5591
|
/** default true (pause or running) */
|
5567
5592
|
playing?: boolean | undefined;
|
@@ -5989,6 +6014,7 @@ export declare namespace PBVideoPlayer {
|
|
5989
6014
|
* an 'instant' transition (like using speed/time = 0)
|
5990
6015
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5991
6016
|
* the holding entity transform).
|
6017
|
+
* * The fov defines the Field of View of the virtual camera
|
5992
6018
|
*/
|
5993
6019
|
/**
|
5994
6020
|
* @public
|
@@ -5996,6 +6022,8 @@ export declare namespace PBVideoPlayer {
|
|
5996
6022
|
export declare interface PBVirtualCamera {
|
5997
6023
|
defaultTransition?: CameraTransition | undefined;
|
5998
6024
|
lookAtEntity?: number | undefined;
|
6025
|
+
/** default: 60 */
|
6026
|
+
fov?: number | undefined;
|
5999
6027
|
}
|
6000
6028
|
|
6001
6029
|
/**
|
@@ -7015,6 +7043,22 @@ export declare namespace Rotate {
|
|
7015
7043
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Rotate;
|
7016
7044
|
}
|
7017
7045
|
|
7046
|
+
/**
|
7047
|
+
* @public
|
7048
|
+
*/
|
7049
|
+
export declare interface RotateContinuous {
|
7050
|
+
direction: PBQuaternion | undefined;
|
7051
|
+
speed: number;
|
7052
|
+
}
|
7053
|
+
|
7054
|
+
/**
|
7055
|
+
* @public
|
7056
|
+
*/
|
7057
|
+
export declare namespace RotateContinuous {
|
7058
|
+
export function encode(message: RotateContinuous, writer?: _m0.Writer): _m0.Writer;
|
7059
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RotateContinuous;
|
7060
|
+
}
|
7061
|
+
|
7018
7062
|
export declare type RPCSendableMessage = {
|
7019
7063
|
jsonrpc: '2.0';
|
7020
7064
|
id: number;
|
@@ -7518,6 +7562,24 @@ export declare namespace TextureMove {
|
|
7518
7562
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMove;
|
7519
7563
|
}
|
7520
7564
|
|
7565
|
+
/**
|
7566
|
+
* @public
|
7567
|
+
*/
|
7568
|
+
export declare interface TextureMoveContinuous {
|
7569
|
+
direction: PBVector2 | undefined;
|
7570
|
+
speed: number;
|
7571
|
+
/** default = TextureMovementType.TMT_OFFSET */
|
7572
|
+
movementType?: TextureMovementType | undefined;
|
7573
|
+
}
|
7574
|
+
|
7575
|
+
/**
|
7576
|
+
* @public
|
7577
|
+
*/
|
7578
|
+
export declare namespace TextureMoveContinuous {
|
7579
|
+
export function encode(message: TextureMoveContinuous, writer?: _m0.Writer): _m0.Writer;
|
7580
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMoveContinuous;
|
7581
|
+
}
|
7582
|
+
|
7521
7583
|
/**
|
7522
7584
|
* @public
|
7523
7585
|
*/
|
@@ -7771,6 +7833,82 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
|
|
7771
7833
|
* Texture helpers with constructor
|
7772
7834
|
*/
|
7773
7835
|
Mode: TweenHelper;
|
7836
|
+
/**
|
7837
|
+
* @public
|
7838
|
+
*
|
7839
|
+
* Creates or replaces a move tween component that animates an entity's position from start to end
|
7840
|
+
* @param entity - entity to apply the tween to
|
7841
|
+
* @param start - starting position vector
|
7842
|
+
* @param end - ending position vector
|
7843
|
+
* @param duration - duration of the tween in seconds
|
7844
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7845
|
+
*/
|
7846
|
+
setMove(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
|
7847
|
+
/**
|
7848
|
+
* @public
|
7849
|
+
*
|
7850
|
+
* Creates or replaces a scale tween component that animates an entity's scale from start to end
|
7851
|
+
* @param entity - entity to apply the tween to
|
7852
|
+
* @param start - starting scale vector
|
7853
|
+
* @param end - ending scale vector
|
7854
|
+
* @param duration - duration of the tween in seconds
|
7855
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7856
|
+
*/
|
7857
|
+
setScale(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
|
7858
|
+
/**
|
7859
|
+
* @public
|
7860
|
+
*
|
7861
|
+
* Creates or replaces a rotation tween component that animates an entity's rotation from start to end
|
7862
|
+
* @param entity - entity to apply the tween to
|
7863
|
+
* @param start - starting rotation quaternion
|
7864
|
+
* @param end - ending rotation quaternion
|
7865
|
+
* @param duration - duration of the tween in seconds
|
7866
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7867
|
+
*/
|
7868
|
+
setRotate(entity: Entity, start: PBQuaternion, end: PBQuaternion, duration: number, easingFunction?: EasingFunction): void;
|
7869
|
+
/**
|
7870
|
+
* @public
|
7871
|
+
*
|
7872
|
+
* Creates or replaces a texture move tween component that animates texture UV coordinates from start to end
|
7873
|
+
* @param entity - entity to apply the tween to
|
7874
|
+
* @param start - starting UV coordinates
|
7875
|
+
* @param end - ending UV coordinates
|
7876
|
+
* @param duration - duration of the tween in seconds
|
7877
|
+
* @param movementType - type of texture movement (defaults to TMT_OFFSET)
|
7878
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7879
|
+
*/
|
7880
|
+
setTextureMove(entity: Entity, start: PBVector2, end: PBVector2, duration: number, movementType?: TextureMovementType, easingFunction?: EasingFunction): void;
|
7881
|
+
/**
|
7882
|
+
* @public
|
7883
|
+
*
|
7884
|
+
* Creates or replaces a continuous move tween component that moves an entity continuously in a direction
|
7885
|
+
* @param entity - entity to apply the tween to
|
7886
|
+
* @param direction - direction vector to move towards
|
7887
|
+
* @param speed - speed of movement per second
|
7888
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7889
|
+
*/
|
7890
|
+
setMoveContinuous(entity: Entity, direction: PBVector3, speed: number, duration?: number): void;
|
7891
|
+
/**
|
7892
|
+
* @public
|
7893
|
+
*
|
7894
|
+
* Creates or replaces a continuous rotation tween component that rotates an entity continuously
|
7895
|
+
* @param entity - entity to apply the tween to
|
7896
|
+
* @param direction - rotation direction quaternion
|
7897
|
+
* @param speed - speed of rotation per second
|
7898
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7899
|
+
*/
|
7900
|
+
setRotateContinuous(entity: Entity, direction: PBQuaternion, speed: number, duration?: number): void;
|
7901
|
+
/**
|
7902
|
+
* @public
|
7903
|
+
*
|
7904
|
+
* Creates or replaces a continuous texture move tween component that moves texture UV coordinates continuously
|
7905
|
+
* @param entity - entity to apply the tween to
|
7906
|
+
* @param direction - direction vector for UV movement
|
7907
|
+
* @param speed - speed of UV movement per second
|
7908
|
+
* @param movementType - type of texture movement (defaults to TMT_OFFSET)
|
7909
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7910
|
+
*/
|
7911
|
+
setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
7774
7912
|
}
|
7775
7913
|
|
7776
7914
|
/**
|
@@ -7782,17 +7920,29 @@ export declare interface TweenHelper {
|
|
7782
7920
|
*/
|
7783
7921
|
Move: (move: Move) => PBTween['mode'];
|
7784
7922
|
/**
|
7785
|
-
* @returns a move mode tween
|
7923
|
+
* @returns a move-continuous mode tween
|
7924
|
+
*/
|
7925
|
+
MoveContinuous: (move: MoveContinuous) => PBTween['mode'];
|
7926
|
+
/**
|
7927
|
+
* @returns a rotate mode tween
|
7786
7928
|
*/
|
7787
7929
|
Rotate: (rotate: Rotate) => PBTween['mode'];
|
7788
7930
|
/**
|
7789
|
-
* @returns a
|
7931
|
+
* @returns a rotate-continuous mode tween
|
7932
|
+
*/
|
7933
|
+
RotateContinuous: (rotate: RotateContinuous) => PBTween['mode'];
|
7934
|
+
/**
|
7935
|
+
* @returns a scale mode tween
|
7790
7936
|
*/
|
7791
7937
|
Scale: (scale: Scale) => PBTween['mode'];
|
7792
7938
|
/**
|
7793
|
-
* @returns a texture
|
7939
|
+
* @returns a texture-move mode tween
|
7794
7940
|
*/
|
7795
7941
|
TextureMove: (textureMove: TextureMove) => PBTween['mode'];
|
7942
|
+
/**
|
7943
|
+
* @returns a texture-move-continuous mode tween
|
7944
|
+
*/
|
7945
|
+
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
7796
7946
|
}
|
7797
7947
|
|
7798
7948
|
/**
|
package/dist/beta.d.ts
CHANGED
@@ -3646,6 +3646,22 @@ export declare namespace Move {
|
|
3646
3646
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
3647
3647
|
}
|
3648
3648
|
|
3649
|
+
/**
|
3650
|
+
* @public
|
3651
|
+
*/
|
3652
|
+
export declare interface MoveContinuous {
|
3653
|
+
direction: PBVector3 | undefined;
|
3654
|
+
speed: number;
|
3655
|
+
}
|
3656
|
+
|
3657
|
+
/**
|
3658
|
+
* @public
|
3659
|
+
*/
|
3660
|
+
export declare namespace MoveContinuous {
|
3661
|
+
export function encode(message: MoveContinuous, writer?: _m0.Writer): _m0.Writer;
|
3662
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
3663
|
+
}
|
3664
|
+
|
3649
3665
|
export declare const Name: NameComponent;
|
3650
3666
|
|
3651
3667
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
@@ -5534,6 +5550,15 @@ export declare interface PBTween {
|
|
5534
5550
|
} | {
|
5535
5551
|
$case: "textureMove";
|
5536
5552
|
textureMove: TextureMove;
|
5553
|
+
} | {
|
5554
|
+
$case: "rotateContinuous";
|
5555
|
+
rotateContinuous: RotateContinuous;
|
5556
|
+
} | {
|
5557
|
+
$case: "moveContinuous";
|
5558
|
+
moveContinuous: MoveContinuous;
|
5559
|
+
} | {
|
5560
|
+
$case: "textureMoveContinuous";
|
5561
|
+
textureMoveContinuous: TextureMoveContinuous;
|
5537
5562
|
} | undefined;
|
5538
5563
|
/** default true (pause or running) */
|
5539
5564
|
playing?: boolean | undefined;
|
@@ -5961,6 +5986,7 @@ export declare namespace PBVideoPlayer {
|
|
5961
5986
|
* an 'instant' transition (like using speed/time = 0)
|
5962
5987
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5963
5988
|
* the holding entity transform).
|
5989
|
+
* * The fov defines the Field of View of the virtual camera
|
5964
5990
|
*/
|
5965
5991
|
/**
|
5966
5992
|
* @public
|
@@ -5968,6 +5994,8 @@ export declare namespace PBVideoPlayer {
|
|
5968
5994
|
export declare interface PBVirtualCamera {
|
5969
5995
|
defaultTransition?: CameraTransition | undefined;
|
5970
5996
|
lookAtEntity?: number | undefined;
|
5997
|
+
/** default: 60 */
|
5998
|
+
fov?: number | undefined;
|
5971
5999
|
}
|
5972
6000
|
|
5973
6001
|
/**
|
@@ -6987,6 +7015,22 @@ export declare namespace Rotate {
|
|
6987
7015
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Rotate;
|
6988
7016
|
}
|
6989
7017
|
|
7018
|
+
/**
|
7019
|
+
* @public
|
7020
|
+
*/
|
7021
|
+
export declare interface RotateContinuous {
|
7022
|
+
direction: PBQuaternion | undefined;
|
7023
|
+
speed: number;
|
7024
|
+
}
|
7025
|
+
|
7026
|
+
/**
|
7027
|
+
* @public
|
7028
|
+
*/
|
7029
|
+
export declare namespace RotateContinuous {
|
7030
|
+
export function encode(message: RotateContinuous, writer?: _m0.Writer): _m0.Writer;
|
7031
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RotateContinuous;
|
7032
|
+
}
|
7033
|
+
|
6990
7034
|
export declare type RPCSendableMessage = {
|
6991
7035
|
jsonrpc: '2.0';
|
6992
7036
|
id: number;
|
@@ -7485,6 +7529,24 @@ export declare namespace TextureMove {
|
|
7485
7529
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMove;
|
7486
7530
|
}
|
7487
7531
|
|
7532
|
+
/**
|
7533
|
+
* @public
|
7534
|
+
*/
|
7535
|
+
export declare interface TextureMoveContinuous {
|
7536
|
+
direction: PBVector2 | undefined;
|
7537
|
+
speed: number;
|
7538
|
+
/** default = TextureMovementType.TMT_OFFSET */
|
7539
|
+
movementType?: TextureMovementType | undefined;
|
7540
|
+
}
|
7541
|
+
|
7542
|
+
/**
|
7543
|
+
* @public
|
7544
|
+
*/
|
7545
|
+
export declare namespace TextureMoveContinuous {
|
7546
|
+
export function encode(message: TextureMoveContinuous, writer?: _m0.Writer): _m0.Writer;
|
7547
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMoveContinuous;
|
7548
|
+
}
|
7549
|
+
|
7488
7550
|
/**
|
7489
7551
|
* @public
|
7490
7552
|
*/
|
@@ -7738,6 +7800,82 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
|
|
7738
7800
|
* Texture helpers with constructor
|
7739
7801
|
*/
|
7740
7802
|
Mode: TweenHelper;
|
7803
|
+
/**
|
7804
|
+
* @public
|
7805
|
+
*
|
7806
|
+
* Creates or replaces a move tween component that animates an entity's position from start to end
|
7807
|
+
* @param entity - entity to apply the tween to
|
7808
|
+
* @param start - starting position vector
|
7809
|
+
* @param end - ending position vector
|
7810
|
+
* @param duration - duration of the tween in seconds
|
7811
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7812
|
+
*/
|
7813
|
+
setMove(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
|
7814
|
+
/**
|
7815
|
+
* @public
|
7816
|
+
*
|
7817
|
+
* Creates or replaces a scale tween component that animates an entity's scale from start to end
|
7818
|
+
* @param entity - entity to apply the tween to
|
7819
|
+
* @param start - starting scale vector
|
7820
|
+
* @param end - ending scale vector
|
7821
|
+
* @param duration - duration of the tween in seconds
|
7822
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7823
|
+
*/
|
7824
|
+
setScale(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
|
7825
|
+
/**
|
7826
|
+
* @public
|
7827
|
+
*
|
7828
|
+
* Creates or replaces a rotation tween component that animates an entity's rotation from start to end
|
7829
|
+
* @param entity - entity to apply the tween to
|
7830
|
+
* @param start - starting rotation quaternion
|
7831
|
+
* @param end - ending rotation quaternion
|
7832
|
+
* @param duration - duration of the tween in seconds
|
7833
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7834
|
+
*/
|
7835
|
+
setRotate(entity: Entity, start: PBQuaternion, end: PBQuaternion, duration: number, easingFunction?: EasingFunction): void;
|
7836
|
+
/**
|
7837
|
+
* @public
|
7838
|
+
*
|
7839
|
+
* Creates or replaces a texture move tween component that animates texture UV coordinates from start to end
|
7840
|
+
* @param entity - entity to apply the tween to
|
7841
|
+
* @param start - starting UV coordinates
|
7842
|
+
* @param end - ending UV coordinates
|
7843
|
+
* @param duration - duration of the tween in seconds
|
7844
|
+
* @param movementType - type of texture movement (defaults to TMT_OFFSET)
|
7845
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7846
|
+
*/
|
7847
|
+
setTextureMove(entity: Entity, start: PBVector2, end: PBVector2, duration: number, movementType?: TextureMovementType, easingFunction?: EasingFunction): void;
|
7848
|
+
/**
|
7849
|
+
* @public
|
7850
|
+
*
|
7851
|
+
* Creates or replaces a continuous move tween component that moves an entity continuously in a direction
|
7852
|
+
* @param entity - entity to apply the tween to
|
7853
|
+
* @param direction - direction vector to move towards
|
7854
|
+
* @param speed - speed of movement per second
|
7855
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7856
|
+
*/
|
7857
|
+
setMoveContinuous(entity: Entity, direction: PBVector3, speed: number, duration?: number): void;
|
7858
|
+
/**
|
7859
|
+
* @public
|
7860
|
+
*
|
7861
|
+
* Creates or replaces a continuous rotation tween component that rotates an entity continuously
|
7862
|
+
* @param entity - entity to apply the tween to
|
7863
|
+
* @param direction - rotation direction quaternion
|
7864
|
+
* @param speed - speed of rotation per second
|
7865
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7866
|
+
*/
|
7867
|
+
setRotateContinuous(entity: Entity, direction: PBQuaternion, speed: number, duration?: number): void;
|
7868
|
+
/**
|
7869
|
+
* @public
|
7870
|
+
*
|
7871
|
+
* Creates or replaces a continuous texture move tween component that moves texture UV coordinates continuously
|
7872
|
+
* @param entity - entity to apply the tween to
|
7873
|
+
* @param direction - direction vector for UV movement
|
7874
|
+
* @param speed - speed of UV movement per second
|
7875
|
+
* @param movementType - type of texture movement (defaults to TMT_OFFSET)
|
7876
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7877
|
+
*/
|
7878
|
+
setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
7741
7879
|
}
|
7742
7880
|
|
7743
7881
|
/**
|
@@ -7749,17 +7887,29 @@ export declare interface TweenHelper {
|
|
7749
7887
|
*/
|
7750
7888
|
Move: (move: Move) => PBTween['mode'];
|
7751
7889
|
/**
|
7752
|
-
* @returns a move mode tween
|
7890
|
+
* @returns a move-continuous mode tween
|
7891
|
+
*/
|
7892
|
+
MoveContinuous: (move: MoveContinuous) => PBTween['mode'];
|
7893
|
+
/**
|
7894
|
+
* @returns a rotate mode tween
|
7753
7895
|
*/
|
7754
7896
|
Rotate: (rotate: Rotate) => PBTween['mode'];
|
7755
7897
|
/**
|
7756
|
-
* @returns a
|
7898
|
+
* @returns a rotate-continuous mode tween
|
7899
|
+
*/
|
7900
|
+
RotateContinuous: (rotate: RotateContinuous) => PBTween['mode'];
|
7901
|
+
/**
|
7902
|
+
* @returns a scale mode tween
|
7757
7903
|
*/
|
7758
7904
|
Scale: (scale: Scale) => PBTween['mode'];
|
7759
7905
|
/**
|
7760
|
-
* @returns a texture
|
7906
|
+
* @returns a texture-move mode tween
|
7761
7907
|
*/
|
7762
7908
|
TextureMove: (textureMove: TextureMove) => PBTween['mode'];
|
7909
|
+
/**
|
7910
|
+
* @returns a texture-move-continuous mode tween
|
7911
|
+
*/
|
7912
|
+
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
7763
7913
|
}
|
7764
7914
|
|
7765
7915
|
/**
|
package/dist/index.bundled.d.ts
CHANGED
@@ -3646,6 +3646,22 @@ export declare namespace Move {
|
|
3646
3646
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
3647
3647
|
}
|
3648
3648
|
|
3649
|
+
/**
|
3650
|
+
* @public
|
3651
|
+
*/
|
3652
|
+
export declare interface MoveContinuous {
|
3653
|
+
direction: PBVector3 | undefined;
|
3654
|
+
speed: number;
|
3655
|
+
}
|
3656
|
+
|
3657
|
+
/**
|
3658
|
+
* @public
|
3659
|
+
*/
|
3660
|
+
export declare namespace MoveContinuous {
|
3661
|
+
export function encode(message: MoveContinuous, writer?: _m0.Writer): _m0.Writer;
|
3662
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
3663
|
+
}
|
3664
|
+
|
3649
3665
|
export declare const Name: NameComponent;
|
3650
3666
|
|
3651
3667
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
@@ -5534,6 +5550,15 @@ export declare interface PBTween {
|
|
5534
5550
|
} | {
|
5535
5551
|
$case: "textureMove";
|
5536
5552
|
textureMove: TextureMove;
|
5553
|
+
} | {
|
5554
|
+
$case: "rotateContinuous";
|
5555
|
+
rotateContinuous: RotateContinuous;
|
5556
|
+
} | {
|
5557
|
+
$case: "moveContinuous";
|
5558
|
+
moveContinuous: MoveContinuous;
|
5559
|
+
} | {
|
5560
|
+
$case: "textureMoveContinuous";
|
5561
|
+
textureMoveContinuous: TextureMoveContinuous;
|
5537
5562
|
} | undefined;
|
5538
5563
|
/** default true (pause or running) */
|
5539
5564
|
playing?: boolean | undefined;
|
@@ -5961,6 +5986,7 @@ export declare namespace PBVideoPlayer {
|
|
5961
5986
|
* an 'instant' transition (like using speed/time = 0)
|
5962
5987
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5963
5988
|
* the holding entity transform).
|
5989
|
+
* * The fov defines the Field of View of the virtual camera
|
5964
5990
|
*/
|
5965
5991
|
/**
|
5966
5992
|
* @public
|
@@ -5968,6 +5994,8 @@ export declare namespace PBVideoPlayer {
|
|
5968
5994
|
export declare interface PBVirtualCamera {
|
5969
5995
|
defaultTransition?: CameraTransition | undefined;
|
5970
5996
|
lookAtEntity?: number | undefined;
|
5997
|
+
/** default: 60 */
|
5998
|
+
fov?: number | undefined;
|
5971
5999
|
}
|
5972
6000
|
|
5973
6001
|
/**
|
@@ -6987,6 +7015,22 @@ export declare namespace Rotate {
|
|
6987
7015
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Rotate;
|
6988
7016
|
}
|
6989
7017
|
|
7018
|
+
/**
|
7019
|
+
* @public
|
7020
|
+
*/
|
7021
|
+
export declare interface RotateContinuous {
|
7022
|
+
direction: PBQuaternion | undefined;
|
7023
|
+
speed: number;
|
7024
|
+
}
|
7025
|
+
|
7026
|
+
/**
|
7027
|
+
* @public
|
7028
|
+
*/
|
7029
|
+
export declare namespace RotateContinuous {
|
7030
|
+
export function encode(message: RotateContinuous, writer?: _m0.Writer): _m0.Writer;
|
7031
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RotateContinuous;
|
7032
|
+
}
|
7033
|
+
|
6990
7034
|
export declare type RPCSendableMessage = {
|
6991
7035
|
jsonrpc: '2.0';
|
6992
7036
|
id: number;
|
@@ -7485,6 +7529,24 @@ export declare namespace TextureMove {
|
|
7485
7529
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMove;
|
7486
7530
|
}
|
7487
7531
|
|
7532
|
+
/**
|
7533
|
+
* @public
|
7534
|
+
*/
|
7535
|
+
export declare interface TextureMoveContinuous {
|
7536
|
+
direction: PBVector2 | undefined;
|
7537
|
+
speed: number;
|
7538
|
+
/** default = TextureMovementType.TMT_OFFSET */
|
7539
|
+
movementType?: TextureMovementType | undefined;
|
7540
|
+
}
|
7541
|
+
|
7542
|
+
/**
|
7543
|
+
* @public
|
7544
|
+
*/
|
7545
|
+
export declare namespace TextureMoveContinuous {
|
7546
|
+
export function encode(message: TextureMoveContinuous, writer?: _m0.Writer): _m0.Writer;
|
7547
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMoveContinuous;
|
7548
|
+
}
|
7549
|
+
|
7488
7550
|
/**
|
7489
7551
|
* @public
|
7490
7552
|
*/
|
@@ -7738,6 +7800,82 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
|
|
7738
7800
|
* Texture helpers with constructor
|
7739
7801
|
*/
|
7740
7802
|
Mode: TweenHelper;
|
7803
|
+
/**
|
7804
|
+
* @public
|
7805
|
+
*
|
7806
|
+
* Creates or replaces a move tween component that animates an entity's position from start to end
|
7807
|
+
* @param entity - entity to apply the tween to
|
7808
|
+
* @param start - starting position vector
|
7809
|
+
* @param end - ending position vector
|
7810
|
+
* @param duration - duration of the tween in seconds
|
7811
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7812
|
+
*/
|
7813
|
+
setMove(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
|
7814
|
+
/**
|
7815
|
+
* @public
|
7816
|
+
*
|
7817
|
+
* Creates or replaces a scale tween component that animates an entity's scale from start to end
|
7818
|
+
* @param entity - entity to apply the tween to
|
7819
|
+
* @param start - starting scale vector
|
7820
|
+
* @param end - ending scale vector
|
7821
|
+
* @param duration - duration of the tween in seconds
|
7822
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7823
|
+
*/
|
7824
|
+
setScale(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
|
7825
|
+
/**
|
7826
|
+
* @public
|
7827
|
+
*
|
7828
|
+
* Creates or replaces a rotation tween component that animates an entity's rotation from start to end
|
7829
|
+
* @param entity - entity to apply the tween to
|
7830
|
+
* @param start - starting rotation quaternion
|
7831
|
+
* @param end - ending rotation quaternion
|
7832
|
+
* @param duration - duration of the tween in seconds
|
7833
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7834
|
+
*/
|
7835
|
+
setRotate(entity: Entity, start: PBQuaternion, end: PBQuaternion, duration: number, easingFunction?: EasingFunction): void;
|
7836
|
+
/**
|
7837
|
+
* @public
|
7838
|
+
*
|
7839
|
+
* Creates or replaces a texture move tween component that animates texture UV coordinates from start to end
|
7840
|
+
* @param entity - entity to apply the tween to
|
7841
|
+
* @param start - starting UV coordinates
|
7842
|
+
* @param end - ending UV coordinates
|
7843
|
+
* @param duration - duration of the tween in seconds
|
7844
|
+
* @param movementType - type of texture movement (defaults to TMT_OFFSET)
|
7845
|
+
* @param easingFunction - easing function to use (defaults to EF_LINEAR)
|
7846
|
+
*/
|
7847
|
+
setTextureMove(entity: Entity, start: PBVector2, end: PBVector2, duration: number, movementType?: TextureMovementType, easingFunction?: EasingFunction): void;
|
7848
|
+
/**
|
7849
|
+
* @public
|
7850
|
+
*
|
7851
|
+
* Creates or replaces a continuous move tween component that moves an entity continuously in a direction
|
7852
|
+
* @param entity - entity to apply the tween to
|
7853
|
+
* @param direction - direction vector to move towards
|
7854
|
+
* @param speed - speed of movement per second
|
7855
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7856
|
+
*/
|
7857
|
+
setMoveContinuous(entity: Entity, direction: PBVector3, speed: number, duration?: number): void;
|
7858
|
+
/**
|
7859
|
+
* @public
|
7860
|
+
*
|
7861
|
+
* Creates or replaces a continuous rotation tween component that rotates an entity continuously
|
7862
|
+
* @param entity - entity to apply the tween to
|
7863
|
+
* @param direction - rotation direction quaternion
|
7864
|
+
* @param speed - speed of rotation per second
|
7865
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7866
|
+
*/
|
7867
|
+
setRotateContinuous(entity: Entity, direction: PBQuaternion, speed: number, duration?: number): void;
|
7868
|
+
/**
|
7869
|
+
* @public
|
7870
|
+
*
|
7871
|
+
* Creates or replaces a continuous texture move tween component that moves texture UV coordinates continuously
|
7872
|
+
* @param entity - entity to apply the tween to
|
7873
|
+
* @param direction - direction vector for UV movement
|
7874
|
+
* @param speed - speed of UV movement per second
|
7875
|
+
* @param movementType - type of texture movement (defaults to TMT_OFFSET)
|
7876
|
+
* @param duration - duration of the tween in seconds (defaults to 0 for infinite)
|
7877
|
+
*/
|
7878
|
+
setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
7741
7879
|
}
|
7742
7880
|
|
7743
7881
|
/**
|
@@ -7749,17 +7887,29 @@ export declare interface TweenHelper {
|
|
7749
7887
|
*/
|
7750
7888
|
Move: (move: Move) => PBTween['mode'];
|
7751
7889
|
/**
|
7752
|
-
* @returns a move mode tween
|
7890
|
+
* @returns a move-continuous mode tween
|
7891
|
+
*/
|
7892
|
+
MoveContinuous: (move: MoveContinuous) => PBTween['mode'];
|
7893
|
+
/**
|
7894
|
+
* @returns a rotate mode tween
|
7753
7895
|
*/
|
7754
7896
|
Rotate: (rotate: Rotate) => PBTween['mode'];
|
7755
7897
|
/**
|
7756
|
-
* @returns a
|
7898
|
+
* @returns a rotate-continuous mode tween
|
7899
|
+
*/
|
7900
|
+
RotateContinuous: (rotate: RotateContinuous) => PBTween['mode'];
|
7901
|
+
/**
|
7902
|
+
* @returns a scale mode tween
|
7757
7903
|
*/
|
7758
7904
|
Scale: (scale: Scale) => PBTween['mode'];
|
7759
7905
|
/**
|
7760
|
-
* @returns a texture
|
7906
|
+
* @returns a texture-move mode tween
|
7761
7907
|
*/
|
7762
7908
|
TextureMove: (textureMove: TextureMove) => PBTween['mode'];
|
7909
|
+
/**
|
7910
|
+
* @returns a texture-move-continuous mode tween
|
7911
|
+
*/
|
7912
|
+
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
7763
7913
|
}
|
7764
7914
|
|
7765
7915
|
/**
|