MCPcopy Create free account
hub / github.com/breck7/scroll / withPath

Function withPath

external/.d3.js:17494–17510  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

17492}
17493
17494function withPath(shape) {
17495 let digits = 3;
17496
17497 shape.digits = function(_) {
17498 if (!arguments.length) return digits;
17499 if (_ == null) {
17500 digits = null;
17501 } else {
17502 const d = Math.floor(_);
17503 if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
17504 digits = d;
17505 }
17506 return shape;
17507 };
17508
17509 return () => new Path$1(digits);
17510}
17511
17512function arcInnerRadius(d) {
17513 return d.innerRadius;

Callers 5

arcFunction · 0.85
lineFunction · 0.85
areaFunction · 0.85
linkFunction · 0.85
Symbol$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected