Hacker News new | ask | show | jobs
by toddr123 2136 days ago
Thanks! And nope, there's no frameworks or libraries in use, other than some helper modules I wrote for past projects and used in this. The code is mostly just organized as each tool being its own class, having a few common methods such as mouseDown, mouseMove, drawCursor and so on, with the main class passing off events from the user to whichever tool is selected. I forked this code off of a previous project, so parts of it are still a little messy due to me enjoying adding new features more than I enjoy refactoring code, but I tried to make it pretty modular from the beginning so it's easy to build on.

At the moment, there's no automated testing, I have a Patreon set up where a decent number of people are helping me beta test new features, but for the time being, I just do my best to avoid adding any regressions, and try to fix them quickly if they do show up.