From cae8ab64a49d0408be0f1daf974334768dc09b56 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 18 Mar 2024 01:49:50 +0100 Subject: layout --- tools/parse-layout.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/parse-layout.js') diff --git a/tools/parse-layout.js b/tools/parse-layout.js index 8cf2a9f..5ee91c7 100644 --- a/tools/parse-layout.js +++ b/tools/parse-layout.js @@ -238,8 +238,8 @@ let cities = [] for (let key in points) { for (let [x, y] of points[key]) { let [ node, dist ] = find_closest_node(labels, x, y) - if (dist > 10) { - console.log(key,x,y, dist) + if (dist > 15) { + console.log(key,x,y, dist, node.name) } if (node) { labels = labels.filter(x => x !== node) @@ -375,6 +375,7 @@ let sets = { major_fortress: [], minor_fortress: [], city: [], + box: [], }, suit: { clubs: [], @@ -385,6 +386,7 @@ let sets = { map: { Flanders: [], Bohemia: [], + UNKNOWN: [], }, country: { Austria: [], @@ -396,6 +398,7 @@ let sets = { Saxony: [], Silesia: [], HRE: [], + UNKNOWN: [], }, } -- cgit v1.2.3