diff --git a/src/components/Cropper.svelte b/src/components/Cropper.svelte index 4d23ff3..2358bee 100644 --- a/src/components/Cropper.svelte +++ b/src/components/Cropper.svelte @@ -9,6 +9,7 @@ let modal let cropper + let selection const close = () => {} @@ -25,10 +26,8 @@ cropper = new Cropper(image, { container: '.cropper-container' - // template, }) - - const selection = cropper.getCropperSelections()[0] + selection = cropper.getCropperSelections()[0] selection.setAttribute('initial-aspect-ratio', 1.77777777777777) selection.setAttribute('aspect-ratio', 1.777777777777) @@ -48,10 +47,18 @@ on:close={close}>
- - + +