@pixldocs/canvas-renderer 0.5.434 → 0.5.436

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