Scaling is done via the this.#scale() function, but when and where to do this is complicated. Because of (apparent) limitations with canvas, the entire canvas cannot be scaled without redrawing, but redrawing requires scaling everything.
Questions
Should scaling be done each time a variable is referenced and assigned?
Should scaling be done when a variable is used?
Is there a better approach to scaling the entire diagram?
Acceptance Criteria
Users can effectively scale the entire diagram by specifying one scaling factor config variable ✅
Background
Scaling is done via the
this.#scale()
function, but when and where to do this is complicated. Because of (apparent) limitations with canvas, the entire canvas cannot be scaled without redrawing, but redrawing requires scaling everything.Questions
Acceptance Criteria
Approach