@pixldocs/canvas-renderer 0.5.403 → 0.5.404

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.
@@ -14391,6 +14391,14 @@ const PageCanvas = forwardRef(
14391
14391
  const asRect0 = obj.getBoundingRect();
14392
14392
  let didReflowTextChild = false;
14393
14393
  for (const child of obj.getObjects()) {
14394
+ const childLocalAngle = child.__asLiveOrigAngle != null ? child.__asLiveOrigAngle : child.angle ?? 0;
14395
+ const isRotatedChild = Math.abs((childLocalAngle % 360 + 360) % 360) > 0.5 && Math.abs((childLocalAngle % 360 + 360) % 360 - 360) > 0.5;
14396
+ if (isRotatedChild) {
14397
+ if (child.__asLiveOrigAngle == null) {
14398
+ child.__asLiveOrigAngle = child.angle ?? 0;
14399
+ }
14400
+ continue;
14401
+ }
14394
14402
  if (child instanceof fabric.Group && (child.__cropGroup || ((_f = child._ct) == null ? void 0 : _f.isCropGroup))) {
14395
14403
  const ct = child.__cropData;
14396
14404
  if (!ct) continue;
@@ -25127,9 +25135,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25127
25135
  }
25128
25136
  return svgString;
25129
25137
  }
25130
- const resolvedPackageVersion = "0.5.403";
25138
+ const resolvedPackageVersion = "0.5.404";
25131
25139
  const PACKAGE_VERSION = resolvedPackageVersion;
25132
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.403";
25140
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.404";
25133
25141
  const roundParityValue = (value) => {
25134
25142
  if (typeof value !== "number") return value;
25135
25143
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25943,7 +25951,7 @@ class PixldocsRenderer {
25943
25951
  await this.waitForCanvasScene(container, cloned, i);
25944
25952
  }
25945
25953
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25946
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-V449U4Y7.js");
25954
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CWHd6dnp.js");
25947
25955
  const prepared = preparePagesForExport(
25948
25956
  cloned.pages,
25949
25957
  canvasWidth,
@@ -28263,7 +28271,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
28263
28271
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
28264
28272
  sanitizeSvgTreeForPdf(svgToDraw);
28265
28273
  try {
28266
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-V449U4Y7.js");
28274
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CWHd6dnp.js");
28267
28275
  try {
28268
28276
  await logTextMeasurementDiagnostic(svgToDraw);
28269
28277
  } catch {
@@ -28663,4 +28671,4 @@ export {
28663
28671
  buildTeaserBlurFlatKeys as y,
28664
28672
  collectFontDescriptorsFromConfig as z
28665
28673
  };
28666
- //# sourceMappingURL=index-B8c2DkaJ.js.map
28674
+ //# sourceMappingURL=index-FljS6ssY.js.map