Linear scale component
$ component install karlbohlmark/linear-scale
var Scale = require('linear-scale')
var scale = new Scale([0, 10], [0, 100])
scale.map(10) // -> 100
scale.invert(100) // -> 10
scale.scaleDomain(5)
scale.invert(100) // -> 50
scale.scaleDomain(5)
scale.invert(100) // -> 10
MIT