Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x and y of drawImage missing in getSerializedSvg? #69

Open
kaldrenon opened this issue Aug 16, 2018 · 2 comments
Open

x and y of drawImage missing in getSerializedSvg? #69

kaldrenon opened this issue Aug 16, 2018 · 2 comments

Comments

@kaldrenon
Copy link

My code calls ctx.drawImage(img, startX, startY, width, height) on the C2S object I maintain for my canvas, but when I serialize and download the SVG, the x and y attributes are missing from the <image> tag. Width and height are preserved, but the image is at (0, 0)

@aliarshad9691
Copy link

aliarshad9691 commented Jul 27, 2021

__addTransform is creating a new g elem and appending to parent...
it updated the __currentElement with this new group and apply transform on the new group...

I think it should first append __currentElement into new group, then override __currentElement

@aliarshad9691
Copy link

aliarshad9691 commented Jul 27, 2021

Created a PR with fix #84

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

No branches or pull requests

2 participants