@pixldocs/canvas-renderer 0.5.460 → 0.5.461

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.
@@ -17114,13 +17114,15 @@ const PageCanvas = react.forwardRef(
17114
17114
  }
17115
17115
  updateElement(elementId, {
17116
17116
  text: newText,
17117
- ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight }
17117
+ ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight },
17118
+ ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17118
17119
  });
17119
17120
  } else {
17120
17121
  updateElement(elementId, {
17121
17122
  text: newText,
17122
17123
  ...fabricHeight > 0 && { height: fabricHeight },
17123
- ...fabricWidth > 0 && { width: fabricWidth }
17124
+ ...fabricWidth > 0 && { width: fabricWidth },
17125
+ ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17124
17126
  });
17125
17127
  }
17126
17128
  commitHistory2();
@@ -26239,9 +26241,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26239
26241
  }
26240
26242
  return svgString;
26241
26243
  }
26242
- const resolvedPackageVersion = "0.5.460";
26244
+ const resolvedPackageVersion = "0.5.461";
26243
26245
  const PACKAGE_VERSION = resolvedPackageVersion;
26244
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.460";
26246
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.461";
26245
26247
  const roundParityValue = (value) => {
26246
26248
  if (typeof value !== "number") return value;
26247
26249
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27055,7 +27057,7 @@ class PixldocsRenderer {
27055
27057
  await this.waitForCanvasScene(container, cloned, i);
27056
27058
  }
27057
27059
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
27058
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-B5Xxp9RH.cjs"));
27060
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-C7mmAR68.cjs"));
27059
27061
  const prepared = preparePagesForExport(
27060
27062
  cloned.pages,
27061
27063
  canvasWidth,
@@ -29375,7 +29377,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29375
29377
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29376
29378
  sanitizeSvgTreeForPdf(svgToDraw);
29377
29379
  try {
29378
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-B5Xxp9RH.cjs"));
29380
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-C7mmAR68.cjs"));
29379
29381
  try {
29380
29382
  await logTextMeasurementDiagnostic(svgToDraw);
29381
29383
  } catch {
@@ -29689,4 +29691,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29689
29691
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29690
29692
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29691
29693
  exports.warmTemplateFromForm = warmTemplateFromForm;
29692
- //# sourceMappingURL=index-CtJvkbzV.cjs.map
29694
+ //# sourceMappingURL=index-D1sMo2it.cjs.map