-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add Polyline/Polygon #10
Comments
I have a use case for this :-) |
Ahah okay :)
|
I have came up with very messy code to draw "polygons" in my own tests. There are temporary line segments and polygons during the drawing process. The code so far has a main problem which I believe due to my very limited understanding of Fabric.js and the mechanism of Streamlit. When drawing the "polygons", I have to disable "Update in realtime" or the aforementioned line segments will appear in the canvas and the polygon won't be created. Should I create a PR to show you the code? |
Sure @hiankun ! That'll help kickstart the conversation. |
Hi, I have created the PR #51 . Please check it when you have time to review. :-) |
Thanks, I saw the PR, I'll have a look ASAP this week! (I have some other deadlines to solve first :( ...) |
@andfanilo No hurry. Take your time please. |
@robmarkcole @hiankun #51 has been merged and I made a new Thanks Hian-Kun for the awesome contribution! |
I am so lucky to contribute to such a great project. Thank you for all the discussion and instruction. :-) |
Should we add a description to tell users that now they can use right-click to update the canvas? |
Yeah I added it in the CHANGELOG and in the demo app description but I did not commit/push those yet. Will do at the same time as promoting the release. |
I have been using v0.8.0 in my app and found two bugs. Write them down here:
|
Another bug, which might be also related to the right-click interfering with the update mechanism (just a quick guess). When canvas has a background image, the latest drawn polygon will be removed if we right-click again. However, if we do any other operations such as left-click or draw another shape, the right-click won't remove that polygon. The bug looks like the previous bug that the right-click only remove the zero-sized polygon which is created by the latest operation on the canvas. |
Thanks for updating, I'm currently installing my new personal workstation, hopefully it will be finished this weekend and I can come back to studying this issue! Fanilo |
As a user I want to be able to draw polyline (one click during line drawing = one new anchor point)
fabricjs/fabric.js#6319
The text was updated successfully, but these errors were encountered: