node-bin-packing icon indicating copy to clipboard operation
node-bin-packing copied to clipboard

A javascript binary tree based algorithm for 2d bin-packing suitable for generating CSS sprites. Now - Node.js compatible!

Results 3 node-bin-packing issues
Sort by recently updated
recently updated
newest added

I'm using binpacking in a create-react-app application with node 10 and getting the following error: > Uncaught TypeError: Packer is not a constructor ``` import binpack from 'binpacking' const Packer...

I'm running node-bin-packing in [node-webkit](https://github.com/rogerwang/node-webkit) environment, and it crashes. after some research, i found that in this file: https://github.com/jsmarkus/node-bin-packing/blob/master/js/packer.growing.js (typeof window !== 'undefined' ? window : module.exports); is not correct....

Not a big problem but it can be misleading. The sort function should return a value less than `0` when `a` goes before `b`, `0` when equal, and greater than...