vuepress-plugin-photomap
Version:
VuePress2插件,用于在文章中插入照片地图组件,类似Apple相册的PhotoMap功能
18 lines (17 loc) • 671 B
TypeScript
import PhotoSwipe from 'photoswipe';
import type { PhotoData } from './useExifReader';
export interface PhotoSwipeOptions {
enablePhotoSwipe?: boolean;
photoSwipeOptions?: any;
}
export declare function usePhotoSwipe(options?: PhotoSwipeOptions): {
photoSwipeInstance: import("vue").Ref<PhotoSwipe | undefined, PhotoSwipe | undefined>;
isOpen: import("vue").Ref<boolean, boolean>;
openPhotoSwipe: (photos: PhotoData[], initialIndex?: number) => void;
closePhotoSwipe: () => void;
nextPhoto: () => void;
prevPhoto: () => void;
goToSlide: (index: number) => void;
getCurrentIndex: () => number;
destroyPhotoSwipe: () => void;
};