@anaralabs/lector 3.7.0 → 3.7.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1267,7 +1267,7 @@ var useDetailCanvasLayer = ({
1267
1267
  );
1268
1268
  const visibleWidth = Math.max(0, visibleRight - visibleLeft);
1269
1269
  const visibleHeight = Math.max(0, visibleBottom - visibleTop);
1270
- const targetDetailScale = dpr * zoom / 2;
1270
+ const targetDetailScale = dpr * zoom * 1.3;
1271
1271
  const baseTargetScale = dpr * Math.min(zoom, 1);
1272
1272
  const baseScale = clampScaleForPage(baseTargetScale, pageWidth, pageHeight);
1273
1273
  const needsDetail = zoom > 1 && targetDetailScale - baseScale > 1e-3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anaralabs/lector",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Headless PDF viewer for React",
5
5
  "author": "andrewdr (https://github.com/andrewdoro)",
6
6
  "license": "MIT",