diff --git a/src/index.ts b/src/index.ts index 5a83765..9631d27 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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