| 129039 | return x < 0 ? -x * x : x * x; |
| 129040 | } |
| 129041 | function powish(transform) { |
| 129042 | var scale = transform((0, _continuousJs.identity), (0, _continuousJs.identity)), exponent = 1; |
| 129043 | function rescale() { |
| 129044 | return exponent === 1 ? transform((0, _continuousJs.identity), (0, _continuousJs.identity)) : exponent === 0.5 ? transform(transformSqrt, transformSquare) : transform(transformPow(exponent), transformPow(1 / exponent)); |
| 129045 | } |
| 129046 | scale.exponent = function(_) { |
| 129047 | return arguments.length ? (exponent = +_, rescale()) : exponent; |
| 129048 | }; |
| 129049 | return (0, _linearJs.linearish)(scale); |
| 129050 | } |
| 129051 | function pow() { |
| 129052 | var scale = powish((0, _continuousJs.transformer)()); |
| 129053 | scale.copy = function() { |