advanced-cropper
Version:
The core of the advanced cropper libraries family
12 lines (11 loc) • 401 B
TypeScript
import { RawAspectRatio, Size, SizeRestrictions } from "../../types/index";
import { BoundingBox, RotatedImage } from "./types";
declare function approximateSizeInsideImage(params: {
image: RotatedImage;
width: number;
height: number;
sizeRestrictions: SizeRestrictions;
aspectRatio?: RawAspectRatio;
boundingBox?: BoundingBox;
}): Size;
export { approximateSizeInsideImage };