@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.
@@ -17233,15 +17233,13 @@ const PageCanvas = forwardRef(
17233
17233
  }
17234
17234
  updateElement(elementId, {
17235
17235
  text: newText,
17236
- ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight },
17237
- ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17236
+ ...typeof nextHeight === "number" && nextHeight > 0 && { height: nextHeight }
17238
17237
  });
17239
17238
  } else {
17240
17239
  updateElement(elementId, {
17241
17240
  text: newText,
17242
17241
  ...fabricHeight > 0 && { height: fabricHeight },
17243
- ...fabricWidth > 0 && { width: fabricWidth },
17244
- ...target.styles && Object.keys(target.styles).length > 0 ? { styles: JSON.parse(JSON.stringify(target.styles)) } : {}
17242
+ ...fabricWidth > 0 && { width: fabricWidth }
17245
17243
  });
17246
17244
  }
17247
17245
  commitHistory2();
@@ -26426,9 +26424,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26426
26424
  }
26427
26425
  return svgString;
26428
26426
  }
26429
- const resolvedPackageVersion = "0.5.490";
26427
+ const resolvedPackageVersion = "0.5.491";
26430
26428
  const PACKAGE_VERSION = resolvedPackageVersion;
26431
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.490";
26429
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.491";
26432
26430
  const roundParityValue = (value) => {
26433
26431
  if (typeof value !== "number") return value;
26434
26432
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27242,7 +27240,7 @@ class PixldocsRenderer {
27242
27240
  await this.waitForCanvasScene(container, cloned, i);
27243
27241
  }
27244
27242
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
27245
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-f828EcQ6.js");
27243
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-7V15HkWe.js");
27246
27244
  const prepared = preparePagesForExport(
27247
27245
  cloned.pages,
27248
27246
  canvasWidth,
@@ -29562,7 +29560,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29562
29560
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29563
29561
  sanitizeSvgTreeForPdf(svgToDraw);
29564
29562
  try {
29565
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-f828EcQ6.js");
29563
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-7V15HkWe.js");
29566
29564
  try {
29567
29565
  await logTextMeasurementDiagnostic(svgToDraw);
29568
29566
  } catch {
@@ -29879,4 +29877,4 @@ export {
29879
29877
  buildTeaserBlurFlatKeys as y,
29880
29878
  collectFontDescriptorsFromConfig as z
29881
29879
  };
29882
- //# sourceMappingURL=index-xazc-CdA.js.map
29880
+ //# sourceMappingURL=index-Cr96RvlZ.js.map