You can wrap the path in an svg tag.
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <path cx="100" d="M35.269,257.154C34.393,245.68099999999998,45.438,234.091,48.492,223.00799999999998C53.634,204.34099999999998,54.985,185.004,60.041 and so on...... " stroke="none" fill="#9d49ce" style=""></path> </svg>
It will behave like an svg element. I tested it on Chrome and IE.
So, in your case, given the HTML file with this line:
<div id="charBody" class="svg-file" data-svg="img/body1.svg"></div>
Call $('.svg-file').vectron(); creates an svg child for charBody with content loaded from the file that is displayed on the page.
I would say, instead of calling vectron, you can directly add content from the string of the svg element to the innerHTML div where you want to add SVG.
vectron was last updated a year ago, so I don't have much hope from it. In addition, you only need to change svg to buttonclick, which can be easily done without vectron.
source share