HexMod icon indicating copy to clipboard operation
HexMod copied to clipboard

Modified hexdoc renderer to have a light mode and read draw settings from CSS

Open JohnDog3112 opened this issue 10 months ago • 0 comments

Changes

  • Made my hexdoc renderer read draw settings from CSS
  • Added some cleanup code to delete previously generated images when switching renderers (This was already done when the page is closed/refreshed)
  • Added overrides for the intersection points and segment renderer triangles when in light mode (made them black)

Things to Note

  • The rendered images don't automatically update when the CSS is changed as there was no event for it and I didn't want to have the client constantly checking for changes.
  • Since you need an html element with the CSS styles to get their values, the only thing used to check for changes is if you selected a different palette or renderer.
    • This means that to see changes from the CSS, you need to switch palettes/renderers

JohnDog3112 avatar Apr 20 '24 14:04 JohnDog3112