@rendley/sdk 1.3.0 → 1.4.0
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 +27 -3
- 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 +27 -15
- package/dist/modules/clip/ClipStyle.d.ts +1 -0
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +6 -5
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +6 -5
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +6 -5
- package/dist/modules/clip/clips/text/TextClip.d.ts +6 -6
- package/dist/modules/clip/clips/text/TextStyle.d.ts +5 -3
- 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 +4 -0
- 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,9 +889,15 @@ 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;
|
|
896
|
+
subtitlesOffset: number;
|
|
897
|
+
startTime: number;
|
|
898
|
+
duration: number;
|
|
899
|
+
leftTrim: number;
|
|
900
|
+
rightTrim: number;
|
|
895
901
|
filters: {
|
|
896
902
|
options: {
|
|
897
903
|
lutUrl: string;
|
|
@@ -900,11 +906,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
900
906
|
sourceId: string;
|
|
901
907
|
}[];
|
|
902
908
|
effects: unknown[];
|
|
903
|
-
subtitlesOffset: number;
|
|
904
|
-
startTime: number;
|
|
905
|
-
duration: number;
|
|
906
|
-
leftTrim: number;
|
|
907
|
-
rightTrim: number;
|
|
908
909
|
warpMode: WarpModeEnum;
|
|
909
910
|
mediaDataId?: string | undefined;
|
|
910
911
|
subtitlesId?: string | undefined;
|
|
@@ -976,9 +977,15 @@ 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;
|
|
984
|
+
subtitlesOffset: number;
|
|
985
|
+
startTime: number;
|
|
986
|
+
duration: number;
|
|
987
|
+
leftTrim: number;
|
|
988
|
+
rightTrim: number;
|
|
982
989
|
filters: {
|
|
983
990
|
options: {
|
|
984
991
|
lutUrl: string;
|
|
@@ -987,11 +994,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
987
994
|
sourceId: string;
|
|
988
995
|
}[];
|
|
989
996
|
effects: unknown[];
|
|
990
|
-
subtitlesOffset: number;
|
|
991
|
-
startTime: number;
|
|
992
|
-
duration: number;
|
|
993
|
-
leftTrim: number;
|
|
994
|
-
rightTrim: number;
|
|
995
997
|
warpMode: WarpModeEnum;
|
|
996
998
|
mediaDataId?: string | undefined;
|
|
997
999
|
subtitlesId?: string | undefined;
|
|
@@ -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;
|
|
@@ -1143,6 +1154,11 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1143
1154
|
serialize(): {
|
|
1144
1155
|
type: string;
|
|
1145
1156
|
id: string;
|
|
1157
|
+
subtitlesOffset: number;
|
|
1158
|
+
startTime: number;
|
|
1159
|
+
duration: number;
|
|
1160
|
+
leftTrim: number;
|
|
1161
|
+
rightTrim: number;
|
|
1146
1162
|
filters: {
|
|
1147
1163
|
options: {
|
|
1148
1164
|
lutUrl: string;
|
|
@@ -1151,11 +1167,6 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1151
1167
|
sourceId: string;
|
|
1152
1168
|
}[];
|
|
1153
1169
|
effects: unknown[];
|
|
1154
|
-
subtitlesOffset: number;
|
|
1155
|
-
startTime: number;
|
|
1156
|
-
duration: number;
|
|
1157
|
-
leftTrim: number;
|
|
1158
|
-
rightTrim: number;
|
|
1159
1170
|
warpMode: WarpModeEnum;
|
|
1160
1171
|
mediaDataId?: string | undefined;
|
|
1161
1172
|
subtitlesId?: string | undefined;
|
|
@@ -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,7 @@ 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;
|
|
71
72
|
constructor(options: ClipStyleOptions);
|
|
72
73
|
positionToCenter(): void;
|
|
73
74
|
scaleDownToFit(): void;
|
|
@@ -11,6 +11,11 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
11
11
|
serialize(): {
|
|
12
12
|
type: string;
|
|
13
13
|
id: string;
|
|
14
|
+
subtitlesOffset: number;
|
|
15
|
+
startTime: number;
|
|
16
|
+
duration: number;
|
|
17
|
+
leftTrim: number;
|
|
18
|
+
rightTrim: number;
|
|
14
19
|
filters: {
|
|
15
20
|
options: {
|
|
16
21
|
lutUrl: string;
|
|
@@ -19,11 +24,6 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
19
24
|
sourceId: string;
|
|
20
25
|
}[];
|
|
21
26
|
effects: unknown[];
|
|
22
|
-
subtitlesOffset: number;
|
|
23
|
-
startTime: number;
|
|
24
|
-
duration: number;
|
|
25
|
-
leftTrim: number;
|
|
26
|
-
rightTrim: number;
|
|
27
27
|
warpMode: import('../../../../index').WarpModeEnum;
|
|
28
28
|
mediaDataId?: string | undefined;
|
|
29
29
|
subtitlesId?: string | undefined;
|
|
@@ -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
|
}
|
|
@@ -73,6 +73,11 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
73
73
|
serialize(): {
|
|
74
74
|
type: string;
|
|
75
75
|
id: string;
|
|
76
|
+
subtitlesOffset: number;
|
|
77
|
+
startTime: number;
|
|
78
|
+
duration: number;
|
|
79
|
+
leftTrim: number;
|
|
80
|
+
rightTrim: number;
|
|
76
81
|
filters: {
|
|
77
82
|
options: {
|
|
78
83
|
lutUrl: string;
|
|
@@ -81,11 +86,6 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
81
86
|
sourceId: string;
|
|
82
87
|
}[];
|
|
83
88
|
effects: unknown[];
|
|
84
|
-
subtitlesOffset: number;
|
|
85
|
-
startTime: number;
|
|
86
|
-
duration: number;
|
|
87
|
-
leftTrim: number;
|
|
88
|
-
rightTrim: number;
|
|
89
89
|
warpMode: import('../../../../types').WarpModeEnum;
|
|
90
90
|
dataUrl: string;
|
|
91
91
|
text?: string | undefined;
|
|
@@ -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
|
};
|
|
@@ -18,6 +18,11 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
18
18
|
shape: string;
|
|
19
19
|
type: string;
|
|
20
20
|
id: string;
|
|
21
|
+
subtitlesOffset: number;
|
|
22
|
+
startTime: number;
|
|
23
|
+
duration: number;
|
|
24
|
+
leftTrim: number;
|
|
25
|
+
rightTrim: number;
|
|
21
26
|
filters: {
|
|
22
27
|
options: {
|
|
23
28
|
lutUrl: string;
|
|
@@ -26,11 +31,6 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
26
31
|
sourceId: string;
|
|
27
32
|
}[];
|
|
28
33
|
effects: unknown[];
|
|
29
|
-
subtitlesOffset: number;
|
|
30
|
-
startTime: number;
|
|
31
|
-
duration: number;
|
|
32
|
-
leftTrim: number;
|
|
33
|
-
rightTrim: number;
|
|
34
34
|
warpMode: import('../../../../types').WarpModeEnum;
|
|
35
35
|
text?: string | undefined;
|
|
36
36
|
mediaDataId?: string | undefined;
|
|
@@ -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;
|
|
@@ -24,6 +23,11 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
24
23
|
text: string;
|
|
25
24
|
type: string;
|
|
26
25
|
id: string;
|
|
26
|
+
subtitlesOffset: number;
|
|
27
|
+
startTime: number;
|
|
28
|
+
duration: number;
|
|
29
|
+
leftTrim: number;
|
|
30
|
+
rightTrim: number;
|
|
27
31
|
filters: {
|
|
28
32
|
options: {
|
|
29
33
|
lutUrl: string;
|
|
@@ -32,11 +36,6 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
|
|
|
32
36
|
sourceId: string;
|
|
33
37
|
}[];
|
|
34
38
|
effects: unknown[];
|
|
35
|
-
subtitlesOffset: number;
|
|
36
|
-
startTime: number;
|
|
37
|
-
duration: number;
|
|
38
|
-
leftTrim: number;
|
|
39
|
-
rightTrim: number;
|
|
40
39
|
warpMode: import('../../../../index').WarpModeEnum;
|
|
41
40
|
mediaDataId?: string | undefined;
|
|
42
41
|
subtitlesId?: string | undefined;
|
|
@@ -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;
|
|
@@ -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";
|
|
@@ -18,7 +18,7 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
fontSize?: number | undefined;
|
|
20
20
|
color?: string | undefined;
|
|
21
|
-
fontWeight?: "
|
|
21
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
22
22
|
fontFamily?: string | undefined;
|
|
23
23
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
24
24
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -27,7 +27,7 @@ declare const MainTextStyleSchema: z.ZodObject<{
|
|
|
27
27
|
}, {
|
|
28
28
|
fontSize?: number | undefined;
|
|
29
29
|
color?: string | undefined;
|
|
30
|
-
fontWeight?: "
|
|
30
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
31
31
|
fontFamily?: string | undefined;
|
|
32
32
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
33
33
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -47,7 +47,7 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
color?: string | undefined;
|
|
49
49
|
fontSize?: number | undefined;
|
|
50
|
-
fontWeight?: "
|
|
50
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
51
51
|
fontFamily?: string | undefined;
|
|
52
52
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
53
53
|
backgroundColor?: string | undefined;
|
|
@@ -57,7 +57,7 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
57
57
|
}, {
|
|
58
58
|
color?: string | undefined;
|
|
59
59
|
fontSize?: number | undefined;
|
|
60
|
-
fontWeight?: "
|
|
60
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
61
61
|
fontFamily?: string | undefined;
|
|
62
62
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
63
63
|
backgroundColor?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
fontSize?: number | undefined;
|
|
87
87
|
color?: string | undefined;
|
|
88
|
-
fontWeight?: "
|
|
88
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
89
89
|
fontFamily?: string | undefined;
|
|
90
90
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
91
91
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
94
94
|
}, {
|
|
95
95
|
fontSize?: number | undefined;
|
|
96
96
|
color?: string | undefined;
|
|
97
|
-
fontWeight?: "
|
|
97
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
98
98
|
fontFamily?: string | undefined;
|
|
99
99
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
100
100
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -114,7 +114,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
color?: string | undefined;
|
|
116
116
|
fontSize?: number | undefined;
|
|
117
|
-
fontWeight?: "
|
|
117
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
118
118
|
fontFamily?: string | undefined;
|
|
119
119
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
120
120
|
backgroundColor?: string | undefined;
|
|
@@ -124,7 +124,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
124
124
|
}, {
|
|
125
125
|
color?: string | undefined;
|
|
126
126
|
fontSize?: number | undefined;
|
|
127
|
-
fontWeight?: "
|
|
127
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
128
128
|
fontFamily?: string | undefined;
|
|
129
129
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
130
130
|
backgroundColor?: string | undefined;
|
|
@@ -139,7 +139,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
139
139
|
mainTextStyle: {
|
|
140
140
|
fontSize?: number | undefined;
|
|
141
141
|
color?: string | undefined;
|
|
142
|
-
fontWeight?: "
|
|
142
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
143
143
|
fontFamily?: string | undefined;
|
|
144
144
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
145
145
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -149,7 +149,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
149
149
|
highlightTextStyle: {
|
|
150
150
|
color?: string | undefined;
|
|
151
151
|
fontSize?: number | undefined;
|
|
152
|
-
fontWeight?: "
|
|
152
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
153
153
|
fontFamily?: string | undefined;
|
|
154
154
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
155
155
|
backgroundColor?: string | undefined;
|
|
@@ -164,7 +164,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
164
164
|
mainTextStyle: {
|
|
165
165
|
fontSize?: number | undefined;
|
|
166
166
|
color?: string | undefined;
|
|
167
|
-
fontWeight?: "
|
|
167
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
168
168
|
fontFamily?: string | undefined;
|
|
169
169
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
170
170
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -174,7 +174,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
174
174
|
highlightTextStyle: {
|
|
175
175
|
color?: string | undefined;
|
|
176
176
|
fontSize?: number | undefined;
|
|
177
|
-
fontWeight?: "
|
|
177
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
178
178
|
fontFamily?: string | undefined;
|
|
179
179
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
180
180
|
backgroundColor?: string | undefined;
|
|
@@ -197,6 +197,7 @@ export declare class SubtitlesManager {
|
|
|
197
197
|
private wordTween;
|
|
198
198
|
private backgroundColor;
|
|
199
199
|
private backgroundPadding;
|
|
200
|
+
private wordWrapWidth;
|
|
200
201
|
private getInitialTweenValue;
|
|
201
202
|
constructor();
|
|
202
203
|
init(): void;
|
|
@@ -220,7 +221,7 @@ export declare class SubtitlesManager {
|
|
|
220
221
|
mainTextStyle: {
|
|
221
222
|
fontSize?: number | undefined;
|
|
222
223
|
color?: string | undefined;
|
|
223
|
-
fontWeight?: "
|
|
224
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
224
225
|
fontFamily?: string | undefined;
|
|
225
226
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
226
227
|
wordWrapWidth?: number | null | undefined;
|
|
@@ -230,7 +231,7 @@ export declare class SubtitlesManager {
|
|
|
230
231
|
highlightTextStyle: {
|
|
231
232
|
color?: string | undefined;
|
|
232
233
|
fontSize?: number | undefined;
|
|
233
|
-
fontWeight?: "
|
|
234
|
+
fontWeight?: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
234
235
|
fontFamily?: string | undefined;
|
|
235
236
|
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
236
237
|
backgroundColor?: string | undefined;
|
|
@@ -68,6 +68,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
68
68
|
transitionSrc: string;
|
|
69
69
|
}[];
|
|
70
70
|
}>, "many">;
|
|
71
|
+
fitDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
71
72
|
}, "strip", z.ZodTypeAny, {
|
|
72
73
|
startTime: number;
|
|
73
74
|
fps: number;
|
|
@@ -87,6 +88,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
87
88
|
transitionSrc: string;
|
|
88
89
|
}[];
|
|
89
90
|
}[];
|
|
91
|
+
fitDuration: number;
|
|
90
92
|
}, {
|
|
91
93
|
startTime: number;
|
|
92
94
|
fps: number;
|
|
@@ -106,6 +108,7 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
106
108
|
transitionSrc: string;
|
|
107
109
|
}[];
|
|
108
110
|
}[];
|
|
111
|
+
fitDuration?: number | undefined;
|
|
109
112
|
}>;
|
|
110
113
|
export declare class Timeline {
|
|
111
114
|
private startTime;
|
|
@@ -163,6 +166,7 @@ export declare class Timeline {
|
|
|
163
166
|
transitionSrc: string;
|
|
164
167
|
}[];
|
|
165
168
|
}[];
|
|
169
|
+
fitDuration: number;
|
|
166
170
|
};
|
|
167
171
|
static deserialize(data: object): Timeline;
|
|
168
172
|
}
|
|
@@ -234,11 +234,13 @@ export declare class AnimationController {
|
|
|
234
234
|
private startTime;
|
|
235
235
|
private endTime;
|
|
236
236
|
private duration;
|
|
237
|
+
private animatedProperties;
|
|
237
238
|
constructor(setCallback: SetCallbackType, getCallback: GetCallbackType);
|
|
238
239
|
loadFromUrl(url: string): Promise<this>;
|
|
239
240
|
loadFromAnimationData(data: AnimationData): this;
|
|
240
241
|
private initialize;
|
|
241
242
|
isLoaded(): boolean;
|
|
243
|
+
getAnimatedProperties(): Set<string>;
|
|
242
244
|
getAnimationData(): AnimationData;
|
|
243
245
|
setSpeed(speed: number): this;
|
|
244
246
|
getSpeed(): number | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Clip } from '../../modules/clip';
|
|
2
|
+
export declare class CachedAccess {
|
|
3
|
+
private static instance;
|
|
4
|
+
static getInstance(): CachedAccess;
|
|
5
|
+
private constructor();
|
|
6
|
+
private readonly clipIdToLayerId;
|
|
7
|
+
private readonly clipIdToClip;
|
|
8
|
+
private readonly mediaIdToClips;
|
|
9
|
+
private readonly subtitlesIdToClips;
|
|
10
|
+
setClipInfo(clipId: string, layerId: string, clip: Clip): void;
|
|
11
|
+
updateSubtitlesIdToClips(subtitlesIdOld: string | undefined, subtitlesId: string | undefined, clip: Clip): void;
|
|
12
|
+
updateClipIdToLayerId(oldLayerId: string, newLayerId: string, clipId: string): void;
|
|
13
|
+
removeClipInfo(clipId: string): void;
|
|
14
|
+
layerIdFromClipId(clipId: string): string | undefined;
|
|
15
|
+
clipFromClipId(clipId: string): Clip | undefined;
|
|
16
|
+
clipsFromMediaId(mediaId: string): Clip[];
|
|
17
|
+
clipsFromSubtitlesId(subtitlesId: string): Clip[];
|
|
18
|
+
}
|