| 108156 | } |
| 108157 | |
| 108158 | function powish(transform) { |
| 108159 | var scale = transform(_continuous.identity, _continuous.identity), |
| 108160 | exponent = 1; |
| 108161 | |
| 108162 | function rescale() { |
| 108163 | return exponent === 1 ? transform(_continuous.identity, _continuous.identity) : exponent === 0.5 ? transform(transformSqrt, transformSquare) : transform(transformPow(exponent), transformPow(1 / exponent)); |
| 108164 | } |
| 108165 | |
| 108166 | scale.exponent = function (_) { |
| 108167 | return arguments.length ? (exponent = +_, rescale()) : exponent; |
| 108168 | }; |
| 108169 | |
| 108170 | return (0, _linear.linearish)(scale); |
| 108171 | } |
| 108172 | |
| 108173 | function pow() { |
| 108174 | var scale = powish((0, _continuous.transformer)()); |