daily-video-editor 0.0.4 → 0.0.5
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/clip-track/types/config.d.ts +11 -4
- package/dist/index.js +3562 -3522
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, FunctionalComponent } from 'vue';
|
|
2
2
|
export interface CustomButton {
|
|
3
|
-
type:
|
|
3
|
+
type: "custom";
|
|
4
4
|
key: string;
|
|
5
5
|
}
|
|
6
6
|
export interface OperationButtonConfig {
|
|
@@ -19,7 +19,7 @@ export interface OperationButtonConfig {
|
|
|
19
19
|
/** 自定义CSS类名 */
|
|
20
20
|
className?: string;
|
|
21
21
|
}
|
|
22
|
-
export type OperationButton =
|
|
22
|
+
export type OperationButton = "reset" | "undo" | "redo" | "split" | "delete" | CustomButton | OperationButtonConfig;
|
|
23
23
|
export interface ScaleConfigButtonConfig {
|
|
24
24
|
/** 按钮标识 */
|
|
25
25
|
key: string;
|
|
@@ -36,7 +36,14 @@ export interface ScaleConfigButtonConfig {
|
|
|
36
36
|
/** 自定义CSS类名 */
|
|
37
37
|
className?: string;
|
|
38
38
|
}
|
|
39
|
-
export type ScaleConfigButton =
|
|
39
|
+
export type ScaleConfigButton = "snap" | CustomButton | ScaleConfigButtonConfig;
|
|
40
|
+
/**
|
|
41
|
+
* {
|
|
42
|
+
video: { max: 5 },
|
|
43
|
+
audio: { max: 3 },
|
|
44
|
+
subtitle: { max: 2 },
|
|
45
|
+
}
|
|
46
|
+
*/
|
|
40
47
|
export interface TrackTypeConfig {
|
|
41
48
|
[key: string]: {
|
|
42
49
|
max: number;
|
|
@@ -82,7 +89,7 @@ export interface TrackContextMenuConfig {
|
|
|
82
89
|
enabled?: boolean;
|
|
83
90
|
}
|
|
84
91
|
export interface ClipContextMenuConfig {
|
|
85
|
-
commonItems?: Array<
|
|
92
|
+
commonItems?: Array<"copy" | "cut" | "delete" | ContextMenuItem>;
|
|
86
93
|
showCommonItems?: boolean;
|
|
87
94
|
byType?: {
|
|
88
95
|
[clipType: string]: ContextMenuItem[];
|