plotly / dash-canvas

An interactive image editing component for Dash
https://dash.plot.ly/canvas
Other
84 stars 26 forks source link

Add objects #41

Open emmanuelle opened 4 years ago

emmanuelle commented 4 years ago

Follow-up of #33. I added the possibility to replace the objects instead of adding them to the existing ones.

HeinerTholen commented 3 years ago

Hey there! I'm using DashCanvas and I also need put existing objects into the canvas, so that various users can share sketches. However, I think that the add_only functionality shouldn't exist. Rather, it should just be possible to set json_data from the outside. If users would like to replace objects, they can also do that e.g. in a clientside callback, where they use the current state of json_data. Would also go and make a PR if sb is interested.

However, it seems not much is going on with DashCanvas. Is there a possibility of bringing it back to life? I'd be happy to take some responsibility. =)