Skip to content

Shape drawing #4374

Closed
Closed
@emmanuelle

Description

@emmanuelle

It would be interesting to port to plotly.js some shape-drawing features which exist in dash-canvas at the moment (https://dash.plot.ly/canvas). In an existing figure, the user would have the possibility to

  • create new shapes such as rectangles, lines, freehand lines (paths), by selecting a specific type of drag mode in the modebar
  • modify these shapes (moving them, and if possible scaling them and rotating them). Deleting the last shape would be a plus.
  • retrieving the geometry of shapes would probably be done thanks to relayoutData events in Dash.

Also discussed:

  • having a new_shape_style attribute to set the style of shapes individually.
  • all the drag modes would not be in the modebar by default but could be added individually

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions