(shape)
| 17492 | } |
| 17493 | |
| 17494 | function 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 | |
| 17512 | function arcInnerRadius(d) { |
| 17513 | return d.innerRadius; |