origami.js
origami.js copied to clipboard
[WIP] New shape method
- More elegant
- More More lighter
- Better to test
New API design:
old way
Reads CSS without read/search by elements
origami('#canvas')
.load(".className")
.shape(".className")
.draw();
new way
NOTE: Now element must exist in DOM.
<div class="className">...</div>
origami('#canvas')
.shape(".className").draw(); // maybe origami().html() would be better
Coverage remained the same at 91.667% when pulling 3dfd38549c97c7219c24fc385e29af93a80f4e1d on feature/new-html2canvas into 252534827a5dc53ef98bd75ee1411304074a5780 on master.
Ref: #29