@linker-design-plus/timeline-track 2.0.3 → 2.0.4
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.
|
@@ -112,6 +112,7 @@ export declare class Track {
|
|
|
112
112
|
updateSelectionVisual(selectedClipId: string | null): void;
|
|
113
113
|
selectClip(clipId: string): void;
|
|
114
114
|
private applySelectionVisual;
|
|
115
|
+
private syncSelectionState;
|
|
115
116
|
splitSelectedClip(time: TimeMs): void;
|
|
116
117
|
removeClipGaps(): void;
|
|
117
118
|
getTrackGroup(): Konva.Group;
|
|
@@ -8,6 +8,7 @@ interface SyncTrackDurationChangeOptions {
|
|
|
8
8
|
setTimelineDuration: (duration: TimeMs) => void;
|
|
9
9
|
emitTrackDurationChange: (duration: TimeMs) => void;
|
|
10
10
|
}
|
|
11
|
+
export declare function calculateTrackTimelineExtent(clips: Pick<Clip, 'startTime' | 'duration'>[]): TimeMs;
|
|
11
12
|
export declare function calculateTrackTotalDuration(clips: Pick<Clip, 'startTime' | 'duration'>[]): TimeMs;
|
|
12
13
|
export declare function calculateTimelineDuration(trackDuration: TimeMs): TimeMs;
|
|
13
14
|
export declare function syncTrackDurationChange(options: SyncTrackDurationChangeOptions): TimeMs;
|
|
@@ -37,6 +37,7 @@ export declare class TimelineManager {
|
|
|
37
37
|
private verticalScrollbar;
|
|
38
38
|
private isExecutingHistoryAction;
|
|
39
39
|
private lastTrackDuration;
|
|
40
|
+
private lastEffectiveTrackDuration;
|
|
40
41
|
private thumbnailProvider;
|
|
41
42
|
private canPlay;
|
|
42
43
|
private sourceLoadingCount;
|
|
@@ -318,6 +319,7 @@ export declare class TimelineManager {
|
|
|
318
319
|
* @param clipId 目标片段的 ID
|
|
319
320
|
*/
|
|
320
321
|
private notifySelectionChange;
|
|
322
|
+
private syncPrimarySelectionFromSelectionStore;
|
|
321
323
|
selectClip(clipId: string, clip?: any): void;
|
|
322
324
|
/**
|
|
323
325
|
* 清空所有轨道的选中状态
|
|
@@ -378,6 +380,7 @@ export declare class TimelineManager {
|
|
|
378
380
|
removeSelectedClips(): boolean;
|
|
379
381
|
canSeparateClipAudio(clipId: string): boolean;
|
|
380
382
|
canRestoreClipAudio(clipId: string): boolean;
|
|
383
|
+
private resolvePreferredSeparatedAudioTrackId;
|
|
381
384
|
separateClipAudio(clipId: string): Promise<string | null>;
|
|
382
385
|
restoreClipAudio(clipId: string): boolean;
|
|
383
386
|
private applySelectedClipAudioAction;
|
|
@@ -390,8 +393,8 @@ export declare class TimelineManager {
|
|
|
390
393
|
moveClipToTrack(clipId: string, targetTrackId: string): boolean;
|
|
391
394
|
private moveClipToTrackWithHistorySnapshot;
|
|
392
395
|
/**
|
|
393
|
-
*
|
|
394
|
-
* @returns
|
|
396
|
+
* 获取轨道内的有效总时长(去除首尾空白)
|
|
397
|
+
* @returns 最早 clip 起点到最晚 clip 终点的时长(毫秒)
|
|
395
398
|
*/
|
|
396
399
|
getTrackTotalDuration(): TimeMs;
|
|
397
400
|
destroy(): void;
|