@bikariya/image-viewer
Advanced tools
+1
-1
| { | ||
| "name": "@bikariya/image-viewer", | ||
| "configKey": "image-viewer", | ||
| "version": "0.0.6", | ||
| "version": "0.0.7", | ||
| "builder": { | ||
@@ -6,0 +6,0 @@ "@nuxt/module-builder": "1.0.2", |
@@ -1,2 +0,3 @@ | ||
| type __VLS_Props = { | ||
| import type { ModalProps } from "#modals"; | ||
| type __VLS_Props = ModalProps & { | ||
| /** | ||
@@ -7,7 +8,2 @@ * 目标 `<img>` 元素 | ||
| /** | ||
| * 过渡动画时长 (ms) | ||
| * @default 400 | ||
| */ | ||
| duration?: number; | ||
| /** | ||
| * 放大后占窗口比率 | ||
@@ -22,3 +18,2 @@ * @default 0.9 | ||
| clamp?: boolean; | ||
| open?: boolean; | ||
| }; | ||
@@ -25,0 +20,0 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { |
| <script setup> | ||
| import { computed, ref, useEventListener, usePointer, useTemplateRef } from "#imports"; | ||
| const { target, duration = 400, rate = 0.9, clamp } = defineProps({ | ||
| const { target, duration, rate = 0.9, clamp } = defineProps({ | ||
| duration: { type: Number, required: false }, | ||
| open: { type: Boolean, required: false }, | ||
| target: { type: null, required: true }, | ||
| duration: { type: Number, required: false }, | ||
| rate: { type: Number, required: false }, | ||
| clamp: { type: Boolean, required: false }, | ||
| open: { type: Boolean, required: false } | ||
| clamp: { type: Boolean, required: false } | ||
| }); | ||
@@ -162,4 +162,4 @@ const emit = defineEmits(["close"]); | ||
| const animation = el.animate([{ | ||
| top: 2 * scrollY + top + "px", | ||
| left: 2 * scrollX + left + "px", | ||
| top: `calc(${2 * scrollY + top}px + 50dvh - 50svh)`, | ||
| left: `calc(${2 * scrollX + left}px + 50dvw - 50svw)`, | ||
| clipPath: "inset(0)" | ||
@@ -166,0 +166,0 @@ }, getOriginalKeyframe(scrollX, scrollY)], options.value); |
@@ -1,2 +0,3 @@ | ||
| type __VLS_Props = { | ||
| import type { ModalProps } from "#modals"; | ||
| type __VLS_Props = ModalProps & { | ||
| /** | ||
@@ -7,7 +8,2 @@ * 目标 `<img>` 元素 | ||
| /** | ||
| * 过渡动画时长 (ms) | ||
| * @default 400 | ||
| */ | ||
| duration?: number; | ||
| /** | ||
| * 放大后占窗口比率 | ||
@@ -22,3 +18,2 @@ * @default 0.9 | ||
| clamp?: boolean; | ||
| open?: boolean; | ||
| }; | ||
@@ -25,0 +20,0 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { |
+3
-3
| { | ||
| "name": "@bikariya/image-viewer", | ||
| "type": "module", | ||
| "version": "0.0.6", | ||
| "version": "0.0.7", | ||
| "description": "Bikariya image viewer for Nuxt", | ||
@@ -18,4 +18,4 @@ "author": "KazariEX", | ||
| "dependencies": { | ||
| "@bikariya/modals": "", | ||
| "@nuxt/kit": "^4.3.0" | ||
| "@nuxt/kit": "^4.3.1", | ||
| "@bikariya/modals": "0.0.7" | ||
| }, | ||
@@ -22,0 +22,0 @@ "scripts": { |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
0
-100%13093
-0.49%77
-11.49%+ Added
+ Added
- Removed
- Removed
Updated
Updated