@jlauer architecturally what is the rationale for allowing widgets to access the ondropped event in parallel to the gcode list widget? I’m just looking at potential routes for ‘roughing up’ the rendering and also for potentially increasing the granularity of the moves for autolevelling; but I can see an issue with circularities and inefficiency due to repetition.
logically the approach I was looking for would be this:
- gcode file is imported by the drag drop widget
- the gcode list parses it and cleans it up.
- the cleaned code is published
- the renderer subscribes to the pubsub and decides on the granularity of the render. then renders.
problem I see is maintaining the gcode line numbers properly associated with the renderer’s lines. but this should be feasible.
for the eagle import widget I see no difference. the board will be rendered by the import widget, but the toolpath would be rendered just like the gcode list.
for autolevelling, my feeling is that the workflow would be:
- import using the board widget.
- board is rendered
- autolevelling done
- gcode is first pass generated and then regenerated with interpolated coordinates according to a specified granularity. I think this should be calculated by an heuristic that takes a look at the delta in height at the measured points.
- autolevelling data is then pushed to the granular gcode list
- gcode list pushes the gcode for rendering.
tia
Justin