@cardenelabs/cdl 0.45.0 → 0.46.0

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.
package/dist/react.cjs CHANGED
@@ -6887,6 +6887,9 @@ var LANE_PAD_MIN = 25;
6887
6887
  // src/layout/edges.ts
6888
6888
  var VERTICAL_DETOUR_GAP = 50;
6889
6889
  var VERTICAL_DETOUR_CORNER = 14;
6890
+ function verticalCornerDir(from, to) {
6891
+ return to < from ? -1 : 1;
6892
+ }
6890
6893
  var VERTICAL_DETOUR_EXIT = 45;
6891
6894
  function nearestBoxDistance(anchorX, dir, verticalTop, verticalBottom, boxes) {
6892
6895
  let nearest = Infinity;
@@ -8068,12 +8071,14 @@ function routePath(from, to, fromSide, toSide, obstacles = [], detourSide, _from
8068
8071
  midY2 = retreatBelowMidBlockers(midY2);
8069
8072
  const corner = 14;
8070
8073
  const labelY = midY2 - labelInit;
8074
+ const \u7E26\u306E\u5411\u304DA = verticalCornerDir(A.y, midY2);
8075
+ const \u7E26\u306E\u5411\u304DB = verticalCornerDir(midY2, B.y);
8071
8076
  return {
8072
8077
  d: `M ${A.x} ${A.y}
8073
- L ${A.x} ${midY2 - corner}
8078
+ L ${A.x} ${midY2 - \u7E26\u306E\u5411\u304DA * corner}
8074
8079
  Q ${A.x} ${midY2}, ${A.x + xDir * corner} ${midY2}
8075
8080
  L ${B.x - xDir * corner} ${midY2}
8076
- Q ${B.x} ${midY2}, ${B.x} ${midY2 + corner}
8081
+ Q ${B.x} ${midY2}, ${B.x} ${midY2 + \u7E26\u306E\u5411\u304DB * corner}
8077
8082
  L ${B.x} ${B.y}`,
8078
8083
  labelX: (A.x + B.x) / 2,
8079
8084
  labelY,