Skip to content

A web app that can be used to create, save and open simple drawings.

Notifications You must be signed in to change notification settings

teggno/vsdraw-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSDRAW

(Almost) seamlessly edit your images from within vscode!

Editing images in current workspace only works if both, image and data files are saved

  1. Scan QR
  2. Web app hosted in server in vscode opens
  3. Save button posts to web server running in vscode. Image is changed (data file and png file)

Editing images from online vsdraw

  1. Scan QR
  2. Online or local vsdraw is opened on device
  3. Save button creates new version.

===> Also posts new version to vscode server which updates link in markdown.

=> Local vscode server endpoint taking new image url

Features

markdown want have drawing

possible worklfow for add new

  1. keyboard shortcut: draw
  2. browser opens with some website that allows for drawing
  3. copy drawing url as markdown
  4. go back to vscode and insert

possible workflow for edit

  1. have cursor inside drawing link in markdown
  2. keyboard shortcut or some light bulb thingy for edit
  3. url opens up for edit (url that is a png or jpg url must be converted to go back to the editor)
  4. do changes ...

implementation

  • Editor online that saves image data automatically
  • copy as md link button
    • stores data in cloud (API)
    • generates jpg or png link and returns that (API, API endpoint returning the image for that link)
    • page js wraps link with markdown and to clipboard
    • editing: vscode extension changes the link to editable url

API

  • receive editable image data + image, return json containing editable and image link
  • receive editable link, return editable data
  • receive image link, return image

Roadmap:

  • multi device editing (i.e. code on mac, draw on ipad)
    1. vscode extension: log in
    2. vscode extension: hit edit
    3. ipad website: log in
    4. ipad website: popup if want to start editing
  • vscode plugin downloads image and puts into project

Widgets

drawerjs literally canvas react-sketch

alt text

About

A web app that can be used to create, save and open simple drawings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published