@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-04-29T11:42:03",
2
+ "timestamp": "2024-04-30T12:34:59",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.3.1",
@@ -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
- height: 100%;
30106
- width: 100%;
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
  }