Skip to content

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

Closed
@archmoj

Description

@archmoj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions