@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
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.10.
|
4
|
+
"version": "7.10.6-18360453790.commit-2ff55cb",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
@@ -35,5 +35,5 @@
|
|
35
35
|
},
|
36
36
|
"types": "./index.d.ts",
|
37
37
|
"typings": "./index.d.ts",
|
38
|
-
"commit": "
|
38
|
+
"commit": "2ff55cbeb34156a809f1d8dcb4b3f27434d644f3"
|
39
39
|
}
|
@@ -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
|
/**
|