@pixldocs/canvas-renderer 0.5.434 → 0.5.435

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.
@@ -14362,6 +14362,31 @@ const PageCanvas = forwardRef(
14362
14362
  if (!o) return;
14363
14363
  o.__lockScaleDuringCrop = false;
14364
14364
  });
14365
+ fabricCanvas.on("mouse:down", () => {
14366
+ const pending = pendingGroupPromotionRef.current;
14367
+ if (!pending) return;
14368
+ const activeNow = fabricCanvas.getActiveObject();
14369
+ if (activeNow === pending.selection) return;
14370
+ isSyncingSelectionToFabricRef.current = true;
14371
+ try {
14372
+ fabricCanvas.setActiveObject(pending.selection);
14373
+ pending.selection.setCoords();
14374
+ fabricCanvas._target = pending.selection;
14375
+ if (pending.selection instanceof fabric.ActiveSelection) {
14376
+ restoreGroupSelectionVisualState(pending.selection, pending.groupId);
14377
+ pending.selection.hasBorders = true;
14378
+ applyWarpAwareSelectionBorders(pending.selection);
14379
+ } else {
14380
+ pending.selection.__pixldocsGroupSelection = pending.groupId;
14381
+ }
14382
+ fabricCanvas.requestRenderAll();
14383
+ } catch {
14384
+ } finally {
14385
+ requestAnimationFrame(() => {
14386
+ isSyncingSelectionToFabricRef.current = false;
14387
+ });
14388
+ }
14389
+ });
14365
14390
  fabricCanvas.on("mouse:up", (e) => {
14366
14391
  var _a2, _b2, _c2;
14367
14392
  clearTransforming();
@@ -25803,9 +25828,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25803
25828
  }
25804
25829
  return svgString;
25805
25830
  }
25806
- const resolvedPackageVersion = "0.5.434";
25831
+ const resolvedPackageVersion = "0.5.435";
25807
25832
  const PACKAGE_VERSION = resolvedPackageVersion;
25808
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.434";
25833
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.435";
25809
25834
  const roundParityValue = (value) => {
25810
25835
  if (typeof value !== "number") return value;
25811
25836
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -26619,7 +26644,7 @@ class PixldocsRenderer {
26619
26644
  await this.waitForCanvasScene(container, cloned, i);
26620
26645
  }
26621
26646
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
26622
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BLi6yU52.js");
26647
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DaUbsdKS.js");
26623
26648
  const prepared = preparePagesForExport(
26624
26649
  cloned.pages,
26625
26650
  canvasWidth,
@@ -28939,7 +28964,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
28939
28964
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
28940
28965
  sanitizeSvgTreeForPdf(svgToDraw);
28941
28966
  try {
28942
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BLi6yU52.js");
28967
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DaUbsdKS.js");
28943
28968
  try {
28944
28969
  await logTextMeasurementDiagnostic(svgToDraw);
28945
28970
  } catch {
@@ -29339,4 +29364,4 @@ export {
29339
29364
  buildTeaserBlurFlatKeys as y,
29340
29365
  collectFontDescriptorsFromConfig as z
29341
29366
  };
29342
- //# sourceMappingURL=index-CAzQTttO.js.map
29367
+ //# sourceMappingURL=index-BtkdFbJD.js.map