twolfson / spritesmith

Utility that takes sprites and converts them into a stylesheet and its coordinates
MIT License
911 stars 56 forks source link

Allow custom algorithm as a paramter #47

Closed twolfson closed 8 years ago

twolfson commented 9 years ago

We are treating layout as the only store system for algorithms. We should allow functions to be provided as well. We should also consider removing addAlgorithm calls from layout.

twolfson commented 8 years ago

layout currently supports passing in a function as a parameter. I am guessing we implemented this and forgot to close it.

https://github.com/twolfson/layout/blob/2.2.0/lib/layout.js#L16-L22