function _createScaleObjectForFunction({
  domain,
  range,
  type,
  distance,
  attr,
  baseValue,
  accessor,
  accessor0
}) {
  return {
    domain,
    range,
    type,
    distance,
    attr,
    baseValue,
    isValue: false,
    accessor,
    accessor0
  };
}
Create a regular scale object for a further use from the existing parameters.
@param {Array} domain - Domain.
@param {Array} range - Range.
@param {string} type - Type.
@param {number} distance - Distance.
@param {string} attr - Attribute.
@param {number} baseValue - Base value.
@param {function} accessor - Attribute accesor
@param {function} accessor0 - Attribute accesor for potential naught value
@returns {Object} Scale object.
@private