I have tried different approaches to tackle this, but iceds preferred way of having pure, stateless widgets makes it hard to get a good interface.
.range_x(), .range_y()
These seem to be the most versatile interfaces that would also allow to implement scrolling and zooming, but there is one major problem here: It doesn't work well with the chart widgets initial auto-scaling.
- A combination of
.offset() and .zoom()
These work better in the iced sense, because both have sane defaults. Unfortunately, they don't allow for one of my main use cases in raumklang, or at least I couldn't find a working solution for: zoom to mouse pointer.
I have tried different approaches to tackle this, but
iceds preferred way of havingpure,statelesswidgets makes it hard to get a good interface..range_x(),.range_y()These seem to be the most versatile interfaces that would also allow to implement scrolling and zooming, but there is one major problem here: It doesn't work well with the chart widgets initial auto-scaling.
.offset()and.zoom()These work better in the
icedsense, because both have sane defaults. Unfortunately, they don't allow for one of my main use cases in raumklang, or at least I couldn't find a working solution for: zoom to mouse pointer.