Skip to content

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.

804 B
Raw Blame
import { TimelineRuler as TimelineRulerImpl } from "./TimelineRuler";
import { useTimelineContext } from "./TimelineProvider";

export function TimelineRulerPart() {
  const { state } = useTimelineContext();
  const props = state.canvas;
  return (
    <TimelineRulerImpl
      major={props.major}
      minor={props.minor}
      pps={props.pps}
      trackContentWidth={props.trackContentWidth}
      totalH={props.totalH}
      effectiveDuration={props.effectiveDuration}
      majorTickInterval={props.majorTickInterval}
      tickFrameRate={props.tickFrameRate}
      theme={props.theme}
      beatAnalysis={props.beatAnalysis}
      contentOrigin={props.contentOrigin}
      renderTimeRange={props.rowsVirtualized ? props.renderTimeRange : undefined}
      scrollRef={props.scrollRef}
    />
  );
}