Allow texture atlas to be zoomed on hover

This commit is contained in:
Daniel Imms
2022-07-31 11:35:12 -07:00
parent d6fe5c7384
commit 208364147a
3 changed files with 22 additions and 3 deletions
+14
View File
@@ -89,3 +89,17 @@ pre {
max-height: 100vh;
overflow-y: auto;
}
#texture-atlas {
width: 100%;
height: 600px;
overflow: scroll;
}
#texture-atlas canvas {
image-rendering: pixelated;
}
#texture-atlas canvas:hover {
/* zoom to 4x on hover */
width: 4096px;
height: 4096px;
}