@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.
@@ -14409,6 +14409,14 @@ const PageCanvas = react.forwardRef(
14409
14409
  const asRect0 = obj.getBoundingRect();
14410
14410
  let didReflowTextChild = false;
14411
14411
  for (const child of obj.getObjects()) {
14412
+ const childLocalAngle = child.__asLiveOrigAngle != null ? child.__asLiveOrigAngle : child.angle ?? 0;
14413
+ const isRotatedChild = Math.abs((childLocalAngle % 360 + 360) % 360) > 0.5 && Math.abs((childLocalAngle % 360 + 360) % 360 - 360) > 0.5;
14414
+ if (isRotatedChild) {
14415
+ if (child.__asLiveOrigAngle == null) {
14416
+ child.__asLiveOrigAngle = child.angle ?? 0;
14417
+ }
14418
+ continue;
14419
+ }
14412
14420
  if (child instanceof fabric__namespace.Group && (child.__cropGroup || ((_f = child._ct) == null ? void 0 : _f.isCropGroup))) {
14413
14421
  const ct = child.__cropData;
14414
14422
  if (!ct) continue;
@@ -25145,9 +25153,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25145
25153
  }
25146
25154
  return svgString;
25147
25155
  }
25148
- const resolvedPackageVersion = "0.5.403";
25156
+ const resolvedPackageVersion = "0.5.404";
25149
25157
  const PACKAGE_VERSION = resolvedPackageVersion;
25150
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.403";
25158
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.404";
25151
25159
  const roundParityValue = (value) => {
25152
25160
  if (typeof value !== "number") return value;
25153
25161
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25961,7 +25969,7 @@ class PixldocsRenderer {
25961
25969
  await this.waitForCanvasScene(container, cloned, i);
25962
25970
  }
25963
25971
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25964
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BevFDNWQ.cjs"));
25972
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CMUgVgvn.cjs"));
25965
25973
  const prepared = preparePagesForExport(
25966
25974
  cloned.pages,
25967
25975
  canvasWidth,
@@ -28281,7 +28289,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
28281
28289
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
28282
28290
  sanitizeSvgTreeForPdf(svgToDraw);
28283
28291
  try {
28284
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BevFDNWQ.cjs"));
28292
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CMUgVgvn.cjs"));
28285
28293
  try {
28286
28294
  await logTextMeasurementDiagnostic(svgToDraw);
28287
28295
  } catch {
@@ -28678,4 +28686,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
28678
28686
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
28679
28687
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
28680
28688
  exports.warmTemplateFromForm = warmTemplateFromForm;
28681
- //# sourceMappingURL=index-Bp9XxxF8.cjs.map
28689
+ //# sourceMappingURL=index-BsKKxOH4.cjs.map