Raphael.Export icon indicating copy to clipboard operation
Raphael.Export copied to clipboard

toSVG does not take current src of an element

Open gerpaick opened this issue 13 years ago • 0 comments

Hi,

I have an element:

zestaw = paper.image("images/alfen/01/zestawLP.png", 0, 0, (4380*oneMm), 1200*oneMm);

and on some action i need to update an image of this element and i do this with:

$('#radioPrawy').bind('change', function() {
                if (this.checked) {
                    zestaw.node.href.baseVal = "images/alfen/01/zestawPP.png";
                };
             });

and in browser it is working great, when i inspect visible element i get:

<image style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); " x="100.01122112211222" y="111.13861386138613" width="306.0940594059406" height="83.86138613861387" preserveAspectRatio="none" href="images/alfen/01/zestawPP.png"></image>

but when i use toSVG function and i put a result to console i get:

<image transform="matrix(1,0,0,1,0,0)" preserveAspectRatio="none" x="100.01122112211222" y="111.13861386138613" width="306.0940594059406" height="83.86138613861387" xlink:href="images/alfen/01/zestawLP.png"></image>

so i cannot process this value to pdf, because i still have original image. how can I fix it?

gerpaick avatar Aug 07 '12 11:08 gerpaick