The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
import { useMemo } from "react";
import {
buildTimelineLogicalRows,
type BuildTimelineLogicalRowsInput,
} from "./timelineKeyboardNavigation";
type TimelineLogicalRowsInput = BuildTimelineLogicalRowsInput;
/** Shared by rendering and focus coordination; stable input refs preserve memo identity. */
export function useTimelineLogicalRows({
tracks,
displayTrackOrder,
laneCounts,
selectedElementId,
selectedElementIds,
expandedClipIds,
collapsedGroupIds,
expandedLaneOwnerIds,
groups,
trackGroupOf,
gsapAnimations,
}: TimelineLogicalRowsInput) {
return useMemo(
() =>
buildTimelineLogicalRows({
tracks,
displayTrackOrder,
laneCounts,
selectedElementId,
selectedElementIds,
expandedClipIds,
collapsedGroupIds,
expandedLaneOwnerIds,
groups,
trackGroupOf,
gsapAnimations,
}),
[
displayTrackOrder,
expandedClipIds,
collapsedGroupIds,
expandedLaneOwnerIds,
groups,
trackGroupOf,
gsapAnimations,
laneCounts,
selectedElementId,
selectedElementIds,
tracks,
],
);
}