proper min/max.
...
Merge https://github.com/clementfarabet/gfx.js