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

toSVG for fabricObject with eraser gives incorrect svg #45

Open
hamzawain7 opened this issue Jul 26, 2024 · 3 comments
Open

toSVG for fabricObject with eraser gives incorrect svg #45

hamzawain7 opened this issue Jul 26, 2024 · 3 comments

Comments

@hamzawain7
Copy link

image

@ShaMan123
Copy link
Owner

I didn't impl ClippingGroup#toSVG
You can pr based on the old code that exists on fabric in eraser_brush.mixin
In general I don't trust fabric toSVG and use node canvas to do that out of the box.

@mtrabelsi
Copy link

Hi @ShaMan123 or how about using toJSON() since it is technically almost an SVG and can be loaded into another canvas. will eraser work there too?

@ShaMan123
Copy link
Owner

toJSON should work as expected

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

3 participants