@pixldocs/canvas-renderer 0.5.456 → 0.5.457

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.
@@ -21092,6 +21092,13 @@ function setInTree(nodes, elementId, targetProperty, value) {
21092
21092
  delete node.cropPanY;
21093
21093
  delete node.cropZoom;
21094
21094
  }
21095
+ if (nextSrc === "") {
21096
+ node.visible = false;
21097
+ node.opacity = 0;
21098
+ } else {
21099
+ node.visible = true;
21100
+ if (node.opacity === 0) delete node.opacity;
21101
+ }
21095
21102
  } else {
21096
21103
  const gradSibling = gradientSiblingForTarget(targetProperty);
21097
21104
  if (gradSibling) {
@@ -26037,9 +26044,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26037
26044
  }
26038
26045
  return svgString;
26039
26046
  }
26040
- const resolvedPackageVersion = "0.5.456";
26047
+ const resolvedPackageVersion = "0.5.457";
26041
26048
  const PACKAGE_VERSION = resolvedPackageVersion;
26042
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.456";
26049
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.457";
26043
26050
  const roundParityValue = (value) => {
26044
26051
  if (typeof value !== "number") return value;
26045
26052
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -26853,7 +26860,7 @@ class PixldocsRenderer {
26853
26860
  await this.waitForCanvasScene(container, cloned, i);
26854
26861
  }
26855
26862
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
26856
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CAeuEsjr.js");
26863
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DHunvQTF.js");
26857
26864
  const prepared = preparePagesForExport(
26858
26865
  cloned.pages,
26859
26866
  canvasWidth,
@@ -29173,7 +29180,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29173
29180
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29174
29181
  sanitizeSvgTreeForPdf(svgToDraw);
29175
29182
  try {
29176
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CAeuEsjr.js");
29183
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DHunvQTF.js");
29177
29184
  try {
29178
29185
  await logTextMeasurementDiagnostic(svgToDraw);
29179
29186
  } catch {
@@ -29573,4 +29580,4 @@ export {
29573
29580
  buildTeaserBlurFlatKeys as y,
29574
29581
  collectFontDescriptorsFromConfig as z
29575
29582
  };
29576
- //# sourceMappingURL=index-DbfhlD78.js.map
29583
+ //# sourceMappingURL=index-BWYQI5Fp.js.map