diff --git a/web/ticket-order.js b/web/ticket-order.js index e140f25..89e5d8f 100644 --- a/web/ticket-order.js +++ b/web/ticket-order.js @@ -190,13 +190,10 @@ } stationYByCanonical = {}; - let stationIndex = 0; for (const c of Object.keys(primaryLineByStation)) { const li = primaryLineByStation[c]; if (li == null) continue; - const waveOffset = (stationIndex % 2 === 0) ? -12 : 12; - stationYByCanonical[c] = baseY + li * lineGapY + waveOffset; - stationIndex++; + stationYByCanonical[c] = baseY + li * lineGapY; } const allStations = Object.keys(primaryLineByStation); @@ -232,10 +229,7 @@ let d = `M ${pts[0].x} ${pts[0].y}`; for (let i = 1; i < pts.length; i++) { - const prev = pts[i-1]; - const curr = pts[i]; - const midX = (prev.x + curr.x) / 2; - d += ` C ${midX} ${prev.y}, ${midX} ${curr.y}, ${curr.x} ${curr.y}`; + d += ` L ${pts[i].x} ${pts[i].y}`; } svgContent += ``; }