| 4 | import { useEditor } from "../use-editor"; |
| 5 | |
| 6 | interface 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 | |
| 21 | interface SelectionBoxState { |
| 22 | startPos: { x: number; y: number }; |
nothing calls this directly
no outgoing calls
no test coverage detected