romaine
Version:
React OpenCV Manipulation and Image Narration & Editing
54 lines • 1.83 kB
TypeScript
/// <reference types="react" />
import T from "prop-types";
import { ContourCoordinates } from "..";
import { CropFunc } from "../Romaine.types";
interface CropPointsDelimiters {
crop: CropFunc;
cropPoints: ContourCoordinates;
pointSize: number;
lineColor?: string;
lineWidth?: number;
saltId?: string;
previewDims: {
width: number;
height: number;
ratio: number;
};
}
/**
* Create the lines for the cropper utility
*/
declare const CropPointsDelimiters: {
({ crop, cropPoints, previewDims, lineWidth, lineColor, pointSize, ...props }: CropPointsDelimiters): JSX.Element;
propTypes: {
previewDims: T.Requireable<T.InferProps<{
ratio: T.Requireable<number>;
width: T.Requireable<number>;
height: T.Requireable<number>;
}>>;
cropPoints: T.Requireable<T.InferProps<{
"left-top": T.Validator<T.InferProps<{
x: T.Requireable<number>;
y: T.Requireable<number>;
}>>;
"right-top": T.Validator<T.InferProps<{
x: T.Requireable<number>;
y: T.Requireable<number>;
}>>;
"right-bottom": T.Validator<T.InferProps<{
x: T.Requireable<number>;
y: T.Requireable<number>;
}>>;
"left-bottom": T.Validator<T.InferProps<{
x: T.Requireable<number>;
y: T.Requireable<number>;
}>>;
}>>;
lineColor: T.Requireable<string>;
lineWidth: T.Requireable<number>;
pointSize: T.Requireable<number>;
saltId: T.Requireable<string>;
};
};
export { CropPointsDelimiters };
//# sourceMappingURL=CropPointsDelimiters.d.ts.map