mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
move filter from regions to statesBody
This commit is contained in:
parent
687dedfe1b
commit
43ce0424a5
3 changed files with 59 additions and 57 deletions
|
|
@ -696,10 +696,11 @@ function parseLoadedData(data) {
|
|||
|
||||
if (version < 1.64) {
|
||||
// v.1.64 change states style
|
||||
const bodyOpacity = regions.attr("opacity");
|
||||
statesBody.attr("opacity", bodyOpacity);
|
||||
statesHalo.attr("opacity", bodyOpacity).attr("filter", "blur(5px)");
|
||||
regions.removeAttribute("opacity");
|
||||
const opacity = regions.attr("opacity");
|
||||
const filter = regions.attr("filter");
|
||||
statesBody.attr("opacity", opacity).attr("filter", filter);
|
||||
statesHalo.attr("opacity", opacity).attr("filter", "blur(5px)");
|
||||
regions.attr("opacity", null).attr("filter", null);
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue