@pixldocs/canvas-renderer 0.5.346 → 0.5.347

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.
@@ -11234,6 +11234,7 @@ function applyWarpAwareSelectionBorders(selection) {
11234
11234
  }
11235
11235
  selection.hasBorders = true;
11236
11236
  selection.hasControls = true;
11237
+ if (selection.__pixldocsGroupSelection) return;
11237
11238
  try {
11238
11239
  if (selection.__pixldocsAlignedAngle == null) {
11239
11240
  const kids = selection.getObjects();
@@ -17061,9 +17062,7 @@ const PageCanvas = react.forwardRef(
17061
17062
  if (sameSelection && isFlatGroupSelection) {
17062
17063
  if (selectedGroupSelectionId && active instanceof fabric__namespace.ActiveSelection) {
17063
17064
  if (isPureSingleGroupSelection) {
17064
- active.__pixldocsGroupSelection = selectedGroupSelectionId;
17065
- delete active.__pixldocsLogicalGroupIds;
17066
- suppressGroupMemberBordersRef.current = active.getObjects();
17065
+ applyLogicalGroupSelectionVisualState(active, selectedGroupSelectionId);
17067
17066
  } else {
17068
17067
  delete active.__pixldocsGroupSelection;
17069
17068
  active.__pixldocsLogicalGroupIds = selectedGroupIds;
@@ -17103,8 +17102,7 @@ const PageCanvas = react.forwardRef(
17103
17102
  const selection = new fabric__namespace.ActiveSelection(toSelect, { canvas: fc });
17104
17103
  if (selectedGroupSelectionId) {
17105
17104
  if (isPureSingleGroupSelection) {
17106
- selection.__pixldocsGroupSelection = selectedGroupSelectionId;
17107
- suppressGroupMemberBordersRef.current = toSelect;
17105
+ applyLogicalGroupSelectionVisualState(selection, selectedGroupSelectionId);
17108
17106
  } else {
17109
17107
  selection.__pixldocsLogicalGroupIds = selectedGroupIds;
17110
17108
  selection.hasBorders = true;
@@ -24739,9 +24737,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24739
24737
  }
24740
24738
  return svgString;
24741
24739
  }
24742
- const resolvedPackageVersion = "0.5.346";
24740
+ const resolvedPackageVersion = "0.5.347";
24743
24741
  const PACKAGE_VERSION = resolvedPackageVersion;
24744
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.346";
24742
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.347";
24745
24743
  const roundParityValue = (value) => {
24746
24744
  if (typeof value !== "number") return value;
24747
24745
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25555,7 +25553,7 @@ class PixldocsRenderer {
25555
25553
  await this.waitForCanvasScene(container, cloned, i);
25556
25554
  }
25557
25555
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25558
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DRpVTciP.cjs"));
25556
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-dKHuR_jl.cjs"));
25559
25557
  const prepared = preparePagesForExport(
25560
25558
  cloned.pages,
25561
25559
  canvasWidth,
@@ -27875,7 +27873,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27875
27873
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27876
27874
  sanitizeSvgTreeForPdf(svgToDraw);
27877
27875
  try {
27878
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DRpVTciP.cjs"));
27876
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-dKHuR_jl.cjs"));
27879
27877
  try {
27880
27878
  await logTextMeasurementDiagnostic(svgToDraw);
27881
27879
  } catch {
@@ -28272,4 +28270,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
28272
28270
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
28273
28271
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
28274
28272
  exports.warmTemplateFromForm = warmTemplateFromForm;
28275
- //# sourceMappingURL=index-C6VMQJMY.cjs.map
28273
+ //# sourceMappingURL=index-ap13xnH3.cjs.map