Duffer Derek

Current Path : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/d3-shape/src/
Upload File :
Current File : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/d3-shape/src/path.js

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);
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists