I wanted to create an app where both drawing/deleting rectangles and moving drawn rectangles trigger a callback. I have set the dragmode to ‘drawRect’ which makes the relayoutData respond to deletion and creation but moving the boxes doesn’t trigger it. Can someone please let me know if there is a way around to trigger moving shapes also for a callback.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Programmatically delete "drawRect" boxes from image on button click(Not from modeBar) | 2 | 817 | December 17, 2020 | |
How to listen events on modifying a shape | 2 | 2696 | July 7, 2020 | |
Which event is triggered when a shape has been drawn with Plotly ("Draw line" toolbar icon)? | 6 | 1484 | May 3, 2024 | |
Updating shape attributes in figure | 0 | 1870 | November 12, 2018 | |
Dash clickData when go.layout.dragmode == 'drawrect' | 4 | 1762 | February 28, 2023 |