src/scales.js
function create(type, constructor) {
  return function scale() {
    var s = constructor();

    if (!s.invertRange) {
      s.invertRange = s.invert ? invertRange(s)
        : s.invertExtent ? invertRangeExtent(s)
        : undefined;
    }

    s.type = type;
    return s;
  };
}
function create(type, constructor) {
  return function scale() {
    var s = constructor();

    if (!s.invertRange) {
      s.invertRange = s.invert ? invertRange(s)
        : s.invertExtent ? invertRangeExtent(s)
        : undefined;
    }

    s.type = type;
    return s;
  };
}
function create ( type , constructor ) { return function scale ( ) { var s = constructor ( ) ; if ( ! s . invertRange ) { s . invertRange = s . invert ? invertRange ( s ) : s . invertExtent ? invertRangeExtent ( s ) : undefined ; } s . type = type ; return s ; } ; }
Augment scales with their type and needed inverse methods.
Augment scales with their type and needed inverse methods .