@open-file-viewer/core 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.cjs +508 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +508 -181
- package/dist/index.js.map +1 -1
- package/dist/style.css +452 -55
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -56,10 +56,13 @@ interface PreviewToolbarRenderContext {
|
|
|
56
56
|
viewport: HTMLElement;
|
|
57
57
|
canPrevious: boolean;
|
|
58
58
|
canNext: boolean;
|
|
59
|
+
zoom?: number;
|
|
60
|
+
zoomLabel?: string;
|
|
59
61
|
previous: () => Promise<void>;
|
|
60
62
|
next: () => Promise<void>;
|
|
61
63
|
command: (command: PreviewCommand) => void | boolean | undefined;
|
|
62
64
|
canCommand: (command: PreviewCommand) => boolean;
|
|
65
|
+
setZoom: (zoom?: number) => void;
|
|
63
66
|
download: () => void;
|
|
64
67
|
fullscreen: () => void;
|
|
65
68
|
print: () => void;
|
|
@@ -132,6 +135,10 @@ type PdfJsModule = typeof pdfjs_dist;
|
|
|
132
135
|
interface PdfPluginOptions {
|
|
133
136
|
pdfjs?: PdfJsModule;
|
|
134
137
|
workerSrc?: string;
|
|
138
|
+
cMapUrl?: string;
|
|
139
|
+
cMapPacked?: boolean;
|
|
140
|
+
standardFontDataUrl?: string;
|
|
141
|
+
useSystemFonts?: boolean;
|
|
135
142
|
}
|
|
136
143
|
declare function pdfPlugin(options?: PdfJsModule | PdfPluginOptions): PreviewPlugin;
|
|
137
144
|
|
package/dist/index.d.ts
CHANGED
|
@@ -56,10 +56,13 @@ interface PreviewToolbarRenderContext {
|
|
|
56
56
|
viewport: HTMLElement;
|
|
57
57
|
canPrevious: boolean;
|
|
58
58
|
canNext: boolean;
|
|
59
|
+
zoom?: number;
|
|
60
|
+
zoomLabel?: string;
|
|
59
61
|
previous: () => Promise<void>;
|
|
60
62
|
next: () => Promise<void>;
|
|
61
63
|
command: (command: PreviewCommand) => void | boolean | undefined;
|
|
62
64
|
canCommand: (command: PreviewCommand) => boolean;
|
|
65
|
+
setZoom: (zoom?: number) => void;
|
|
63
66
|
download: () => void;
|
|
64
67
|
fullscreen: () => void;
|
|
65
68
|
print: () => void;
|
|
@@ -132,6 +135,10 @@ type PdfJsModule = typeof pdfjs_dist;
|
|
|
132
135
|
interface PdfPluginOptions {
|
|
133
136
|
pdfjs?: PdfJsModule;
|
|
134
137
|
workerSrc?: string;
|
|
138
|
+
cMapUrl?: string;
|
|
139
|
+
cMapPacked?: boolean;
|
|
140
|
+
standardFontDataUrl?: string;
|
|
141
|
+
useSystemFonts?: boolean;
|
|
135
142
|
}
|
|
136
143
|
declare function pdfPlugin(options?: PdfJsModule | PdfPluginOptions): PreviewPlugin;
|
|
137
144
|
|