xyz-tools / gcode-preview

A simple GCode parser & previewer lib with 3D printing in mind. Written in Typescript.
https://gcode-preview.web.app/
MIT License
160 stars 31 forks source link

Improve the resizing behavior #230

Open sophiedeziel opened 4 weeks ago

sophiedeziel commented 4 weeks ago

From Discord:

@remcoder:

I want to improve the resizing behavior by using an Observer. The new demo does this but it could be completely done by the lib. It would work in situations where the old resize method fails, like when the window doesn't resize but the canvas does.