Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

toSVG does not take current src of an element #18

Open
gerpaick opened this issue Aug 7, 2012 · 0 comments
Open

toSVG does not take current src of an element #18

gerpaick opened this issue Aug 7, 2012 · 0 comments

Comments

@gerpaick
Copy link

gerpaick commented Aug 7, 2012

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant