Open subsurfaceiodev opened 9 months ago
This is a very interesting function. With this function, Plotly is very useful for many applications. When are the feature requests processed? I think this feature is very easy to implement because this works in Dash Graph "erase active shape".
Thanks for creating this Feature Request, @subsurfaceiodev This is part of a larger ongoing topic.
This would be a very useful feature for my use case as well where I want to select a closedPath or a shape and change the label of it i.e annotate with a different label.
For image annotation this is a must.
Is your feature request related to a problem? Please describe. As discussed in https://community.plotly.com/t/how-to-get-current-active-shape/42235 and https://stackoverflow.com/questions/76163350/shape-click-eventactive-shape-index-how-to-retrieve-the-index-of-a-drawn-sha, it would be a great feature to get the current active / clicked shape from a plotly figure via a callback in dash.
Describe the solution you'd like A simple 'active_shape' or similar property from figure to use in callbacks.