minimap
minimap copied to clipboard
fix: make CanvasDrawer a normal class
Description
Make CanvasDrawer
class independent, and store the class instance in CanvasDrawer
property
Benefits
This decoupling allows doing further optimizations with the code. For example, not calling the state functions every time, and make them once during the constructor. It also allows removing all the mixin hackery and mixto
.
It makes the who classes independent, so we know which properties are actually for CanvasDrawer
.
This is mostly working. One of the tests is failing which I need to debug.