@linker-design-plus/timeline-track 2.0.0 → 2.0.2
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 +23 -3
- package/dist/components/timeline/ManagedPlayhead.d.ts +2 -1
- package/dist/components/timeline/TimelineHeaderView.d.ts +1 -1
- package/dist/core/models/types.d.ts +3 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +504 -421
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Clip } from '../../core/models';
|
|
1
|
+
import type { Clip } from '../../core/models';
|
|
2
2
|
export interface ClipConfigPanelTheme {
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
borderColor: string;
|
|
@@ -25,24 +25,44 @@ export declare class ClipConfigPanel {
|
|
|
25
25
|
private theme;
|
|
26
26
|
private onClipUpdate?;
|
|
27
27
|
private currentClip;
|
|
28
|
+
private activeTab;
|
|
29
|
+
private tabBar;
|
|
30
|
+
private contentArea;
|
|
31
|
+
private visualPanel;
|
|
32
|
+
private audioPanel;
|
|
28
33
|
private xSlider;
|
|
29
34
|
private xInput;
|
|
30
35
|
private ySlider;
|
|
31
36
|
private yInput;
|
|
32
37
|
private scaleSlider;
|
|
33
38
|
private scaleInput;
|
|
39
|
+
private volumeSlider;
|
|
40
|
+
private volumeInput;
|
|
34
41
|
constructor(config: ClipConfigPanelConfig);
|
|
35
42
|
setClip(clip: Clip | null): void;
|
|
36
43
|
destroy(): void;
|
|
44
|
+
private getAvailableTabs;
|
|
37
45
|
private render;
|
|
46
|
+
private applyBaseTheme;
|
|
38
47
|
private renderEmptyState;
|
|
39
|
-
private
|
|
48
|
+
private renderPanel;
|
|
49
|
+
private renderTabBar;
|
|
50
|
+
private updateTabBarState;
|
|
51
|
+
private renderContentArea;
|
|
52
|
+
private updateContentVisibility;
|
|
53
|
+
private renderVisualPanel;
|
|
54
|
+
private renderAudioPanel;
|
|
55
|
+
private renderActionBar;
|
|
40
56
|
private renderPositionControl;
|
|
41
57
|
private renderPresetGrid;
|
|
58
|
+
private calculatePresetPosition;
|
|
42
59
|
private renderScaleControl;
|
|
60
|
+
private renderVolumeControl;
|
|
61
|
+
private handleVolumeChange;
|
|
62
|
+
private updateVolumeControls;
|
|
43
63
|
private clampValue;
|
|
44
64
|
private updateUIControls;
|
|
65
|
+
private updateSliderAndInput;
|
|
45
66
|
private handleTransformChange;
|
|
46
67
|
private handleTransformChanges;
|
|
47
|
-
private applyTheme;
|
|
48
68
|
}
|
|
@@ -14,7 +14,7 @@ export declare class ManagedPlayhead {
|
|
|
14
14
|
private handleGlobalPointerMove;
|
|
15
15
|
private handleGlobalPointerEnd;
|
|
16
16
|
private handleVisibilityChange;
|
|
17
|
-
constructor(container: HTMLElement, initialTime: TimeMs, zoom: number, height: number, theme: Theme, onTimeChange: (time: TimeMs) => void);
|
|
17
|
+
constructor(container: HTMLElement, initialTime: TimeMs, zoom: number, height: number, theme: Theme, onTimeChange: (time: TimeMs, mode?: 'seek' | 'scrub') => void);
|
|
18
18
|
setCurrentTime(time: TimeMs): void;
|
|
19
19
|
setTime(time: TimeMs): void;
|
|
20
20
|
setZoom(zoom: number): void;
|
|
@@ -22,6 +22,7 @@ export declare class ManagedPlayhead {
|
|
|
22
22
|
setHeight(height: number): void;
|
|
23
23
|
destroy(): void;
|
|
24
24
|
private handleMouseDown;
|
|
25
|
+
private handleHandleClick;
|
|
25
26
|
private bindGlobalPointerListeners;
|
|
26
27
|
private unbindGlobalPointerListeners;
|
|
27
28
|
private updateTimeFromClientX;
|
|
@@ -17,7 +17,7 @@ export declare class TimelineHeaderView {
|
|
|
17
17
|
private handleGlobalPointerMove;
|
|
18
18
|
private handleGlobalPointerEnd;
|
|
19
19
|
private handleVisibilityChange;
|
|
20
|
-
constructor(stage: Konva.Stage, layer: Konva.Layer, config: Partial<TimelineConfig>, onTimeChange: (time: TimeMs) => void, onScrollChange: (scrollLeft: number) => void);
|
|
20
|
+
constructor(stage: Konva.Stage, layer: Konva.Layer, config: Partial<TimelineConfig>, onTimeChange: (time: TimeMs, mode?: 'seek' | 'scrub') => void, onScrollChange: (scrollLeft: number) => void);
|
|
21
21
|
setCurrentTime(_time: TimeMs): void;
|
|
22
22
|
setZoom(zoom: number): void;
|
|
23
23
|
setDuration(duration: TimeMs): void;
|
|
@@ -51,6 +51,7 @@ export interface ClipConfig {
|
|
|
51
51
|
separatedAudioClipId?: string;
|
|
52
52
|
separatedFromVideoClipId?: string;
|
|
53
53
|
trackId?: string;
|
|
54
|
+
volume?: number;
|
|
54
55
|
}
|
|
55
56
|
export interface ClipEntity {
|
|
56
57
|
id: string;
|
|
@@ -70,6 +71,7 @@ export interface ClipEntity {
|
|
|
70
71
|
visualTransform?: ClipVisualTransform;
|
|
71
72
|
separatedAudioClipId?: string;
|
|
72
73
|
separatedFromVideoClipId?: string;
|
|
74
|
+
volume?: number;
|
|
73
75
|
}
|
|
74
76
|
export interface ClipViewState {
|
|
75
77
|
isDragging: boolean;
|
|
@@ -397,4 +399,5 @@ export interface ClipExportData {
|
|
|
397
399
|
visualTransform?: ClipVisualTransform;
|
|
398
400
|
separatedAudioClipId?: string;
|
|
399
401
|
separatedFromVideoClipId?: string;
|
|
402
|
+
volume?: number;
|
|
400
403
|
}
|