@molecule/app-feature-video-timeline-solid 0.0.0-stage → 1.1.0
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/LICENSE +202 -0
- package/README.md +381 -2
- package/dist/VideoTimeline.d.ts +35 -0
- package/dist/VideoTimeline.d.ts.map +1 -0
- package/dist/VideoTimeline.jsx +385 -0
- package/dist/VideoTimeline.jsx.map +1 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -0
- package/dist/timeline.d.ts +89 -0
- package/dist/timeline.d.ts.map +1 -0
- package/dist/timeline.js +148 -0
- package/dist/timeline.js.map +1 -0
- package/dist/types.d.ts +76 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/package.json +70 -4
package/dist/timeline.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure helpers of the video timeline: the same constants and the same math
|
|
3
|
+
* `@molecule/app-feature-video-timeline-react` exports — the zoom clamping,
|
|
4
|
+
* the Ctrl+wheel zoom step, the ruler tick generation, the ripple-mode
|
|
5
|
+
* fan-out and the tick time formatting.
|
|
6
|
+
*
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
/** Default horizontal scale. */
|
|
10
|
+
export const DEFAULT_PIXELS_PER_SECOND = 20;
|
|
11
|
+
/** Default lower zoom bound. */
|
|
12
|
+
export const DEFAULT_ZOOM_MIN = 2;
|
|
13
|
+
/** Default upper zoom bound. */
|
|
14
|
+
export const DEFAULT_ZOOM_MAX = 200;
|
|
15
|
+
/** Default per-track row height. */
|
|
16
|
+
export const DEFAULT_TRACK_HEIGHT = 44;
|
|
17
|
+
/** Default lane-header column width. */
|
|
18
|
+
export const DEFAULT_LANE_HEADER_WIDTH = 120;
|
|
19
|
+
/** Default ruler height. */
|
|
20
|
+
export const DEFAULT_RULER_HEIGHT = 28;
|
|
21
|
+
/** Multiplier per Ctrl+wheel notch (positive deltaY zooms out). */
|
|
22
|
+
export const ZOOM_WHEEL_FACTOR = 1.1;
|
|
23
|
+
/** Minimum spacing (px) between adjacent ruler ticks. */
|
|
24
|
+
export const MIN_TICK_PIXEL_SPACING = 60;
|
|
25
|
+
/**
|
|
26
|
+
* Clamp a candidate `pixelsPerSecond` value into `[min, max]`. Used by
|
|
27
|
+
* the zoom slider, Ctrl+wheel, and any external zoom button that calls
|
|
28
|
+
* `onZoomChange`.
|
|
29
|
+
*
|
|
30
|
+
* @param value - Candidate horizontal scale in px/sec.
|
|
31
|
+
* @param min - Lower bound (inclusive).
|
|
32
|
+
* @param max - Upper bound (inclusive).
|
|
33
|
+
* @returns The clamped value.
|
|
34
|
+
*/
|
|
35
|
+
export function clampZoom(value, min, max) {
|
|
36
|
+
if (!Number.isFinite(value))
|
|
37
|
+
return min;
|
|
38
|
+
if (value < min)
|
|
39
|
+
return min;
|
|
40
|
+
if (value > max)
|
|
41
|
+
return max;
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Compute the next zoom value for a Ctrl+wheel notch. Negative `deltaY`
|
|
46
|
+
* (scroll-up) zooms in; positive zooms out. Result is clamped into
|
|
47
|
+
* `[min, max]`.
|
|
48
|
+
*
|
|
49
|
+
* @param current - Current `pixelsPerSecond`.
|
|
50
|
+
* @param deltaY - Wheel `deltaY` (sign-only — magnitude is ignored).
|
|
51
|
+
* @param min - Lower zoom bound.
|
|
52
|
+
* @param max - Upper zoom bound.
|
|
53
|
+
* @returns The clamped next zoom value.
|
|
54
|
+
*/
|
|
55
|
+
export function zoomFromWheelDelta(current, deltaY, min, max) {
|
|
56
|
+
if (deltaY === 0)
|
|
57
|
+
return clampZoom(current, min, max);
|
|
58
|
+
const factor = deltaY < 0 ? ZOOM_WHEEL_FACTOR : 1 / ZOOM_WHEEL_FACTOR;
|
|
59
|
+
return clampZoom(current * factor, min, max);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Compute time tick marks for the ruler. Picks an interval (1, 2, 5, 10,
|
|
63
|
+
* 30, or 60 seconds, etc.) so that adjacent ticks are at least
|
|
64
|
+
* `MIN_TICK_PIXEL_SPACING` apart on screen. Always emits a tick at 0 and
|
|
65
|
+
* stops at the last tick `<= duration`.
|
|
66
|
+
*
|
|
67
|
+
* @param duration - Total duration in seconds.
|
|
68
|
+
* @param pixelsPerSecond - Horizontal scale.
|
|
69
|
+
* @returns Tick descriptors with `{ time, pixel }`.
|
|
70
|
+
*/
|
|
71
|
+
export function computeRulerTicks(duration, pixelsPerSecond) {
|
|
72
|
+
if (duration <= 0 || pixelsPerSecond <= 0)
|
|
73
|
+
return [{ time: 0, pixel: 0 }];
|
|
74
|
+
const targetPx = MIN_TICK_PIXEL_SPACING;
|
|
75
|
+
const minSecondsBetween = targetPx / pixelsPerSecond;
|
|
76
|
+
// 1, 2, 5, 10, 15, 30, 60, 120, 300, 600, 1800, 3600
|
|
77
|
+
const candidates = [0.1, 0.2, 0.5, 1, 2, 5, 10, 15, 30, 60, 120, 300, 600, 1800, 3600];
|
|
78
|
+
let interval = candidates[candidates.length - 1];
|
|
79
|
+
for (const c of candidates) {
|
|
80
|
+
if (c >= minSecondsBetween) {
|
|
81
|
+
interval = c;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const ticks = [];
|
|
86
|
+
// Use integer step counter to avoid floating-point drift.
|
|
87
|
+
let step = 0;
|
|
88
|
+
while (true) {
|
|
89
|
+
const time = step * interval;
|
|
90
|
+
if (time > duration + 1e-9)
|
|
91
|
+
break;
|
|
92
|
+
ticks.push({ time, pixel: time * pixelsPerSecond });
|
|
93
|
+
step += 1;
|
|
94
|
+
if (step > 10000)
|
|
95
|
+
break; // hard safety cap
|
|
96
|
+
}
|
|
97
|
+
return ticks;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Compute the ripple-mode update for a clip drag on a single lane.
|
|
101
|
+
* Returns one update per affected clip — at minimum the dragged clip,
|
|
102
|
+
* plus every clip whose original `startTime` is strictly greater (which
|
|
103
|
+
* shifts by the same `delta`).
|
|
104
|
+
*
|
|
105
|
+
* Negative deltas are clamped so no clip's `startTime` goes below 0
|
|
106
|
+
* (the dragged clip is the limiting factor — later clips can never
|
|
107
|
+
* cross zero before it does, since they all started later).
|
|
108
|
+
*
|
|
109
|
+
* @param clips - All clips on the lane (any order).
|
|
110
|
+
* @param draggedClipId - The id of the clip being dragged.
|
|
111
|
+
* @param proposedStartTime - The candidate new `startTime` for the dragged clip.
|
|
112
|
+
* @returns Array of `{ id, startTime }` updates to apply.
|
|
113
|
+
*/
|
|
114
|
+
export function computeRippleUpdates(clips, draggedClipId, proposedStartTime) {
|
|
115
|
+
const dragged = clips.find((c) => c.id === draggedClipId);
|
|
116
|
+
if (!dragged)
|
|
117
|
+
return [];
|
|
118
|
+
const clamped = proposedStartTime < 0 ? 0 : proposedStartTime;
|
|
119
|
+
const delta = clamped - dragged.startTime;
|
|
120
|
+
if (delta === 0) {
|
|
121
|
+
return [{ id: dragged.id, startTime: clamped }];
|
|
122
|
+
}
|
|
123
|
+
const updates = [{ id: dragged.id, startTime: clamped }];
|
|
124
|
+
for (const c of clips) {
|
|
125
|
+
if (c.id === dragged.id)
|
|
126
|
+
continue;
|
|
127
|
+
if (c.startTime > dragged.startTime) {
|
|
128
|
+
const next = c.startTime + delta;
|
|
129
|
+
updates.push({ id: c.id, startTime: next < 0 ? 0 : next });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return updates;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Format a tick time for the ruler — `mm:ss` over a minute, `s.s` below.
|
|
136
|
+
*
|
|
137
|
+
* @param seconds - Time in seconds.
|
|
138
|
+
* @returns Formatted string for the tick label.
|
|
139
|
+
*/
|
|
140
|
+
export function formatTickTime(seconds) {
|
|
141
|
+
if (seconds < 60) {
|
|
142
|
+
return seconds === Math.floor(seconds) ? `${seconds}s` : `${seconds.toFixed(1)}s`;
|
|
143
|
+
}
|
|
144
|
+
const m = Math.floor(seconds / 60);
|
|
145
|
+
const s = Math.floor(seconds - m * 60);
|
|
146
|
+
return `${m}:${s.toString().padStart(2, '0')}`;
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../src/timeline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,gCAAgC;AAChC,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAA;AAE3C,gCAAgC;AAChC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAA;AAEjC,gCAAgC;AAChC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAEnC,oCAAoC;AACpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAEtC,wCAAwC;AACxC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;AAE5C,4BAA4B;AAC5B,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAEtC,mEAAmE;AACnE,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;AAEpC,yDAAyD;AACzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAA;AAExC;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IAC/D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,GAAG,CAAA;IACvC,IAAI,KAAK,GAAG,GAAG;QAAE,OAAO,GAAG,CAAA;IAC3B,IAAI,KAAK,GAAG,GAAG;QAAE,OAAO,GAAG,CAAA;IAC3B,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,kBAAk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AAC,CAAC,SAAS,GAAG,KAAK,CAAA;YAChC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;QAC5D,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,IAAI,OAAO,GAAG,EAAE,EAAE,CAAC;QACjB,OAAO,OAAO,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAA;IACnF,CAAC;IACD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAA;IAClC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IACtC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;AAChD,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types of the Solid video timeline — the same props (React names) and the
|
|
3
|
+
* same DOM for the same input as
|
|
4
|
+
* `@molecule/app-feature-video-timeline-react`.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { Clip } from '@molecule/app-feature-track-lane-solid';
|
|
9
|
+
/**
|
|
10
|
+
* The kind of media a track holds. Drives the lane name fallback,
|
|
11
|
+
* the default clip color, and the data attribute parents can hook
|
|
12
|
+
* onto for kind-specific styling.
|
|
13
|
+
*/
|
|
14
|
+
export type TrackKind = 'video' | 'audio' | 'subtitle';
|
|
15
|
+
/**
|
|
16
|
+
* One track row on a `<VideoTimeline>`. Tracks are rendered in array
|
|
17
|
+
* order top-to-bottom and each track delegates clip rendering to a
|
|
18
|
+
* `<TrackLane>` row.
|
|
19
|
+
*/
|
|
20
|
+
export interface Track {
|
|
21
|
+
/** Stable identifier — used as the row key and lane id passed to handlers. */
|
|
22
|
+
id: string;
|
|
23
|
+
/** The kind of media on this track. */
|
|
24
|
+
kind: TrackKind;
|
|
25
|
+
/** Clips on this track. Order is preserved as-is. */
|
|
26
|
+
clips: Clip[];
|
|
27
|
+
/** Optional human-friendly track name; falls back to a translated kind label. */
|
|
28
|
+
name?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Edit mode applied to clip drags.
|
|
32
|
+
*
|
|
33
|
+
* - `insert` — dragging a clip just drops it at the new position; other clips
|
|
34
|
+
* on the lane stay where they are.
|
|
35
|
+
* - `ripple` — dragging a clip shifts every later clip on the same lane by
|
|
36
|
+
* the same delta, preserving inter-clip gaps.
|
|
37
|
+
*/
|
|
38
|
+
export type VideoTimelineMode = 'ripple' | 'insert';
|
|
39
|
+
/** Props accepted by the {@link VideoTimeline} component — the same props React's accepts. */
|
|
40
|
+
export interface VideoTimelineProps {
|
|
41
|
+
/** Tracks to render. Order is preserved as-is. */
|
|
42
|
+
tracks: Track[];
|
|
43
|
+
/** Current playhead time in seconds. Drives the playhead vertical line. */
|
|
44
|
+
currentTime: number;
|
|
45
|
+
/** Total timeline duration in seconds — used to size the scrollable body. */
|
|
46
|
+
duration: number;
|
|
47
|
+
/** Called when the user clicks/scrubs the ruler. */
|
|
48
|
+
onSeek?: (time: number) => void;
|
|
49
|
+
/** Called when a clip on a lane is dragged horizontally. */
|
|
50
|
+
onClipMove?: (clipId: string, startTime: number, trackId: string) => void;
|
|
51
|
+
/** Called when a clip's right-edge resize handle is dragged. */
|
|
52
|
+
onClipResize?: (clipId: string, duration: number, trackId: string) => void;
|
|
53
|
+
/** Horizontal scale (px per second). Defaults to 20. */
|
|
54
|
+
pixelsPerSecond?: number;
|
|
55
|
+
/** Lower zoom bound for Ctrl+wheel / slider. Defaults to 2. */
|
|
56
|
+
zoomMin?: number;
|
|
57
|
+
/** Upper zoom bound for Ctrl+wheel / slider. Defaults to 200. */
|
|
58
|
+
zoomMax?: number;
|
|
59
|
+
/** Edit mode for clip drags. Defaults to `'ripple'`. */
|
|
60
|
+
mode?: VideoTimelineMode;
|
|
61
|
+
/** Called when the user changes the zoom (slider or Ctrl+wheel). */
|
|
62
|
+
onZoomChange?: (pixelsPerSecond: number) => void;
|
|
63
|
+
/** Optional currently-selected clip id. */
|
|
64
|
+
selectedClipId?: string;
|
|
65
|
+
/** Called when a clip is clicked (no drag). */
|
|
66
|
+
onClipClick?: (clipId: string, trackId: string) => void;
|
|
67
|
+
/** Per-track row height in pixels. Defaults to 44. */
|
|
68
|
+
trackHeight?: number;
|
|
69
|
+
/** Width of the leading lane-header column in pixels. Defaults to 120. */
|
|
70
|
+
laneHeaderWidth?: number;
|
|
71
|
+
/** Height of the time ruler row in pixels. Defaults to 28. */
|
|
72
|
+
rulerHeight?: number;
|
|
73
|
+
/** Extra classes merged onto the root element. */
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAA;AAElE;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAA;AAEtD;;;;GAIG;AACH,MAAM,WAAW,KAAK;IACpB,8EAA8E;IAC9E,EAAE,EAAE,MAAM,CAAA;IACV,uCAAuC;IACvC,IAAI,EAAE,SAAS,CAAA;IACf,qDAAqD;IACrD,K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;IACxB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-feature-video-timeline-solid",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Multi-track video timeline composing track-lane rows with a time ruler, playhead, zoom controls, and ripple/insert edit modes",
|
|
5
|
+
"homepage": "https://www.molecule.dev/packages/app-feature-video-timeline-solid",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"dev": "tsc --watch",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"molecule",
|
|
27
|
+
"feature",
|
|
28
|
+
"video-timeline",
|
|
29
|
+
"timeline",
|
|
30
|
+
"video-editor",
|
|
31
|
+
"multi-track",
|
|
32
|
+
"ripple",
|
|
33
|
+
"playhead",
|
|
34
|
+
"solid"
|
|
35
|
+
],
|
|
36
|
+
"author": "Molecule Dev, Inc. (https://molecule.dev)",
|
|
37
|
+
"license": "Apache-2.0",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/molecule-dev/molecule.git",
|
|
41
|
+
"directory": "packages/app/features/feature-video-timeline-solid"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=20"
|
|
45
|
+
},
|
|
46
|
+
"bugs": "https://github.com/molecule-dev/molecule/issues",
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@molecule/app-feature-track-lane-solid": "^1.0.0",
|
|
52
|
+
"@molecule/app-solid": "^3.5.0",
|
|
53
|
+
"@molecule/app-ui": "^1.0.1",
|
|
54
|
+
"@molecule/app-ui-solid": "^1.1.0",
|
|
55
|
+
"solid-js": "^1.8.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@molecule/app-feature-track-lane-solid": "1.1.0",
|
|
59
|
+
"@molecule/app-framework-conformance": "0.0.0",
|
|
60
|
+
"@molecule/app-i18n": "1.2.2",
|
|
61
|
+
"@molecule/app-icons": "1.0.4",
|
|
62
|
+
"@molecule/app-solid": "3.9.0",
|
|
63
|
+
"@molecule/app-ui": "1.5.0",
|
|
64
|
+
"@molecule/app-ui-solid": "1.2.1",
|
|
65
|
+
"@types/node": "26.6.5",
|
|
66
|
+
"jsdom": "30.1.3",
|
|
67
|
+
"solid-js": "1.9.17",
|
|
68
|
+
"typescript": "6.0.3",
|
|
69
|
+
"vite-plugin-solid": "2.11.15",
|
|
70
|
+
"vitest": "4.1.12"
|
|
71
|
+
}
|
|
72
|
+
}
|