@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/index.js CHANGED
@@ -18180,6 +18180,9 @@ var LANE_PAD_MIN = 25;
18180
18180
  // src/layout/edges.ts
18181
18181
  var VERTICAL_DETOUR_GAP = 50;
18182
18182
  var VERTICAL_DETOUR_CORNER = 14;
18183
+ function verticalCornerDir(from, to) {
18184
+ return to < from ? -1 : 1;
18185
+ }
18183
18186
  var VERTICAL_DETOUR_EXIT = 45;
18184
18187
  function nearestBoxDistance(anchorX, dir, verticalTop, verticalBottom, boxes) {
18185
18188
  let nearest = Infinity;
@@ -19361,12 +19364,14 @@ function routePath(from, to, fromSide, toSide, obstacles = [], detourSide, _from
19361
19364
  midY2 = retreatBelowMidBlockers(midY2);
19362
19365
  const corner = 14;
19363
19366
  const labelY = midY2 - labelInit;
19367
+ const \u7E26\u306E\u5411\u304DA = verticalCornerDir(A.y, midY2);
19368
+ const \u7E26\u306E\u5411\u304DB = verticalCornerDir(midY2, B.y);
19364
19369
  return {
19365
19370
  d: `M ${A.x} ${A.y}
19366
- L ${A.x} ${midY2 - corner}
19371
+ L ${A.x} ${midY2 - \u7E26\u306E\u5411\u304DA * corner}
19367
19372
  Q ${A.x} ${midY2}, ${A.x + xDir * corner} ${midY2}
19368
19373
  L ${B.x - xDir * corner} ${midY2}
19369
- Q ${B.x} ${midY2}, ${B.x} ${midY2 + corner}
19374
+ Q ${B.x} ${midY2}, ${B.x} ${midY2 + \u7E26\u306E\u5411\u304DB * corner}
19370
19375
  L ${B.x} ${B.y}`,
19371
19376
  labelX: (A.x + B.x) / 2,
19372
19377
  labelY,