-
Notifications
You must be signed in to change notification settings - Fork 152
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
plotly figure example: error on moving shapes #509
Comments
Hi, what do you mean by moving or resizing, how do I reproduce this? Regard, Maarten |
Try clicking on a shape to select it, then moving it/resizing it. |
On https://solara.dev/examples/visualization/annotator ? Because I cannot move them. Can you show a screencast? |
Screen.Recording.2024-02-19.at.1.48.19.PM.movYou have to double-click on the edge of the box to select |
I've managed to reproduce it, and the solution seems to be that we should pass 'shapes' back to Layout. My diff is:
But, if I first draw, and the drag the shape, my output is:
This seem to be related to the error you got above ( cheers, Maarten |
@maartenbreddels @swelborn unfortunately this is not a problem from our side. I opened a related issue at Plotly repo previously. In the image annotator I built using this component I was rerendering it when capturing the relayout events, to avoid this changes. It's not that efficient, but it was enough to continue the POC development. |
The plotly figure works when drawing shapes, but fails with the following error when moving them or resizing them. Using code directly from example source.
The text was updated successfully, but these errors were encountered: