Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to erase the active shape via a dash callback #6678

Closed
archmoj opened this issue Jul 20, 2023 · 0 comments · Fixed by #6679
Closed

Provide a way to erase the active shape via a dash callback #6678

archmoj opened this issue Jul 20, 2023 · 0 comments · Fixed by #6679
Labels
feature something new

Comments

@archmoj
Copy link
Contributor

archmoj commented Jul 20, 2023

If we expose eraseActiveShape in https://github.com/plotly/plotly.js/blob/master/src/plot_api/index.js one could use something call Plotly.deleteActiveShape(gd) to erase the active shape.

The other option is that we add newshape.index to layout (instead of gd.__fullLayout._activeShapeIndex which is internal at the moment). Then users could use if for updating the list of shapes.

cc: @tamidodo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant