@files-preview-app/preview-file 1.3.6 → 1.3.8
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 +1 -1
- package/dist/angular.cjs +845 -166
- package/dist/angular.cjs.map +1 -1
- package/dist/angular.d.cts +1 -1
- package/dist/angular.d.ts +1 -1
- package/dist/angular.js +845 -166
- package/dist/angular.js.map +1 -1
- package/dist/index.cjs +845 -166
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DPqVo4OT.d.cts → index.d-D_oca_Sr.d.cts} +2 -1
- package/dist/{index.d-DPqVo4OT.d.ts → index.d-D_oca_Sr.d.ts} +2 -1
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +845 -166
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +845 -166
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +845 -166
- package/dist/react.js.map +1 -1
- package/dist/styles.css +2 -1
- package/dist/vue.cjs +845 -166
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.d.cts +3 -3
- package/dist/vue.d.ts +3 -3
- package/dist/vue.js +845 -166
- package/dist/vue.js.map +1 -1
- package/package.json +1 -1
|
@@ -172,7 +172,7 @@ interface PreviewViewerOptions extends ToolbarConfig {
|
|
|
172
172
|
toolbar?: boolean | (ToolbarConfig & Record<string, boolean | undefined>);
|
|
173
173
|
/** Toolbar position */
|
|
174
174
|
toolbarPosition?: 'top' | 'bottom';
|
|
175
|
-
/** Fit mode: '
|
|
175
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
176
176
|
fitMode?: 'page' | 'width';
|
|
177
177
|
/** Show thumbnail sidebar initially */
|
|
178
178
|
showThumbnails?: boolean;
|
|
@@ -362,6 +362,7 @@ declare class FilePreviewViewer {
|
|
|
362
362
|
private destroyInstance;
|
|
363
363
|
private findPlugin;
|
|
364
364
|
private setupDOM;
|
|
365
|
+
private triggerAutoFit;
|
|
365
366
|
private setupResizeAndFullscreenListeners;
|
|
366
367
|
private setupKeyboardShortcuts;
|
|
367
368
|
private setupDragAndDrop;
|
|
@@ -172,7 +172,7 @@ interface PreviewViewerOptions extends ToolbarConfig {
|
|
|
172
172
|
toolbar?: boolean | (ToolbarConfig & Record<string, boolean | undefined>);
|
|
173
173
|
/** Toolbar position */
|
|
174
174
|
toolbarPosition?: 'top' | 'bottom';
|
|
175
|
-
/** Fit mode: '
|
|
175
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
176
176
|
fitMode?: 'page' | 'width';
|
|
177
177
|
/** Show thumbnail sidebar initially */
|
|
178
178
|
showThumbnails?: boolean;
|
|
@@ -362,6 +362,7 @@ declare class FilePreviewViewer {
|
|
|
362
362
|
private destroyInstance;
|
|
363
363
|
private findPlugin;
|
|
364
364
|
private setupDOM;
|
|
365
|
+
private triggerAutoFit;
|
|
365
366
|
private setupResizeAndFullscreenListeners;
|
|
366
367
|
private setupKeyboardShortcuts;
|
|
367
368
|
private setupDragAndDrop;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FilePreviewViewer$1, P as PreviewPlugin$f } from './index.d-
|
|
2
|
-
export { C as CfbfEntry, d as CfbfReader, E as EventEmitter, e as EventHandler, f as FileInfo, g as FileMetadata, F as FileSource, h as PreviewEvent, b as PreviewInstance, a as PreviewViewerOptions, R as RenderContext, T as Thumbnail, i as ThumbnailPanel, j as ToolbarAction, k as ToolbarActionType, l as ToolbarConfig, m as ToolbarController, n as ToolbarGroup, o as TransferPayload, U as Unsubscribe, p as clamp, q as createElement, r as debounce, s as detectMagicBytes, t as detectOoxmlType, u as downloadFile, v as extractExtension, w as formatFileSize, x as getTransferPayload, y as mimeFromExtension, z as printElement, A as sanitizeHTML, B as sanitizeSVG, D as saveTransferPayload, G as sourceToArrayBuffer } from './index.d-
|
|
1
|
+
import { c as FilePreviewViewer$1, P as PreviewPlugin$f } from './index.d-D_oca_Sr.cjs';
|
|
2
|
+
export { C as CfbfEntry, d as CfbfReader, E as EventEmitter, e as EventHandler, f as FileInfo, g as FileMetadata, F as FileSource, h as PreviewEvent, b as PreviewInstance, a as PreviewViewerOptions, R as RenderContext, T as Thumbnail, i as ThumbnailPanel, j as ToolbarAction, k as ToolbarActionType, l as ToolbarConfig, m as ToolbarController, n as ToolbarGroup, o as TransferPayload, U as Unsubscribe, p as clamp, q as createElement, r as debounce, s as detectMagicBytes, t as detectOoxmlType, u as downloadFile, v as extractExtension, w as formatFileSize, x as getTransferPayload, y as mimeFromExtension, z as printElement, A as sanitizeHTML, B as sanitizeSVG, D as saveTransferPayload, G as sourceToArrayBuffer } from './index.d-D_oca_Sr.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Supported file input sources.
|
|
@@ -175,7 +175,7 @@ interface PreviewViewerOptions$e extends ToolbarConfig$e {
|
|
|
175
175
|
toolbar?: boolean | (ToolbarConfig$e & Record<string, boolean | undefined>);
|
|
176
176
|
/** Toolbar position */
|
|
177
177
|
toolbarPosition?: 'top' | 'bottom';
|
|
178
|
-
/** Fit mode: '
|
|
178
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
179
179
|
fitMode?: 'page' | 'width';
|
|
180
180
|
/** Show thumbnail sidebar initially */
|
|
181
181
|
showThumbnails?: boolean;
|
|
@@ -389,7 +389,7 @@ interface PreviewViewerOptions$d extends ToolbarConfig$d {
|
|
|
389
389
|
toolbar?: boolean | (ToolbarConfig$d & Record<string, boolean | undefined>);
|
|
390
390
|
/** Toolbar position */
|
|
391
391
|
toolbarPosition?: 'top' | 'bottom';
|
|
392
|
-
/** Fit mode: '
|
|
392
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
393
393
|
fitMode?: 'page' | 'width';
|
|
394
394
|
/** Show thumbnail sidebar initially */
|
|
395
395
|
showThumbnails?: boolean;
|
|
@@ -603,7 +603,7 @@ interface PreviewViewerOptions$c extends ToolbarConfig$c {
|
|
|
603
603
|
toolbar?: boolean | (ToolbarConfig$c & Record<string, boolean | undefined>);
|
|
604
604
|
/** Toolbar position */
|
|
605
605
|
toolbarPosition?: 'top' | 'bottom';
|
|
606
|
-
/** Fit mode: '
|
|
606
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
607
607
|
fitMode?: 'page' | 'width';
|
|
608
608
|
/** Show thumbnail sidebar initially */
|
|
609
609
|
showThumbnails?: boolean;
|
|
@@ -823,7 +823,7 @@ interface PreviewViewerOptions$b extends ToolbarConfig$b {
|
|
|
823
823
|
toolbar?: boolean | (ToolbarConfig$b & Record<string, boolean | undefined>);
|
|
824
824
|
/** Toolbar position */
|
|
825
825
|
toolbarPosition?: 'top' | 'bottom';
|
|
826
|
-
/** Fit mode: '
|
|
826
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
827
827
|
fitMode?: 'page' | 'width';
|
|
828
828
|
/** Show thumbnail sidebar initially */
|
|
829
829
|
showThumbnails?: boolean;
|
|
@@ -1037,7 +1037,7 @@ interface PreviewViewerOptions$a extends ToolbarConfig$a {
|
|
|
1037
1037
|
toolbar?: boolean | (ToolbarConfig$a & Record<string, boolean | undefined>);
|
|
1038
1038
|
/** Toolbar position */
|
|
1039
1039
|
toolbarPosition?: 'top' | 'bottom';
|
|
1040
|
-
/** Fit mode: '
|
|
1040
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1041
1041
|
fitMode?: 'page' | 'width';
|
|
1042
1042
|
/** Show thumbnail sidebar initially */
|
|
1043
1043
|
showThumbnails?: boolean;
|
|
@@ -1251,7 +1251,7 @@ interface PreviewViewerOptions$9 extends ToolbarConfig$9 {
|
|
|
1251
1251
|
toolbar?: boolean | (ToolbarConfig$9 & Record<string, boolean | undefined>);
|
|
1252
1252
|
/** Toolbar position */
|
|
1253
1253
|
toolbarPosition?: 'top' | 'bottom';
|
|
1254
|
-
/** Fit mode: '
|
|
1254
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1255
1255
|
fitMode?: 'page' | 'width';
|
|
1256
1256
|
/** Show thumbnail sidebar initially */
|
|
1257
1257
|
showThumbnails?: boolean;
|
|
@@ -1465,7 +1465,7 @@ interface PreviewViewerOptions$8 extends ToolbarConfig$8 {
|
|
|
1465
1465
|
toolbar?: boolean | (ToolbarConfig$8 & Record<string, boolean | undefined>);
|
|
1466
1466
|
/** Toolbar position */
|
|
1467
1467
|
toolbarPosition?: 'top' | 'bottom';
|
|
1468
|
-
/** Fit mode: '
|
|
1468
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1469
1469
|
fitMode?: 'page' | 'width';
|
|
1470
1470
|
/** Show thumbnail sidebar initially */
|
|
1471
1471
|
showThumbnails?: boolean;
|
|
@@ -1679,7 +1679,7 @@ interface PreviewViewerOptions$7 extends ToolbarConfig$7 {
|
|
|
1679
1679
|
toolbar?: boolean | (ToolbarConfig$7 & Record<string, boolean | undefined>);
|
|
1680
1680
|
/** Toolbar position */
|
|
1681
1681
|
toolbarPosition?: 'top' | 'bottom';
|
|
1682
|
-
/** Fit mode: '
|
|
1682
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1683
1683
|
fitMode?: 'page' | 'width';
|
|
1684
1684
|
/** Show thumbnail sidebar initially */
|
|
1685
1685
|
showThumbnails?: boolean;
|
|
@@ -1893,7 +1893,7 @@ interface PreviewViewerOptions$6 extends ToolbarConfig$6 {
|
|
|
1893
1893
|
toolbar?: boolean | (ToolbarConfig$6 & Record<string, boolean | undefined>);
|
|
1894
1894
|
/** Toolbar position */
|
|
1895
1895
|
toolbarPosition?: 'top' | 'bottom';
|
|
1896
|
-
/** Fit mode: '
|
|
1896
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1897
1897
|
fitMode?: 'page' | 'width';
|
|
1898
1898
|
/** Show thumbnail sidebar initially */
|
|
1899
1899
|
showThumbnails?: boolean;
|
|
@@ -2107,7 +2107,7 @@ interface PreviewViewerOptions$5 extends ToolbarConfig$5 {
|
|
|
2107
2107
|
toolbar?: boolean | (ToolbarConfig$5 & Record<string, boolean | undefined>);
|
|
2108
2108
|
/** Toolbar position */
|
|
2109
2109
|
toolbarPosition?: 'top' | 'bottom';
|
|
2110
|
-
/** Fit mode: '
|
|
2110
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2111
2111
|
fitMode?: 'page' | 'width';
|
|
2112
2112
|
/** Show thumbnail sidebar initially */
|
|
2113
2113
|
showThumbnails?: boolean;
|
|
@@ -2321,7 +2321,7 @@ interface PreviewViewerOptions$4 extends ToolbarConfig$4 {
|
|
|
2321
2321
|
toolbar?: boolean | (ToolbarConfig$4 & Record<string, boolean | undefined>);
|
|
2322
2322
|
/** Toolbar position */
|
|
2323
2323
|
toolbarPosition?: 'top' | 'bottom';
|
|
2324
|
-
/** Fit mode: '
|
|
2324
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2325
2325
|
fitMode?: 'page' | 'width';
|
|
2326
2326
|
/** Show thumbnail sidebar initially */
|
|
2327
2327
|
showThumbnails?: boolean;
|
|
@@ -2535,7 +2535,7 @@ interface PreviewViewerOptions$3 extends ToolbarConfig$3 {
|
|
|
2535
2535
|
toolbar?: boolean | (ToolbarConfig$3 & Record<string, boolean | undefined>);
|
|
2536
2536
|
/** Toolbar position */
|
|
2537
2537
|
toolbarPosition?: 'top' | 'bottom';
|
|
2538
|
-
/** Fit mode: '
|
|
2538
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2539
2539
|
fitMode?: 'page' | 'width';
|
|
2540
2540
|
/** Show thumbnail sidebar initially */
|
|
2541
2541
|
showThumbnails?: boolean;
|
|
@@ -2749,7 +2749,7 @@ interface PreviewViewerOptions$2 extends ToolbarConfig$2 {
|
|
|
2749
2749
|
toolbar?: boolean | (ToolbarConfig$2 & Record<string, boolean | undefined>);
|
|
2750
2750
|
/** Toolbar position */
|
|
2751
2751
|
toolbarPosition?: 'top' | 'bottom';
|
|
2752
|
-
/** Fit mode: '
|
|
2752
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2753
2753
|
fitMode?: 'page' | 'width';
|
|
2754
2754
|
/** Show thumbnail sidebar initially */
|
|
2755
2755
|
showThumbnails?: boolean;
|
|
@@ -2968,7 +2968,7 @@ interface PreviewViewerOptions$1 extends ToolbarConfig$1 {
|
|
|
2968
2968
|
toolbar?: boolean | (ToolbarConfig$1 & Record<string, boolean | undefined>);
|
|
2969
2969
|
/** Toolbar position */
|
|
2970
2970
|
toolbarPosition?: 'top' | 'bottom';
|
|
2971
|
-
/** Fit mode: '
|
|
2971
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2972
2972
|
fitMode?: 'page' | 'width';
|
|
2973
2973
|
/** Show thumbnail sidebar initially */
|
|
2974
2974
|
showThumbnails?: boolean;
|
|
@@ -3206,7 +3206,7 @@ interface PreviewViewerOptions extends ToolbarConfig {
|
|
|
3206
3206
|
toolbar?: boolean | (ToolbarConfig & Record<string, boolean | undefined>);
|
|
3207
3207
|
/** Toolbar position */
|
|
3208
3208
|
toolbarPosition?: 'top' | 'bottom';
|
|
3209
|
-
/** Fit mode: '
|
|
3209
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
3210
3210
|
fitMode?: 'page' | 'width';
|
|
3211
3211
|
/** Show thumbnail sidebar initially */
|
|
3212
3212
|
showThumbnails?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FilePreviewViewer$1, P as PreviewPlugin$f } from './index.d-
|
|
2
|
-
export { C as CfbfEntry, d as CfbfReader, E as EventEmitter, e as EventHandler, f as FileInfo, g as FileMetadata, F as FileSource, h as PreviewEvent, b as PreviewInstance, a as PreviewViewerOptions, R as RenderContext, T as Thumbnail, i as ThumbnailPanel, j as ToolbarAction, k as ToolbarActionType, l as ToolbarConfig, m as ToolbarController, n as ToolbarGroup, o as TransferPayload, U as Unsubscribe, p as clamp, q as createElement, r as debounce, s as detectMagicBytes, t as detectOoxmlType, u as downloadFile, v as extractExtension, w as formatFileSize, x as getTransferPayload, y as mimeFromExtension, z as printElement, A as sanitizeHTML, B as sanitizeSVG, D as saveTransferPayload, G as sourceToArrayBuffer } from './index.d-
|
|
1
|
+
import { c as FilePreviewViewer$1, P as PreviewPlugin$f } from './index.d-D_oca_Sr.js';
|
|
2
|
+
export { C as CfbfEntry, d as CfbfReader, E as EventEmitter, e as EventHandler, f as FileInfo, g as FileMetadata, F as FileSource, h as PreviewEvent, b as PreviewInstance, a as PreviewViewerOptions, R as RenderContext, T as Thumbnail, i as ThumbnailPanel, j as ToolbarAction, k as ToolbarActionType, l as ToolbarConfig, m as ToolbarController, n as ToolbarGroup, o as TransferPayload, U as Unsubscribe, p as clamp, q as createElement, r as debounce, s as detectMagicBytes, t as detectOoxmlType, u as downloadFile, v as extractExtension, w as formatFileSize, x as getTransferPayload, y as mimeFromExtension, z as printElement, A as sanitizeHTML, B as sanitizeSVG, D as saveTransferPayload, G as sourceToArrayBuffer } from './index.d-D_oca_Sr.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Supported file input sources.
|
|
@@ -175,7 +175,7 @@ interface PreviewViewerOptions$e extends ToolbarConfig$e {
|
|
|
175
175
|
toolbar?: boolean | (ToolbarConfig$e & Record<string, boolean | undefined>);
|
|
176
176
|
/** Toolbar position */
|
|
177
177
|
toolbarPosition?: 'top' | 'bottom';
|
|
178
|
-
/** Fit mode: '
|
|
178
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
179
179
|
fitMode?: 'page' | 'width';
|
|
180
180
|
/** Show thumbnail sidebar initially */
|
|
181
181
|
showThumbnails?: boolean;
|
|
@@ -389,7 +389,7 @@ interface PreviewViewerOptions$d extends ToolbarConfig$d {
|
|
|
389
389
|
toolbar?: boolean | (ToolbarConfig$d & Record<string, boolean | undefined>);
|
|
390
390
|
/** Toolbar position */
|
|
391
391
|
toolbarPosition?: 'top' | 'bottom';
|
|
392
|
-
/** Fit mode: '
|
|
392
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
393
393
|
fitMode?: 'page' | 'width';
|
|
394
394
|
/** Show thumbnail sidebar initially */
|
|
395
395
|
showThumbnails?: boolean;
|
|
@@ -603,7 +603,7 @@ interface PreviewViewerOptions$c extends ToolbarConfig$c {
|
|
|
603
603
|
toolbar?: boolean | (ToolbarConfig$c & Record<string, boolean | undefined>);
|
|
604
604
|
/** Toolbar position */
|
|
605
605
|
toolbarPosition?: 'top' | 'bottom';
|
|
606
|
-
/** Fit mode: '
|
|
606
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
607
607
|
fitMode?: 'page' | 'width';
|
|
608
608
|
/** Show thumbnail sidebar initially */
|
|
609
609
|
showThumbnails?: boolean;
|
|
@@ -823,7 +823,7 @@ interface PreviewViewerOptions$b extends ToolbarConfig$b {
|
|
|
823
823
|
toolbar?: boolean | (ToolbarConfig$b & Record<string, boolean | undefined>);
|
|
824
824
|
/** Toolbar position */
|
|
825
825
|
toolbarPosition?: 'top' | 'bottom';
|
|
826
|
-
/** Fit mode: '
|
|
826
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
827
827
|
fitMode?: 'page' | 'width';
|
|
828
828
|
/** Show thumbnail sidebar initially */
|
|
829
829
|
showThumbnails?: boolean;
|
|
@@ -1037,7 +1037,7 @@ interface PreviewViewerOptions$a extends ToolbarConfig$a {
|
|
|
1037
1037
|
toolbar?: boolean | (ToolbarConfig$a & Record<string, boolean | undefined>);
|
|
1038
1038
|
/** Toolbar position */
|
|
1039
1039
|
toolbarPosition?: 'top' | 'bottom';
|
|
1040
|
-
/** Fit mode: '
|
|
1040
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1041
1041
|
fitMode?: 'page' | 'width';
|
|
1042
1042
|
/** Show thumbnail sidebar initially */
|
|
1043
1043
|
showThumbnails?: boolean;
|
|
@@ -1251,7 +1251,7 @@ interface PreviewViewerOptions$9 extends ToolbarConfig$9 {
|
|
|
1251
1251
|
toolbar?: boolean | (ToolbarConfig$9 & Record<string, boolean | undefined>);
|
|
1252
1252
|
/** Toolbar position */
|
|
1253
1253
|
toolbarPosition?: 'top' | 'bottom';
|
|
1254
|
-
/** Fit mode: '
|
|
1254
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1255
1255
|
fitMode?: 'page' | 'width';
|
|
1256
1256
|
/** Show thumbnail sidebar initially */
|
|
1257
1257
|
showThumbnails?: boolean;
|
|
@@ -1465,7 +1465,7 @@ interface PreviewViewerOptions$8 extends ToolbarConfig$8 {
|
|
|
1465
1465
|
toolbar?: boolean | (ToolbarConfig$8 & Record<string, boolean | undefined>);
|
|
1466
1466
|
/** Toolbar position */
|
|
1467
1467
|
toolbarPosition?: 'top' | 'bottom';
|
|
1468
|
-
/** Fit mode: '
|
|
1468
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1469
1469
|
fitMode?: 'page' | 'width';
|
|
1470
1470
|
/** Show thumbnail sidebar initially */
|
|
1471
1471
|
showThumbnails?: boolean;
|
|
@@ -1679,7 +1679,7 @@ interface PreviewViewerOptions$7 extends ToolbarConfig$7 {
|
|
|
1679
1679
|
toolbar?: boolean | (ToolbarConfig$7 & Record<string, boolean | undefined>);
|
|
1680
1680
|
/** Toolbar position */
|
|
1681
1681
|
toolbarPosition?: 'top' | 'bottom';
|
|
1682
|
-
/** Fit mode: '
|
|
1682
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1683
1683
|
fitMode?: 'page' | 'width';
|
|
1684
1684
|
/** Show thumbnail sidebar initially */
|
|
1685
1685
|
showThumbnails?: boolean;
|
|
@@ -1893,7 +1893,7 @@ interface PreviewViewerOptions$6 extends ToolbarConfig$6 {
|
|
|
1893
1893
|
toolbar?: boolean | (ToolbarConfig$6 & Record<string, boolean | undefined>);
|
|
1894
1894
|
/** Toolbar position */
|
|
1895
1895
|
toolbarPosition?: 'top' | 'bottom';
|
|
1896
|
-
/** Fit mode: '
|
|
1896
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
1897
1897
|
fitMode?: 'page' | 'width';
|
|
1898
1898
|
/** Show thumbnail sidebar initially */
|
|
1899
1899
|
showThumbnails?: boolean;
|
|
@@ -2107,7 +2107,7 @@ interface PreviewViewerOptions$5 extends ToolbarConfig$5 {
|
|
|
2107
2107
|
toolbar?: boolean | (ToolbarConfig$5 & Record<string, boolean | undefined>);
|
|
2108
2108
|
/** Toolbar position */
|
|
2109
2109
|
toolbarPosition?: 'top' | 'bottom';
|
|
2110
|
-
/** Fit mode: '
|
|
2110
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2111
2111
|
fitMode?: 'page' | 'width';
|
|
2112
2112
|
/** Show thumbnail sidebar initially */
|
|
2113
2113
|
showThumbnails?: boolean;
|
|
@@ -2321,7 +2321,7 @@ interface PreviewViewerOptions$4 extends ToolbarConfig$4 {
|
|
|
2321
2321
|
toolbar?: boolean | (ToolbarConfig$4 & Record<string, boolean | undefined>);
|
|
2322
2322
|
/** Toolbar position */
|
|
2323
2323
|
toolbarPosition?: 'top' | 'bottom';
|
|
2324
|
-
/** Fit mode: '
|
|
2324
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2325
2325
|
fitMode?: 'page' | 'width';
|
|
2326
2326
|
/** Show thumbnail sidebar initially */
|
|
2327
2327
|
showThumbnails?: boolean;
|
|
@@ -2535,7 +2535,7 @@ interface PreviewViewerOptions$3 extends ToolbarConfig$3 {
|
|
|
2535
2535
|
toolbar?: boolean | (ToolbarConfig$3 & Record<string, boolean | undefined>);
|
|
2536
2536
|
/** Toolbar position */
|
|
2537
2537
|
toolbarPosition?: 'top' | 'bottom';
|
|
2538
|
-
/** Fit mode: '
|
|
2538
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2539
2539
|
fitMode?: 'page' | 'width';
|
|
2540
2540
|
/** Show thumbnail sidebar initially */
|
|
2541
2541
|
showThumbnails?: boolean;
|
|
@@ -2749,7 +2749,7 @@ interface PreviewViewerOptions$2 extends ToolbarConfig$2 {
|
|
|
2749
2749
|
toolbar?: boolean | (ToolbarConfig$2 & Record<string, boolean | undefined>);
|
|
2750
2750
|
/** Toolbar position */
|
|
2751
2751
|
toolbarPosition?: 'top' | 'bottom';
|
|
2752
|
-
/** Fit mode: '
|
|
2752
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2753
2753
|
fitMode?: 'page' | 'width';
|
|
2754
2754
|
/** Show thumbnail sidebar initially */
|
|
2755
2755
|
showThumbnails?: boolean;
|
|
@@ -2968,7 +2968,7 @@ interface PreviewViewerOptions$1 extends ToolbarConfig$1 {
|
|
|
2968
2968
|
toolbar?: boolean | (ToolbarConfig$1 & Record<string, boolean | undefined>);
|
|
2969
2969
|
/** Toolbar position */
|
|
2970
2970
|
toolbarPosition?: 'top' | 'bottom';
|
|
2971
|
-
/** Fit mode: '
|
|
2971
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
2972
2972
|
fitMode?: 'page' | 'width';
|
|
2973
2973
|
/** Show thumbnail sidebar initially */
|
|
2974
2974
|
showThumbnails?: boolean;
|
|
@@ -3206,7 +3206,7 @@ interface PreviewViewerOptions extends ToolbarConfig {
|
|
|
3206
3206
|
toolbar?: boolean | (ToolbarConfig & Record<string, boolean | undefined>);
|
|
3207
3207
|
/** Toolbar position */
|
|
3208
3208
|
toolbarPosition?: 'top' | 'bottom';
|
|
3209
|
-
/** Fit mode: '
|
|
3209
|
+
/** Fit mode: 'width' (default, fit available container width preserving aspect ratio) or 'page' */
|
|
3210
3210
|
fitMode?: 'page' | 'width';
|
|
3211
3211
|
/** Show thumbnail sidebar initially */
|
|
3212
3212
|
showThumbnails?: boolean;
|