@pixldocs/canvas-renderer 0.5.490 → 0.5.491

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.
@@ -17251,15 +17251,13 @@ const PageCanvas = react.forwardRef(
17251
17251
  }
17252
17252
  updateElement(elementId, {
17253
17253
  text: newText,
17254
- ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight },
17255
- ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17254
+ ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight }
17256
17255
  });
17257
17256
  } else {
17258
17257
  updateElement(elementId, {
17259
17258
  text: newText,
17260
17259
  ...fabricHeight > 0 && { height: fabricHeight },
17261
- ...fabricWidth > 0 && { width: fabricWidth },
17262
- ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17260
+ ...fabricWidth > 0 && { width: fabricWidth }
17263
17261
  });
17264
17262
  }
17265
17263
  commitHistory2();
@@ -26444,9 +26442,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26444
26442
  }
26445
26443
  return svgString;
26446
26444
  }
26447
- const resolvedPackageVersion = "0.5.490";
26445
+ const resolvedPackageVersion = "0.5.491";
26448
26446
  const PACKAGE_VERSION = resolvedPackageVersion;
26449
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.490";
26447
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.491";
26450
26448
  const roundParityValue = (value) => {
26451
26449
  if (typeof value !== "number") return value;
26452
26450
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27260,7 +27258,7 @@ class PixldocsRenderer {
27260
27258
  await this.waitForCanvasScene(container, cloned, i);
27261
27259
  }
27262
27260
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
27263
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-mxgjzQsw.cjs"));
27261
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BWUlBEaK.cjs"));
27264
27262
  const prepared = preparePagesForExport(
27265
27263
  cloned.pages,
27266
27264
  canvasWidth,
@@ -29580,7 +29578,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29580
29578
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29581
29579
  sanitizeSvgTreeForPdf(svgToDraw);
29582
29580
  try {
29583
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-mxgjzQsw.cjs"));
29581
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BWUlBEaK.cjs"));
29584
29582
  try {
29585
29583
  await logTextMeasurementDiagnostic(svgToDraw);
29586
29584
  } catch {
@@ -29894,4 +29892,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29894
29892
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29895
29893
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29896
29894
  exports.warmTemplateFromForm = warmTemplateFromForm;
29897
- //# sourceMappingURL=index-C47g5w5y.cjs.map
29895
+ //# sourceMappingURL=index-sfUNqu61.cjs.map