@pixldocs/canvas-renderer 0.5.267 → 0.5.269

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.
@@ -12023,6 +12023,9 @@ const PageCanvas = forwardRef(
12023
12023
  selectionLeft: rect.left,
12024
12024
  selectionTop: rect.top
12025
12025
  };
12026
+ if (active.__pixldocsGroupSelection) {
12027
+ prepareGroupSelectionTransformStart(active);
12028
+ }
12026
12029
  }
12027
12030
  if (fabricCanvas._currentTransform) {
12028
12031
  fabricCanvas.__isUserTransforming = true;
@@ -12888,6 +12891,9 @@ const PageCanvas = forwardRef(
12888
12891
  fabricCanvas.on("mouse:down:before", (opt) => {
12889
12892
  var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
12890
12893
  const activeBeforeMouseDown = fabricCanvas.getActiveObject();
12894
+ if (activeBeforeMouseDown instanceof fabric.ActiveSelection && activeBeforeMouseDown.__pixldocsGroupSelection) {
12895
+ prepareGroupSelectionTransformStart(activeBeforeMouseDown);
12896
+ }
12891
12897
  if (editLockRef.current) {
12892
12898
  const active = fabricCanvas.getActiveObject();
12893
12899
  if (active && (((_a2 = active._ct) == null ? void 0 : _a2.isCropGroup) || active.__cropGroup)) {
@@ -14232,7 +14238,10 @@ const PageCanvas = forwardRef(
14232
14238
  const groupAbs = getAbsoluteBounds(groupToMove, pageChildren2);
14233
14239
  let movedGroupLeft = groupAbs.left;
14234
14240
  let movedGroupTop = groupAbs.top;
14235
- if (activeObj instanceof fabric.ActiveSelection && (transformStart == null ? void 0 : transformStart.groupId) === groupToMove.id) {
14241
+ if (activeObj instanceof fabric.ActiveSelection && activeSelectionDelta) {
14242
+ movedGroupLeft = groupAbs.left + activeSelectionDelta.x;
14243
+ movedGroupTop = groupAbs.top + activeSelectionDelta.y;
14244
+ } else if (activeObj instanceof fabric.ActiveSelection && (transformStart == null ? void 0 : transformStart.groupId) === groupToMove.id) {
14236
14245
  const selectionRect = activeObj.getBoundingRect();
14237
14246
  movedGroupLeft = transformStart.groupLeft + (selectionRect.left - transformStart.selectionLeft);
14238
14247
  movedGroupTop = transformStart.groupTop + (selectionRect.top - transformStart.selectionTop);
@@ -14292,9 +14301,21 @@ const PageCanvas = forwardRef(
14292
14301
  const groupSelectionId = (isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0) ?? groupToMove.id;
14293
14302
  const targetObjects = isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.getObjects() : activeObjects;
14294
14303
  if (groupSelectionId && activeObj instanceof fabric.ActiveSelection) {
14295
- restoreGroupSelectionVisualState(activeObj, groupSelectionId);
14296
- fabricCanvas.setActiveObject(activeObj);
14297
- activeObj.setCoords();
14304
+ try {
14305
+ skipSelectionClearOnDiscardRef.current = true;
14306
+ skipActiveSelectionBakeOnClearRef.current = true;
14307
+ try {
14308
+ fabricCanvas.discardActiveObject();
14309
+ } finally {
14310
+ skipActiveSelectionBakeOnClearRef.current = false;
14311
+ skipSelectionClearOnDiscardRef.current = false;
14312
+ }
14313
+ } catch {
14314
+ }
14315
+ const bakedSelection = targetObjects.length > 1 ? new fabric.ActiveSelection(targetObjects, { canvas: fabricCanvas }) : activeObj;
14316
+ restoreGroupSelectionVisualState(bakedSelection, groupSelectionId);
14317
+ fabricCanvas.setActiveObject(bakedSelection);
14318
+ bakedSelection.setCoords();
14298
14319
  }
14299
14320
  selectElements([groupSelectionId], false, false);
14300
14321
  fabricCanvas.requestRenderAll();
@@ -14890,13 +14911,14 @@ const PageCanvas = forwardRef(
14890
14911
  visibilityUpdateInProgressRef.current = false;
14891
14912
  }
14892
14913
  doSyncRef.current = () => {
14893
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
14914
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i;
14894
14915
  const shouldSkipUpdates2 = syncLockedRef.current || editLockRef.current;
14895
14916
  const state = useEditorStore.getState();
14896
- const elementsToSync = elements;
14917
+ const storePage = state.canvas.pages.find((p) => p.id === pageId);
14918
+ const pageTree = isPreviewMode && (pageChildren == null ? void 0 : pageChildren.length) ? pageChildren ?? [] : (storePage == null ? void 0 : storePage.children) ?? [];
14919
+ const elementsToSync = isPreviewMode ? elements : pageTree.length ? flattenChildren(pageTree) : elements;
14897
14920
  elementsRef.current = elementsToSync;
14898
- const pageTree = isPreviewMode && (pageChildren == null ? void 0 : pageChildren.length) ? pageChildren ?? [] : ((_a2 = state.canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _a2.children) ?? [];
14899
- const selectedIdsFromStore = new Set(((_b2 = state.canvas) == null ? void 0 : _b2.selectedIds) ?? []);
14921
+ const selectedIdsFromStore = new Set(((_a2 = state.canvas) == null ? void 0 : _a2.selectedIds) ?? []);
14900
14922
  isRebuildingRef.current = true;
14901
14923
  const allElementIds = new Set(elementsToSync.map((el) => el.id));
14902
14924
  const sectionGroups = pageTree.filter(
@@ -14924,7 +14946,7 @@ const PageCanvas = forwardRef(
14924
14946
  const activeObjId = activeObj ? getObjectId(activeObj) : null;
14925
14947
  const isTextBeingEdited = activeObjId && editingTextIdRef.current === activeObjId;
14926
14948
  const isMultiSelect = activeObj instanceof fabric.ActiveSelection;
14927
- if (activeObj && isMultiSelect && !(((_c = activeObj._ct) == null ? void 0 : _c.isCropGroup) || activeObj.__cropGroup) && !isTextBeingEdited) {
14949
+ if (activeObj && isMultiSelect && !(((_b2 = activeObj._ct) == null ? void 0 : _b2.isCropGroup) || activeObj.__cropGroup) && !isTextBeingEdited) {
14928
14950
  fc.discardActiveObject();
14929
14951
  }
14930
14952
  }
@@ -14961,7 +14983,7 @@ const PageCanvas = forwardRef(
14961
14983
  fc.requestRenderAll();
14962
14984
  }
14963
14985
  } else if (!skipRestoreSelection && restoreTarget && !isActiveTextBeingEdited) {
14964
- const isCropGroup2 = ((_d = restoreTarget._ct) == null ? void 0 : _d.isCropGroup) || restoreTarget.__cropGroup;
14986
+ const isCropGroup2 = ((_c = restoreTarget._ct) == null ? void 0 : _c.isCropGroup) || restoreTarget.__cropGroup;
14965
14987
  const isSectionGroup = activeId && sectionGroupIds.has(activeId);
14966
14988
  if ((isCropGroup2 || !shouldSkipUpdates2) && !isSectionGroup) {
14967
14989
  fc.setActiveObject(restoreTarget);
@@ -15089,7 +15111,7 @@ const PageCanvas = forwardRef(
15089
15111
  const sourceUrlChanged = currentUrlNormalized !== storedUrlNormalized;
15090
15112
  const newFadeKey = edgeFadeKey(element);
15091
15113
  const oldFadeKey = isCropGroup2 ? existingObj.__edgeFadeInputKey || "" : existingObj.__edgeFadeKey || "";
15092
- const innerImg = (_e = existingObj == null ? void 0 : existingObj.__cropData) == null ? void 0 : _e._img;
15114
+ const innerImg = (_d = existingObj == null ? void 0 : existingObj.__cropData) == null ? void 0 : _d._img;
15093
15115
  const innerOldKey = isCropGroup2 ? oldFadeKey : innerImg ? innerImg.__edgeFadeKey || "" : oldFadeKey;
15094
15116
  const cropFadeRendererMissing = isCropGroup2 && Boolean(newFadeKey) && !existingObj.__edgeFadeRenderConfig;
15095
15117
  const fadeKeyChanged = newFadeKey !== oldFadeKey || newFadeKey !== innerOldKey || cropFadeRendererMissing;
@@ -15097,14 +15119,14 @@ const PageCanvas = forwardRef(
15097
15119
  const needsCropGroupFadeUpdate = isCropGroup2 && fadeKeyChanged;
15098
15120
  const hadUrlBefore = storedImageUrl && String(storedImageUrl).trim() !== "";
15099
15121
  if (!hasUrl && hadUrlBefore) {
15100
- const resolvedSizeImg = (pageChildren == null ? void 0 : pageChildren.length) ? getNodeBounds(element, pageChildren) : { width: typeof element.width === "number" ? element.width : 200, height: typeof element.height === "number" ? element.height : 50 };
15122
+ const resolvedSizeImg = pageTree.length ? getNodeBounds(element, pageTree) : { width: typeof element.width === "number" ? element.width : 200, height: typeof element.height === "number" ? element.height : 50 };
15101
15123
  const hasExplicitSize = typeof element.width === "number" && Number.isFinite(element.width) && element.width > 0 && typeof element.height === "number" && Number.isFinite(element.height) && element.height > 0;
15102
15124
  const minVisiblePlaceholder = hasExplicitSize ? 1 : 20;
15103
15125
  const nextWidth = Math.max(minVisiblePlaceholder, Number(resolvedSizeImg.width) || 200);
15104
15126
  const nextHeight = Math.max(minVisiblePlaceholder, Number(resolvedSizeImg.height) || 50);
15105
- const storePosImg = pageChildren ? (() => {
15106
- const node = findNodeById(pageChildren, element.id);
15107
- return node ? getAbsoluteBounds(node, pageChildren) : { left: element.left ?? 0, top: element.top ?? 0 };
15127
+ const storePosImg = pageTree.length ? (() => {
15128
+ const node = findNodeById(pageTree, element.id);
15129
+ return node ? getAbsoluteBounds(node, pageTree) : { left: element.left ?? 0, top: element.top ?? 0 };
15108
15130
  })() : { left: element.left ?? 0, top: element.top ?? 0 };
15109
15131
  const elementForPlaceholder = { ...element, width: nextWidth, height: nextHeight };
15110
15132
  const placeholder = isCropGroup2 ? createImagePlaceholderForGroup(elementForPlaceholder) : createImagePlaceholder(elementForPlaceholder);
@@ -15127,8 +15149,8 @@ const PageCanvas = forwardRef(
15127
15149
  fc.requestRenderAll();
15128
15150
  continue;
15129
15151
  }
15130
- const imageFitForReplace = element.imageFit || ((_f = element.style) == null ? void 0 : _f.imageFit) || "cover";
15131
- const clipShapeForReplace = element.clipShape ?? ((_g = element.style) == null ? void 0 : _g.imageFrameShape) ?? (isPreviewMode ? "rectangle" : "none");
15152
+ const imageFitForReplace = element.imageFit || ((_e = element.style) == null ? void 0 : _e.imageFit) || "cover";
15153
+ const clipShapeForReplace = element.clipShape ?? ((_f = element.style) == null ? void 0 : _f.imageFrameShape) ?? (isPreviewMode ? "rectangle" : "none");
15132
15154
  const needCropGroupForElement = imageFitForReplace !== "fill" || clipShapeForReplace && clipShapeForReplace !== "none";
15133
15155
  const plainImageNeedsCropGroup = hasUrl && !isCropGroup2 && existingObj instanceof fabric.FabricImage && needCropGroupForElement;
15134
15156
  if (hasUrl && (needsReload || isPlaceholder || plainImageNeedsCropGroup || needsCropGroupFadeUpdate)) {
@@ -15165,9 +15187,9 @@ const PageCanvas = forwardRef(
15165
15187
  }
15166
15188
  ct.rx = rxRatio;
15167
15189
  }
15168
- const cropPos = pageChildren ? (() => {
15169
- const node = findNodeById(pageChildren, element.id);
15170
- return node ? getAbsoluteBounds(node, pageChildren) : { left: element.left ?? 0, top: element.top ?? 0 };
15190
+ const cropPos = pageTree.length ? (() => {
15191
+ const node = findNodeById(pageTree, element.id);
15192
+ return node ? getAbsoluteBounds(node, pageTree) : { left: element.left ?? 0, top: element.top ?? 0 };
15171
15193
  })() : { left: element.left ?? 0, top: element.top ?? 0 };
15172
15194
  const cropCenterX = cropPos.left + (ct.frameW ?? 0) / 2;
15173
15195
  const cropCenterY = cropPos.top + (ct.frameH ?? 0) / 2;
@@ -15264,7 +15286,7 @@ const PageCanvas = forwardRef(
15264
15286
  continue;
15265
15287
  }
15266
15288
  } else if (!hasUrl && !isPlaceholder) {
15267
- const resolvedSizeImg = (pageChildren == null ? void 0 : pageChildren.length) ? getNodeBounds(element, pageChildren) : { width: typeof element.width === "number" ? element.width : 200, height: typeof element.height === "number" ? element.height : 50 };
15289
+ const resolvedSizeImg = pageTree.length ? getNodeBounds(element, pageTree) : { width: typeof element.width === "number" ? element.width : 200, height: typeof element.height === "number" ? element.height : 50 };
15268
15290
  const hasExplicitSize = typeof element.width === "number" && Number.isFinite(element.width) && element.width > 0 && typeof element.height === "number" && Number.isFinite(element.height) && element.height > 0;
15269
15291
  const minVisiblePlaceholder = hasExplicitSize ? 1 : 20;
15270
15292
  const elementForPlaceholder = {
@@ -15294,11 +15316,11 @@ const PageCanvas = forwardRef(
15294
15316
  placeholder.__imageSrc = void 0;
15295
15317
  } else if (!isBeingTransformed && !isBeingTextEdited && !shouldSkipUpdates2) {
15296
15318
  if (isPlaceholderGroup) {
15297
- const storePosImg = pageChildren ? (() => {
15298
- const node = findNodeById(pageChildren, element.id);
15299
- return node ? getAbsoluteBounds(node, pageChildren) : { left: element.left ?? 0, top: element.top ?? 0 };
15319
+ const storePosImg = pageTree.length ? (() => {
15320
+ const node = findNodeById(pageTree, element.id);
15321
+ return node ? getAbsoluteBounds(node, pageTree) : { left: element.left ?? 0, top: element.top ?? 0 };
15300
15322
  })() : { left: element.left ?? 0, top: element.top ?? 0 };
15301
- const resolvedSizeImg = (pageChildren == null ? void 0 : pageChildren.length) ? getNodeBounds(element, pageChildren) : { width: typeof element.width === "number" ? element.width : 200, height: typeof element.height === "number" ? element.height : 50 };
15323
+ const resolvedSizeImg = pageTree.length ? getNodeBounds(element, pageTree) : { width: typeof element.width === "number" ? element.width : 200, height: typeof element.height === "number" ? element.height : 50 };
15302
15324
  const hasExplicitSize = typeof element.width === "number" && Number.isFinite(element.width) && element.width > 0 && typeof element.height === "number" && Number.isFinite(element.height) && element.height > 0;
15303
15325
  const minVisiblePlaceholder = hasExplicitSize ? 1 : 20;
15304
15326
  const nextWidth = Math.max(minVisiblePlaceholder, Number(resolvedSizeImg.width) || 200);
@@ -15358,9 +15380,9 @@ const PageCanvas = forwardRef(
15358
15380
  const previousVisible = previousVisibilityRef.current.get(element.id) ?? true;
15359
15381
  const currentVisible = element.visible !== false;
15360
15382
  const visibilityChanged = previousVisible !== currentVisible;
15361
- const storePosForImg = pageChildren ? (() => {
15362
- const node = findNodeById(pageChildren, element.id);
15363
- return node ? getAbsoluteBounds(node, pageChildren) : { left: element.left ?? 0, top: element.top ?? 0 };
15383
+ const storePosForImg = pageTree.length ? (() => {
15384
+ const node = findNodeById(pageTree, element.id);
15385
+ return node ? getAbsoluteBounds(node, pageTree) : { left: element.left ?? 0, top: element.top ?? 0 };
15364
15386
  })() : { left: element.left ?? 0, top: element.top ?? 0 };
15365
15387
  const positionChanged = Math.abs((existingObj.left ?? 0) - storePosForImg.left) > 0.1 || Math.abs((existingObj.top ?? 0) - storePosForImg.top) > 0.1;
15366
15388
  if (visibilityChanged && !positionChanged || visibilityUpdateInProgressRef.current) {
@@ -15558,7 +15580,7 @@ const PageCanvas = forwardRef(
15558
15580
  fc.add(placeholder);
15559
15581
  fc.bringObjectToFront(placeholder);
15560
15582
  const activeObj = fc.getActiveObject();
15561
- if (activeObj && (((_h = activeObj._ct) == null ? void 0 : _h.isCropGroup) || activeObj.__cropGroup)) {
15583
+ if (activeObj && (((_g = activeObj._ct) == null ? void 0 : _g.isCropGroup) || activeObj.__cropGroup)) {
15562
15584
  fc.setActiveObject(activeObj);
15563
15585
  }
15564
15586
  placeholder.dirty = true;
@@ -15598,7 +15620,7 @@ const PageCanvas = forwardRef(
15598
15620
  fc.add(obj);
15599
15621
  fc.bringObjectToFront(obj);
15600
15622
  const activeObj = fc.getActiveObject();
15601
- if (activeObj && (((_i = activeObj._ct) == null ? void 0 : _i.isCropGroup) || activeObj.__cropGroup)) {
15623
+ if (activeObj && (((_h = activeObj._ct) == null ? void 0 : _h.isCropGroup) || activeObj.__cropGroup)) {
15602
15624
  fc.setActiveObject(activeObj);
15603
15625
  }
15604
15626
  obj.dirty = true;
@@ -15628,10 +15650,18 @@ const PageCanvas = forwardRef(
15628
15650
  });
15629
15651
  allFabricObjects.forEach((obj) => fc.bringObjectToFront(obj));
15630
15652
  }
15653
+ const activeAfterObjectSync = fc.getActiveObject();
15654
+ if (activeAfterObjectSync instanceof fabric.ActiveSelection) {
15655
+ const groupSelectionId = activeAfterObjectSync.__pixldocsGroupSelection;
15656
+ if (groupSelectionId) {
15657
+ applyLogicalGroupSelectionVisualState(activeAfterObjectSync, groupSelectionId);
15658
+ activeAfterObjectSync.setCoords();
15659
+ }
15660
+ }
15631
15661
  isRebuildingRef.current = false;
15632
15662
  fc.requestRenderAll();
15633
15663
  if (activeBeforeSync && fc.getObjects().includes(activeBeforeSync)) {
15634
- const isCropGroup2 = ((_j = activeBeforeSync._ct) == null ? void 0 : _j.isCropGroup) || activeBeforeSync.__cropGroup;
15664
+ const isCropGroup2 = ((_i = activeBeforeSync._ct) == null ? void 0 : _i.isCropGroup) || activeBeforeSync.__cropGroup;
15635
15665
  if (isCropGroup2) {
15636
15666
  fc.setActiveObject(activeBeforeSync);
15637
15667
  fc.requestRenderAll();
@@ -17125,7 +17155,7 @@ const PageCanvas = forwardRef(
17125
17155
  if (imageFit === "fill" && !needCropGroup2) {
17126
17156
  const finalScaleX = baseScaleX * (element.scaleX ?? 1);
17127
17157
  const finalScaleY = baseScaleY * (element.scaleY ?? 1);
17128
- const pageTreeForCreate = ((pageChildren == null ? void 0 : pageChildren.length) ? pageChildren : (_f = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _f.children) ?? [];
17158
+ const pageTreeForCreate = ((isPreviewMode || isExportMode) && (pageChildren == null ? void 0 : pageChildren.length) ? pageChildren : (_f = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _f.children) ?? [];
17129
17159
  const createPos = pageTreeForCreate.length > 0 ? (() => {
17130
17160
  const node = findNodeById(pageTreeForCreate, element.id);
17131
17161
  return node ? getAbsoluteBounds(node, pageTreeForCreate) : { left: element.left ?? 0, top: element.top ?? 0 };
@@ -17175,7 +17205,7 @@ const PageCanvas = forwardRef(
17175
17205
  const needCropGroup = imageFitFinal !== "fill" || clipShapeFinal && clipShapeFinal !== "none";
17176
17206
  let finalObject = img;
17177
17207
  if (needCropGroup) {
17178
- const pageTreeForCropResolve = ((pageChildren == null ? void 0 : pageChildren.length) ? pageChildren : (_i = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _i.children) ?? [];
17208
+ const pageTreeForCropResolve = ((isPreviewMode || isExportMode) && (pageChildren == null ? void 0 : pageChildren.length) ? pageChildren : (_i = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _i.children) ?? [];
17179
17209
  const nodeForSize = pageTreeForCropResolve.length ? findNodeById(pageTreeForCropResolve, element.id) : null;
17180
17210
  const w = nodeForSize && isElement(nodeForSize) ? nodeForSize.width : element.width;
17181
17211
  const h = nodeForSize && isElement(nodeForSize) ? nodeForSize.height : element.height;
@@ -17219,7 +17249,7 @@ const PageCanvas = forwardRef(
17219
17249
  }
17220
17250
  const isDynamicField = dynamicFieldIds.includes(element.id);
17221
17251
  const canBeEvented = isEditorMode || isPreviewMode && isDynamicField;
17222
- const pageTreeForCrop = ((pageChildren == null ? void 0 : pageChildren.length) ? pageChildren : (_n = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _n.children) ?? [];
17252
+ const pageTreeForCrop = ((isPreviewMode || isExportMode) && (pageChildren == null ? void 0 : pageChildren.length) ? pageChildren : (_n = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _n.children) ?? [];
17223
17253
  const createPosForCrop = pageTreeForCrop.length > 0 ? (() => {
17224
17254
  const node = findNodeById(pageTreeForCrop, element.id);
17225
17255
  return node ? getAbsoluteBounds(node, pageTreeForCrop) : { left: element.left ?? 0, top: element.top ?? 0 };
@@ -23635,9 +23665,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
23635
23665
  }
23636
23666
  return svgString;
23637
23667
  }
23638
- const resolvedPackageVersion = "0.5.267";
23668
+ const resolvedPackageVersion = "0.5.269";
23639
23669
  const PACKAGE_VERSION = resolvedPackageVersion;
23640
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.267";
23670
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.269";
23641
23671
  const roundParityValue = (value) => {
23642
23672
  if (typeof value !== "number") return value;
23643
23673
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -24451,7 +24481,7 @@ class PixldocsRenderer {
24451
24481
  await this.waitForCanvasScene(container, cloned, i);
24452
24482
  }
24453
24483
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
24454
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-ByDlpq77.js");
24484
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BrPmmgsF.js");
24455
24485
  const prepared = preparePagesForExport(
24456
24486
  cloned.pages,
24457
24487
  canvasWidth,
@@ -26771,7 +26801,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
26771
26801
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
26772
26802
  sanitizeSvgTreeForPdf(svgToDraw);
26773
26803
  try {
26774
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-ByDlpq77.js");
26804
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BrPmmgsF.js");
26775
26805
  try {
26776
26806
  await logTextMeasurementDiagnostic(svgToDraw);
26777
26807
  } catch {
@@ -27171,4 +27201,4 @@ export {
27171
27201
  buildTeaserBlurFlatKeys as y,
27172
27202
  collectFontDescriptorsFromConfig as z
27173
27203
  };
27174
- //# sourceMappingURL=index-BDPFvAqK.js.map
27204
+ //# sourceMappingURL=index-CrV6Qgb-.js.map