3
I have already written some stuff for my own needs to process some similar tasks with SVG elements, like evaluating of bounding boxes, transformations and so on. Thus, this task seems relatively simple for me to implement such a conversion. All you need for it is only knowledge of what paths "d" attribute consists from - there is actually a list of lines, eliptical arcs and bezier curves (you even do not need the most complicated latters). See this useful tutorial if you're interested in customization of this - http://tutorials.jenkov.com/svg/path-element.html
我已經為自己編寫了一些內容,以滿足使用SVG元素處理類似任務的需要,比如求邊框、轉換等等。因此,這個任務對我來說實現這樣的轉換似乎相對簡單。你只需要知道“d”屬性的路徑是由什么組成的——實際上有一列線、葉邊弧和bezier曲線(你甚至不需要最復雜的latters)。如果您對定制感興趣,請參閱本教程——http://tutorials.jenkov.com/svg/path-element.html
But when I had started to answering you, I found a recent ready-for-use library which seems perfectly fit on you needs.