UNPKG

@vue-pdf-viewer/viewer

Version:

The PDF Viewer component for Vue 3 and Nuxt

16 lines (15 loc) 1.01 kB
import { ViewMode, ZoomLevel } from './utils/enumerators'; import type { ClassValue } from 'clsx'; export declare function cn(...inputs: ClassValue[]): string; export declare function formatNumber(value?: string): string; export declare function formatFileSize(bytes: number, decimalPoint?: number): string; export declare function generateUniqueCSSClassName(): string; export declare const attachWatermarkShadowDOM: (rootViewer: HTMLDivElement) => HTMLDivElement; export declare const PrintElement: { print: (elements: HTMLElement[]) => void; }; export declare const formatDate: (date: string) => string; export declare const formatCommentTimestamp: (date: string | Date) => string; export declare function calculateScale(container: HTMLElement, pageHeight: number, pageWidth: number, scale: ZoomLevel, viewMode: ViewMode, numPages: number): number; export declare const getPdfDate: (date: string) => string | Date; export declare const uint8ClampedArrayToRgb: (color: Uint8ClampedArray | number[]) => string;