v1.0 with SW PWA enabled
This commit is contained in:
19
frontend/node_modules/d3-shape/src/path.js
generated
vendored
Normal file
19
frontend/node_modules/d3-shape/src/path.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user