dist/index.js
function getDelta(size, bounds, axis, offset, nonzero) {
  if (!util.isEmpty(offset) && nonzero) {
    if (Math.abs(offset) < 1e-4) {
      offset = 1e-4 * (util.isNegative(offset) ? -1 : 1);
    }
  }
  // if the offset is negative, then it's an offset from
  // the positive side of the axis
  var dist = util.isNegative(offset) ? (offset = size[axis] + offset) : offset;
  return util.axisApply(axis, function(i, a) {
    return bounds[0][a] + (util.isEmpty(dist) ? size[axis] / 2 : dist);
  });
}
function getDelta(size, bounds, axis, offset, nonzero) {
  if (!util.isEmpty(offset) && nonzero) {
    if (Math.abs(offset) < 1e-4) {
      offset = 1e-4 * (util.isNegative(offset) ? -1 : 1);
    }
  }
  // if the offset is negative, then it's an offset from
  // the positive side of the axis
  var dist = util.isNegative(offset) ? (offset = size[axis] + offset) : offset;
  return util.axisApply(axis, function(i, a) {
    return bounds[0][a] + (util.isEmpty(dist) ? size[axis] / 2 : dist);
  });
}
function getDelta ( size , bounds , axis , offset , nonzero ) { if ( ! util . isEmpty ( offset ) && nonzero ) { if ( Math . abs ( offset ) < 1e-4 ) { offset = 1e-4 * ( util . isNegative ( offset ) ? - 1 : 1 ) ; } } // if the offset is negative, then it's an offset from // the positive side of the axis var dist = util . isNegative ( offset ) ? ( offset = size [ axis ] + offset ) : offset ; return util . axisApply ( axis , function ( i , a ) { return bounds [ 0 ] [ a ] + ( util . isEmpty ( dist ) ? size [ axis ] / 2 : dist ) ; } ) ; }
Given an size, bounds and an axis, a Point
along the axis will be returned.  If no `offset`
is given, then the midway point on the axis is returned.
When the `offset` is positive, a point `offset` from the
mininum axis is returned.  When the `offset` is negative,
the `offset` is subtracted from the axis maximum.
@param  {Size} size    Size array of the object
@param  {Bounds} bounds  Bounds of the object
@param  {String} axis    Axis to find the point on
@param  {Number} offset  Offset from either end
@param  {Boolean} nonzero When true, no offset values under 1e-4 are allowed.
@return {Point}         The point along the axis.
Given an size bounds and an axis a Point along the axis will be returned . If no offset is given then the midway point on the axis is returned . When the offset is positive a point offset from the mininum axis is returned . When the offset is negative the offset is subtracted from the axis maximum .