code: function SvgPath(path) {
    if (!(this instanceof SvgPath)) { return new SvgPath(path); }
  
    // Array of path segments.
    // Each segment is array [command, param1, param2, ...]
    try {
      this.segments = parse(path);
    } catch (e) {
      this.segments = [];
    }
  }
docs: Class constructor