@pixldocs/canvas-renderer 0.5.207 → 0.5.209

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.
@@ -10759,7 +10759,12 @@ const PageCanvas = forwardRef(
10759
10759
  top: 0,
10760
10760
  width: canvasWidth,
10761
10761
  height: canvasHeight,
10762
- absolutePositioned: true
10762
+ absolutePositioned: true,
10763
+ // Rect defaults to strokeWidth:1, which makes the clip region inset
10764
+ // by ~0.5px on top/left and bleed ~0.5px on bottom/right after the
10765
+ // viewport-transform multiply — visible as a 1px page-bg sliver
10766
+ // along the top/left edges of the canvas at any zoom level.
10767
+ strokeWidth: 0
10763
10768
  });
10764
10769
  fc.requestRenderAll();
10765
10770
  }, [canvasWidth, canvasHeight]);
@@ -18536,6 +18541,13 @@ function warpTextboxSvgAlongPath(svg, obj) {
18536
18541
  const existing = bgEl.getAttribute("transform");
18537
18542
  bgEl.setAttribute("transform", existing ? `${matrix} ${existing}` : matrix);
18538
18543
  }
18544
+ const bgShadowPaths = Array.from(doc2.querySelectorAll(
18545
+ "g.__pdBgShadowClone > path, g.__pdShadowRaster > path"
18546
+ ));
18547
+ for (const p of bgShadowPaths) {
18548
+ const existing = p.getAttribute("transform");
18549
+ p.setAttribute("transform", existing ? `${matrix} ${existing}` : matrix);
18550
+ }
18539
18551
  return new XMLSerializer().serializeToString(doc2.documentElement);
18540
18552
  }
18541
18553
  const resolved = resolveTextPath(tp, Number(obj.width) || 0, Number(obj.fontSize) || 16);
@@ -18934,9 +18946,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
18934
18946
  }
18935
18947
  return svgString;
18936
18948
  }
18937
- const resolvedPackageVersion = "0.5.207";
18949
+ const resolvedPackageVersion = "0.5.209";
18938
18950
  const PACKAGE_VERSION = resolvedPackageVersion;
18939
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.207";
18951
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.209";
18940
18952
  const roundParityValue = (value) => {
18941
18953
  if (typeof value !== "number") return value;
18942
18954
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -19615,7 +19627,7 @@ class PixldocsRenderer {
19615
19627
  await this.waitForCanvasScene(container, cloned, i);
19616
19628
  }
19617
19629
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
19618
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-HZVoeZf3.js");
19630
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-C0GsER0C.js");
19619
19631
  const prepared = preparePagesForExport(
19620
19632
  cloned.pages,
19621
19633
  canvasWidth,
@@ -21799,7 +21811,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
21799
21811
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
21800
21812
  sanitizeSvgTreeForPdf(svgToDraw);
21801
21813
  try {
21802
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-HZVoeZf3.js");
21814
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-C0GsER0C.js");
21803
21815
  try {
21804
21816
  await logTextMeasurementDiagnostic(svgToDraw);
21805
21817
  } catch {
@@ -22175,14 +22187,14 @@ export {
22175
22187
  canvasImageLoader as a6,
22176
22188
  getProxiedImageUrl as b,
22177
22189
  captureFabricCanvasSvgForPdf as c,
22178
- bakeEdgeFade as d,
22190
+ getImageProxyFetchOptions as d,
22179
22191
  isGroup as e,
22180
22192
  findNodeById as f,
22181
22193
  getCanvasForPage as g,
22182
- hasEdgeFade as h,
22194
+ buildRoundedTrianglePath as h,
22183
22195
  isElement as i,
22184
- buildRoundedTrianglePath as j,
22185
- getImageProxyFetchOptions as k,
22196
+ hasEdgeFade as j,
22197
+ bakeEdgeFade as k,
22186
22198
  getRoundedRectRadii as l,
22187
22199
  getTrianglePoints as m,
22188
22200
  normalizeShapeType as n,
@@ -22199,4 +22211,4 @@ export {
22199
22211
  buildTeaserBlurFlatKeys as y,
22200
22212
  collectFontDescriptorsFromConfig as z
22201
22213
  };
22202
- //# sourceMappingURL=index-D4Dis-kD.js.map
22214
+ //# sourceMappingURL=index-DOIdbh-Q.js.map