UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

24 lines (19 loc) 498 B
import '../../d3-path/src/index.js'; import { Path } from '../../d3-path/src/path.js'; 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); } export { withPath }; //# sourceMappingURL=path.js.map