UNPKG

@saran-ign/react-image-annotate

Version:
15 lines (14 loc) 510 B
import { Region } from '../types/region-tools.ts'; import { CanvasLayoutParams } from './index.tsx'; import { IMatrix } from 'transformation-matrix-js'; import { MutableRefObject } from 'react'; export type ProjectBox = IMatrix & { w: number; h: number; }; export type ProjectBoxFn = (r: Region) => ProjectBox; declare const UseProjectedBox: ({ layoutParams, mat, }: { layoutParams: MutableRefObject<CanvasLayoutParams | null>; mat: IMatrix; }) => ProjectBoxFn; export default UseProjectedBox;