From eadc687cdb668c6896c72cad4c28e352087cd689 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 29 Sep 2019 23:41:27 +0300 Subject: [PATCH] v1.1.06 --- modules/ui/burgs-editor.js | 2 +- modules/ui/coastline-editor.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/burgs-editor.js b/modules/ui/burgs-editor.js index 6cc55dc5..d3e8ad1f 100644 --- a/modules/ui/burgs-editor.js +++ b/modules/ui/burgs-editor.js @@ -73,7 +73,7 @@ function editBurgs() { const province = prov ? pack.provinces[prov].name : ""; const culture = pack.cultures[b.culture].name; - lines += `
+ lines += `
diff --git a/modules/ui/coastline-editor.js b/modules/ui/coastline-editor.js index ba8ea663..0a604da8 100644 --- a/modules/ui/coastline-editor.js +++ b/modules/ui/coastline-editor.js @@ -32,7 +32,8 @@ function editCoastline(node = d3.event.target) { const f = +elSelected.attr("data-f"); // feature id const v = pack.features[f].vertices; // coastline outer vertices - const c = [... new Set(v.map(v => pack.vertices.c[v]).flat())]; + const l = pack.cells.i.length; + const c = [... new Set(v.map(v => pack.vertices.c[v]).flat())].filter(c => c < l); debug.select("#vertices").selectAll("polygon").data(c).enter().append("polygon") .attr("points", d => getPackPolygon(d)).attr("data-c", d => d);