@unlev/exeq 0.3.3 → 0.4.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.mjs CHANGED
@@ -250,7 +250,7 @@ function PdfViewer({
250
250
  "div",
251
251
  {
252
252
  className: "pdf-page",
253
- style: { aspectRatio: `${page.width} / ${page.height}` },
253
+ style: { width: `${page.pdfWidth || 612}pt`, maxWidth: "100%", aspectRatio: `${page.width} / ${page.height}` },
254
254
  onMouseDown: (e) => handlePageMouseDown(e, pageIndex),
255
255
  onDragOver: handleDragOver,
256
256
  onDrop: (e) => handleDrop(e, pageIndex),
@@ -1621,9 +1621,9 @@ function DesignerView({
1621
1621
  className: "field-overlay-placeholder",
1622
1622
  style: {
1623
1623
  color: field.value ? inkColor : void 0,
1624
- fontSize: `${field.fontSize * 0.6}px`,
1624
+ fontSize: `${field.fontSize}pt`,
1625
1625
  fontFamily: cssFontFamily,
1626
- letterSpacing: field.letterSpacing ? `${field.letterSpacing * 0.6}px` : void 0,
1626
+ letterSpacing: field.letterSpacing ? `${field.letterSpacing}pt` : void 0,
1627
1627
  lineHeight: field.lineHeight ? `${field.lineHeight}` : void 0
1628
1628
  },
1629
1629
  children: field.value || field.placeholder
@@ -2706,8 +2706,8 @@ ${row.join(",")}`, "csv");
2706
2706
  return /* @__PURE__ */ jsx6("div", { className: "field-overlay-value", children: field.value || (/* @__PURE__ */ new Date()).toLocaleDateString() });
2707
2707
  }
2708
2708
  const fontStyle = {
2709
- fontSize: `${field.fontSize * 0.6}px`,
2710
- letterSpacing: field.letterSpacing ? `${field.letterSpacing * 0.6}px` : void 0,
2709
+ fontSize: `${field.fontSize}pt`,
2710
+ letterSpacing: field.letterSpacing ? `${field.letterSpacing}pt` : void 0,
2711
2711
  lineHeight: field.lineHeight ? `${field.lineHeight}` : void 0,
2712
2712
  fontFamily: field.fontFamily === "Courier" ? '"Courier New", Courier, monospace' : field.fontFamily === "TimesRoman" ? '"Times New Roman", Times, serif' : field.fontFamily === "Helvetica" ? "Helvetica, Arial, sans-serif" : void 0
2713
2713
  };