tahamajs's picture
download
raw
618 Bytes
import "../core/identity";
function d3_scale_nice(domain, nice) {
var i0 = 0,
i1 = domain.length - 1,
x0 = domain[i0],
x1 = domain[i1],
dx;
if (x1 < x0) {
dx = i0, i0 = i1, i1 = dx;
dx = x0, x0 = x1, x1 = dx;
}
domain[i0] = nice.floor(x0);
domain[i1] = nice.ceil(x1);
return domain;
}
function d3_scale_niceStep(step) {
return step ? {
floor: function(x) { return Math.floor(x / step) * step; },
ceil: function(x) { return Math.ceil(x / step) * step; }
} : d3_scale_niceIdentity;
}
var d3_scale_niceIdentity = {
floor: d3_identity,
ceil: d3_identity
};

Xet Storage Details

Size:
618 Bytes
·
Xet hash:
6fa61e72acc9904b25ee55ccdc1e6a2b844cd39887915940a02735468b12b448

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.