You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@bikariya/image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bikariya/image-viewer - npm Package Compare versions

Comparing version
0.0.6
to
0.0.7
+1
-1
dist/module.json
{
"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, {

{
"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": {