@rendley/sdk 1.9.7 → 1.10.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/README.md +0 -9
- package/dist/Engine.d.ts +10 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/classes.d.ts +2 -1
- package/dist/libs/ffmpeg/const.d.ts +1 -0
- package/dist/libs/ffmpeg/types.d.ts +6 -1
- package/dist/modules/background-timer/background-timer-worker.d.ts +5 -0
- package/dist/modules/background-timer/background-timer.d.ts +9 -0
- package/dist/modules/background-timer/backround-timer.types.d.ts +15 -0
- package/dist/modules/clip/Clip.d.ts +6 -3
- package/dist/modules/clip/ClipStyle.d.ts +3 -3
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +1 -1
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +1 -1
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +1 -1
- package/dist/modules/clip/clips/index.d.ts +1 -0
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +116 -36
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +6 -10
- package/dist/modules/clip/clips/shape/ShapeSprite.d.ts +3 -9
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +58 -9
- package/dist/modules/clip/clips/shape/types/Shape.types.d.ts +7 -0
- package/dist/modules/clip/clips/text/TextClip.d.ts +1 -1
- package/dist/modules/clip/clips/text/TextStyle.d.ts +8 -8
- package/dist/modules/clip/clips/video/VideoClip.d.ts +1 -1
- package/dist/modules/ffmpeg/FFmpeg.d.ts +1 -1
- package/dist/modules/layer/Layer.d.ts +5 -5
- package/dist/modules/library/Library.d.ts +5 -5
- package/dist/modules/library/MediaData.d.ts +4 -3
- package/dist/modules/renderer/Renderer.d.ts +4 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +4 -4
- package/dist/modules/timeline/Timeline.d.ts +7 -7
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/dist/modules/undo/UndoManager.types.d.ts +51 -0
- package/dist/types/clip.types.d.ts +2 -5
- package/dist/utils/compareVersions/compareVersions.d.ts +1 -0
- package/dist/utils/timer/performanceTimer.d.ts +3 -0
- package/package.json +1 -1
|
@@ -16,14 +16,14 @@ interface TextClipStyleOptions extends ClipStyleOptions {
|
|
|
16
16
|
padding?: number[];
|
|
17
17
|
}
|
|
18
18
|
export declare const TextStyleSchema: z.ZodObject<{
|
|
19
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
alpha: z.ZodNumber;
|
|
19
21
|
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
20
22
|
clipId: z.ZodString;
|
|
21
|
-
alpha: z.ZodNumber;
|
|
22
23
|
rotation: z.ZodNumber;
|
|
23
24
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
24
25
|
scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
25
26
|
zIndex: z.ZodNumber;
|
|
26
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
height: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
29
29
|
relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -40,8 +40,8 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
40
40
|
padding: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
color: string;
|
|
43
|
-
clipId: string;
|
|
44
43
|
alpha: number;
|
|
44
|
+
clipId: string;
|
|
45
45
|
rotation: number;
|
|
46
46
|
position: [number, number];
|
|
47
47
|
scale: [number, number];
|
|
@@ -57,14 +57,14 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
57
57
|
strokeThickness: number;
|
|
58
58
|
wordWrapWidth: number | null;
|
|
59
59
|
padding: number[];
|
|
60
|
-
mediaDataId?: string | undefined;
|
|
61
60
|
width?: number | undefined;
|
|
61
|
+
mediaDataId?: string | undefined;
|
|
62
62
|
height?: number | undefined;
|
|
63
63
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
color: string;
|
|
66
|
-
clipId: string;
|
|
67
66
|
alpha: number;
|
|
67
|
+
clipId: string;
|
|
68
68
|
rotation: number;
|
|
69
69
|
position: [number, number];
|
|
70
70
|
scale: [number, number];
|
|
@@ -75,8 +75,8 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
75
75
|
textAlign: "left" | "center" | "right" | "justify";
|
|
76
76
|
fontStyle: "normal" | "italic" | "oblique";
|
|
77
77
|
backgroundColor: string | null;
|
|
78
|
-
mediaDataId?: string | undefined;
|
|
79
78
|
width?: number | undefined;
|
|
79
|
+
mediaDataId?: string | undefined;
|
|
80
80
|
height?: number | undefined;
|
|
81
81
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
82
82
|
relativeCornerRadius?: boolean | undefined;
|
|
@@ -128,8 +128,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
128
128
|
update(container: TextSprite): void;
|
|
129
129
|
serialize(): {
|
|
130
130
|
color: string;
|
|
131
|
-
clipId: string;
|
|
132
131
|
alpha: number;
|
|
132
|
+
clipId: string;
|
|
133
133
|
rotation: number;
|
|
134
134
|
position: [number, number];
|
|
135
135
|
scale: [number, number];
|
|
@@ -145,8 +145,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
145
145
|
strokeThickness: number;
|
|
146
146
|
wordWrapWidth: number | null;
|
|
147
147
|
padding: number[];
|
|
148
|
-
mediaDataId?: string | undefined;
|
|
149
148
|
width?: number | undefined;
|
|
149
|
+
mediaDataId?: string | undefined;
|
|
150
150
|
height?: number | undefined;
|
|
151
151
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
152
152
|
};
|
|
@@ -66,8 +66,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
66
66
|
destroy(): void;
|
|
67
67
|
clone(): VideoClip;
|
|
68
68
|
serialize(): {
|
|
69
|
-
id: string;
|
|
70
69
|
type: string;
|
|
70
|
+
id: string;
|
|
71
71
|
mediaDataId: string;
|
|
72
72
|
subtitlesOffset: number;
|
|
73
73
|
startTime: number;
|
|
@@ -2,7 +2,7 @@ import { FFmpeg as RootFFmpeg } from '../../libs/ffmpeg';
|
|
|
2
2
|
import { FFMessageLoadConfig } from '../../libs/ffmpeg/types';
|
|
3
3
|
declare class FFmpeg {
|
|
4
4
|
private static instance;
|
|
5
|
-
private ffmpeg;
|
|
5
|
+
private readonly ffmpeg;
|
|
6
6
|
private coreURL;
|
|
7
7
|
private wasmURL;
|
|
8
8
|
private constructor();
|
|
@@ -25,18 +25,18 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
25
25
|
transitionSrc: z.ZodString;
|
|
26
26
|
type: z.ZodLiteral<"transition">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
type: "transition";
|
|
28
29
|
name: string;
|
|
29
30
|
id: string;
|
|
30
|
-
type: "transition";
|
|
31
31
|
startClipId: string;
|
|
32
32
|
endClipId: string;
|
|
33
33
|
inDuration: number;
|
|
34
34
|
outDuration: number;
|
|
35
35
|
transitionSrc: string;
|
|
36
36
|
}, {
|
|
37
|
+
type: "transition";
|
|
37
38
|
name: string;
|
|
38
39
|
id: string;
|
|
39
|
-
type: "transition";
|
|
40
40
|
startClipId: string;
|
|
41
41
|
endClipId: string;
|
|
42
42
|
inDuration: number;
|
|
@@ -46,9 +46,9 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
id: string;
|
|
48
48
|
transitions: {
|
|
49
|
+
type: "transition";
|
|
49
50
|
name: string;
|
|
50
51
|
id: string;
|
|
51
|
-
type: "transition";
|
|
52
52
|
startClipId: string;
|
|
53
53
|
endClipId: string;
|
|
54
54
|
inDuration: number;
|
|
@@ -62,9 +62,9 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
64
|
transitions: {
|
|
65
|
+
type: "transition";
|
|
65
66
|
name: string;
|
|
66
67
|
id: string;
|
|
67
|
-
type: "transition";
|
|
68
68
|
startClipId: string;
|
|
69
69
|
endClipId: string;
|
|
70
70
|
inDuration: number;
|
|
@@ -118,9 +118,9 @@ export declare class Layer {
|
|
|
118
118
|
serialize(): {
|
|
119
119
|
id: string;
|
|
120
120
|
transitions: {
|
|
121
|
+
type: "transition";
|
|
121
122
|
name: string;
|
|
122
123
|
id: string;
|
|
123
|
-
type: "transition";
|
|
124
124
|
startClipId: string;
|
|
125
125
|
endClipId: string;
|
|
126
126
|
inDuration: number;
|
|
@@ -11,16 +11,16 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
11
11
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
12
12
|
customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
id: string;
|
|
15
14
|
type: string;
|
|
15
|
+
id: string;
|
|
16
16
|
filename: string;
|
|
17
17
|
permanentUrl?: string | undefined;
|
|
18
18
|
hash?: string | undefined;
|
|
19
19
|
mimeType?: string | undefined;
|
|
20
20
|
customData?: [string, unknown][] | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
id: string;
|
|
23
22
|
type: string;
|
|
23
|
+
id: string;
|
|
24
24
|
filename: string;
|
|
25
25
|
permanentUrl?: string | undefined;
|
|
26
26
|
hash?: string | undefined;
|
|
@@ -75,8 +75,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
75
75
|
}[];
|
|
76
76
|
}[];
|
|
77
77
|
media: {
|
|
78
|
-
id: string;
|
|
79
78
|
type: string;
|
|
79
|
+
id: string;
|
|
80
80
|
filename: string;
|
|
81
81
|
permanentUrl?: string | undefined;
|
|
82
82
|
hash?: string | undefined;
|
|
@@ -95,8 +95,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
95
95
|
}[];
|
|
96
96
|
}[];
|
|
97
97
|
media: {
|
|
98
|
-
id: string;
|
|
99
98
|
type: string;
|
|
99
|
+
id: string;
|
|
100
100
|
filename: string;
|
|
101
101
|
permanentUrl?: string | undefined;
|
|
102
102
|
hash?: string | undefined;
|
|
@@ -133,8 +133,8 @@ export declare class Library {
|
|
|
133
133
|
}[];
|
|
134
134
|
}[];
|
|
135
135
|
media: {
|
|
136
|
-
id: string;
|
|
137
136
|
type: string;
|
|
137
|
+
id: string;
|
|
138
138
|
filename: string;
|
|
139
139
|
permanentUrl?: string | undefined;
|
|
140
140
|
hash?: string | undefined;
|
|
@@ -10,16 +10,16 @@ export declare const MediaDataSchema: z.ZodObject<{
|
|
|
10
10
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
11
11
|
customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
id: string;
|
|
14
13
|
type: string;
|
|
14
|
+
id: string;
|
|
15
15
|
filename: string;
|
|
16
16
|
permanentUrl?: string | undefined;
|
|
17
17
|
hash?: string | undefined;
|
|
18
18
|
mimeType?: string | undefined;
|
|
19
19
|
customData?: [string, unknown][] | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
id: string;
|
|
22
21
|
type: string;
|
|
22
|
+
id: string;
|
|
23
23
|
filename: string;
|
|
24
24
|
permanentUrl?: string | undefined;
|
|
25
25
|
hash?: string | undefined;
|
|
@@ -62,6 +62,7 @@ export declare class MediaData {
|
|
|
62
62
|
readFileIntoBlob(file: File, mimeType?: string): Promise<Blob>;
|
|
63
63
|
private internalFFmpegTranscode;
|
|
64
64
|
private transcode;
|
|
65
|
+
private safariTestAndTranscode;
|
|
65
66
|
private checkCompatibilityOrTranscode;
|
|
66
67
|
hookM3U8(file: File | string | Uint8Array, mimeType: string | undefined): Promise<{
|
|
67
68
|
status: boolean;
|
|
@@ -101,8 +102,8 @@ export declare class MediaData {
|
|
|
101
102
|
getHash(): string | undefined;
|
|
102
103
|
waitForStatus(status: MediaDataStatus, checkIntervalMS?: number, timeoutMS?: number): Promise<boolean>;
|
|
103
104
|
serialize(): {
|
|
104
|
-
id: string;
|
|
105
105
|
type: string;
|
|
106
|
+
id: string;
|
|
106
107
|
filename: string;
|
|
107
108
|
permanentUrl?: string | undefined;
|
|
108
109
|
hash?: string | undefined;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ExportOptions, ExportResult } from ".";
|
|
2
2
|
export declare class Renderer {
|
|
3
3
|
private rendering;
|
|
4
|
+
private isBackgrounded;
|
|
4
5
|
private watermarkSprite;
|
|
5
6
|
constructor();
|
|
7
|
+
destroy(): void;
|
|
8
|
+
private visibilityChangeHandler;
|
|
9
|
+
private residentTimeout;
|
|
6
10
|
isRendering(): boolean;
|
|
7
11
|
private generateAudioMixWorker;
|
|
8
12
|
private generateAudioMix;
|
|
@@ -223,7 +223,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
223
223
|
scale: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
225
|
scale: number;
|
|
226
|
-
textMode: "
|
|
226
|
+
textMode: "full" | "partial";
|
|
227
227
|
highlightAnimation: HighlightAnimationEnum;
|
|
228
228
|
highlightAnimationSpeed: number;
|
|
229
229
|
mainTextStyle: {
|
|
@@ -257,7 +257,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
257
257
|
};
|
|
258
258
|
position?: [number, number] | undefined;
|
|
259
259
|
}, {
|
|
260
|
-
textMode: "
|
|
260
|
+
textMode: "full" | "partial";
|
|
261
261
|
highlightAnimation: HighlightAnimationEnum;
|
|
262
262
|
highlightAnimationSpeed: number;
|
|
263
263
|
mainTextStyle: {
|
|
@@ -327,7 +327,7 @@ export declare class SubtitlesManager {
|
|
|
327
327
|
getScale(): number;
|
|
328
328
|
setTextMode(mode: TextModeType): void;
|
|
329
329
|
setMainTextStyle(style: Partial<MainTextStyle>, reset?: boolean): void;
|
|
330
|
-
getTextMode(): "
|
|
330
|
+
getTextMode(): "full" | "partial";
|
|
331
331
|
getMainTextStyle(): {
|
|
332
332
|
color: string;
|
|
333
333
|
strokeColor: string;
|
|
@@ -376,7 +376,7 @@ export declare class SubtitlesManager {
|
|
|
376
376
|
destroy(): void;
|
|
377
377
|
serialize(): {
|
|
378
378
|
scale: number;
|
|
379
|
-
textMode: "
|
|
379
|
+
textMode: "full" | "partial";
|
|
380
380
|
highlightAnimation: HighlightAnimationEnum;
|
|
381
381
|
highlightAnimationSpeed: number;
|
|
382
382
|
mainTextStyle: {
|
|
@@ -25,18 +25,18 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
25
25
|
transitionSrc: z.ZodString;
|
|
26
26
|
type: z.ZodLiteral<"transition">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
type: "transition";
|
|
28
29
|
name: string;
|
|
29
30
|
id: string;
|
|
30
|
-
type: "transition";
|
|
31
31
|
startClipId: string;
|
|
32
32
|
endClipId: string;
|
|
33
33
|
inDuration: number;
|
|
34
34
|
outDuration: number;
|
|
35
35
|
transitionSrc: string;
|
|
36
36
|
}, {
|
|
37
|
+
type: "transition";
|
|
37
38
|
name: string;
|
|
38
39
|
id: string;
|
|
39
|
-
type: "transition";
|
|
40
40
|
startClipId: string;
|
|
41
41
|
endClipId: string;
|
|
42
42
|
inDuration: number;
|
|
@@ -46,9 +46,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
id: string;
|
|
48
48
|
transitions: {
|
|
49
|
+
type: "transition";
|
|
49
50
|
name: string;
|
|
50
51
|
id: string;
|
|
51
|
-
type: "transition";
|
|
52
52
|
startClipId: string;
|
|
53
53
|
endClipId: string;
|
|
54
54
|
inDuration: number;
|
|
@@ -62,9 +62,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
64
|
transitions: {
|
|
65
|
+
type: "transition";
|
|
65
66
|
name: string;
|
|
66
67
|
id: string;
|
|
67
|
-
type: "transition";
|
|
68
68
|
startClipId: string;
|
|
69
69
|
endClipId: string;
|
|
70
70
|
inDuration: number;
|
|
@@ -83,9 +83,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
83
83
|
layers: {
|
|
84
84
|
id: string;
|
|
85
85
|
transitions: {
|
|
86
|
+
type: "transition";
|
|
86
87
|
name: string;
|
|
87
88
|
id: string;
|
|
88
|
-
type: "transition";
|
|
89
89
|
startClipId: string;
|
|
90
90
|
endClipId: string;
|
|
91
91
|
inDuration: number;
|
|
@@ -104,9 +104,9 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
104
104
|
layers: {
|
|
105
105
|
id: string;
|
|
106
106
|
transitions: {
|
|
107
|
+
type: "transition";
|
|
107
108
|
name: string;
|
|
108
109
|
id: string;
|
|
109
|
-
type: "transition";
|
|
110
110
|
startClipId: string;
|
|
111
111
|
endClipId: string;
|
|
112
112
|
inDuration: number;
|
|
@@ -167,9 +167,9 @@ export declare class Timeline {
|
|
|
167
167
|
layers: {
|
|
168
168
|
id: string;
|
|
169
169
|
transitions: {
|
|
170
|
+
type: "transition";
|
|
170
171
|
name: string;
|
|
171
172
|
id: string;
|
|
172
|
-
type: "transition";
|
|
173
173
|
startClipId: string;
|
|
174
174
|
endClipId: string;
|
|
175
175
|
inDuration: number;
|
|
@@ -11,18 +11,18 @@ export declare const TransitionSchema: z.ZodObject<{
|
|
|
11
11
|
transitionSrc: z.ZodString;
|
|
12
12
|
type: z.ZodLiteral<"transition">;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
type: "transition";
|
|
14
15
|
name: string;
|
|
15
16
|
id: string;
|
|
16
|
-
type: "transition";
|
|
17
17
|
startClipId: string;
|
|
18
18
|
endClipId: string;
|
|
19
19
|
inDuration: number;
|
|
20
20
|
outDuration: number;
|
|
21
21
|
transitionSrc: string;
|
|
22
22
|
}, {
|
|
23
|
+
type: "transition";
|
|
23
24
|
name: string;
|
|
24
25
|
id: string;
|
|
25
|
-
type: "transition";
|
|
26
26
|
startClipId: string;
|
|
27
27
|
endClipId: string;
|
|
28
28
|
inDuration: number;
|
|
@@ -77,9 +77,9 @@ export declare class Transition {
|
|
|
77
77
|
destroy(): void;
|
|
78
78
|
update(transitionProgress: number): void;
|
|
79
79
|
serialize(): {
|
|
80
|
+
type: "transition";
|
|
80
81
|
name: string;
|
|
81
82
|
id: string;
|
|
82
|
-
type: "transition";
|
|
83
83
|
startClipId: string;
|
|
84
84
|
endClipId: string;
|
|
85
85
|
inDuration: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ShapeTypeEnum } from "../clip/clips/shape/types/Shape.types";
|
|
1
2
|
import { TextBlock } from "../library";
|
|
2
3
|
import { HighlightAnimationEnum } from "../subtitles";
|
|
3
4
|
export declare enum UndoActionEnum {
|
|
@@ -33,6 +34,16 @@ export declare enum UndoActionEnum {
|
|
|
33
34
|
CLIP_HTML_TEXT = "clip-html-text",
|
|
34
35
|
CLIP_HTML_STYLE = "clip-html-style",
|
|
35
36
|
CLIP_LOTTIE_PROPERTY = "clip-lottie-property",
|
|
37
|
+
CLIP_SHAPE_SHAPE = "clip-shape-shape",
|
|
38
|
+
CLIP_SHAPE_HAS_FILL = "clip-shape-has-fill",
|
|
39
|
+
CLIP_SHAPE_FILL_COLOR = "clip-shape-fill-color",
|
|
40
|
+
CLIP_SHAPE_STROKE_COLOR = "clip-shape-stroke-color",
|
|
41
|
+
CLIP_SHAPE_STROKE_WIDTH = "clip-shape-stroke-width",
|
|
42
|
+
CLIP_SHAPE_STROKE_ALPHA = "clip-shape-stroke-alpha",
|
|
43
|
+
CLIP_SHAPE_RECT_RADIUS = "clip-shape-rect-radius",
|
|
44
|
+
CLIP_SHAPE_NR_POINTS = "clip-shape-nr-points",
|
|
45
|
+
CLIP_SHAPE_INNER_RADIUS = "clip-shape-inner-radius",
|
|
46
|
+
CLIP_SHAPE_OUTER_RADIUS = "clip-shape-outer-radius",
|
|
36
47
|
TRANSITION_ADD = "transition-add",
|
|
37
48
|
TRANSITION_REMOVE = "transition-remove",
|
|
38
49
|
FILTER_ADD = "filter-add",
|
|
@@ -203,6 +214,46 @@ export type UndoActionMappings = {
|
|
|
203
214
|
prevValue: any;
|
|
204
215
|
value: any;
|
|
205
216
|
};
|
|
217
|
+
[UndoActionEnum.CLIP_SHAPE_SHAPE]: {
|
|
218
|
+
clipId: string;
|
|
219
|
+
value: ShapeTypeEnum;
|
|
220
|
+
};
|
|
221
|
+
[UndoActionEnum.CLIP_SHAPE_HAS_FILL]: {
|
|
222
|
+
clipId: string;
|
|
223
|
+
value: boolean;
|
|
224
|
+
};
|
|
225
|
+
[UndoActionEnum.CLIP_SHAPE_FILL_COLOR]: {
|
|
226
|
+
clipId: string;
|
|
227
|
+
value: string;
|
|
228
|
+
};
|
|
229
|
+
[UndoActionEnum.CLIP_SHAPE_STROKE_COLOR]: {
|
|
230
|
+
clipId: string;
|
|
231
|
+
value: string;
|
|
232
|
+
};
|
|
233
|
+
[UndoActionEnum.CLIP_SHAPE_STROKE_WIDTH]: {
|
|
234
|
+
clipId: string;
|
|
235
|
+
value: number;
|
|
236
|
+
};
|
|
237
|
+
[UndoActionEnum.CLIP_SHAPE_STROKE_ALPHA]: {
|
|
238
|
+
clipId: string;
|
|
239
|
+
value: number;
|
|
240
|
+
};
|
|
241
|
+
[UndoActionEnum.CLIP_SHAPE_RECT_RADIUS]: {
|
|
242
|
+
clipId: string;
|
|
243
|
+
value: number;
|
|
244
|
+
};
|
|
245
|
+
[UndoActionEnum.CLIP_SHAPE_NR_POINTS]: {
|
|
246
|
+
clipId: string;
|
|
247
|
+
value: number;
|
|
248
|
+
};
|
|
249
|
+
[UndoActionEnum.CLIP_SHAPE_INNER_RADIUS]: {
|
|
250
|
+
clipId: string;
|
|
251
|
+
value: number;
|
|
252
|
+
};
|
|
253
|
+
[UndoActionEnum.CLIP_SHAPE_OUTER_RADIUS]: {
|
|
254
|
+
clipId: string;
|
|
255
|
+
value: number;
|
|
256
|
+
};
|
|
206
257
|
[UndoActionEnum.TRANSITION_ADD]: {
|
|
207
258
|
layerId: string;
|
|
208
259
|
transition: any;
|
|
@@ -9,14 +9,11 @@ export declare enum ClipTypeEnum {
|
|
|
9
9
|
SHAPE = "shape",
|
|
10
10
|
LOTTIE = "lottie",
|
|
11
11
|
SUBTITLES = "subtitles",
|
|
12
|
-
CUSTOM = "custom"
|
|
13
|
-
AV = "av",
|
|
14
|
-
COLOR = "color",
|
|
15
|
-
GRADIENT = "gradient"
|
|
12
|
+
CUSTOM = "custom"
|
|
16
13
|
}
|
|
17
14
|
export declare enum WrapModeEnum {
|
|
18
15
|
CLAMP = "clamp",
|
|
19
16
|
REPEAT = "repeat",
|
|
20
|
-
PING_PONG = "
|
|
17
|
+
PING_PONG = "ping_pong",
|
|
21
18
|
EMPTY = "empty"
|
|
22
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function compareVersions(a: string, b: string): number;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export declare class PerformanceTimer {
|
|
2
2
|
private start;
|
|
3
3
|
private readonly checkpoints;
|
|
4
|
+
private accumulateContainer;
|
|
4
5
|
constructor();
|
|
5
6
|
getDuration(): number;
|
|
6
7
|
getDurationSeconds(): number;
|
|
7
8
|
reset(): number;
|
|
8
9
|
resetSeconds(): number;
|
|
10
|
+
accumulate(samples: number): number;
|
|
11
|
+
accumulateSeconds(samples: number): number;
|
|
9
12
|
checkpoint(name: string): number;
|
|
10
13
|
checkpointSeconds(name: string): number;
|
|
11
14
|
getCheckpoint(name: string): number | undefined;
|