UNPKG

@fancyapps/ui

Version:

Robust JavaScript UI Component Library

26 lines (25 loc) 625 B
import { PanzoomInstance } from "./panzoom"; export type PinsOptions = {}; export type Pin = { x: string | number; y: string | number; el: HTMLElement; }; export type PinsInstance = ReturnType<typeof Pins>; declare module "../carousel/carousel" { interface CarouselSlide { pins?: Pin[]; } } declare module "./panzoom" { interface PanzoomOptions { Pins?: boolean | Partial<PinsOptions>; } interface PanzoomPlugins { Pins: PanzoomPlugin & PinsInstance; } } export declare const Pins: () => { init: (carousel: PanzoomInstance) => void; destroy: () => void; };