UNPKG

advanced-cropper

Version:

The core of the advanced cropper libraries family

14 lines (13 loc) 469 B
import { Coordinates } from "../../types/index"; import { BoundingBox } from "./types"; interface RotatedImage { width: number; height: number; angle: number; } declare function fitToImage(coordinates: Coordinates, image: RotatedImage, boundingBox?: BoundingBox): { left: number; top: number; }; declare function moveToImage(coordinates: Coordinates, image: RotatedImage, boundingBox?: BoundingBox): Coordinates; export { fitToImage, moveToImage };