div-lines
v1.3.0
Published
Small and simple utility library to draw lines just using javascript and HTML Document Object Model. No JQuery needed
Downloads
4
Maintainers
Readme
div-lines
Small and simple utility library to draw lines just using div layers thanks to javascript and DOM manipulation.
This example in plunker: http://embed.plnkr.co/Nipx831rhNMFnTiVUWTN/
Quick start
1 Download and Install div-lines
- yarn: yarn add div-lines
- NPM: npm install div-lines
- NuGet: PM> Install-Package div-lines
- github: https://github.com/ajsoriar/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:
This example in plunker: http://embed.plnkr.co/fN5Elp/
This example in plunker: http://embed.plnkr.co/PGwarf/
4 License
div-lines.js is MIT licensed.