mirror of
https://github.com/cupcakearmy/svelte-cloudinary.git
synced 2025-01-02 21:36:32 +00:00
Set default crop option when using only height and width
This commit is contained in:
parent
32c828dee3
commit
3423db5276
@ -65,6 +65,7 @@ export function image(node: HTMLImageElement, parameters: ImageParameters) {
|
|||||||
let { src, options, bind, lazy, step } = parameters
|
let { src, options, bind, lazy, step } = parameters
|
||||||
log('Image Declared', parameters)
|
log('Image Declared', parameters)
|
||||||
options = options ?? {}
|
options = options ?? {}
|
||||||
|
options.crop = options.crop ?? 'fill'
|
||||||
step = step ?? 200
|
step = step ?? 200
|
||||||
lazy = lazy ?? true
|
lazy = lazy ?? true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user