Skip to content

Small and simple utility library to draw lines just using javascript and HTML Document Object Model

License

Notifications You must be signed in to change notification settings

ajsoriar/div-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

div-lines Build Status

npm version yarn version NuGet version

Small and simple utility library to draw lines just using div layers thanks to javascript and DOM manipulation.

div-lines demo 1

This example in plunker: http://embed.plnkr.co/Nipx831rhNMFnTiVUWTN/

Quick start

1 Download and Install div-lines

2 Include dependences

2.1 div-lines.js and div-lines.min.js are under dist folder.

2.2 Include div-lines.js or div-lines.min.js, e.g.

<script src="../dist/div-lines.min.js"></script>

3 Use it

Just use it inside your javascript code this way:

dljs.line(null,100,100,400,300,10);

A couple of examples: div-lines demo 2

This example in plunker: http://embed.plnkr.co/fN5Elp/

div-lines demo 3

This example in plunker: http://embed.plnkr.co/PGwarf/

4 License

div-lines.js is MIT licensed.

About

Small and simple utility library to draw lines just using javascript and HTML Document Object Model

Resources

License

Stars

Watchers

Forks

Packages

No packages published