invert dev hiding logic
This commit is contained in:
parent
4e3dc29337
commit
2dc16e7362
1 changed files with 6 additions and 2 deletions
|
@ -246,9 +246,9 @@ export default defineComponent({
|
||||||
console.info("[SVG] DEBUG mode active, turning on stats & dev panel.");
|
console.info("[SVG] DEBUG mode active, turning on stats & dev panel.");
|
||||||
stats = new Stats();
|
stats = new Stats();
|
||||||
document.body.appendChild(stats.dom);
|
document.body.appendChild(stats.dom);
|
||||||
} else {
|
|
||||||
Array.from(document.body.getElementsByClassName("dev")).forEach((el) => {
|
Array.from(document.body.getElementsByClassName("dev")).forEach((el) => {
|
||||||
(el as HTMLElement).style.display = "none";
|
(el as HTMLElement).style.display = "block";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -473,6 +473,10 @@ function processStart(svg: XMLDocument): SVGRectElement | null {
|
||||||
transition: width 0.2s;
|
transition: width 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dev {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.devpanel {
|
.devpanel {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
Loading…
Reference in a new issue