Skip to content

Freehand (pencil like) SVG Draw for VueJS, adjusted for mobile with minimal UI.

License

Notifications You must be signed in to change notification settings

plugn/vuejs-freehand-svg-draw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freehand-svg-draw

Draw with mouse or fingers vector SVG paths.

  • Basic functionality, just colors and fixed brush width
  • Minimal user interface with undo, clear and download buttons
  • Works fine on mobile and desktop
  • Canvas size defined with css

Made for VueJS ❤️

Svg pencil Draw Vuejs in browser

Demo

https://artrayd.com/freehand-svg/

If all you need is just component:

https://gist.github.com/artrayd/989fdb9718aaffa16a4346aaa89c9bac

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Customize configuration

See Configuration Reference.

Known problems

  • When cursor comes out of canvas container, it throws error - but it doesn't affect functionality
  • If not scrolled to the top, mouse cursor distance isn't calculated correctly and trace path appears in a wrong place

Based on tomhodgins gist

https://gist.github.com/tomhodgins/bffcc0dce83f2d593afc

About

Freehand (pencil like) SVG Draw for VueJS, adjusted for mobile with minimal UI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 64.9%
  • CSS 22.6%
  • HTML 11.3%
  • JavaScript 1.2%