@linker-design-plus/timeline-track 1.0.11 → 2.0.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/dist/components/panel/ClipConfigPanel.d.ts +2 -0
- package/dist/core/controllers/timelineClipConfigController.d.ts +2 -0
- package/dist/core/facade/timelineManager.d.ts +3 -0
- package/dist/core/models/types.d.ts +9 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +681 -566
- package/package.json +4 -3
|
@@ -39,9 +39,11 @@ export declare class ClipConfigPanel {
|
|
|
39
39
|
private renderConfigPanel;
|
|
40
40
|
private renderPositionControl;
|
|
41
41
|
private renderPresetGrid;
|
|
42
|
+
private calculatePresetPosition;
|
|
42
43
|
private renderScaleControl;
|
|
43
44
|
private clampValue;
|
|
44
45
|
private updateUIControls;
|
|
46
|
+
private updateSliderAndInput;
|
|
45
47
|
private handleTransformChange;
|
|
46
48
|
private handleTransformChanges;
|
|
47
49
|
private applyTheme;
|
|
@@ -8,8 +8,10 @@ export interface TimelineClipConfigControllerConfig {
|
|
|
8
8
|
export declare class TimelineClipConfigController {
|
|
9
9
|
private panel;
|
|
10
10
|
private config;
|
|
11
|
+
private isInternalUpdate;
|
|
11
12
|
init(config: TimelineClipConfigControllerConfig): void;
|
|
12
13
|
update(): void;
|
|
14
|
+
updateFromExternal(): void;
|
|
13
15
|
destroy(): void;
|
|
14
16
|
private convertTheme;
|
|
15
17
|
}
|
|
@@ -56,6 +56,7 @@ export declare class TimelineManager {
|
|
|
56
56
|
private readonly bodyCanvasHostClickListener;
|
|
57
57
|
private readonly rootWheelListener;
|
|
58
58
|
private mountManager;
|
|
59
|
+
private pendingDraftData;
|
|
59
60
|
constructor(config?: Partial<TimelineConfig>);
|
|
60
61
|
private getTimelineStore;
|
|
61
62
|
private getTimelineCommands;
|
|
@@ -242,6 +243,7 @@ export declare class TimelineManager {
|
|
|
242
243
|
getClips(): Clip[];
|
|
243
244
|
private getExportComposition;
|
|
244
245
|
exportTimeline(): TimelineExportData;
|
|
246
|
+
importTimeline(data: TimelineExportData): Promise<void>;
|
|
245
247
|
getClipsData(): Clip[];
|
|
246
248
|
/**
|
|
247
249
|
* 获取插件版本号
|
|
@@ -379,4 +381,5 @@ export declare class TimelineManager {
|
|
|
379
381
|
private checkTrackDurationChange;
|
|
380
382
|
private resolveSelectedClipSnapshot;
|
|
381
383
|
private commitPreviewVisualTransform;
|
|
384
|
+
clearAllTracksAndClips(): void;
|
|
382
385
|
}
|
|
@@ -50,6 +50,7 @@ export interface ClipConfig {
|
|
|
50
50
|
visualTransform?: ClipVisualTransform;
|
|
51
51
|
separatedAudioClipId?: string;
|
|
52
52
|
separatedFromVideoClipId?: string;
|
|
53
|
+
trackId?: string;
|
|
53
54
|
}
|
|
54
55
|
export interface ClipEntity {
|
|
55
56
|
id: string;
|
|
@@ -151,6 +152,7 @@ export interface TimelineConfig {
|
|
|
151
152
|
thumbnailProvider?: ThumbnailProvider;
|
|
152
153
|
previewBackend?: PreviewBackendType;
|
|
153
154
|
previewSourceResolver?: PreviewSourceResolver;
|
|
155
|
+
draftData?: TimelineExportData;
|
|
154
156
|
}
|
|
155
157
|
export type PreviewAspectRatioMode = 'auto-first-added-video' | 'auto-first-video' | 'manual';
|
|
156
158
|
export interface PreviewAspectRatio {
|
|
@@ -309,7 +311,7 @@ export interface HistoryState {
|
|
|
309
311
|
past: Action[];
|
|
310
312
|
future: Action[];
|
|
311
313
|
}
|
|
312
|
-
export type TimelineEvent = 'time_change' | 'play_state_change' | 'clip_added' | 'clip_removed' | 'clip_updated' | 'zoom_change' | 'history_change' | 'track_duration_change' | 'clip_selected' | 'selected_clip_change' | 'speed_change' | 'can_play_change' | 'buffering_state_change' | 'source_loading_change' | 'preview_aspect_ratio_change';
|
|
314
|
+
export type TimelineEvent = 'time_change' | 'play_state_change' | 'clip_added' | 'clip_removed' | 'clip_updated' | 'zoom_change' | 'history_change' | 'track_duration_change' | 'clip_selected' | 'selected_clip_change' | 'speed_change' | 'can_play_change' | 'buffering_state_change' | 'source_loading_change' | 'preview_aspect_ratio_change' | 'draft_loaded';
|
|
313
315
|
export interface TimeChangeData {
|
|
314
316
|
time: TimeMs;
|
|
315
317
|
}
|
|
@@ -342,6 +344,12 @@ export interface SourceLoadingChangeData {
|
|
|
342
344
|
export interface PreviewAspectRatioChangeData {
|
|
343
345
|
aspectRatio: PreviewAspectRatio;
|
|
344
346
|
}
|
|
347
|
+
export interface DraftLoadedData {
|
|
348
|
+
errors: Array<{
|
|
349
|
+
clipId: string;
|
|
350
|
+
error: unknown;
|
|
351
|
+
}>;
|
|
352
|
+
}
|
|
345
353
|
export interface EventListener {
|
|
346
354
|
(event: TimelineEvent, data?: any): void;
|
|
347
355
|
}
|