Set default crop option when using only height and width

This commit is contained in:
_Pear 2021-11-07 10:07:48 -06:00
parent 32c828dee3
commit 3423db5276
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ export function image(node: HTMLImageElement, parameters: ImageParameters) {
let { src, options, bind, lazy, step } = parameters
log('Image Declared', parameters)
options = options ?? {}
options.crop = options.crop ?? 'fill'
step = step ?? 200
lazy = lazy ?? true