@saran-ign/react-image-annotate
Version:
An Image Annotate Library for React
15 lines (14 loc) • 510 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;