Is there a way to take a Javascript Path2D object and convert it to its corresponding SVG String? According to the docs, it's pretty easy to convert string to Path using the constructor, but I can't seem to find a way to do the inverse.
The context (if relevant) is that I have a Path2D object that I want to use as a clip-path
style on an element. So, if there is a way to set the style property using a Path2D object, that would be good enough for me!