2d rectangular bin packing in javascript.
npm install bin-pack.js
const binpack = require('bin-pack');
binpack.sort(nodes, 'height', 'descending', true);
binpack.pack(nodes, algorithmEL.value, 512, 512, 2, true, (i, total, id) => {
console.log(i, total, id);
});
MIT © 2017 Johnny Wu