@pixldocs/canvas-renderer 0.5.254 → 0.5.255

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.
@@ -13324,6 +13324,7 @@ const PageCanvas = react.forwardRef(
13324
13324
  fabricCanvas.on("selection:cleared", () => {
13325
13325
  });
13326
13326
  fabricCanvas.on("object:scaling", (e) => {
13327
+ var _a2;
13327
13328
  if (!isActiveRef.current) return;
13328
13329
  const t = e.target;
13329
13330
  if (t) lastResizeScaleTargetRef.current = t;
@@ -13605,8 +13606,15 @@ const PageCanvas = react.forwardRef(
13605
13606
  } catch {
13606
13607
  }
13607
13608
  setGuides(gridGuidesForScale.length ? [...scaleGuides, ...gridGuidesForScale] : scaleGuides);
13609
+ if (drilledGroupIdRef.current) {
13610
+ try {
13611
+ (_a2 = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _a2.call(fabricCanvas);
13612
+ } catch {
13613
+ }
13614
+ }
13608
13615
  });
13609
13616
  fabricCanvas.on("object:resizing", (e) => {
13617
+ var _a2;
13610
13618
  if (!isActiveRef.current) return;
13611
13619
  const t = e.target;
13612
13620
  if (t) lastResizeScaleTargetRef.current = t;
@@ -13683,6 +13691,12 @@ const PageCanvas = react.forwardRef(
13683
13691
  } catch {
13684
13692
  }
13685
13693
  setGuides(gridGuidesForTextResize.length ? [...scaleGuides, ...gridGuidesForTextResize] : scaleGuides);
13694
+ if (drilledGroupIdRef.current) {
13695
+ try {
13696
+ (_a2 = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _a2.call(fabricCanvas);
13697
+ } catch {
13698
+ }
13699
+ }
13686
13700
  });
13687
13701
  fabricCanvas.on("object:rotating", (e) => {
13688
13702
  markSimpleTransform(e);
@@ -23515,9 +23529,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
23515
23529
  }
23516
23530
  return svgString;
23517
23531
  }
23518
- const resolvedPackageVersion = "0.5.254";
23532
+ const resolvedPackageVersion = "0.5.255";
23519
23533
  const PACKAGE_VERSION = resolvedPackageVersion;
23520
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.254";
23534
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.255";
23521
23535
  const roundParityValue = (value) => {
23522
23536
  if (typeof value !== "number") return value;
23523
23537
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -24331,7 +24345,7 @@ class PixldocsRenderer {
24331
24345
  await this.waitForCanvasScene(container, cloned, i);
24332
24346
  }
24333
24347
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
24334
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BpVM86xb.cjs"));
24348
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BK2ntULQ.cjs"));
24335
24349
  const prepared = preparePagesForExport(
24336
24350
  cloned.pages,
24337
24351
  canvasWidth,
@@ -26651,7 +26665,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
26651
26665
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
26652
26666
  sanitizeSvgTreeForPdf(svgToDraw);
26653
26667
  try {
26654
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BpVM86xb.cjs"));
26668
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BK2ntULQ.cjs"));
26655
26669
  try {
26656
26670
  await logTextMeasurementDiagnostic(svgToDraw);
26657
26671
  } catch {
@@ -27048,4 +27062,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
27048
27062
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
27049
27063
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
27050
27064
  exports.warmTemplateFromForm = warmTemplateFromForm;
27051
- //# sourceMappingURL=index-9Lw_NdWM.cjs.map
27065
+ //# sourceMappingURL=index-5whx8gZE.cjs.map