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

Move the drag and drop code #231

Open sophiedeziel opened 4 weeks ago

sophiedeziel commented 4 weeks ago

Should we un-deprecate the drag and drop option?

The _enableDropHandler() method could be moved outside of WebGLPreview.

remcoder commented 4 weeks ago

I'd be for undeprecating DnD. We could probably use something like a a dom-utils module or canvas wrapper class to organize things like DnD and resizing.