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/
- yarn: yarn add div-lines
- NPM: npm install div-lines
- NuGet: PM> Install-Package div-lines
- github: https://github.com/ajsoriar/div-lines
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>
Just use it inside your javascript code this way:
dljs.line(null,100,100,400,300,10);
This example in plunker: http://embed.plnkr.co/fN5Elp/
This example in plunker: http://embed.plnkr.co/PGwarf/
div-lines.js is MIT licensed.