Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
391 B
Plaintext
18 lines
391 B
Plaintext
export type XOrds = 'e' | 'w';
|
|
export type YOrds = 'n' | 's';
|
|
export type XYOrds = 'nw' | 'ne' | 'se' | 'sw';
|
|
export type Ords = XOrds | YOrds | XYOrds;
|
|
export interface Crop {
|
|
x: number;
|
|
y: number;
|
|
width: number;
|
|
height: number;
|
|
unit: 'px' | '%';
|
|
}
|
|
export interface PixelCrop extends Crop {
|
|
unit: 'px';
|
|
}
|
|
export interface PercentCrop extends Crop {
|
|
unit: '%';
|
|
}
|