mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
What: two new pure modules with tests: timelineStackingSync (lane order ↔ z-index reconciliation — laneIsAbove, computeStackingPatches) and timelineZones (visual/audio track-zone classification and normalizeToZones, which re-packs lanes into zone-consistent rows). Why: this is "the z-model" — the single source of truth for how timeline lane order maps to canvas stacking. Reviewing it standalone is the point: the ordering rules and tie-breaks live here, not in the drag gesture that later calls it. How: new files only. timelineZones consumes isAudioTimelineElement from studio-dnd/pr01 and computeStackingPatches from this PR; type-only imports from the existing playerStore. No runtime consumer until the integration PR. Test plan: bunx vitest run on both test files (including the stacking/zones interaction cases); tsc --noEmit in packages/studio; fallow audit --base origin/main clean.