@pixldocs/canvas-renderer 0.5.253 → 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);
@@ -14595,6 +14609,12 @@ const PageCanvas = react.forwardRef(
14595
14609
  return;
14596
14610
  }
14597
14611
  editingTextIdRef.current = elementId || null;
14612
+ try {
14613
+ target.hasBorders = true;
14614
+ target.hasControls = true;
14615
+ target.borderColor = SELECTION_PRIMARY;
14616
+ } catch {
14617
+ }
14598
14618
  if (target.__pixldocsEmptyPlaceholder) {
14599
14619
  try {
14600
14620
  target.__pixldocsEmptyPlaceholder = false;
@@ -23509,9 +23529,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
23509
23529
  }
23510
23530
  return svgString;
23511
23531
  }
23512
- const resolvedPackageVersion = "0.5.253";
23532
+ const resolvedPackageVersion = "0.5.255";
23513
23533
  const PACKAGE_VERSION = resolvedPackageVersion;
23514
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.253";
23534
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.255";
23515
23535
  const roundParityValue = (value) => {
23516
23536
  if (typeof value !== "number") return value;
23517
23537
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -24325,7 +24345,7 @@ class PixldocsRenderer {
24325
24345
  await this.waitForCanvasScene(container, cloned, i);
24326
24346
  }
24327
24347
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
24328
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BNcQDkad.cjs"));
24348
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BK2ntULQ.cjs"));
24329
24349
  const prepared = preparePagesForExport(
24330
24350
  cloned.pages,
24331
24351
  canvasWidth,
@@ -26645,7 +26665,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
26645
26665
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
26646
26666
  sanitizeSvgTreeForPdf(svgToDraw);
26647
26667
  try {
26648
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BNcQDkad.cjs"));
26668
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BK2ntULQ.cjs"));
26649
26669
  try {
26650
26670
  await logTextMeasurementDiagnostic(svgToDraw);
26651
26671
  } catch {
@@ -27042,4 +27062,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
27042
27062
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
27043
27063
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
27044
27064
  exports.warmTemplateFromForm = warmTemplateFromForm;
27045
- //# sourceMappingURL=index-BTDu7FNP.cjs.map
27065
+ //# sourceMappingURL=index-5whx8gZE.cjs.map