UNPKG

@mescius/dsimageviewer

Version:

Document Solutions Image Viewer

32 lines (31 loc) 953 B
export declare const isIETrident: boolean; export declare function copyTextToClipboard(text: any): void; export declare const isMobile: { Android: () => boolean; BlackBerry: () => boolean; iOS: () => boolean; iOSDesktopMode: () => boolean; /** * returns array of iOS version numbers: [major, minor, build]. **/ iOSVer(): number[]; likeMac: () => boolean; OperaMini: () => boolean; WindowsMobile: () => boolean; WindowsAny: () => boolean; anyMobile: () => boolean; }; export declare type DeviceOutputScale = { sx: number; sy: number; scaled: boolean; }; /** * Get display device pixel ratio. * @param ctx Optional. canvas context */ export declare function getDisplayPixelRatio(ctx?: any): DeviceOutputScale; /** * Download file to local system using specified url. **/ export declare function downloadFileFromUrl(url: string, fileName: string): void;