"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const path = require("../d3-path/src-path.cjs");
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.Path(digits);
}
exports.withPath = withPath;
//# sourceMappingURL=src-path.cjs.map
