daily-video-editor 0.1.5 → 0.1.6
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/components/index.vue.d.ts +9 -0
- package/dist/clip-track/composables/useKeyboard.d.ts +4 -0
- package/dist/clip-track/stores/history.d.ts +10 -1
- package/dist/editor/VideoComposeEditor.vue.d.ts +14 -2
- package/dist/editor/session/useComposeEditorSession.d.ts +14 -2
- package/dist/editor/timeline/VideoComposeTimeline.vue.d.ts +14 -2
- package/dist/index.js +10030 -9957
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1299,6 +1299,12 @@ declare function getHistoryState(): {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
declare function undo(): void;
|
|
1301
1301
|
declare function redo(): void;
|
|
1302
|
+
/** 开始合并历史:其间 add/update/remove 的 pushSnapshot 不入栈 */
|
|
1303
|
+
declare function beginHistoryBatch(description?: string): void;
|
|
1304
|
+
/** 结束合并并提交一条快照 */
|
|
1305
|
+
declare function endHistoryBatch(description?: string): void;
|
|
1306
|
+
/** 回调内不写历史(空轨清理等) */
|
|
1307
|
+
declare function runWithoutHistory(fn: () => void): void;
|
|
1302
1308
|
declare function __VLS_template(): {
|
|
1303
1309
|
attrs: Partial<{}>;
|
|
1304
1310
|
slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
@@ -1743,6 +1749,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
1743
1749
|
undo: typeof undo;
|
|
1744
1750
|
redo: typeof redo;
|
|
1745
1751
|
getHistoryState: typeof getHistoryState;
|
|
1752
|
+
beginHistoryBatch: typeof beginHistoryBatch;
|
|
1753
|
+
endHistoryBatch: typeof endHistoryBatch;
|
|
1754
|
+
runWithoutHistory: typeof runWithoutHistory;
|
|
1746
1755
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1747
1756
|
scroll: (left: number) => any;
|
|
1748
1757
|
"playback:play": () => any;
|
|
@@ -7,6 +7,10 @@ interface KeyboardCallbacks {
|
|
|
7
7
|
onPaste?: (clips: any[], trackId: string, time: number) => void;
|
|
8
8
|
onPlay?: () => void;
|
|
9
9
|
onPause?: () => void;
|
|
10
|
+
/** 撤销后回调(用于向外同步 history:changed) */
|
|
11
|
+
onUndo?: () => void;
|
|
12
|
+
/** 重做后回调 */
|
|
13
|
+
onRedo?: () => void;
|
|
10
14
|
}
|
|
11
15
|
interface UseKeyboardOptions {
|
|
12
16
|
containerRef?: Ref<HTMLElement | undefined>;
|
|
@@ -17,6 +17,9 @@ export declare const useHistoryStore: import('pinia').StoreDefinition<"history",
|
|
|
17
17
|
canRedo: import('vue').ComputedRef<boolean>;
|
|
18
18
|
createSnapshot: (description?: string) => HistoryItem;
|
|
19
19
|
pushSnapshot: (description?: string) => void;
|
|
20
|
+
beginHistoryBatch: (description?: string) => void;
|
|
21
|
+
endHistoryBatch: (description?: string) => void;
|
|
22
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
20
23
|
restoreSnapshot: (snapshot: HistoryItem) => void;
|
|
21
24
|
undo: () => void;
|
|
22
25
|
redo: () => void;
|
|
@@ -41,6 +44,9 @@ export declare const useHistoryStore: import('pinia').StoreDefinition<"history",
|
|
|
41
44
|
canRedo: import('vue').ComputedRef<boolean>;
|
|
42
45
|
createSnapshot: (description?: string) => HistoryItem;
|
|
43
46
|
pushSnapshot: (description?: string) => void;
|
|
47
|
+
beginHistoryBatch: (description?: string) => void;
|
|
48
|
+
endHistoryBatch: (description?: string) => void;
|
|
49
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
44
50
|
restoreSnapshot: (snapshot: HistoryItem) => void;
|
|
45
51
|
undo: () => void;
|
|
46
52
|
redo: () => void;
|
|
@@ -65,10 +71,13 @@ export declare const useHistoryStore: import('pinia').StoreDefinition<"history",
|
|
|
65
71
|
canRedo: import('vue').ComputedRef<boolean>;
|
|
66
72
|
createSnapshot: (description?: string) => HistoryItem;
|
|
67
73
|
pushSnapshot: (description?: string) => void;
|
|
74
|
+
beginHistoryBatch: (description?: string) => void;
|
|
75
|
+
endHistoryBatch: (description?: string) => void;
|
|
76
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
68
77
|
restoreSnapshot: (snapshot: HistoryItem) => void;
|
|
69
78
|
undo: () => void;
|
|
70
79
|
redo: () => void;
|
|
71
80
|
initialize: () => void;
|
|
72
81
|
clear: () => void;
|
|
73
82
|
reset: () => void;
|
|
74
|
-
}, "reset" | "undo" | "redo" | "clear" | "createSnapshot" | "pushSnapshot" | "restoreSnapshot" | "initialize">>;
|
|
83
|
+
}, "reset" | "undo" | "redo" | "clear" | "createSnapshot" | "pushSnapshot" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "restoreSnapshot" | "initialize">>;
|
|
@@ -1940,6 +1940,9 @@ declare function __VLS_template(): {
|
|
|
1940
1940
|
canUndo: boolean;
|
|
1941
1941
|
canRedo: boolean;
|
|
1942
1942
|
};
|
|
1943
|
+
beginHistoryBatch: (description?: string) => void;
|
|
1944
|
+
endHistoryBatch: (description?: string) => void;
|
|
1945
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
1943
1946
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1944
1947
|
scroll: (left: number) => any;
|
|
1945
1948
|
"playback:play": () => any;
|
|
@@ -2084,7 +2087,7 @@ declare function __VLS_template(): {
|
|
|
2084
2087
|
onTrackContextMenuSelect?: ((key: string, track: import('../clip-track').Track, time: number) => any) | undefined;
|
|
2085
2088
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
2086
2089
|
"onData:changed"?: (() => any) | undefined;
|
|
2087
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2090
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2088
2091
|
reset: () => void;
|
|
2089
2092
|
registerClipType: (type: string, config: any) => void;
|
|
2090
2093
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -3344,6 +3347,9 @@ declare function __VLS_template(): {
|
|
|
3344
3347
|
canUndo: boolean;
|
|
3345
3348
|
canRedo: boolean;
|
|
3346
3349
|
};
|
|
3350
|
+
beginHistoryBatch: (description?: string) => void;
|
|
3351
|
+
endHistoryBatch: (description?: string) => void;
|
|
3352
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
3347
3353
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
3348
3354
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
3349
3355
|
'toolbar-before'?(_: {}): any;
|
|
@@ -6177,6 +6183,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6177
6183
|
canUndo: boolean;
|
|
6178
6184
|
canRedo: boolean;
|
|
6179
6185
|
};
|
|
6186
|
+
beginHistoryBatch: (description?: string) => void;
|
|
6187
|
+
endHistoryBatch: (description?: string) => void;
|
|
6188
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
6180
6189
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6181
6190
|
scroll: (left: number) => any;
|
|
6182
6191
|
"playback:play": () => any;
|
|
@@ -6321,7 +6330,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6321
6330
|
onTrackContextMenuSelect?: ((key: string, track: import('../clip-track').Track, time: number) => any) | undefined;
|
|
6322
6331
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
6323
6332
|
"onData:changed"?: (() => any) | undefined;
|
|
6324
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
6333
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
6325
6334
|
reset: () => void;
|
|
6326
6335
|
registerClipType: (type: string, config: any) => void;
|
|
6327
6336
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -7581,6 +7590,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
7581
7590
|
canUndo: boolean;
|
|
7582
7591
|
canRedo: boolean;
|
|
7583
7592
|
};
|
|
7593
|
+
beginHistoryBatch: (description?: string) => void;
|
|
7594
|
+
endHistoryBatch: (description?: string) => void;
|
|
7595
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
7584
7596
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
7585
7597
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
7586
7598
|
'toolbar-before'?(_: {}): any;
|
|
@@ -2424,6 +2424,9 @@ export declare function useComposeEditorSession(props: ComposeEditorProps, emit:
|
|
|
2424
2424
|
canUndo: boolean;
|
|
2425
2425
|
canRedo: boolean;
|
|
2426
2426
|
};
|
|
2427
|
+
beginHistoryBatch: (description?: string) => void;
|
|
2428
|
+
endHistoryBatch: (description?: string) => void;
|
|
2429
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
2427
2430
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2428
2431
|
scroll: (left: number) => any;
|
|
2429
2432
|
"playback:play": () => any;
|
|
@@ -2568,7 +2571,7 @@ export declare function useComposeEditorSession(props: ComposeEditorProps, emit:
|
|
|
2568
2571
|
onTrackContextMenuSelect?: ((key: string, track: import('../../clip-track').Track, time: number) => any) | undefined;
|
|
2569
2572
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
2570
2573
|
"onData:changed"?: (() => any) | undefined;
|
|
2571
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2574
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2572
2575
|
reset: () => void;
|
|
2573
2576
|
registerClipType: (type: string, config: any) => void;
|
|
2574
2577
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -3828,6 +3831,9 @@ export declare function useComposeEditorSession(props: ComposeEditorProps, emit:
|
|
|
3828
3831
|
canUndo: boolean;
|
|
3829
3832
|
canRedo: boolean;
|
|
3830
3833
|
};
|
|
3834
|
+
beginHistoryBatch: (description?: string) => void;
|
|
3835
|
+
endHistoryBatch: (description?: string) => void;
|
|
3836
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
3831
3837
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
3832
3838
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
3833
3839
|
'toolbar-before'?(_: {}): any;
|
|
@@ -6217,6 +6223,9 @@ export declare function useComposeEditorSession(props: ComposeEditorProps, emit:
|
|
|
6217
6223
|
canUndo: boolean;
|
|
6218
6224
|
canRedo: boolean;
|
|
6219
6225
|
};
|
|
6226
|
+
beginHistoryBatch: (description?: string) => void;
|
|
6227
|
+
endHistoryBatch: (description?: string) => void;
|
|
6228
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
6220
6229
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6221
6230
|
scroll: (left: number) => any;
|
|
6222
6231
|
"playback:play": () => any;
|
|
@@ -6361,7 +6370,7 @@ export declare function useComposeEditorSession(props: ComposeEditorProps, emit:
|
|
|
6361
6370
|
onTrackContextMenuSelect?: ((key: string, track: import('../../clip-track').Track, time: number) => any) | undefined;
|
|
6362
6371
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
6363
6372
|
"onData:changed"?: (() => any) | undefined;
|
|
6364
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
6373
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
6365
6374
|
reset: () => void;
|
|
6366
6375
|
registerClipType: (type: string, config: any) => void;
|
|
6367
6376
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -7621,6 +7630,9 @@ export declare function useComposeEditorSession(props: ComposeEditorProps, emit:
|
|
|
7621
7630
|
canUndo: boolean;
|
|
7622
7631
|
canRedo: boolean;
|
|
7623
7632
|
};
|
|
7633
|
+
beginHistoryBatch: (description?: string) => void;
|
|
7634
|
+
endHistoryBatch: (description?: string) => void;
|
|
7635
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
7624
7636
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
7625
7637
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
7626
7638
|
'toolbar-before'?(_: {}): any;
|
|
@@ -1903,6 +1903,9 @@ declare function __VLS_template(): {
|
|
|
1903
1903
|
canUndo: boolean;
|
|
1904
1904
|
canRedo: boolean;
|
|
1905
1905
|
};
|
|
1906
|
+
beginHistoryBatch: (description?: string) => void;
|
|
1907
|
+
endHistoryBatch: (description?: string) => void;
|
|
1908
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
1906
1909
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1907
1910
|
scroll: (left: number) => any;
|
|
1908
1911
|
"playback:play": () => any;
|
|
@@ -2047,7 +2050,7 @@ declare function __VLS_template(): {
|
|
|
2047
2050
|
onTrackContextMenuSelect?: ((key: string, track: Track, time: number) => any) | undefined;
|
|
2048
2051
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
2049
2052
|
"onData:changed"?: (() => any) | undefined;
|
|
2050
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2053
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2051
2054
|
reset: () => void;
|
|
2052
2055
|
registerClipType: (type: string, config: any) => void;
|
|
2053
2056
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -3307,6 +3310,9 @@ declare function __VLS_template(): {
|
|
|
3307
3310
|
canUndo: boolean;
|
|
3308
3311
|
canRedo: boolean;
|
|
3309
3312
|
};
|
|
3313
|
+
beginHistoryBatch: (description?: string) => void;
|
|
3314
|
+
endHistoryBatch: (description?: string) => void;
|
|
3315
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
3310
3316
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
3311
3317
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
3312
3318
|
'toolbar-before'?(_: {}): any;
|
|
@@ -5183,6 +5189,9 @@ declare const __VLS_component: import('vue').DefineComponent<VideoComposeTimelin
|
|
|
5183
5189
|
canUndo: boolean;
|
|
5184
5190
|
canRedo: boolean;
|
|
5185
5191
|
};
|
|
5192
|
+
beginHistoryBatch: (description?: string) => void;
|
|
5193
|
+
endHistoryBatch: (description?: string) => void;
|
|
5194
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
5186
5195
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5187
5196
|
scroll: (left: number) => any;
|
|
5188
5197
|
"playback:play": () => any;
|
|
@@ -5327,7 +5336,7 @@ declare const __VLS_component: import('vue').DefineComponent<VideoComposeTimelin
|
|
|
5327
5336
|
onTrackContextMenuSelect?: ((key: string, track: Track, time: number) => any) | undefined;
|
|
5328
5337
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
5329
5338
|
"onData:changed"?: (() => any) | undefined;
|
|
5330
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
5339
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "beginHistoryBatch" | "endHistoryBatch" | "runWithoutHistory" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
5331
5340
|
reset: () => void;
|
|
5332
5341
|
registerClipType: (type: string, config: any) => void;
|
|
5333
5342
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -6587,6 +6596,9 @@ declare const __VLS_component: import('vue').DefineComponent<VideoComposeTimelin
|
|
|
6587
6596
|
canUndo: boolean;
|
|
6588
6597
|
canRedo: boolean;
|
|
6589
6598
|
};
|
|
6599
|
+
beginHistoryBatch: (description?: string) => void;
|
|
6600
|
+
endHistoryBatch: (description?: string) => void;
|
|
6601
|
+
runWithoutHistory: (fn: () => void) => void;
|
|
6590
6602
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
6591
6603
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
6592
6604
|
'toolbar-before'?(_: {}): any;
|