Interactive Prototyping Using Inkscape
Publish date: Jan 29, 2024
Last updated: Jan 29, 2024
Last updated: Jan 29, 2024
I never knew that Inkscape has this amazing feature.
document.documentElement.setAttribute("height", "100%");
document.documentElement.setAttribute("width", "100%");
function showLayer(id) {
const layers = document.querySelectorAll("svg > g[*|groupmode=layer]");
layers.forEach(layer => {
layer.style.display = "none"
});
const layerToShow = document.querySelector("#" + id);
layerToShow.style.display = "inline";
}