v1.5.04 - Emblems auto-hide and hightlighting

This commit is contained in:
Azgaar 2021-01-30 18:47:43 +03:00
parent 56b6eb2a13
commit 32c4566aa7
9 changed files with 125 additions and 54 deletions

View file

@ -21,7 +21,7 @@ function clicked() {
const p = d3.mouse(this);
const i = findCell(p[0], p[1]);
if (parent.id === "emblems") editEmblem();
if (grand.id === "emblems") editEmblem();
else if (parent.id === "rivers") editRiver();
else if (grand.id === "routes") editRoute();
else if (el.tagName === "tspan" && grand.parentNode.parentNode.id === "labels") editLabel();