invert dev hiding logic

This commit is contained in:
Tomáš Mládek 2021-01-17 15:18:18 +01:00
parent 4e3dc29337
commit 2dc16e7362

View file

@ -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;