mirror of
https://github.com/cupcakearmy/svelte-cloudinary.git
synced 2024-12-22 07:56:25 +00:00
Merge pull request #9 from CobyPear/feature/default-crop-for-fixed-size
Set default crop option when using only height and width
This commit is contained in:
commit
11654826e0
@ -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