mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Fix for State opacity (#853)
This commit is contained in:
parent
3064961c59
commit
4000c954f1
2 changed files with 2 additions and 2 deletions
|
|
@ -794,7 +794,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tbody id="styleOpacity" style="display: block">
|
<tbody id="styleOpacity" style="display: none">
|
||||||
<tr data-tip="Set opacity. 0: transparent, 1: solid">
|
<tr data-tip="Set opacity. 0: transparent, 1: solid">
|
||||||
<td>Opacity</td>
|
<td>Opacity</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@ styleGroupSelect.addEventListener("change", selectStyleElement);
|
||||||
function getEl() {
|
function getEl() {
|
||||||
const el = styleElementSelect.value;
|
const el = styleElementSelect.value;
|
||||||
const g = styleGroupSelect.value;
|
const g = styleGroupSelect.value;
|
||||||
if (g === el) return svg.select("#" + el);
|
if (g === el || g === "") return svg.select("#" + el);
|
||||||
else return svg.select("#" + el).select("#" + g);
|
else return svg.select("#" + el).select("#" + g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue