Files
raea/sdk/timeline/package.json
shinyobjectz 53a5cc9ca7 TL0: in progress: sdk/timeline, the timeline's model and every edit as an operation
The package (TypeScript, no React, no DOM): tracks, clips, keys, markers and transitions in whole frames (model.ts);
each edit as a pure operation, refused with its reason or answered with its inverse (ops.ts: move, trim, split,
remove and ripple, delete left and right, duplicate, add, speed and curves, keys and their easing, markers, track
heads, transitions, the magnet, snapping and linkage switches); a keyed property's value at a frame through a cubic
bezier (keys.ts); speed curves with CapCut's presets, their length and source time in closed form (speed.ts); what
an edge snaps to (snap.ts). After each operation the timeline is settled: the main track closed while its magnet is
on, what sits over a main clip carried with it while linkage is on, transitions kept only on cuts that still exist.

34 tests (bun test test) for TL0a, TL0b, TL3c to TL3f, TL4a to TL4c, TL5a, TL5c, TL6a and TL6b's model. Not yet:
reading a timeline from a composition (read.ts) and an operation as code edits (edits.ts), groups and compound
clips, and the app's strip drawing this model.
2026-11-13 14:29:37 -08:00

19 lines
539 B
JSON

{
"name": "@raea/timeline",
"license": "FSL-1.1-ALv2",
"private": true,
"version": "0.1.0",
"description": "raea's timeline (docs/timeline.feature): tracks, clips, keys and markers, and every edit to them as a pure operation with its inverse. No React and no DOM: the app's strip, the host and an agent's script use the same model.",
"type": "module",
"main": "src/index.ts",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"test": "bun test test"
},
"devDependencies": {
"@types/bun": "1.4.3"
}
}