advanced-cropper
Version:
The core of the advanced cropper libraries family
10 lines (9 loc) • 950 B
TypeScript
import { CropperState, Flip, ImageTransform, MoveDirections, Point, ResizeDirections } from "../types/index";
declare function normalizeResizeDirections(state: CropperState, directions: Partial<ResizeDirections>): ResizeDirections;
declare function normalizeCenter(state: CropperState, center: Point): Point;
declare function normalizeFlip(state: CropperState, flip: Flip): Flip;
declare function fillMoveDirections(directions: Partial<MoveDirections>): MoveDirections;
declare function fillResizeDirections(directions: Partial<ResizeDirections>): ResizeDirections;
declare function normalizeMoveDirections(state: CropperState, directions: Partial<MoveDirections>): MoveDirections;
declare function normalizeImageTransform(state: CropperState, transform: ImageTransform): ImageTransform;
export { normalizeResizeDirections, normalizeCenter, normalizeFlip, fillMoveDirections, fillResizeDirections, normalizeMoveDirections, normalizeImageTransform };