ktongue's picture
download
raw
393 Bytes
import {Path} from "d3-path";
export function withPath(shape) {
let digits = 3;
shape.digits = function(_) {
if (!arguments.length) return digits;
if (_ == null) {
digits = null;
} else {
const d = Math.floor(_);
if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
digits = d;
}
return shape;
};
return () => new Path(digits);
}

Xet Storage Details

Size:
393 Bytes
·
Xet hash:
9e661665fa41fd7cc790b316eaee431d8afee2560e91cfe4103868d99293b603

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