@edgepdf/viewer-react 0.0.34 → 0.0.35

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11506,8 +11506,10 @@ var MarkerManager = class {
11506
11506
  }
11507
11507
  const overlaySize = 40;
11508
11508
  const borderWidth = 1;
11509
- const overlayAnchorX = overlaySize / 2 + (MARKER_SPEC.WIDTH / 2 - MARKER_SPEC.ANCHOR_X);
11510
- const overlayAnchorY = overlaySize / 2 + (MARKER_SPEC.HEIGHT / 2 - MARKER_SPEC.ANCHOR_Y);
11509
+ const iconCenterOffsetX = MARKER_SPEC.WIDTH / 2 - MARKER_SPEC.ANCHOR_X;
11510
+ const iconCenterOffsetY = MARKER_SPEC.HEIGHT / 2 - MARKER_SPEC.ANCHOR_Y;
11511
+ const overlayAnchorX = overlaySize / 2 - iconCenterOffsetX;
11512
+ const overlayAnchorY = overlaySize / 2 - iconCenterOffsetY;
11511
11513
  const overlayHTML = `
11512
11514
  <div style="
11513
11515
  width: ${overlaySize}px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgepdf/viewer-react",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "EdgePDF Viewer - React components for viewing PDF documents with interactive markers and zoom controls",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",