mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
v 0.8.16b
This commit is contained in:
parent
9dd68a7234
commit
13dc1a689f
1 changed files with 2 additions and 2 deletions
|
|
@ -166,7 +166,7 @@ function editStates() {
|
||||||
const state = +event.target.dataset.id;
|
const state = +event.target.dataset.id;
|
||||||
if (customization || !state) return;
|
if (customization || !state) return;
|
||||||
const path = regions.select("#state"+state).attr("d");
|
const path = regions.select("#state"+state).attr("d");
|
||||||
debug.append("path").attr("class", "highlighted").attr("d", path)
|
debug.append("path").attr("class", "highlight").attr("d", path)
|
||||||
.attr("stroke", "red").attr("stroke-width", 1).attr("opacity", 1)
|
.attr("stroke", "red").attr("stroke-width", 1).attr("opacity", 1)
|
||||||
.attr("filter", "url(#blur1)").call(transition);
|
.attr("filter", "url(#blur1)").call(transition);
|
||||||
}
|
}
|
||||||
|
|
@ -187,7 +187,7 @@ function editStates() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stateHighlightOff() {
|
function stateHighlightOff() {
|
||||||
debug.selectAll(".highlighted").each(function(el) {
|
debug.selectAll(".highlight").each(function(el) {
|
||||||
d3.select(this).call(removePath);
|
d3.select(this).call(removePath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue