@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.
@@ -17096,13 +17096,15 @@ const PageCanvas = forwardRef(
17096
17096
  }
17097
17097
  updateElement(elementId, {
17098
17098
  text: newText,
17099
- ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight }
17099
+ ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight },
17100
+ ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17100
17101
  });
17101
17102
  } else {
17102
17103
  updateElement(elementId, {
17103
17104
  text: newText,
17104
17105
  ...fabricHeight > 0 && { height: fabricHeight },
17105
- ...fabricWidth > 0 && { width: fabricWidth }
17106
+ ...fabricWidth > 0 && { width: fabricWidth },
17107
+ ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17106
17108
  });
17107
17109
  }
17108
17110
  commitHistory2();
@@ -26221,9 +26223,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26221
26223
  }
26222
26224
  return svgString;
26223
26225
  }
26224
- const resolvedPackageVersion = "0.5.460";
26226
+ const resolvedPackageVersion = "0.5.461";
26225
26227
  const PACKAGE_VERSION = resolvedPackageVersion;
26226
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.460";
26228
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.461";
26227
26229
  const roundParityValue = (value) => {
26228
26230
  if (typeof value !== "number") return value;
26229
26231
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27037,7 +27039,7 @@ class PixldocsRenderer {
27037
27039
  await this.waitForCanvasScene(container, cloned, i);
27038
27040
  }
27039
27041
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
27040
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CWiNW81v.js");
27042
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-Bn1wgD8Q.js");
27041
27043
  const prepared = preparePagesForExport(
27042
27044
  cloned.pages,
27043
27045
  canvasWidth,
@@ -29357,7 +29359,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29357
29359
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29358
29360
  sanitizeSvgTreeForPdf(svgToDraw);
29359
29361
  try {
29360
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CWiNW81v.js");
29362
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-Bn1wgD8Q.js");
29361
29363
  try {
29362
29364
  await logTextMeasurementDiagnostic(svgToDraw);
29363
29365
  } catch {
@@ -29674,4 +29676,4 @@ export {
29674
29676
  buildTeaserBlurFlatKeys as y,
29675
29677
  collectFontDescriptorsFromConfig as z
29676
29678
  };
29677
- //# sourceMappingURL=index-B306IfvT.js.map
29679
+ //# sourceMappingURL=index-COG7WTYO.js.map