From 329248efeb8681cac69c7db451c4601301d40049 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 4 Jun 2024 21:52:04 +0200 Subject: Brief movement line in log + movement path on mouse-over. --- tools/parse-layout.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/parse-layout.js') diff --git a/tools/parse-layout.js b/tools/parse-layout.js index 3e6cf0f..e327867 100644 --- a/tools/parse-layout.js +++ b/tools/parse-layout.js @@ -309,7 +309,7 @@ for (let key in points) { x: Math.round(x), y: Math.round(y), adjacent: [], - major_roads: [], + main_roads: [], roads: [], }) } else { @@ -345,11 +345,11 @@ cities.sort((a,b) => { return b.y - a.y }) -for (let e of edges.major_road) { +for (let e of edges.main_road) { let a = find_closest_city(e.x1, e.y1) let b = find_closest_city(e.x2, e.y2) - set_add(cities[a].major_roads, b) - set_add(cities[b].major_roads, a) + set_add(cities[a].main_roads, b) + set_add(cities[b].main_roads, a) set_add(cities[a].adjacent, b) set_add(cities[b].adjacent, a) } @@ -371,7 +371,7 @@ let arrays = { x: [], y: [], adjacent: [], - major_roads: [], + main_roads: [], roads: [], } -- cgit v1.2.3