GitHub

ShopifyCropRegion

enum

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

The part of the image that should remain after cropping.

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

Properties

Bottom
ShopifyCropRegion.Bottom

Keep the bottom of the image.

Center
ShopifyCropRegion.Center

Keep the center of the image.

Left
ShopifyCropRegion.Left

Keep the left of the image.

Right
ShopifyCropRegion.Right

Keep the right of the image.

Top
ShopifyCropRegion.Top

Keep the top of the image.