getPathDFromSegments = function (pathSegments) {
  let d = ''

  pathSegments.forEach(function ([singleChar, pts], _j) {
    d += singleChar
    for (let i = 0; i < pts.length; i += 2) {
      d += pts[i] + ',' + pts[i + 1] + ' '
    }
  })

  return d
}
Create a path 'd' attribute from path segments.
Each segment is an array of the form: `[singleChar, [x,y, x,y, ...]]`
@function module:utilities.getPathDFromSegments
@param {module:utilities.PathSegmentArray[]} pathSegments - An array of path segments to be converted
@returns {string} The converted path d attribute.