mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.5.04 - Emblems auto-hide and hightlighting
This commit is contained in:
parent
56b6eb2a13
commit
32c4566aa7
9 changed files with 125 additions and 54 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue