@dcl/protocol 1.0.0-6314457636.commit-a9a962a → 1.0.0-6473373363.commit-d038938
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/out-js/decentraland/sdk/components/tween.gen.d.ts +125 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +598 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +648 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/package.json +2 -2
- package/proto/decentraland/common/texture.proto +8 -8
- package/proto/decentraland/sdk/components/tween.proto +74 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/public/sdk-components.proto +3 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Quaternion, Vector3 } from "../../common/vectors.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
+
/**
|
|
5
|
+
* Implementation guidelines for these easing functions can be found
|
|
6
|
+
* at https://github.com/ai/easings.net/blob/6fcd5f852a470bf1a7890e8178afa0f471d5f2ec/src/easings/easingsFunctions.ts
|
|
7
|
+
*/
|
|
8
|
+
export declare enum EasingFunction {
|
|
9
|
+
/** EF_LINEAR - default */
|
|
10
|
+
EF_LINEAR = 0,
|
|
11
|
+
EF_EASEINQUAD = 1,
|
|
12
|
+
EF_EASEOUTQUAD = 2,
|
|
13
|
+
EF_EASEQUAD = 3,
|
|
14
|
+
EF_EASEINSINE = 4,
|
|
15
|
+
EF_EASEOUTSINE = 5,
|
|
16
|
+
EF_EASESINE = 6,
|
|
17
|
+
EF_EASEINEXPO = 7,
|
|
18
|
+
EF_EASEOUTEXPO = 8,
|
|
19
|
+
EF_EASEEXPO = 9,
|
|
20
|
+
EF_EASEINELASTIC = 10,
|
|
21
|
+
EF_EASEOUTELASTIC = 11,
|
|
22
|
+
EF_EASEELASTIC = 12,
|
|
23
|
+
EF_EASEINBOUNCE = 13,
|
|
24
|
+
EF_EASEOUTBOUNCE = 14,
|
|
25
|
+
EF_EASEBOUNCE = 15,
|
|
26
|
+
EF_EASEINCUBIC = 16,
|
|
27
|
+
EF_EASEOUTCUBIC = 17,
|
|
28
|
+
EF_EASECUBIC = 18,
|
|
29
|
+
EF_EASEINQUART = 19,
|
|
30
|
+
EF_EASEOUTQUART = 20,
|
|
31
|
+
EF_EASEQUART = 21,
|
|
32
|
+
EF_EASEINQUINT = 22,
|
|
33
|
+
EF_EASEOUTQUINT = 23,
|
|
34
|
+
EF_EASEQUINT = 24,
|
|
35
|
+
EF_EASEINCIRC = 25,
|
|
36
|
+
EF_EASEOUTCIRC = 26,
|
|
37
|
+
EF_EASECIRC = 27,
|
|
38
|
+
EF_EASEINBACK = 28,
|
|
39
|
+
EF_EASEOUTBACK = 29,
|
|
40
|
+
EF_EASEBACK = 30,
|
|
41
|
+
UNRECOGNIZED = -1
|
|
42
|
+
}
|
|
43
|
+
export declare function easingFunctionFromJSON(object: any): EasingFunction;
|
|
44
|
+
export declare function easingFunctionToJSON(object: EasingFunction): string;
|
|
45
|
+
export interface PBTween {
|
|
46
|
+
/** in milliseconds */
|
|
47
|
+
duration: number;
|
|
48
|
+
easingFunction: EasingFunction;
|
|
49
|
+
mode?: {
|
|
50
|
+
$case: "move";
|
|
51
|
+
move: Move;
|
|
52
|
+
} | {
|
|
53
|
+
$case: "rotate";
|
|
54
|
+
rotate: Rotate;
|
|
55
|
+
} | {
|
|
56
|
+
$case: "scale";
|
|
57
|
+
scale: Scale;
|
|
58
|
+
} | undefined;
|
|
59
|
+
/** default true (pause or running) */
|
|
60
|
+
playing?: boolean | undefined;
|
|
61
|
+
/** between 0 and 1 */
|
|
62
|
+
currentTime?: number | undefined;
|
|
63
|
+
}
|
|
64
|
+
export interface Move {
|
|
65
|
+
start: Vector3 | undefined;
|
|
66
|
+
end: Vector3 | undefined;
|
|
67
|
+
faceDirection?: boolean | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface Rotate {
|
|
70
|
+
start: Quaternion | undefined;
|
|
71
|
+
end: Quaternion | undefined;
|
|
72
|
+
}
|
|
73
|
+
export interface Scale {
|
|
74
|
+
start: Vector3 | undefined;
|
|
75
|
+
end: Vector3 | undefined;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace PBTween {
|
|
78
|
+
function encode(message: PBTween, writer?: _m0.Writer): _m0.Writer;
|
|
79
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBTween;
|
|
80
|
+
function fromJSON(object: any): PBTween;
|
|
81
|
+
function toJSON(message: PBTween): unknown;
|
|
82
|
+
function create<I extends Exact<DeepPartial<PBTween>, I>>(base?: I): PBTween;
|
|
83
|
+
function fromPartial<I extends Exact<DeepPartial<PBTween>, I>>(object: I): PBTween;
|
|
84
|
+
}
|
|
85
|
+
export declare namespace Move {
|
|
86
|
+
function encode(message: Move, writer?: _m0.Writer): _m0.Writer;
|
|
87
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
|
88
|
+
function fromJSON(object: any): Move;
|
|
89
|
+
function toJSON(message: Move): unknown;
|
|
90
|
+
function create<I extends Exact<DeepPartial<Move>, I>>(base?: I): Move;
|
|
91
|
+
function fromPartial<I extends Exact<DeepPartial<Move>, I>>(object: I): Move;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace Rotate {
|
|
94
|
+
function encode(message: Rotate, writer?: _m0.Writer): _m0.Writer;
|
|
95
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Rotate;
|
|
96
|
+
function fromJSON(object: any): Rotate;
|
|
97
|
+
function toJSON(message: Rotate): unknown;
|
|
98
|
+
function create<I extends Exact<DeepPartial<Rotate>, I>>(base?: I): Rotate;
|
|
99
|
+
function fromPartial<I extends Exact<DeepPartial<Rotate>, I>>(object: I): Rotate;
|
|
100
|
+
}
|
|
101
|
+
export declare namespace Scale {
|
|
102
|
+
function encode(message: Scale, writer?: _m0.Writer): _m0.Writer;
|
|
103
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Scale;
|
|
104
|
+
function fromJSON(object: any): Scale;
|
|
105
|
+
function toJSON(message: Scale): unknown;
|
|
106
|
+
function create<I extends Exact<DeepPartial<Scale>, I>>(base?: I): Scale;
|
|
107
|
+
function fromPartial<I extends Exact<DeepPartial<Scale>, I>>(object: I): Scale;
|
|
108
|
+
}
|
|
109
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
110
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
111
|
+
$case: string;
|
|
112
|
+
} ? {
|
|
113
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
114
|
+
} & {
|
|
115
|
+
$case: T["$case"];
|
|
116
|
+
} : T extends {} ? {
|
|
117
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
118
|
+
} : Partial<T>;
|
|
119
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
120
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
121
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
122
|
+
} & {
|
|
123
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
124
|
+
};
|
|
125
|
+
export {};
|