@pixldocs/canvas-renderer 0.5.447 → 0.5.449

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.
@@ -11646,25 +11646,28 @@ const bakeTextboxScaleIntoTypography = (obj, sourceElement) => {
11646
11646
  return updates;
11647
11647
  };
11648
11648
  const applyTransformPreservingFlip = (obj, matrix) => {
11649
- fabric.util.applyTransformToObject(obj, matrix);
11650
- let sx = obj.scaleX ?? 1;
11651
- let sy = obj.scaleY ?? 1;
11652
- let flipX = false;
11653
- let flipY = false;
11649
+ const intendedFlipX = obj.flipX ?? false;
11650
+ const intendedFlipY = obj.flipY ?? false;
11651
+ const cleanMatrix = toggleLogicalFlipInMatrix(matrix, intendedFlipX, intendedFlipY);
11652
+ fabric.util.applyTransformToObject(obj, cleanMatrix);
11653
+ let sx = Number(obj.scaleX ?? 1) || 1;
11654
+ let sy = Number(obj.scaleY ?? 1) || 1;
11655
+ let flipX = intendedFlipX;
11656
+ let flipY = intendedFlipY;
11654
11657
  if (sx < 0) {
11655
- flipX = true;
11658
+ flipX = !flipX;
11656
11659
  sx = -sx;
11657
11660
  }
11658
11661
  if (sy < 0) {
11659
- flipY = true;
11662
+ flipY = !flipY;
11660
11663
  sy = -sy;
11661
11664
  }
11662
11665
  obj.set({ scaleX: sx, scaleY: sy, flipX, flipY });
11663
11666
  };
11664
- const restorePersistedFlipState = (obj, flipX, flipY, angle) => {
11667
+ const restorePersistedFlipState = (obj, flipX, flipY) => {
11665
11668
  const sx = Math.abs(Number(obj.scaleX ?? 1)) || 1;
11666
11669
  const sy = Math.abs(Number(obj.scaleY ?? 1)) || 1;
11667
- obj.set({ scaleX: sx, scaleY: sy, skewX: 0, skewY: 0, flipX, flipY, ...Number.isFinite(angle) ? { angle } : {} });
11670
+ obj.set({ scaleX: sx, scaleY: sy, flipX, flipY });
11668
11671
  obj.setCoords();
11669
11672
  obj.dirty = true;
11670
11673
  };
@@ -11775,16 +11778,11 @@ function applyWarpAwareSelectionBorders(selection) {
11775
11778
  selection.calcTransformMatrix()
11776
11779
  );
11777
11780
  kids.forEach((k, index) => {
11778
- var _a3;
11779
11781
  const beforeRestore = summarizeRotDriftObject(k);
11780
11782
  const localMatrix = fabric.util.multiplyTransformMatrices(
11781
11783
  invSelection,
11782
11784
  worldMatrices[index]
11783
11785
  );
11784
- const isImageLikeKid = k instanceof fabric.FabricImage || k instanceof fabric.Group && (k.__cropGroup || ((_a3 = k._ct) == null ? void 0 : _a3.isCropGroup));
11785
- const persistedKidFlipX = !!k.flipX;
11786
- const persistedKidFlipY = !!k.flipY;
11787
- const expectedCleanKidAngle = isImageLikeKid && (persistedKidFlipX || persistedKidFlipY) ? fabric.util.qrDecompose(toggleLogicalFlipInMatrix(localMatrix, persistedKidFlipX, persistedKidFlipY)).angle ?? 0 : void 0;
11788
11786
  const savedLayout = k.layoutManager;
11789
11787
  try {
11790
11788
  if (savedLayout) k.layoutManager = void 0;
@@ -11794,9 +11792,6 @@ function applyWarpAwareSelectionBorders(selection) {
11794
11792
  );
11795
11793
  const expectedCenter = new fabric.Point(decomposed.translateX, decomposed.translateY);
11796
11794
  k.setPositionByOrigin(expectedCenter, "center", "center");
11797
- if (isImageLikeKid && (persistedKidFlipX || persistedKidFlipY)) {
11798
- restorePersistedFlipState(k, persistedKidFlipX, persistedKidFlipY, expectedCleanKidAngle);
11799
- }
11800
11795
  } finally {
11801
11796
  if (savedLayout) k.layoutManager = savedLayout;
11802
11797
  }
@@ -14637,7 +14632,7 @@ const PageCanvas = forwardRef(
14637
14632
  fabricCanvas.on("selection:cleared", () => {
14638
14633
  });
14639
14634
  fabricCanvas.on("object:scaling", (e) => {
14640
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
14635
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
14641
14636
  if (!isActiveRef.current) return;
14642
14637
  const t = e.target;
14643
14638
  if (t) lastResizeScaleTargetRef.current = t;
@@ -14931,46 +14926,120 @@ const PageCanvas = forwardRef(
14931
14926
  if (child.__asLiveGestureKey !== liveGestureKey) {
14932
14927
  child.__asLiveGestureKey = liveGestureKey;
14933
14928
  child.__asLiveOrigAngle = Number.isFinite(child.angle) ? child.angle ?? 0 : 0;
14934
- child.__asLiveOrigFlipX = !!child.flipX;
14935
- child.__asLiveOrigFlipY = !!child.flipY;
14936
14929
  }
14937
- const liveAsSx = isXSide ? sAxis : 1;
14938
- const liveAsSy = isXSide ? 1 : sAxis;
14939
- if (child instanceof fabric.Group && (child.__cropGroup || ((_m = child._ct) == null ? void 0 : _m.isCropGroup)) || child instanceof fabric.FabricImage && !child.__cropGroup && !child.smartElementType) {
14940
- const childAngleDeg2 = child.__asLiveOrigAngle ?? (child.angle ?? 0);
14941
- const theta2 = fabric.util.degreesToRadians(childAngleDeg2);
14942
- const cosT2 = Math.cos(theta2);
14943
- const sinT2 = Math.sin(theta2);
14944
- const dX = isXSide ? Math.max(1e-3, liveAsSx * cosT2 * cosT2 + sinT2 * sinT2) : 1;
14945
- const dY = isXSide ? 1 : Math.max(1e-3, liveAsSy * cosT2 * cosT2 + sinT2 * sinT2);
14946
- if (child.__asLiveOrigScaleX == null) child.__asLiveOrigScaleX = Math.abs(Number(child.scaleX ?? 1)) || 1;
14947
- if (child.__asLiveOrigScaleY == null) child.__asLiveOrigScaleY = Math.abs(Number(child.scaleY ?? 1)) || 1;
14948
- const origScaleX = child.__asLiveOrigScaleX;
14949
- const origScaleY = child.__asLiveOrigScaleY;
14950
- const baseW = Math.max(1, Number(((_n = child.__cropData) == null ? void 0 : _n.frameW) ?? child.width ?? 1));
14951
- const baseH = Math.max(1, Number(((_o = child.__cropData) == null ? void 0 : _o.frameH) ?? child.height ?? 1));
14952
- const liveW = baseW * origScaleX * dX;
14953
- const liveH = baseH * origScaleY * dY;
14930
+ if (child instanceof fabric.Group && (child.__cropGroup || ((_m = child._ct) == null ? void 0 : _m.isCropGroup))) {
14931
+ const ct = child.__cropData;
14932
+ if (!ct) continue;
14933
+ if (child.__asLiveOrigAngle == null) {
14934
+ child.__asLiveOrigAngle = child.angle ?? 0;
14935
+ }
14936
+ const childAngleDegC = child.__asLiveOrigAngle;
14937
+ const asSxC = isXSide ? sAxis : 1;
14938
+ const asSyC = isXSide ? 1 : sAxis;
14939
+ const thetaC = fabric.util.degreesToRadians(childAngleDegC);
14940
+ const cosTC = Math.cos(thetaC);
14941
+ const sinTC = Math.sin(thetaC);
14942
+ const sLocalC = isXSide ? asSxC * cosTC * cosTC + sinTC * sinTC : asSyC * cosTC * cosTC + sinTC * sinTC;
14943
+ if (isXSide) {
14944
+ if (child.__asLiveOrigW == null) {
14945
+ const baseW = child.width ?? ct.frameW ?? 0;
14946
+ child.__asLiveOrigW = baseW * (child.scaleX ?? 1);
14947
+ }
14948
+ const origW = child.__asLiveOrigW;
14949
+ const newW = Math.max(20, origW * sLocalC);
14950
+ if (Math.abs((child.width ?? 0) - newW) > 0.5) {
14951
+ ct.frameW = newW;
14952
+ child._set("width", newW);
14953
+ }
14954
+ } else {
14955
+ if (child.__asLiveOrigH == null) {
14956
+ const baseH = child.height ?? ct.frameH ?? 0;
14957
+ child.__asLiveOrigH = baseH * (child.scaleY ?? 1);
14958
+ }
14959
+ const origH = child.__asLiveOrigH;
14960
+ const newH = Math.max(20, origH * sLocalC);
14961
+ if (Math.abs((child.height ?? 0) - newH) > 0.5) {
14962
+ ct.frameH = newH;
14963
+ child._set("height", newH);
14964
+ }
14965
+ }
14954
14966
  try {
14955
- const inv = [1 / liveAsSx, 0, 0, 1 / liveAsSy, 0, 0];
14956
- const Rtheta = fabric.util.composeMatrix({ angle: childAngleDeg2, scaleX: 1, scaleY: 1, translateX: 0, translateY: 0 });
14957
- const Dscale = fabric.util.composeMatrix({ angle: 0, scaleX: origScaleX * dX, scaleY: origScaleY * dY, translateX: 0, translateY: 0 });
14958
- const M = fabric.util.multiplyTransformMatrices(
14959
- fabric.util.multiplyTransformMatrices(inv, Rtheta),
14960
- Dscale
14961
- );
14962
- const dec = fabric.util.qrDecompose(M);
14963
- child._set("angle", dec.angle);
14964
- child._set("scaleX", dec.scaleX);
14965
- child._set("scaleY", dec.scaleY);
14966
- child._set("skewX", dec.skewX);
14967
- child._set("skewY", dec.skewY);
14968
- child._set("flipX", !!(child.__asLiveOrigFlipX ?? child.flipX));
14969
- child._set("flipY", !!(child.__asLiveOrigFlipY ?? child.flipY));
14967
+ const invC = [1 / asSxC, 0, 0, 1 / asSyC, 0, 0];
14968
+ const RthetaC = fabric.util.composeMatrix({
14969
+ angle: childAngleDegC,
14970
+ scaleX: 1,
14971
+ scaleY: 1,
14972
+ translateX: 0,
14973
+ translateY: 0
14974
+ });
14975
+ const MC = fabric.util.multiplyTransformMatrices(invC, RthetaC);
14976
+ const decC = fabric.util.qrDecompose(MC);
14977
+ child._set("angle", decC.angle);
14978
+ child._set("scaleX", decC.scaleX);
14979
+ child._set("scaleY", decC.scaleY);
14980
+ child._set("skewX", decC.skewX);
14981
+ child._set("skewY", decC.skewY);
14982
+ } catch {
14983
+ }
14984
+ try {
14985
+ updateCoverLayout(child);
14986
+ } catch {
14987
+ }
14988
+ child.setCoords();
14989
+ captureAsLiveWorldSnapshot(child, ct.frameW ?? child.width ?? 0, ct.frameH ?? child.height ?? 0);
14990
+ child.dirty = true;
14991
+ continue;
14992
+ }
14993
+ if (child instanceof fabric.FabricImage && !child.__cropGroup && !child.smartElementType) {
14994
+ if (child.__asLiveOrigAngle == null) {
14995
+ child.__asLiveOrigAngle = child.angle ?? 0;
14996
+ }
14997
+ const childAngleDegI = child.__asLiveOrigAngle;
14998
+ const asSxI = isXSide ? sAxis : 1;
14999
+ const asSyI = isXSide ? 1 : sAxis;
15000
+ const thetaI = fabric.util.degreesToRadians(childAngleDegI);
15001
+ const cosTI = Math.cos(thetaI);
15002
+ const sinTI = Math.sin(thetaI);
15003
+ const sLocalI = isXSide ? asSxI * cosTI * cosTI + sinTI * sinTI : asSyI * cosTI * cosTI + sinTI * sinTI;
15004
+ if (isXSide) {
15005
+ if (child.__asLiveOrigW == null) {
15006
+ child.__asLiveOrigW = (child.width ?? 0) * (child.scaleX ?? 1);
15007
+ }
15008
+ const origW = child.__asLiveOrigW;
15009
+ const newW = Math.max(1, origW * sLocalI);
15010
+ if (Math.abs((child.width ?? 0) - newW) > 0.5) {
15011
+ child._set("width", newW);
15012
+ }
15013
+ } else {
15014
+ if (child.__asLiveOrigH == null) {
15015
+ child.__asLiveOrigH = (child.height ?? 0) * (child.scaleY ?? 1);
15016
+ }
15017
+ const origH = child.__asLiveOrigH;
15018
+ const newH = Math.max(1, origH * sLocalI);
15019
+ if (Math.abs((child.height ?? 0) - newH) > 0.5) {
15020
+ child._set("height", newH);
15021
+ }
15022
+ }
15023
+ try {
15024
+ const invI = [1 / asSxI, 0, 0, 1 / asSyI, 0, 0];
15025
+ const RthetaI = fabric.util.composeMatrix({
15026
+ angle: childAngleDegI,
15027
+ scaleX: 1,
15028
+ scaleY: 1,
15029
+ translateX: 0,
15030
+ translateY: 0
15031
+ });
15032
+ const MI = fabric.util.multiplyTransformMatrices(invI, RthetaI);
15033
+ const decI = fabric.util.qrDecompose(MI);
15034
+ child._set("angle", decI.angle);
15035
+ child._set("scaleX", decI.scaleX);
15036
+ child._set("scaleY", decI.scaleY);
15037
+ child._set("skewX", decI.skewX);
15038
+ child._set("skewY", decI.skewY);
14970
15039
  } catch {
14971
15040
  }
14972
- captureAsLiveWorldSnapshot(child, liveW, liveH);
14973
15041
  child.setCoords();
15042
+ captureAsLiveWorldSnapshot(child, child.width ?? 0, child.height ?? 0);
14974
15043
  child.dirty = true;
14975
15044
  continue;
14976
15045
  }
@@ -15027,7 +15096,7 @@ const PageCanvas = forwardRef(
15027
15096
  child.dirty = true;
15028
15097
  didReflowTextChild = true;
15029
15098
  }
15030
- if (isXSide && ((_p = groupShiftReflowSnapshotRef.current) == null ? void 0 : _p.selection) === obj) {
15099
+ if (isXSide && ((_n = groupShiftReflowSnapshotRef.current) == null ? void 0 : _n.selection) === obj) {
15031
15100
  const snap = groupShiftReflowSnapshotRef.current;
15032
15101
  const anchorEntry = snap.children[0];
15033
15102
  const anchorTopLive = anchorEntry.obj.top ?? 0;
@@ -15189,7 +15258,7 @@ const PageCanvas = forwardRef(
15189
15258
  setGuides(gridGuidesForScale.length ? [...scaleGuides, ...gridGuidesForScale] : scaleGuides);
15190
15259
  if (drilledGroupIdRef.current) {
15191
15260
  try {
15192
- (_q = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _q.call(fabricCanvas);
15261
+ (_o = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _o.call(fabricCanvas);
15193
15262
  } catch {
15194
15263
  }
15195
15264
  }
@@ -15416,8 +15485,6 @@ const PageCanvas = forwardRef(
15416
15485
  for (const child of t.getObjects()) {
15417
15486
  delete child.__asLiveOrigW;
15418
15487
  delete child.__asLiveOrigH;
15419
- delete child.__asLiveOrigScaleX;
15420
- delete child.__asLiveOrigScaleY;
15421
15488
  delete child.__asLiveRotSnap;
15422
15489
  delete child.__asLiveGestureKey;
15423
15490
  }
@@ -16120,12 +16187,10 @@ const PageCanvas = forwardRef(
16120
16187
  const ownSy = Math.abs(obj.scaleY ?? 1);
16121
16188
  const bakedW = Math.max(1, intrinsicWidth * ownSx * (imgIsXSide ? sLocalI : 1));
16122
16189
  const bakedH = Math.max(1, intrinsicHeight * ownSy * (imgIsXSide ? 1 : sLocalI));
16123
- const cleanW = Math.max(1, Number(obj.__asLiveFinalW ?? bakedW));
16124
- const cleanH = Math.max(1, Number(obj.__asLiveFinalH ?? bakedH));
16125
16190
  try {
16126
16191
  obj.set({
16127
- width: cleanW,
16128
- height: cleanH,
16192
+ width: bakedW,
16193
+ height: bakedH,
16129
16194
  scaleX: 1,
16130
16195
  scaleY: 1,
16131
16196
  skewX: 0,
@@ -16144,8 +16209,8 @@ const PageCanvas = forwardRef(
16144
16209
  obj.setCoords();
16145
16210
  } catch {
16146
16211
  }
16147
- finalWidth = cleanW;
16148
- finalHeight = cleanH;
16212
+ finalWidth = Math.max(1, Number(obj.__asLiveFinalW ?? bakedW));
16213
+ finalHeight = Math.max(1, Number(obj.__asLiveFinalH ?? bakedH));
16149
16214
  finalScaleX = 1;
16150
16215
  finalScaleY = 1;
16151
16216
  const worldCx = Number.isFinite(obj.__asLiveWorldCenterX) ? obj.__asLiveWorldCenterX : decomposed.translateX ?? 0;
@@ -16421,9 +16486,8 @@ const PageCanvas = forwardRef(
16421
16486
  const objectFlipY = obj.flipY ?? false;
16422
16487
  const persistedFlipX = (sourceElement == null ? void 0 : sourceElement.flipX) ?? objectFlipX;
16423
16488
  const persistedFlipY = (sourceElement == null ? void 0 : sourceElement.flipY) ?? objectFlipY;
16424
- const persistedAngle = sourceElement ? Number.isFinite(sourceElement.angle) ? sourceElement.angle ?? 0 : 0 : Number.isFinite(obj.angle) ? obj.angle ?? 0 : void 0;
16425
16489
  const isActiveSelectionResizeGesture = activeSelectionResizeHandle === "ml" || activeSelectionResizeHandle === "mr" || activeSelectionResizeHandle === "mt" || activeSelectionResizeHandle === "mb" || activeSelectionResizeHandle === "tl" || activeSelectionResizeHandle === "tr" || activeSelectionResizeHandle === "bl" || activeSelectionResizeHandle === "br";
16426
- const expectedCleanAngle = isActiveSelection && isActiveSelectionResizeGesture ? sourceElement ? Number.isFinite(sourceElement.angle) ? sourceElement.angle ?? 0 : 0 : Number.isFinite(obj.angle) ? obj.angle ?? 0 : void 0 : void 0;
16490
+ const expectedCleanAngle = isActiveSelection && isActiveSelectionResizeGesture ? Number.isFinite(sourceElement == null ? void 0 : sourceElement.angle) ? (sourceElement == null ? void 0 : sourceElement.angle) ?? 0 : Number.isFinite(obj.angle) ? obj.angle ?? 0 : void 0 : void 0;
16427
16491
  const normalizedFinalAbsoluteMatrix = normalizeMatrixForPersistedFlip(
16428
16492
  toggleLogicalFlipInMatrix(
16429
16493
  finalAbsoluteMatrix,
@@ -16437,7 +16501,7 @@ const PageCanvas = forwardRef(
16437
16501
  const cleanTransformMatrix = toggleLogicalFlipInMatrix(normalizedFinalAbsoluteMatrix, persistedFlipX, persistedFlipY);
16438
16502
  const persistedDecomposed = fabric.util.qrDecompose(cleanTransformMatrix);
16439
16503
  if (isActiveSelection && (obj instanceof fabric.FabricImage || obj instanceof fabric.Group && obj.__cropGroup)) {
16440
- activeSelectionFlipRestores.push({ obj, flipX: persistedFlipX, flipY: persistedFlipY, angle: persistedAngle });
16504
+ activeSelectionFlipRestores.push({ obj, flipX: persistedFlipX, flipY: persistedFlipY });
16441
16505
  }
16442
16506
  const elementUpdate = {
16443
16507
  left: storePos.left,
@@ -16567,12 +16631,6 @@ const PageCanvas = forwardRef(
16567
16631
  objectBeforeStoreWrite: summarizeFabricObjectForResizeDebug(obj)
16568
16632
  });
16569
16633
  }
16570
- if (isActiveSelection && (obj instanceof fabric.FabricImage || obj instanceof fabric.Group && obj.__cropGroup)) {
16571
- const restore = activeSelectionFlipRestores.find((entry) => entry.obj === obj);
16572
- if (restore) {
16573
- restore.angle = Number.isFinite(elementUpdate.angle) ? elementUpdate.angle : persistedAngle;
16574
- }
16575
- }
16576
16634
  if (isActiveSelection) {
16577
16635
  logRotGroupImageDrift("store-update-child", {
16578
16636
  time: Math.round(performance.now()),
@@ -16669,14 +16727,14 @@ const PageCanvas = forwardRef(
16669
16727
  skipActiveSelectionBakeOnClearRef.current = true;
16670
16728
  try {
16671
16729
  for (const restore of activeSelectionFlipRestores) {
16672
- restorePersistedFlipState(restore.obj, restore.flipX, restore.flipY, restore.angle);
16730
+ restorePersistedFlipState(restore.obj, restore.flipX, restore.flipY);
16673
16731
  }
16674
16732
  fabricCanvas.discardActiveObject();
16675
16733
  } finally {
16676
16734
  skipActiveSelectionBakeOnClearRef.current = false;
16677
16735
  }
16678
16736
  for (const restore of activeSelectionFlipRestores) {
16679
- restorePersistedFlipState(restore.obj, restore.flipX, restore.flipY, restore.angle);
16737
+ restorePersistedFlipState(restore.obj, restore.flipX, restore.flipY);
16680
16738
  }
16681
16739
  for (const bake of pendingCropGroupFrameBakes) {
16682
16740
  const ct = bake.obj.__cropData;
@@ -16697,9 +16755,6 @@ const PageCanvas = forwardRef(
16697
16755
  updateCoverLayout(bake.obj);
16698
16756
  bake.obj.setCoords();
16699
16757
  }
16700
- for (const restore of activeSelectionFlipRestores) {
16701
- restorePersistedFlipState(restore.obj, restore.flipX, restore.flipY, restore.angle);
16702
- }
16703
16758
  if (membersToReselect.length > 1) {
16704
16759
  const newSel = new fabric.ActiveSelection(membersToReselect, { canvas: fabricCanvas });
16705
16760
  if (wasGroupSel) restoreGroupSelectionVisualState(newSel, wasGroupSel);
@@ -16757,10 +16812,6 @@ const PageCanvas = forwardRef(
16757
16812
  if (t instanceof fabric.ActiveSelection) {
16758
16813
  for (const child of t.getObjects()) {
16759
16814
  delete child.__asLiveOrigAngle;
16760
- delete child.__asLiveOrigFlipX;
16761
- delete child.__asLiveOrigFlipY;
16762
- delete child.__asLiveOrigScaleX;
16763
- delete child.__asLiveOrigScaleY;
16764
16815
  delete child.__asLiveGestureKey;
16765
16816
  delete child.__asLiveWorldAngle;
16766
16817
  delete child.__asLiveWorldCenterX;
@@ -25871,9 +25922,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25871
25922
  }
25872
25923
  return svgString;
25873
25924
  }
25874
- const resolvedPackageVersion = "0.5.447";
25925
+ const resolvedPackageVersion = "0.5.449";
25875
25926
  const PACKAGE_VERSION = resolvedPackageVersion;
25876
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.447";
25927
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.449";
25877
25928
  const roundParityValue = (value) => {
25878
25929
  if (typeof value !== "number") return value;
25879
25930
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -26687,7 +26738,7 @@ class PixldocsRenderer {
26687
26738
  await this.waitForCanvasScene(container, cloned, i);
26688
26739
  }
26689
26740
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
26690
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BdCLPcgH.js");
26741
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BeSrh7Sq.js");
26691
26742
  const prepared = preparePagesForExport(
26692
26743
  cloned.pages,
26693
26744
  canvasWidth,
@@ -29007,7 +29058,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29007
29058
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29008
29059
  sanitizeSvgTreeForPdf(svgToDraw);
29009
29060
  try {
29010
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BdCLPcgH.js");
29061
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BeSrh7Sq.js");
29011
29062
  try {
29012
29063
  await logTextMeasurementDiagnostic(svgToDraw);
29013
29064
  } catch {
@@ -29407,4 +29458,4 @@ export {
29407
29458
  buildTeaserBlurFlatKeys as y,
29408
29459
  collectFontDescriptorsFromConfig as z
29409
29460
  };
29410
- //# sourceMappingURL=index-g0HVhMPi.js.map
29461
+ //# sourceMappingURL=index-CyBVRtoh.js.map