getNumbersFromSvgPathDefinitionAttribute = (d) => {
  return d
    .split(" ")
    .filter((x) => !isNaN(x))
    .map((x) => parseFloat(x));
}
Retrieve number array from SVG path definition string.

@param {string} d SVG path definition string.
@returns {number[]} Resulting numbers array.