@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.
@@ -14380,6 +14380,31 @@ const PageCanvas = react.forwardRef(
14380
14380
  if (!o) return;
14381
14381
  o.__lockScaleDuringCrop = false;
14382
14382
  });
14383
+ fabricCanvas.on("mouse:down", () => {
14384
+ const pending = pendingGroupPromotionRef.current;
14385
+ if (!pending) return;
14386
+ const activeNow = fabricCanvas.getActiveObject();
14387
+ if (activeNow === pending.selection) return;
14388
+ isSyncingSelectionToFabricRef.current = true;
14389
+ try {
14390
+ fabricCanvas.setActiveObject(pending.selection);
14391
+ pending.selection.setCoords();
14392
+ fabricCanvas._target = pending.selection;
14393
+ if (pending.selection instanceof fabric__namespace.ActiveSelection) {
14394
+ restoreGroupSelectionVisualState(pending.selection, pending.groupId);
14395
+ pending.selection.hasBorders = true;
14396
+ applyWarpAwareSelectionBorders(pending.selection);
14397
+ } else {
14398
+ pending.selection.__pixldocsGroupSelection = pending.groupId;
14399
+ }
14400
+ fabricCanvas.requestRenderAll();
14401
+ } catch {
14402
+ } finally {
14403
+ requestAnimationFrame(() => {
14404
+ isSyncingSelectionToFabricRef.current = false;
14405
+ });
14406
+ }
14407
+ });
14383
14408
  fabricCanvas.on("mouse:up", (e) => {
14384
14409
  var _a2, _b2, _c2;
14385
14410
  clearTransforming();
@@ -25821,9 +25846,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25821
25846
  }
25822
25847
  return svgString;
25823
25848
  }
25824
- const resolvedPackageVersion = "0.5.434";
25849
+ const resolvedPackageVersion = "0.5.435";
25825
25850
  const PACKAGE_VERSION = resolvedPackageVersion;
25826
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.434";
25851
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.435";
25827
25852
  const roundParityValue = (value) => {
25828
25853
  if (typeof value !== "number") return value;
25829
25854
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -26637,7 +26662,7 @@ class PixldocsRenderer {
26637
26662
  await this.waitForCanvasScene(container, cloned, i);
26638
26663
  }
26639
26664
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
26640
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CRHNGoGg.cjs"));
26665
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BXT74Jwl.cjs"));
26641
26666
  const prepared = preparePagesForExport(
26642
26667
  cloned.pages,
26643
26668
  canvasWidth,
@@ -28957,7 +28982,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
28957
28982
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
28958
28983
  sanitizeSvgTreeForPdf(svgToDraw);
28959
28984
  try {
28960
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CRHNGoGg.cjs"));
28985
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BXT74Jwl.cjs"));
28961
28986
  try {
28962
28987
  await logTextMeasurementDiagnostic(svgToDraw);
28963
28988
  } catch {
@@ -29354,4 +29379,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29354
29379
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29355
29380
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29356
29381
  exports.warmTemplateFromForm = warmTemplateFromForm;
29357
- //# sourceMappingURL=index-BtiEg8-C.cjs.map
29382
+ //# sourceMappingURL=index-B5NWvDlD.cjs.map