Less stroke shape jitter.

This commit is contained in:
Anthony Lieuallen 2022-11-21 08:48:01 -05:00
parent 4a8345cf99
commit e7e13160d9
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,7 @@ svg {
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<style> <style>
polygon { stroke-width: 5px; } polygon { stroke-width: 1px; }
</style> </style>
</svg> </svg>
@ -273,6 +273,7 @@ function activateColor(el) {
// Force its stroke to be black. (Doing this with CSS doesn't work; the // Force its stroke to be black. (Doing this with CSS doesn't work; the
// hover state is broken by mutating the DOM.) // hover state is broken by mutating the DOM.)
el.style.stroke = 'black'; el.style.stroke = 'black';
el.style.strokeWidth = '5px';
} }
// https://stackoverflow.com/a/5624139/91238 // https://stackoverflow.com/a/5624139/91238