andfanilo / streamlit-drawable-canvas

Do you like Quick, Draw? Well what if you could train/predict doodles drawn inside Streamlit? Also draws lines, circles and boxes over background images for annotation.
https://drawable-canvas.streamlit.app/
MIT License
541 stars 83 forks source link

Zoom in/out #99

Open mi-spindel opened 1 year ago

mi-spindel commented 1 year ago

I would like to have a large canvas, but it may not fit on the screen. Can I zoom in on a specific part of the canvas? Or I would like to be able to scroll horizontally.

andfanilo commented 1 year ago

Hello, It should be possible by adding the following event http://fabricjs.com/fabric-intro-part-5 into the main Typescript file . If you have time to test it, I would be grateful :) Have a nice day, Fanilo