@rendley/sdk 1.3.0 → 1.4.1
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/Engine.d.ts +31 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/classes.d.ts +1 -0
- package/dist/libs/ffmpeg/const.d.ts +2 -1
- package/dist/modules/clip/Clip.d.ts +12 -0
- package/dist/modules/clip/ClipStyle.d.ts +4 -0
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +103 -5
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +1 -0
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +1 -0
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +1 -0
- package/dist/modules/clip/clips/text/TextClip.d.ts +1 -1
- package/dist/modules/clip/clips/text/TextStyle.d.ts +5 -3
- package/dist/modules/clip/clips/video/VideoClip.d.ts +104 -6
- package/dist/modules/layer/Layer.d.ts +21 -10
- package/dist/modules/library/Library.d.ts +6 -0
- package/dist/modules/library/MediaData.d.ts +12 -0
- package/dist/modules/settings/Settings.d.ts +29 -0
- package/dist/modules/settings/index.d.ts +1 -0
- package/dist/modules/storage/StorageProviderBase.d.ts +1 -0
- package/dist/modules/subtitleManager/SubtitleManager.d.ts +15 -14
- package/dist/modules/timeline/Timeline.d.ts +22 -12
- package/dist/utils/animation/animation.d.ts +2 -0
- package/dist/utils/cachedAccess/cachedAccess.d.ts +18 -0
- package/package.json +1 -1
|
@@ -142,6 +142,7 @@ export declare class FFmpeg {
|
|
|
142
142
|
* @category File System
|
|
143
143
|
*/
|
|
144
144
|
deleteDir: (path: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
145
|
+
getBuildInfo: () => Promise<string>;
|
|
145
146
|
prepareRenderer: (settings: FFMessageRenderSettings, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
146
147
|
addFrameToRenderer: ({ data }: FFMessageFrameData, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
147
148
|
cancelRenderer: ({ signal }?: FFMessageOptions) => Promise<OK>;
|
|
@@ -35,5 +35,6 @@ export declare enum FFMessageType {
|
|
|
35
35
|
AUTH_GET_SECONDS = "AUTH_GET_SECONDS",
|
|
36
36
|
AUTH_IS_AUTHENTICATED = "AUTH_IS_AUTHENTICATED",
|
|
37
37
|
AUTH_GET_LICENSE_TYPE = "AUTH_GET_LICENSE_TYPE",
|
|
38
|
-
FETCH_TS_CHUNKS = "FETCH_TS_CHUNKS"
|
|
38
|
+
FETCH_TS_CHUNKS = "FETCH_TS_CHUNKS",
|
|
39
|
+
GET_BUILD_INFO = "GET_BUILD_INFO"
|
|
39
40
|
}
|
|
@@ -889,6 +889,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
889
889
|
animationLoopCount?: number | undefined;
|
|
890
890
|
loopSmoothing?: number | undefined;
|
|
891
891
|
}>>;
|
|
892
|
+
customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
|
|
892
893
|
}, "strip", z.ZodTypeAny, {
|
|
893
894
|
type: string;
|
|
894
895
|
id: string;
|
|
@@ -976,6 +977,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
976
977
|
animationLoopCount?: number | undefined;
|
|
977
978
|
loopSmoothing?: number | undefined;
|
|
978
979
|
} | undefined;
|
|
980
|
+
customData?: [string, unknown][] | undefined;
|
|
979
981
|
}, {
|
|
980
982
|
type: string;
|
|
981
983
|
id: string;
|
|
@@ -1063,6 +1065,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1063
1065
|
animationLoopCount?: number | undefined;
|
|
1064
1066
|
loopSmoothing?: number | undefined;
|
|
1065
1067
|
} | undefined;
|
|
1068
|
+
customData?: [string, unknown][] | undefined;
|
|
1066
1069
|
}>;
|
|
1067
1070
|
export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipStyle = ClipStyle> {
|
|
1068
1071
|
id: string;
|
|
@@ -1079,6 +1082,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1079
1082
|
protected subtitlesOffset: number;
|
|
1080
1083
|
protected type: string;
|
|
1081
1084
|
protected hasTransition: boolean;
|
|
1085
|
+
protected customData?: Map<string, unknown>;
|
|
1082
1086
|
sprite: T;
|
|
1083
1087
|
style: K;
|
|
1084
1088
|
state: ClipState;
|
|
@@ -1090,7 +1094,14 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1090
1094
|
protected setAnimationPropertyValue(property: string, value: any): void;
|
|
1091
1095
|
protected getAnimationPropertyValue(property: string): number | string;
|
|
1092
1096
|
protected resetAnimationPropertyValue(property: string): void;
|
|
1097
|
+
setCustomData(key: string, value: unknown, overwrite?: boolean): boolean;
|
|
1098
|
+
getCustomData(key: string): unknown;
|
|
1099
|
+
hasCustomData(key: string): boolean;
|
|
1100
|
+
clearAllCustomData(): void;
|
|
1101
|
+
setAllCustomData(data: Map<string, unknown>): void;
|
|
1102
|
+
getAllCustomData(): Map<string, unknown> | undefined;
|
|
1093
1103
|
isReady(): boolean;
|
|
1104
|
+
getId(): string;
|
|
1094
1105
|
getStartTime(): number;
|
|
1095
1106
|
getEndTime(): number;
|
|
1096
1107
|
getLeftTrim(): number;
|
|
@@ -1227,6 +1238,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1227
1238
|
animationLoopCount?: number | undefined;
|
|
1228
1239
|
loopSmoothing?: number | undefined;
|
|
1229
1240
|
} | undefined;
|
|
1241
|
+
customData?: [string, unknown][] | undefined;
|
|
1230
1242
|
};
|
|
1231
1243
|
static deserialize(data: object): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
1232
1244
|
}
|
|
@@ -68,6 +68,9 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
68
68
|
protected animationScaleMultiplier: [number, number];
|
|
69
69
|
protected animationRotationOffset: number;
|
|
70
70
|
protected animationAlphaMultiplier: number;
|
|
71
|
+
private lastCornerRadius;
|
|
72
|
+
private lastCornerScale;
|
|
73
|
+
private lastRelativeCornerRadius;
|
|
71
74
|
constructor(options: ClipStyleOptions);
|
|
72
75
|
positionToCenter(): void;
|
|
73
76
|
scaleDownToFit(): void;
|
|
@@ -99,6 +102,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
99
102
|
load(sprite: T): void;
|
|
100
103
|
update(sprite: T): void;
|
|
101
104
|
private setCornerRadiusOnSprite;
|
|
105
|
+
private updateMask;
|
|
102
106
|
protected emitUpdateEvent(property: string, value: unknown): boolean;
|
|
103
107
|
destroy(): void;
|
|
104
108
|
serialize(): {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Clip, ClipOptions } from "../../Clip";
|
|
2
2
|
export interface AudioClipOptions extends ClipOptions {
|
|
3
3
|
mediaDataId: string;
|
|
4
|
+
volume?: number;
|
|
5
|
+
muted?: boolean;
|
|
4
6
|
}
|
|
5
7
|
export declare class AudioClip extends Clip {
|
|
6
|
-
audioElement
|
|
7
|
-
isPlaying
|
|
8
|
+
private audioElement;
|
|
9
|
+
private isPlaying;
|
|
10
|
+
private volume;
|
|
11
|
+
private muted;
|
|
8
12
|
private actions;
|
|
9
13
|
private isProcessing;
|
|
10
14
|
private lastUpdateTime;
|
|
@@ -25,16 +29,110 @@ export declare class AudioClip extends Clip {
|
|
|
25
29
|
private endedCallback;
|
|
26
30
|
private errorCallback;
|
|
27
31
|
private audioLoadedCallback;
|
|
32
|
+
setVolume(volume: number): void;
|
|
33
|
+
getVolume(): number;
|
|
28
34
|
private play;
|
|
29
35
|
private pause;
|
|
30
36
|
private seek;
|
|
31
37
|
onPlay(currentTime: number): Promise<void>;
|
|
32
38
|
onPause(currentTime: number): Promise<void>;
|
|
33
39
|
update(currentTime: number): void;
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
setMuted(muted: boolean): void;
|
|
41
|
+
isMuted(): boolean;
|
|
36
42
|
extractMonoAudioData(startTime: number, endTime: number): Promise<Float32Array | null>;
|
|
37
43
|
offload(): void;
|
|
38
|
-
clone():
|
|
44
|
+
clone(): AudioClip;
|
|
45
|
+
serialize(): {
|
|
46
|
+
mediaDataId: string;
|
|
47
|
+
type: string;
|
|
48
|
+
id: string;
|
|
49
|
+
filters: {
|
|
50
|
+
options: {
|
|
51
|
+
lutUrl: string;
|
|
52
|
+
};
|
|
53
|
+
id: string;
|
|
54
|
+
sourceId: string;
|
|
55
|
+
}[];
|
|
56
|
+
effects: unknown[];
|
|
57
|
+
subtitlesOffset: number;
|
|
58
|
+
startTime: number;
|
|
59
|
+
duration: number;
|
|
60
|
+
leftTrim: number;
|
|
61
|
+
rightTrim: number;
|
|
62
|
+
warpMode: import('../../../../types').WarpModeEnum;
|
|
63
|
+
text?: string | undefined;
|
|
64
|
+
subtitlesId?: string | undefined;
|
|
65
|
+
style?: unknown;
|
|
66
|
+
animationController?: {
|
|
67
|
+
animationDataIn?: {
|
|
68
|
+
name: string;
|
|
69
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
70
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
71
|
+
propertyAnimations: {
|
|
72
|
+
property: string;
|
|
73
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
74
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
75
|
+
keyframes: {
|
|
76
|
+
time: number;
|
|
77
|
+
value: string | number;
|
|
78
|
+
easing: import("../../../..").EasingEnum;
|
|
79
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
80
|
+
relativeProperty?: string | undefined;
|
|
81
|
+
}[];
|
|
82
|
+
}[];
|
|
83
|
+
speed?: number | undefined;
|
|
84
|
+
offset?: number | undefined;
|
|
85
|
+
amplification?: number | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
animationDataOut?: {
|
|
88
|
+
name: string;
|
|
89
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
90
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
91
|
+
propertyAnimations: {
|
|
92
|
+
property: string;
|
|
93
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
94
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
95
|
+
keyframes: {
|
|
96
|
+
time: number;
|
|
97
|
+
value: string | number;
|
|
98
|
+
easing: import("../../../..").EasingEnum;
|
|
99
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
100
|
+
relativeProperty?: string | undefined;
|
|
101
|
+
}[];
|
|
102
|
+
}[];
|
|
103
|
+
speed?: number | undefined;
|
|
104
|
+
offset?: number | undefined;
|
|
105
|
+
amplification?: number | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
animationDataLoop?: {
|
|
108
|
+
name: string;
|
|
109
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
110
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
111
|
+
propertyAnimations: {
|
|
112
|
+
property: string;
|
|
113
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
114
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
115
|
+
keyframes: {
|
|
116
|
+
time: number;
|
|
117
|
+
value: string | number;
|
|
118
|
+
easing: import("../../../..").EasingEnum;
|
|
119
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
120
|
+
relativeProperty?: string | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
}[];
|
|
123
|
+
speed?: number | undefined;
|
|
124
|
+
offset?: number | undefined;
|
|
125
|
+
amplification?: number | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
animationInDuration?: number | undefined;
|
|
128
|
+
animationOutDuration?: number | undefined;
|
|
129
|
+
animationLoopCount?: number | undefined;
|
|
130
|
+
loopSmoothing?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
customData?: [string, unknown][] | undefined;
|
|
133
|
+
volume?: number | undefined;
|
|
134
|
+
muted?: boolean | undefined;
|
|
135
|
+
};
|
|
136
|
+
static deserialize(payload: object): AudioClip;
|
|
39
137
|
hasSprite(): boolean;
|
|
40
138
|
}
|
|
@@ -95,6 +95,7 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
95
95
|
animationLoopCount?: number | undefined;
|
|
96
96
|
loopSmoothing?: number | undefined;
|
|
97
97
|
} | undefined;
|
|
98
|
+
customData?: [string, unknown][] | undefined;
|
|
98
99
|
};
|
|
99
100
|
static deserialize(payload: object): CustomClip;
|
|
100
101
|
}
|
|
@@ -158,6 +158,7 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
158
158
|
animationLoopCount?: number | undefined;
|
|
159
159
|
loopSmoothing?: number | undefined;
|
|
160
160
|
} | undefined;
|
|
161
|
+
customData?: [string, unknown][] | undefined;
|
|
161
162
|
assetsUrl?: string | undefined;
|
|
162
163
|
propertiesUrl?: string | undefined;
|
|
163
164
|
};
|
|
@@ -102,6 +102,7 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
102
102
|
animationLoopCount?: number | undefined;
|
|
103
103
|
loopSmoothing?: number | undefined;
|
|
104
104
|
} | undefined;
|
|
105
|
+
customData?: [string, unknown][] | undefined;
|
|
105
106
|
};
|
|
106
107
|
static deserialize(payload: object): ShapeClip;
|
|
107
108
|
}
|
|
@@ -16,7 +16,6 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
16
16
|
protected setAnimationPropertyValue(property: string, value: any): void;
|
|
17
17
|
protected getAnimationPropertyValue(property: string): number | string;
|
|
18
18
|
protected resetAnimationPropertyValue(property: string): void;
|
|
19
|
-
resetAllAnimationProperties(): void;
|
|
20
19
|
offload(): void;
|
|
21
20
|
clone(): TextClip;
|
|
22
21
|
destroy(): void;
|
|
@@ -107,6 +106,7 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
107
106
|
animationLoopCount?: number | undefined;
|
|
108
107
|
loopSmoothing?: number | undefined;
|
|
109
108
|
} | undefined;
|
|
109
|
+
customData?: [string, unknown][] | undefined;
|
|
110
110
|
};
|
|
111
111
|
static deserialize(payload: object): TextClip;
|
|
112
112
|
}
|
|
@@ -20,7 +20,9 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
20
20
|
fontStyle: TextStyleFontStyle;
|
|
21
21
|
backgroundColor: string | null;
|
|
22
22
|
wordWrapWidth: number | null;
|
|
23
|
+
private isDirty;
|
|
23
24
|
constructor(options: TextClipStyleOptions);
|
|
25
|
+
setDirty(): void;
|
|
24
26
|
setFontSize(fontSize: number): void;
|
|
25
27
|
getFontSize(): number;
|
|
26
28
|
getWordWrapWidth(): number | null;
|
|
@@ -28,7 +30,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
28
30
|
setColor(color: string): void;
|
|
29
31
|
getColor(): string;
|
|
30
32
|
setFontWeight(fontWeight: TextStyleFontWeight): void;
|
|
31
|
-
getFontWeight(): "
|
|
33
|
+
getFontWeight(): "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
32
34
|
setFontFamily(fontFamily: string): void;
|
|
33
35
|
getFontFamily(): string;
|
|
34
36
|
setTextAlign(textAlign: TextStyleAlign): void;
|
|
@@ -48,12 +50,12 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
48
50
|
scale: [number, number];
|
|
49
51
|
zIndex: number;
|
|
50
52
|
relativeCornerRadius: boolean;
|
|
51
|
-
backgroundColor: string | null;
|
|
52
53
|
fontSize: number;
|
|
53
|
-
fontWeight: "
|
|
54
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
54
55
|
fontFamily: string;
|
|
55
56
|
textAlign: "left" | "center" | "right" | "justify";
|
|
56
57
|
fontStyle: "normal" | "italic" | "oblique";
|
|
58
|
+
backgroundColor: string | null;
|
|
57
59
|
mediaDataId?: string | undefined;
|
|
58
60
|
width?: number | undefined;
|
|
59
61
|
height?: number | undefined;
|
|
@@ -3,11 +3,15 @@ import { Clip, ClipOptions } from "../../Clip";
|
|
|
3
3
|
import { ClipStyle } from "../../ClipStyle";
|
|
4
4
|
export interface VideoClipOptions extends ClipOptions<ClipStyle> {
|
|
5
5
|
mediaDataId: string;
|
|
6
|
+
volume?: number;
|
|
7
|
+
muted?: boolean;
|
|
6
8
|
}
|
|
7
9
|
export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
|
|
8
|
-
videoElement
|
|
9
|
-
audioElement
|
|
10
|
-
isPlaying
|
|
10
|
+
private videoElement;
|
|
11
|
+
private audioElement;
|
|
12
|
+
private isPlaying;
|
|
13
|
+
private volume;
|
|
14
|
+
private muted;
|
|
11
15
|
private actions;
|
|
12
16
|
private isProcessing;
|
|
13
17
|
private lastUpdateTime;
|
|
@@ -31,6 +35,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
31
35
|
private endedCallback;
|
|
32
36
|
private errorCallback;
|
|
33
37
|
private videoLoadedCallback;
|
|
38
|
+
setVolume(volume: number): void;
|
|
39
|
+
getVolume(): number;
|
|
34
40
|
private play;
|
|
35
41
|
private pause;
|
|
36
42
|
private renderSeek;
|
|
@@ -44,9 +50,101 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
44
50
|
onPause(currentTime: number): Promise<void>;
|
|
45
51
|
updateVisibility(currentTime: number): void;
|
|
46
52
|
update(currentTime: number): void;
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
setMuted(muted: boolean): void;
|
|
54
|
+
isMuted(): boolean;
|
|
49
55
|
extractMonoAudioData(startTime: number, endTime: number): Promise<Float32Array | null>;
|
|
50
56
|
destroy(): void;
|
|
51
|
-
clone():
|
|
57
|
+
clone(): VideoClip;
|
|
58
|
+
serialize(): {
|
|
59
|
+
mediaDataId: string;
|
|
60
|
+
type: string;
|
|
61
|
+
id: string;
|
|
62
|
+
filters: {
|
|
63
|
+
options: {
|
|
64
|
+
lutUrl: string;
|
|
65
|
+
};
|
|
66
|
+
id: string;
|
|
67
|
+
sourceId: string;
|
|
68
|
+
}[];
|
|
69
|
+
effects: unknown[];
|
|
70
|
+
subtitlesOffset: number;
|
|
71
|
+
startTime: number;
|
|
72
|
+
duration: number;
|
|
73
|
+
leftTrim: number;
|
|
74
|
+
rightTrim: number;
|
|
75
|
+
warpMode: import('../../../../types').WarpModeEnum;
|
|
76
|
+
text?: string | undefined;
|
|
77
|
+
subtitlesId?: string | undefined;
|
|
78
|
+
style?: unknown;
|
|
79
|
+
animationController?: {
|
|
80
|
+
animationDataIn?: {
|
|
81
|
+
name: string;
|
|
82
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
83
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
84
|
+
propertyAnimations: {
|
|
85
|
+
property: string;
|
|
86
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
87
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
88
|
+
keyframes: {
|
|
89
|
+
time: number;
|
|
90
|
+
value: string | number;
|
|
91
|
+
easing: import("../../../..").EasingEnum;
|
|
92
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
93
|
+
relativeProperty?: string | undefined;
|
|
94
|
+
}[];
|
|
95
|
+
}[];
|
|
96
|
+
speed?: number | undefined;
|
|
97
|
+
offset?: number | undefined;
|
|
98
|
+
amplification?: number | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
animationDataOut?: {
|
|
101
|
+
name: string;
|
|
102
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
103
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
104
|
+
propertyAnimations: {
|
|
105
|
+
property: string;
|
|
106
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
107
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
108
|
+
keyframes: {
|
|
109
|
+
time: number;
|
|
110
|
+
value: string | number;
|
|
111
|
+
easing: import("../../../..").EasingEnum;
|
|
112
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
113
|
+
relativeProperty?: string | undefined;
|
|
114
|
+
}[];
|
|
115
|
+
}[];
|
|
116
|
+
speed?: number | undefined;
|
|
117
|
+
offset?: number | undefined;
|
|
118
|
+
amplification?: number | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
animationDataLoop?: {
|
|
121
|
+
name: string;
|
|
122
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
123
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
124
|
+
propertyAnimations: {
|
|
125
|
+
property: string;
|
|
126
|
+
inOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
127
|
+
outOutOfRange: import("../../../..").OutOfRangeEnum;
|
|
128
|
+
keyframes: {
|
|
129
|
+
time: number;
|
|
130
|
+
value: string | number;
|
|
131
|
+
easing: import("../../../..").EasingEnum;
|
|
132
|
+
space: import("../../../..").AnimationSpaceEnum;
|
|
133
|
+
relativeProperty?: string | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
}[];
|
|
136
|
+
speed?: number | undefined;
|
|
137
|
+
offset?: number | undefined;
|
|
138
|
+
amplification?: number | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
animationInDuration?: number | undefined;
|
|
141
|
+
animationOutDuration?: number | undefined;
|
|
142
|
+
animationLoopCount?: number | undefined;
|
|
143
|
+
loopSmoothing?: number | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
customData?: [string, unknown][] | undefined;
|
|
146
|
+
volume?: number | undefined;
|
|
147
|
+
muted?: boolean | undefined;
|
|
148
|
+
};
|
|
149
|
+
static deserialize(payload: object): VideoClip;
|
|
52
150
|
}
|
|
@@ -8,8 +8,9 @@ type ClipOptions = ImageClipOptions | VideoClipOptions | TextClipOptions | Audio
|
|
|
8
8
|
export type ClipTypeRange = Pick<ClipOptions, "startTime" | "duration">;
|
|
9
9
|
export declare const LayerSchema: z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
muted: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
volume: z.ZodOptional<z.ZodNumber>;
|
|
13
14
|
clips: z.ZodArray<z.ZodAny, "many">;
|
|
14
15
|
transitions: z.ZodArray<z.ZodObject<{
|
|
15
16
|
id: z.ZodString;
|
|
@@ -41,8 +42,6 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
41
42
|
}>, "many">;
|
|
42
43
|
}, "strip", z.ZodTypeAny, {
|
|
43
44
|
id: string;
|
|
44
|
-
isEnabled: boolean;
|
|
45
|
-
isMuted: boolean;
|
|
46
45
|
clips: any[];
|
|
47
46
|
transitions: {
|
|
48
47
|
name: string;
|
|
@@ -54,10 +53,11 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
54
53
|
outDuration: number;
|
|
55
54
|
transitionSrc: string;
|
|
56
55
|
}[];
|
|
56
|
+
visible?: boolean | undefined;
|
|
57
|
+
muted?: boolean | undefined;
|
|
58
|
+
volume?: number | undefined;
|
|
57
59
|
}, {
|
|
58
60
|
id: string;
|
|
59
|
-
isEnabled: boolean;
|
|
60
|
-
isMuted: boolean;
|
|
61
61
|
clips: any[];
|
|
62
62
|
transitions: {
|
|
63
63
|
name: string;
|
|
@@ -69,11 +69,15 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
69
69
|
outDuration: number;
|
|
70
70
|
transitionSrc: string;
|
|
71
71
|
}[];
|
|
72
|
+
visible?: boolean | undefined;
|
|
73
|
+
muted?: boolean | undefined;
|
|
74
|
+
volume?: number | undefined;
|
|
72
75
|
}>;
|
|
73
76
|
export declare class Layer {
|
|
74
77
|
id: string;
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
visible: boolean;
|
|
79
|
+
muted: boolean;
|
|
80
|
+
volume: number;
|
|
77
81
|
clipsIds: string[];
|
|
78
82
|
clips: Record<string, Clip>;
|
|
79
83
|
transitions: Transition[];
|
|
@@ -84,6 +88,12 @@ export declare class Layer {
|
|
|
84
88
|
addClip(options: Clip): Promise<Clip | null>;
|
|
85
89
|
addClip(options: ClipOptions): Promise<Clip | null>;
|
|
86
90
|
removeClip(clipId: string, shouldNotDestroy?: boolean): boolean;
|
|
91
|
+
setVolume(volume: number): void;
|
|
92
|
+
getVolume(): number;
|
|
93
|
+
setMuted(muted: boolean): void;
|
|
94
|
+
isMuted(): boolean;
|
|
95
|
+
setVisibility(visible: boolean): void;
|
|
96
|
+
getVisibility(): boolean;
|
|
87
97
|
moveClipToLayer(clipId: string, newLayerId: string): void;
|
|
88
98
|
splitClip(clipId: string, time: number): Promise<Clip | null>;
|
|
89
99
|
addTransition(data: TransitionOptions | Transition): void;
|
|
@@ -103,8 +113,6 @@ export declare class Layer {
|
|
|
103
113
|
private createClip;
|
|
104
114
|
serialize(): {
|
|
105
115
|
id: string;
|
|
106
|
-
isEnabled: boolean;
|
|
107
|
-
isMuted: boolean;
|
|
108
116
|
clips: any[];
|
|
109
117
|
transitions: {
|
|
110
118
|
name: string;
|
|
@@ -116,6 +124,9 @@ export declare class Layer {
|
|
|
116
124
|
outDuration: number;
|
|
117
125
|
transitionSrc: string;
|
|
118
126
|
}[];
|
|
127
|
+
visible?: boolean | undefined;
|
|
128
|
+
muted?: boolean | undefined;
|
|
129
|
+
volume?: number | undefined;
|
|
119
130
|
};
|
|
120
131
|
static deserialize(data: object): Layer;
|
|
121
132
|
}
|
|
@@ -9,6 +9,7 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
9
9
|
permanentUrl: z.ZodOptional<z.ZodString>;
|
|
10
10
|
hash: z.ZodOptional<z.ZodString>;
|
|
11
11
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
12
|
+
customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
13
14
|
type: string;
|
|
14
15
|
id: string;
|
|
@@ -16,6 +17,7 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
16
17
|
permanentUrl?: string | undefined;
|
|
17
18
|
hash?: string | undefined;
|
|
18
19
|
mimeType?: string | undefined;
|
|
20
|
+
customData?: [string, unknown][] | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
type: string;
|
|
21
23
|
id: string;
|
|
@@ -23,6 +25,7 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
23
25
|
permanentUrl?: string | undefined;
|
|
24
26
|
hash?: string | undefined;
|
|
25
27
|
mimeType?: string | undefined;
|
|
28
|
+
customData?: [string, unknown][] | undefined;
|
|
26
29
|
}>, "many">;
|
|
27
30
|
subtitles: z.ZodArray<z.ZodObject<{
|
|
28
31
|
id: z.ZodString;
|
|
@@ -78,6 +81,7 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
78
81
|
permanentUrl?: string | undefined;
|
|
79
82
|
hash?: string | undefined;
|
|
80
83
|
mimeType?: string | undefined;
|
|
84
|
+
customData?: [string, unknown][] | undefined;
|
|
81
85
|
}[];
|
|
82
86
|
}, {
|
|
83
87
|
subtitles: {
|
|
@@ -97,6 +101,7 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
97
101
|
permanentUrl?: string | undefined;
|
|
98
102
|
hash?: string | undefined;
|
|
99
103
|
mimeType?: string | undefined;
|
|
104
|
+
customData?: [string, unknown][] | undefined;
|
|
100
105
|
}[];
|
|
101
106
|
}>;
|
|
102
107
|
export declare class Library {
|
|
@@ -131,6 +136,7 @@ export declare class Library {
|
|
|
131
136
|
permanentUrl?: string | undefined;
|
|
132
137
|
hash?: string | undefined;
|
|
133
138
|
mimeType?: string | undefined;
|
|
139
|
+
customData?: [string, unknown][] | undefined;
|
|
134
140
|
}[];
|
|
135
141
|
};
|
|
136
142
|
static deserialize(data: object): Library;
|
|
@@ -8,6 +8,7 @@ export declare const MediaDataSchema: z.ZodObject<{
|
|
|
8
8
|
permanentUrl: z.ZodOptional<z.ZodString>;
|
|
9
9
|
hash: z.ZodOptional<z.ZodString>;
|
|
10
10
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
11
|
+
customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
13
|
type: string;
|
|
13
14
|
id: string;
|
|
@@ -15,6 +16,7 @@ export declare const MediaDataSchema: z.ZodObject<{
|
|
|
15
16
|
permanentUrl?: string | undefined;
|
|
16
17
|
hash?: string | undefined;
|
|
17
18
|
mimeType?: string | undefined;
|
|
19
|
+
customData?: [string, unknown][] | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
@@ -22,6 +24,7 @@ export declare const MediaDataSchema: z.ZodObject<{
|
|
|
22
24
|
permanentUrl?: string | undefined;
|
|
23
25
|
hash?: string | undefined;
|
|
24
26
|
mimeType?: string | undefined;
|
|
27
|
+
customData?: [string, unknown][] | undefined;
|
|
25
28
|
}>;
|
|
26
29
|
export declare class MediaData {
|
|
27
30
|
private id;
|
|
@@ -41,6 +44,7 @@ export declare class MediaData {
|
|
|
41
44
|
permanentUrl?: string;
|
|
42
45
|
hash?: string;
|
|
43
46
|
mimeType?: string;
|
|
47
|
+
customData?: Map<string, unknown>;
|
|
44
48
|
audioSplit?: string;
|
|
45
49
|
constructor(id?: string);
|
|
46
50
|
init(): Promise<void>;
|
|
@@ -48,6 +52,13 @@ export declare class MediaData {
|
|
|
48
52
|
getId(): string;
|
|
49
53
|
store(): Promise<void>;
|
|
50
54
|
restore(): Promise<boolean>;
|
|
55
|
+
setCustomData(key: string, value: unknown, overwrite?: boolean): boolean;
|
|
56
|
+
getCustomData(key: string): unknown;
|
|
57
|
+
hasCustomData(key: string): boolean;
|
|
58
|
+
removeCustomData(key: string): boolean;
|
|
59
|
+
clearAllCustomData(): void;
|
|
60
|
+
setAllCustomData(data: Map<string, unknown>): void;
|
|
61
|
+
getAllCustomData(): Map<string, unknown> | undefined;
|
|
51
62
|
readFileIntoBlob(file: File, mimeType?: string): Promise<Blob>;
|
|
52
63
|
checkCompatibilityOrTranscode(filePath: string, blobUrl: string, hasAudio: boolean): Promise<boolean>;
|
|
53
64
|
hookM3U8(file: File | string | Uint8Array, mimeType: string | undefined): Promise<{
|
|
@@ -94,6 +105,7 @@ export declare class MediaData {
|
|
|
94
105
|
permanentUrl?: string | undefined;
|
|
95
106
|
hash?: string | undefined;
|
|
96
107
|
mimeType?: string | undefined;
|
|
108
|
+
customData?: [string, unknown][] | undefined;
|
|
97
109
|
};
|
|
98
110
|
static deserialize(data: object): MediaData;
|
|
99
111
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum PreferredAcceleration {
|
|
3
|
+
HARDWARE = "prefer-hardware",
|
|
4
|
+
SOFTWARE = "prefer-software"
|
|
5
|
+
}
|
|
6
|
+
export declare const SettingsSchema: z.ZodObject<{
|
|
7
|
+
preferredDecodingAcceleration: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PreferredAcceleration>>>;
|
|
8
|
+
preferredEncodingAcceleration: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PreferredAcceleration>>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
preferredDecodingAcceleration: PreferredAcceleration;
|
|
11
|
+
preferredEncodingAcceleration: PreferredAcceleration;
|
|
12
|
+
}, {
|
|
13
|
+
preferredDecodingAcceleration?: PreferredAcceleration | undefined;
|
|
14
|
+
preferredEncodingAcceleration?: PreferredAcceleration | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export declare class Settings {
|
|
17
|
+
private preferredDecodingAcceleration;
|
|
18
|
+
private preferredEncodingAcceleration;
|
|
19
|
+
constructor();
|
|
20
|
+
setPreferredDecodingAcceleration(acceleration: PreferredAcceleration): void;
|
|
21
|
+
getPreferredDecodingAcceleration(): PreferredAcceleration;
|
|
22
|
+
setPreferredEncodingAcceleration(acceleration: PreferredAcceleration): void;
|
|
23
|
+
getPreferredEncodingAcceleration(): PreferredAcceleration;
|
|
24
|
+
serialize(): {
|
|
25
|
+
preferredDecodingAcceleration: PreferredAcceleration;
|
|
26
|
+
preferredEncodingAcceleration: PreferredAcceleration;
|
|
27
|
+
};
|
|
28
|
+
static deserialize(data: object): Settings;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Settings";
|