MCPcopy
hub / github.com/OpenCut-app/OpenCut / UseSelectionBoxProps

Interface UseSelectionBoxProps

legacy/timeline/use-selection-box.ts:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { useEditor } from "../use-editor";
5
6interface UseSelectionBoxProps {
7 containerRef: React.RefObject<HTMLElement | null>;
8 headerRef?: React.RefObject<HTMLElement | null>;
9 onSelectionComplete: ({
10 elements,
11 isAdditive,
12 }: {
13 elements: { trackId: string; elementId: string }[];
14 isAdditive: boolean;
15 }) => void;
16 isEnabled?: boolean;
17 tracksScrollRef: React.RefObject<HTMLDivElement | null>;
18 zoomLevel: number;
19}
20
21interface SelectionBoxState {
22 startPos: { x: number; y: number };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected