@bikariya/image-viewer
Advanced tools
+1
-1
| { | ||
| "name": "@bikariya/image-viewer", | ||
| "configKey": "image-viewer", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "builder": { | ||
@@ -6,0 +6,0 @@ "@nuxt/module-builder": "1.0.2", |
@@ -216,9 +216,9 @@ <script setup> | ||
| function isSizeOutOfBounds(width, height, rate2) { | ||
| if (!clamp) { | ||
| if (!clamp || !rootEl.value) { | ||
| return false; | ||
| } | ||
| if (rate2 > 1) { | ||
| return width > Math.max(window.innerWidth, target.width, target.naturalWidth) && height > Math.max(window.innerHeight, target.height, target.naturalHeight); | ||
| return width > Math.max(window.innerWidth, target.width, rootEl.value.naturalWidth) && height > Math.max(window.innerHeight, target.height, rootEl.value.naturalHeight); | ||
| } else { | ||
| return width < Math.min(window.innerWidth, target.width, target.naturalWidth) && height < Math.min(window.innerHeight, target.height, target.naturalHeight); | ||
| return width < Math.min(window.innerWidth, target.width, rootEl.value.naturalWidth) && height < Math.min(window.innerHeight, target.height, rootEl.value.naturalHeight); | ||
| } | ||
@@ -225,0 +225,0 @@ } |
+2
-2
| { | ||
| "name": "@bikariya/image-viewer", | ||
| "type": "module", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "description": "Bikariya image viewer for Nuxt", | ||
@@ -19,3 +19,3 @@ "author": "KazariEX", | ||
| "@nuxt/kit": "^4.3.1", | ||
| "@bikariya/modals": "0.0.7" | ||
| "@bikariya/modals": "0.0.8" | ||
| }, | ||
@@ -22,0 +22,0 @@ "scripts": { |
13134
0.31%+ Added
+ Added
- Removed
- Removed
Updated