@getflip/swirl-components 0.192.0 → 0.192.1
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/components.json +1 -1
- package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +7 -7
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.js +7 -7
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-file-viewer-pdf2.js +7 -7
- package/dist/esm/swirl-file-viewer_7.entry.js +7 -7
- package/dist/swirl-components/{p-cc1838df.entry.js → p-405aa8bd.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
package/components.json
CHANGED
|
@@ -30096,25 +30096,23 @@ const SwirlFileViewerPdf = class {
|
|
|
30096
30096
|
}
|
|
30097
30097
|
|
|
30098
30098
|
@page {
|
|
30099
|
-
size: a4;
|
|
30099
|
+
size: a4 !important;
|
|
30100
30100
|
margin: 0;
|
|
30101
30101
|
padding: 0;
|
|
30102
30102
|
}
|
|
30103
30103
|
|
|
30104
|
-
body {
|
|
30105
|
-
|
|
30106
|
-
|
|
30104
|
+
html, body {
|
|
30105
|
+
width: 210mm;
|
|
30106
|
+
height: 297mm;
|
|
30107
30107
|
}
|
|
30108
30108
|
|
|
30109
30109
|
img {
|
|
30110
30110
|
display: block;
|
|
30111
30111
|
max-width: 100%;
|
|
30112
30112
|
max-height: 100%;
|
|
30113
|
-
width: 100%;
|
|
30114
|
-
height: auto;
|
|
30115
30113
|
page-break-after: always;
|
|
30116
30114
|
}
|
|
30117
|
-
|
|
30115
|
+
`;
|
|
30118
30116
|
let html = `
|
|
30119
30117
|
<!DOCTYPE html>
|
|
30120
30118
|
<html lang="en">
|
|
@@ -30140,6 +30138,8 @@ const SwirlFileViewerPdf = class {
|
|
|
30140
30138
|
win.document.write(html);
|
|
30141
30139
|
win.focus();
|
|
30142
30140
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
30141
|
+
// var wnd = window.open("about:blank", "", "_blank");
|
|
30142
|
+
// wnd.document.write(html);
|
|
30143
30143
|
win.print();
|
|
30144
30144
|
iframe.remove();
|
|
30145
30145
|
}
|