@prose-reader/enhancer-pdf 1.126.0 → 1.127.0

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/dist/index.js CHANGED
@@ -32,7 +32,7 @@ const copyCanvasToFrame = (canvas, frameDoc) => {
32
32
  return iframeCanvas;
33
33
  };
34
34
 
35
- const pdfFrameStyle = ".textLayer {\n position: absolute;\n width: 100%;\n height: 100%;\n color: black;\n overflow: hidden;\n line-height: 1;\n}\n\nbody {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n padding: 0;\n}\n";
35
+ const pdfFrameStyle = ".textLayer {\n position: absolute;\n width: 100%;\n height: 100%;\n color: black;\n overflow: hidden;\n line-height: 1;\n}\n\nbody {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n padding: 0;\n /* This will prevent scrollbars and wrong offset of annotation layer */\n overflow: hidden;\n}\n";
36
36
 
37
37
  class PdfRenderer extends DocumentRenderer {
38
38
  constructor(pdfViewerStyle, params) {
@@ -52,7 +52,7 @@
52
52
  return iframeCanvas;
53
53
  };
54
54
 
55
- const pdfFrameStyle = ".textLayer {\n position: absolute;\n width: 100%;\n height: 100%;\n color: black;\n overflow: hidden;\n line-height: 1;\n}\n\nbody {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n padding: 0;\n}\n";
55
+ const pdfFrameStyle = ".textLayer {\n position: absolute;\n width: 100%;\n height: 100%;\n color: black;\n overflow: hidden;\n line-height: 1;\n}\n\nbody {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n padding: 0;\n /* This will prevent scrollbars and wrong offset of annotation layer */\n overflow: hidden;\n}\n";
56
56
 
57
57
  class PdfRenderer extends core.DocumentRenderer {
58
58
  constructor(pdfViewerStyle, params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prose-reader/enhancer-pdf",
3
- "version": "1.126.0",
3
+ "version": "1.127.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -28,5 +28,5 @@
28
28
  "pdfjs-dist": "^4.8.69",
29
29
  "rxjs": "*"
30
30
  },
31
- "gitHead": "f17c8db176c5f917d91776aeb1e6f31f99abd0b7"
31
+ "gitHead": "3853ad2ffb4f4b4ae690cc35e9cee025e0fc5a97"
32
32
  }