Skip to content

Canvas to draw on #9

Open
Open

Description

@fonsp

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.

Activity

  1. RensDimmendaal commented on Sep 14, 2020

    @RensDimmendaal

    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.

  2. fonsp commented on Sep 14, 2020

    @fonsp
    MemberAuthor

    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

  3. RensDimmendaal commented on Sep 14, 2020

    @RensDimmendaal

    Super. Keep up the great work!

  4. shashankp commented on Sep 14, 2020

    @shashankp
    Contributor

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

    image

  5. fonsp commented on Sep 14, 2020

    @fonsp
    MemberAuthor

    @dpsanders asked for that once

  6. shashankp commented on Sep 14, 2020

    @shashankp
    Contributor

    Create another issue to track it?

  7. fonsp commented on Sep 15, 2020

    @fonsp
    MemberAuthor

    yep!

  8. added
    needs Pluto.jl featureCan't be done right now because something is missing from Pluto.jl itself
    on Nov 1, 2021
  9. DhruvaSambrani commented on Nov 10, 2022

    @DhruvaSambrani

    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?

  10. linked a pull request that will close this issuePlutoUI.DrawCanvas #234on Nov 11, 2022
  11. fonsp commented on Nov 11, 2022

    @fonsp
    MemberAuthor

    WIP at #234!

  12. aplavin commented on Apr 14, 2023

    @aplavin

    @fonsp this thread and examples have been helpful!
    The only thing I cannot make to work is to draw an image on the canvas from julia. https://gist.github.com/RensDimmendaal/2cb0ada5750b00d703c3976df1716e14 has an example of an image from a URL, but I have the image in Julia as a regular matrix of RGB colors. How to send it to JS and draw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersneeds Pluto.jl featureCan't be done right now because something is missing from Pluto.jl itself

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions