vuepress-plugin-photomap
Version:
VuePress2插件,用于在文章中插入照片地图组件,类似Apple相册的PhotoMap功能
25 lines (24 loc) • 625 B
TypeScript
export interface GPSData {
latitude: number;
longitude: number;
altitude?: number;
direction?: number;
}
export interface PhotoData {
src: string;
alt: string;
gps?: GPSData;
width?: number;
height?: number;
hasGPS: boolean;
error?: string;
}
export declare function useExifReader(): {
loading: import("vue").Ref<boolean, boolean>;
error: import("vue").Ref<string | null, string | null>;
loadImageExif: (src: string, alt?: string) => Promise<PhotoData>;
loadImagesExif: (images: Array<{
src: string;
alt: string;
}>) => Promise<PhotoData[]>;
};