Skip to content

Commit 08d8cd1

Browse files
added auto_pad in CropMode type and copsAspectRatio and cropsGravityAuto flag Arrays
1 parent 1987e0a commit 08d8cd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/url-loader/src/constants/parameters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type { StringifiablePrimative } from "../lib/utils.js";
66
*/
77
export type CropMode =
88
| "auto"
9+
| "auto_pad"
910
| "crop"
1011
| "fill"
1112
| "fill_pad"

packages/url-loader/src/plugins/cropping.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { plugin } from "../lib/plugin.js";
1313
import { isArray } from "../lib/utils.js";
1414
import type { PluginResults } from "../types/plugins.js";
1515

16-
const cropsAspectRatio = ["auto", "crop", "fill", "lfill", "fill_pad", "thumb"];
17-
const cropsGravityAuto = ["auto", "crop", "fill", "lfill", "fill_pad", "thumb"];
16+
const cropsAspectRatio = ["auto", "auto_pad", "crop", "fill", "lfill", "fill_pad", "thumb"];
17+
const cropsGravityAuto = ["auto", "auto_pad", "crop", "fill", "lfill", "fill_pad", "thumb"];
1818
const cropsWithZoom = ["crop", "thumb"];
1919

2020
const DEFAULT_CROP = "limit";

0 commit comments

Comments
 (0)