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

Clippath transform parsing #5983

Merged
merged 4 commits into from
Nov 20, 2019
Merged

Conversation

asturur
Copy link
Member

@asturur asturur commented Nov 18, 2019

close #5512
close #5882

The idea behind this change is to move the clipPath as a sibling near the element that is referencing it. This will allow for nested clipPath parsing with correct transform. At least some of them.

@@ -500,7 +500,7 @@
coords = [],
currentPath,
parsed,
re = /([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/ig,
re = fabric.rePathCommand,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this saved a bunch of memory GC during a high number of path parsing.

@asturur asturur merged commit a8b7a18 into master Nov 20, 2019
@asturur asturur mentioned this pull request Dec 28, 2019
@asturur asturur deleted the ISSUE-5512-wrong-clipPath-transform branch January 15, 2020 13:48
ickata pushed a commit to ickata/fabric.js that referenced this pull request Jul 27, 2021
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

Successfully merging this pull request may close these issues.

SVG rendering bug SVG Image cropped with fabric.Image.fromURL
1 participant