I'm attempting to convert my SVG to canvas to get a png. everything is working great except for the css positioning.
please see this jsfiddle
you can see the top section which is the SVG.
I am using canvg to render the svg on the canvas element.
the 2 svgs overlap each other, one is 100% size, the other 80%. I am rendering these with Raphael.
I have tried to insert inline styles as suggested in various place like:
<style type='text/css'>![CDATA[svg{ margin: 0 auto; }]]></style>
however canvg only returns:
Cannot read property 'split' of undefined
I need the canvas to be identical to the SVG.
*note changing both to 100% size and changin radius of circles is not an option, this is a very simplified version as illustration.