static fromStructuredVerties(verties) {
    const path = new PathParser();

    const segments = [];

    verties.forEach((v) => {
      if (!segments[v.segmentIndex]) {
        segments[v.segmentIndex] = {
          command: v.segment.command,
          values: [],
        };
      }

      if (segments[v.segmentIndex].command !== PathSegmentType.CLOSEPATH) {
        segments[v.segmentIndex].values[v.valueIndex] = v.vertex[0];
        segments[v.segmentIndex].values[v.valueIndex + 1] = v.vertex[1];
      }
    });

    path.resetSegments(segments);

    return path;
  }
make line path

@param {number} x
@param {number} y
@param {number} width
@param {number} height
@returns {PathParser}