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

fuse a canvas image and a svg layer together #419

Open
sedghi opened this issue May 10, 2022 · 2 comments
Open

fuse a canvas image and a svg layer together #419

sedghi opened this issue May 10, 2022 · 2 comments

Comments

@sedghi
Copy link

sedghi commented May 10, 2022

I have two elements: a canvas and a SVG layer: the canvas renders an image and the SVG layer overlays some annotations.

I would like to capture an image by fusing both their contents (the image + its annotation). I was wondering if there is an easy way to do this in dom-to-image

Thanks in advance

@sedghi
Copy link
Author

sedghi commented May 11, 2022

Answer: I ended up getting the parent node, and convert that to image, which did the trick

@arlendp
Copy link

arlendp commented May 18, 2022

try capture the common container of canvas and svg by this lib.

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