GitHub

CropRegion

import { CropRegion } from '@daffodil/driver/shopify'

The part of the image that should remain after cropping.

enum CropRegion {
  Bottom = CropRegion.Bottom,
  Center = CropRegion.Center,
  Left = CropRegion.Left,
  Right = CropRegion.Right,
  Top = CropRegion.Top,
}

Properties

Bottom
CropRegion.Bottom

Keep the bottom of the image.

Center
CropRegion.Center

Keep the center of the image.

Left
CropRegion.Left

Keep the left of the image.

Right
CropRegion.Right

Keep the right of the image.

Top
CropRegion.Top

Keep the top of the image.