@pixldocs/canvas-renderer 0.5.307 → 0.5.309

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.
@@ -11241,31 +11241,10 @@ const PageCanvas = forwardRef(
11241
11241
  const [ready, setReady] = useState(false);
11242
11242
  const [unlockRequestId, setUnlockRequestId] = useState(0);
11243
11243
  const applyLogicalGroupSelectionVisualState = useCallback((selection, groupId) => {
11244
- var _a2, _b2;
11244
+ var _a2;
11245
11245
  selection.__pixldocsGroupSelection = groupId;
11246
11246
  delete selection.__pixldocsLogicalGroupIds;
11247
11247
  selection.hasBorders = true;
11248
- try {
11249
- const state = useEditorStore.getState();
11250
- const pages = ((_a2 = state.canvas) == null ? void 0 : _a2.pages) ?? [];
11251
- let groupNode = null;
11252
- for (const page of pages) {
11253
- const found = findNodeById(page.children ?? [], groupId);
11254
- if (found && isGroup(found)) {
11255
- groupNode = found;
11256
- break;
11257
- }
11258
- }
11259
- if (groupNode && !isStackLayoutMode(groupNode.layoutMode) && typeof groupNode.angle === "number" && Math.abs(groupNode.angle) > 0.01) {
11260
- const currentAngle = ((selection.angle ?? 0) % 360 + 360) % 360;
11261
- const targetAngle = ((groupNode.angle ?? 0) % 360 + 360) % 360;
11262
- if (Math.abs(currentAngle - targetAngle) > 0.01) {
11263
- selection.rotate(targetAngle);
11264
- selection.setCoords();
11265
- }
11266
- }
11267
- } catch {
11268
- }
11269
11248
  const members = selection.getObjects();
11270
11249
  for (const prev of suppressGroupMemberBordersRef.current) {
11271
11250
  if (members.includes(prev)) continue;
@@ -11289,7 +11268,7 @@ const PageCanvas = forwardRef(
11289
11268
  if (m.__pixldocsOrigHasControls === void 0) m.__pixldocsOrigHasControls = m.hasControls;
11290
11269
  m.hasBorders = false;
11291
11270
  m.hasControls = false;
11292
- if (m.__cropGroup || ((_b2 = m._ct) == null ? void 0 : _b2.isCropGroup)) {
11271
+ if (m.__cropGroup || ((_a2 = m._ct) == null ? void 0 : _a2.isCropGroup)) {
11293
11272
  if (m.__pixldocsOrigLockScalingX === void 0) {
11294
11273
  m.__pixldocsOrigLockScalingX = m.lockScalingX;
11295
11274
  m.__pixldocsOrigLockScalingY = m.lockScalingY;
@@ -24272,9 +24251,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24272
24251
  }
24273
24252
  return svgString;
24274
24253
  }
24275
- const resolvedPackageVersion = "0.5.307";
24254
+ const resolvedPackageVersion = "0.5.309";
24276
24255
  const PACKAGE_VERSION = resolvedPackageVersion;
24277
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.307";
24256
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.309";
24278
24257
  const roundParityValue = (value) => {
24279
24258
  if (typeof value !== "number") return value;
24280
24259
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25088,7 +25067,7 @@ class PixldocsRenderer {
25088
25067
  await this.waitForCanvasScene(container, cloned, i);
25089
25068
  }
25090
25069
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25091
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-B6HX4s-I.js");
25070
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-1wNO6G60.js");
25092
25071
  const prepared = preparePagesForExport(
25093
25072
  cloned.pages,
25094
25073
  canvasWidth,
@@ -27408,7 +27387,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27408
27387
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27409
27388
  sanitizeSvgTreeForPdf(svgToDraw);
27410
27389
  try {
27411
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-B6HX4s-I.js");
27390
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-1wNO6G60.js");
27412
27391
  try {
27413
27392
  await logTextMeasurementDiagnostic(svgToDraw);
27414
27393
  } catch {
@@ -27808,4 +27787,4 @@ export {
27808
27787
  buildTeaserBlurFlatKeys as y,
27809
27788
  collectFontDescriptorsFromConfig as z
27810
27789
  };
27811
- //# sourceMappingURL=index-D4p1jWxS.js.map
27790
+ //# sourceMappingURL=index-Dl6fYmUm.js.map