lite-image-preview 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/preview.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lite-image-preview",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Lightweight image and SVG preview dialog with smooth pinch zoom, crisp SVG scaling, and mobile-friendly gesture handling.",
5
5
  "keywords": [
6
6
  "front-end",
package/src/preview.ts CHANGED
@@ -600,9 +600,9 @@ export async function previewImage(
600
600
  const h = img.naturalHeight || 1
601
601
 
602
602
  return createTransformAdapter(img, stage, w, h, {
603
- minScale: 0.1,
604
- maxScale: 8,
605
- fitPadding: 32,
603
+ minScale: 0,
604
+ maxScale: 20,
605
+ fitPadding: 10,
606
606
  fitMaxScale: 1,
607
607
  })
608
608
  },