mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 14:27:26 +00:00
Several clips can share a track row. The row was named after whichever of them was selected, carried its clip count as a badge, and listed only that clip's envelopes — so a lane belonging to one slice read as governing the whole row, and clicking a sibling silently swapped which envelopes existed. A lane is a property over time, not a clip's private strip. Clips on one row now share a lane row when it is the same property of the same effect, keyed by `laneGroupKey` (the label, which is what identifies a parameter to a reader — node ids are minted per chain and collide across clips). Each clip draws its own envelope over its own span, and a clip that does not automate the property leaves that stretch empty rather than drawing a flat line that would claim an envelope exists. Gestures stay per clip: every clip keeps its own binding, its own useAutomationLaneGestures and its own selection box. A shared row is a shared lane track, not a shared envelope, so two clips' curves can never drag as one thing. That is why the slot loops over components rather than over lanes. Row height and the label column follow the grouped count, and the header names the track once the row holds several clips. Disclosure had the same selection-dependence: it was stored against the active clip, so expanding one slice and clicking another collapsed the row. The caret now opens and closes every clip on the row together, and any expanded clip holds it open. The remove button acts only on the clip the header is showing, since that is the only one a write can reach; a row that clip is absent from offers none. Effects stay on the CLIP. There is no track entity to own a chain — data-track-index is parsed in one place, only to choose a row, and both runtimes build audio per element.