Skip to content

cupertino-files / ImageCrop

Interface: ImageCrop ​

Defined in: src/tsd/masks.ts:85

The crop applied to an image.

window is in image-local points: {x: 0, y: 0} shows the picture from its top-left corner. visible is the same rectangle placed in the image's parent, which is where it actually appears.

Properties ​

full ​

full: Rect

Defined in: src/tsd/masks.ts:89

The uncropped image's frame in its parent, for reference.


isRectangular ​

isRectangular: boolean

Defined in: src/tsd/masks.ts:91

False for instant-alpha and shape crops, which this module leaves alone.


visible ​

visible: Rect

Defined in: src/tsd/masks.ts:87


window ​

window: Rect

Defined in: src/tsd/masks.ts:86

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.