@amnstak/react-image-annotate
Version:
[](https://www.npmjs.com/package/@amnstak/react-image-annotate)
16 lines (14 loc) • 511 B
TypeScript
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;