PlutoUI.jl icon indicating copy to clipboard operation
PlutoUI.jl copied to clipboard

Canvas to draw on

Open fonsp opened this issue 5 years ago • 10 comments

This can be based on the rectangle drawing demo in the Interactivity sample notebook inside Pluto.

~Speed might not be great yet, but this should improve a lot once Pluto uses MsgPack instead of JSON.~

fonsp avatar May 21 '20 14:05 fonsp

I'm excited about this feature. I augmented the box drawing feature for a small demo: https://twitter.com/R_Dimm/status/1305251396669800448

I don't know javascript but potentially this might serve as inspiration: https://github.com/andfanilo/streamlit-drawable-canvas they had a similar usecase but in python.

I'd be happy to take a stab at this feature someone can help specify the requirements.

RensDimmendaal avatar Sep 14 '20 12:09 RensDimmendaal

Sorry I already kind of wrote this myself: https://github.com/fonsp/disorganised-mess/blob/master/drawoncanvas.jl

🙂 let's turn it into a PlutoUI element after #3 is done

fonsp avatar Sep 14 '20 15:09 fonsp

Super. Keep up the great work!

RensDimmendaal avatar Sep 14 '20 15:09 RensDimmendaal

Great to see already something in the works.. I was prototyping about a 2D slider

image

shashankp avatar Sep 14 '20 20:09 shashankp

@dpsanders asked for that once

fonsp avatar Sep 14 '20 20:09 fonsp

Create another issue to track it?

shashankp avatar Sep 14 '20 20:09 shashankp

yep!

fonsp avatar Sep 15 '20 00:09 fonsp

Sorry I already kind of wrote this myself: https://github.com/fonsp/disorganised-mess/blob/master/drawoncanvas.jl

slightly_smiling_face let's turn it into a PlutoUI element after #3 is done

Hi @fonsp what's the scene on this issue? Is it just a matter of someone formalizing your code?

DhruvaSambrani avatar Nov 10 '22 10:11 DhruvaSambrani

WIP at #234!

fonsp avatar Nov 11 '22 10:11 fonsp