@edgepdf/viewer-react 0.0.26 → 0.0.28

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 +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10595,7 +10595,7 @@ var MarkerManager = class {
10595
10595
  showDeleteButton: true
10596
10596
  };
10597
10597
  // Default icon type is always 'pin'
10598
- defaultIconType = "pin";
10598
+ defaultIconType = "pin-gray";
10599
10599
  iconBasePath = "./images/";
10600
10600
  // Default to library's images folder
10601
10601
  /**
@@ -10685,7 +10685,7 @@ var MarkerManager = class {
10685
10685
  href: options.href,
10686
10686
  target: options.target,
10687
10687
  showLabel: options.showLabel ?? true,
10688
- iconType: options.iconType || "pin",
10688
+ iconType: options.iconType || "pin-gray",
10689
10689
  referenceId: options.referenceId,
10690
10690
  draggable: options.draggable,
10691
10691
  editable: options.editable,
@@ -11278,7 +11278,7 @@ var MarkerManager = class {
11278
11278
  iconUrl,
11279
11279
  iconSize: [30, 40],
11280
11280
  // Default marker size
11281
- iconAnchor: [30, 10],
11281
+ iconAnchor: [16, 36],
11282
11282
  // Point of the icon which will correspond to marker's location
11283
11283
  popupAnchor: [0, 0],
11284
11284
  // Point from which the popup should open relative to the iconAnchor
@@ -11295,7 +11295,7 @@ var MarkerManager = class {
11295
11295
  * @returns Leaflet marker instance
11296
11296
  */
11297
11297
  createLeafletMarker(marker) {
11298
- const iconType = marker.iconType || "pin";
11298
+ const iconType = marker.iconType || "pin-gray";
11299
11299
  const customIcon = this.createCustomIcon(iconType);
11300
11300
  const markerOptions = {
11301
11301
  title: marker.label,
@@ -11313,7 +11313,7 @@ var MarkerManager = class {
11313
11313
  leafletMarker.bindTooltip(marker.label, {
11314
11314
  permanent: false,
11315
11315
  direction: "top",
11316
- offset: [-13, -10],
11316
+ offset: [0, -30],
11317
11317
  className: "edgepdf-marker-tooltip"
11318
11318
  });
11319
11319
  }
@@ -11409,8 +11409,8 @@ var MarkerManager = class {
11409
11409
  }
11410
11410
  const overlaySize = 40;
11411
11411
  const borderWidth = 1;
11412
- const overlayAnchorX = 35;
11413
- const overlayAnchorY = 10;
11412
+ const overlayAnchorX = 20;
11413
+ const overlayAnchorY = 35;
11414
11414
  const overlayHTML = `
11415
11415
  <div style="
11416
11416
  width: ${overlaySize}px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgepdf/viewer-react",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
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",