@linker-design-plus/timeline-track 2.0.23 → 2.0.24
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.
|
@@ -26,6 +26,8 @@ export interface TimelinePreviewBackendCallbacks {
|
|
|
26
26
|
onTextRotationCommit?: (clipId: string, rotation: number) => void;
|
|
27
27
|
onPendingPreviewRetry?: () => void;
|
|
28
28
|
onRuntimeError?: (error: unknown) => void;
|
|
29
|
+
/** 预览层文字交互(点击字幕或文字变换控件)时若时间线处于播放中,用于请求暂停 */
|
|
30
|
+
onPauseIfPlaying?: () => void;
|
|
29
31
|
}
|
|
30
32
|
export interface PreviewPendingState {
|
|
31
33
|
mode: 'seek' | 'scrub';
|
|
@@ -17,6 +17,8 @@ interface PreviewTransformOverlayCallbacks {
|
|
|
17
17
|
onFontSizeCommit?: (clipId: string, fontSize: number) => void;
|
|
18
18
|
onRotationChange?: (clipId: string, rotation: number | null) => void;
|
|
19
19
|
onRotationCommit?: (clipId: string, rotation: number) => void;
|
|
20
|
+
/** 文字片段预览变换框上开始拖拽/缩放/旋转(播放中时应暂停) */
|
|
21
|
+
onTextTransformInteractionStart?: () => void;
|
|
20
22
|
}
|
|
21
23
|
export declare class PreviewTransformOverlay {
|
|
22
24
|
private frameElement;
|
|
@@ -14,6 +14,7 @@ interface TimelinePreviewSessionCallbacks {
|
|
|
14
14
|
onTextFontSizeCommit?: (clipId: string, fontSize: number) => void;
|
|
15
15
|
onTextRotationCommit?: (clipId: string, rotation: number) => void;
|
|
16
16
|
onPendingPreviewRetry?: () => void;
|
|
17
|
+
onPauseIfPlaying?: () => void;
|
|
17
18
|
}
|
|
18
19
|
interface TimelinePreviewSessionDependencies {
|
|
19
20
|
createMediaElement?: (kind: TrackType, role: 'current' | 'preload') => HTMLMediaElement;
|
|
@@ -86,7 +87,9 @@ export declare class TimelinePreviewSession {
|
|
|
86
87
|
private isSyncProjecting;
|
|
87
88
|
private readonly deferredPreloadSlotKeys;
|
|
88
89
|
private deferredPreloadFlushScheduled;
|
|
90
|
+
private lastSyncedPlayState;
|
|
89
91
|
constructor(callbacks?: TimelinePreviewSessionCallbacks, dependencies?: TimelinePreviewSessionDependencies);
|
|
92
|
+
private requestPauseIfPlaying;
|
|
90
93
|
private emitDiagnostic;
|
|
91
94
|
private buildSlotTraceData;
|
|
92
95
|
hasPreview(): boolean;
|