Is there any framework/interface/something to create new modes/tools (such as the the pan mode or the box select mode). For example, I’m trying to create a mode in which the user can draw a curve by dragging the mouse around the chart (something similar to the MS paint pencil tool, but working with data-points instead of pixels).
I know I could do that by temporarily locking the chart (making it impossible to zoom or pan) and calculating the position of the mouse in data coordinates, but I’d like to do so on a ‘less hacky’ fashion and I wonder if there’s any ‘official’ way. I don’t mind using react-plotly if it can help.