@pixldocs/canvas-renderer 0.5.334 → 0.5.336

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.
@@ -14308,9 +14308,36 @@ const PageCanvas = forwardRef(
14308
14308
  }
14309
14309
  });
14310
14310
  fabricCanvas.on("object:rotating", (e) => {
14311
+ var _a2, _b2;
14311
14312
  markSimpleTransform(e);
14312
14313
  didTransformRef.current = true;
14313
14314
  const tr = e.target;
14315
+ try {
14316
+ const children = tr instanceof fabric.Group || tr instanceof fabric.ActiveSelection ? tr.getObjects() : [];
14317
+ logGroupImageResizeDebug("rotating-entry", {
14318
+ time: Math.round(performance.now()),
14319
+ angle: tr == null ? void 0 : tr.angle,
14320
+ targetType: tr == null ? void 0 : tr.type,
14321
+ targetCtor: (_a2 = tr == null ? void 0 : tr.constructor) == null ? void 0 : _a2.name,
14322
+ isActiveSelection: tr instanceof fabric.ActiveSelection,
14323
+ isGroup: tr instanceof fabric.Group,
14324
+ isCropGroup: !!(tr && (tr.__cropGroup || ((_b2 = tr._ct) == null ? void 0 : _b2.isCropGroup))),
14325
+ childCount: children.length,
14326
+ childTypes: children.map((c) => c == null ? void 0 : c.type),
14327
+ hasImageChild: children.some((c) => isGroupResizeImageLikeObject(c)),
14328
+ target: tr ? summarizeFabricObjectForResizeDebug(tr) : null,
14329
+ children: children.map((c) => {
14330
+ var _a3;
14331
+ return {
14332
+ type: c == null ? void 0 : c.type,
14333
+ ctor: (_a3 = c == null ? void 0 : c.constructor) == null ? void 0 : _a3.name,
14334
+ summary: summarizeFabricObjectForResizeDebug(c)
14335
+ };
14336
+ })
14337
+ });
14338
+ } catch (err) {
14339
+ console.warn("[Pixldocs][group-image-side-resize] rotating-entry log failed", err);
14340
+ }
14314
14341
  try {
14315
14342
  const getCursor = fabricCanvas.__pixldocsGetRotateCursor;
14316
14343
  const upper = fabricCanvas.upperCanvasEl;
@@ -14768,7 +14795,7 @@ const PageCanvas = forwardRef(
14768
14795
  }
14769
14796
  }
14770
14797
  const isActiveSelectionSideResize = isActiveSelection && (activeSelectionResizeHandle === "ml" || activeSelectionResizeHandle === "mr" || activeSelectionResizeHandle === "mt" || activeSelectionResizeHandle === "mb");
14771
- if (selectedElementIds.length > 0 && !anyCropGroup) {
14798
+ if (selectedElementIds.length > 0) {
14772
14799
  const firstObj = activeObjects[0];
14773
14800
  const firstId = getObjectId(firstObj);
14774
14801
  const parentGroups = selectedElementIds.map((id) => findParentGroup(pageChildren2, id)).filter((g) => g !== null);
@@ -14867,6 +14894,8 @@ const PageCanvas = forwardRef(
14867
14894
  }
14868
14895
  setTimeout(() => modifiedIdsThisRound.forEach((id) => justModifiedIdsRef.current.delete(id)), 150);
14869
14896
  groupSelectionTransformStartRef.current = null;
14897
+ activeSelectionMoveStartRef.current = null;
14898
+ activeSelectionResizeHandleRef.current = null;
14870
14899
  const restoreSnapshot = {
14871
14900
  memberIds: targetObjects.map((obj) => getObjectId(obj)).filter((id) => !!id && id !== "__background__"),
14872
14901
  groupSelectionId,
@@ -24521,9 +24550,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24521
24550
  }
24522
24551
  return svgString;
24523
24552
  }
24524
- const resolvedPackageVersion = "0.5.334";
24553
+ const resolvedPackageVersion = "0.5.336";
24525
24554
  const PACKAGE_VERSION = resolvedPackageVersion;
24526
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.334";
24555
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.336";
24527
24556
  const roundParityValue = (value) => {
24528
24557
  if (typeof value !== "number") return value;
24529
24558
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25337,7 +25366,7 @@ class PixldocsRenderer {
25337
25366
  await this.waitForCanvasScene(container, cloned, i);
25338
25367
  }
25339
25368
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25340
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CESWzne5.js");
25369
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-430yRzXb.js");
25341
25370
  const prepared = preparePagesForExport(
25342
25371
  cloned.pages,
25343
25372
  canvasWidth,
@@ -27657,7 +27686,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27657
27686
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27658
27687
  sanitizeSvgTreeForPdf(svgToDraw);
27659
27688
  try {
27660
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CESWzne5.js");
27689
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-430yRzXb.js");
27661
27690
  try {
27662
27691
  await logTextMeasurementDiagnostic(svgToDraw);
27663
27692
  } catch {
@@ -28057,4 +28086,4 @@ export {
28057
28086
  buildTeaserBlurFlatKeys as y,
28058
28087
  collectFontDescriptorsFromConfig as z
28059
28088
  };
28060
- //# sourceMappingURL=index-DDQNmmRg.js.map
28089
+ //# sourceMappingURL=index-9lp-EDhu.js.map