mirror of
https://github.com/cupcakearmy/svelte-cloudinary.git
synced 2024-12-22 16:06: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
|
||||
log('Image Declared', parameters)
|
||||
options = options ?? {}
|
||||
options.crop = options.crop ?? 'fill'
|
||||
step = step ?? 200
|
||||
lazy = lazy ?? true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user