@pixldocs/canvas-renderer 0.5.360 → 0.5.361

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.
@@ -15096,9 +15096,8 @@ const PageCanvas = react.forwardRef(
15096
15096
  finalScaleX = 1;
15097
15097
  finalScaleY = 1;
15098
15098
  if (isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection) {
15099
- const frameBounds = getObjectFrameBoundsInSelection(activeObj, obj, sourceFrameW, sourceFrameH);
15100
- absoluteLeft = frameBounds.left;
15101
- absoluteTop = frameBounds.top;
15099
+ absoluteLeft = (decomposed.translateX ?? absoluteLeft) - finalWidth / 2;
15100
+ absoluteTop = (decomposed.translateY ?? absoluteTop) - finalHeight / 2;
15102
15101
  } else {
15103
15102
  absoluteLeft = (decomposed.translateX ?? absoluteLeft) - finalWidth / 2;
15104
15103
  absoluteTop = (decomposed.translateY ?? absoluteTop) - finalHeight / 2;
@@ -24633,9 +24632,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24633
24632
  }
24634
24633
  return svgString;
24635
24634
  }
24636
- const resolvedPackageVersion = "0.5.360";
24635
+ const resolvedPackageVersion = "0.5.361";
24637
24636
  const PACKAGE_VERSION = resolvedPackageVersion;
24638
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.360";
24637
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.361";
24639
24638
  const roundParityValue = (value) => {
24640
24639
  if (typeof value !== "number") return value;
24641
24640
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25449,7 +25448,7 @@ class PixldocsRenderer {
25449
25448
  await this.waitForCanvasScene(container, cloned, i);
25450
25449
  }
25451
25450
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25452
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BGYJ-v0u.cjs"));
25451
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CTUzYtqL.cjs"));
25453
25452
  const prepared = preparePagesForExport(
25454
25453
  cloned.pages,
25455
25454
  canvasWidth,
@@ -27769,7 +27768,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27769
27768
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27770
27769
  sanitizeSvgTreeForPdf(svgToDraw);
27771
27770
  try {
27772
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BGYJ-v0u.cjs"));
27771
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CTUzYtqL.cjs"));
27773
27772
  try {
27774
27773
  await logTextMeasurementDiagnostic(svgToDraw);
27775
27774
  } catch {
@@ -28166,4 +28165,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
28166
28165
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
28167
28166
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
28168
28167
  exports.warmTemplateFromForm = warmTemplateFromForm;
28169
- //# sourceMappingURL=index-BTxKjVRe.cjs.map
28168
+ //# sourceMappingURL=index-CG6KfVLP.cjs.map