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