UNPKG

@amnstak/react-image-annotate

Version:

[![npm version](https://img.shields.io/npm/v/@asi/react-image-annotate.svg)](https://www.npmjs.com/package/@amnstak/react-image-annotate)

16 lines (14 loc) 511 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;