ExtendAspectRatioOptions: {
    gravity?: {
        offset?: {
            x: number;
            y: number;
        };
        type: Exclude<GravityType, CENTER>;
    };
}

The extend aspect ratio options

Type declaration

  • Optional gravity?: {
        offset?: {
            x: number;
            y: number;
        };
        type: Exclude<GravityType, CENTER>;
    }

    (Optional) The gravity for the cropping operation

    • Optional offset?: {
          x: number;
          y: number;
      }

      (Optional) Specifies the offset by X and Y axes

      • x: number

        The gravity offset on the X axis

      • y: number

        The gravity offset on the Y axis

    • type: Exclude<GravityType, CENTER>

      Specifies the gravity type

Generated using TypeDoc