UNPKG

svelte-image-viewer

Version:

A couple of simple components for displaying content with pan and zoom capabilities.

15 lines (14 loc) 437 B
import type { Attachment } from "svelte/attachments"; interface PanAndZoomParams { get offsetX(): number; set offsetX(value: number); get offsetY(): number; set offsetY(value: number); get scale(): number; set scale(value: number); minScale?: number; maxScale?: number; scaleSmoothing?: number; } export declare function createPanAndZoom(params: PanAndZoomParams): Attachment<HTMLElement>; export {};