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

Clip paths not working with transforms #28

Open
ModisR opened this issue Oct 18, 2020 · 2 comments
Open

Clip paths not working with transforms #28

ModisR opened this issue Oct 18, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ModisR
Copy link
Collaborator

ModisR commented Oct 18, 2020

I had expected SVG to apply transforms first and then clips. Turns out this isn't the case and I'm now left scratching my head on how to solve this.

Current thoughts are to forget SVG transforms and encapsulate the necessary arithmetic ourselves.

@ModisR ModisR added the bug Something isn't working label Oct 18, 2020
@ModisR ModisR self-assigned this Oct 18, 2020
@erroronline1
Copy link
Collaborator

to have an opinion on that i have to educate myself on clip paths first. but at least i consider my modules doing all the arithmetic from the beginning, if i am not wrong, so these hopefully do not contribute to this issue.

@erroronline1
Copy link
Collaborator

erroronline1 commented Apr 23, 2021

couldn't wrap my head around the dependencies of groups and clipPath ids.
added a method clipPath in addition to clipShape, which returns the id of the generated clipPath that can be assigned to the to-be-clipped shape. this seems to work and having no issues (at least) with the default transforms. see gc gallifreyan and the respective method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants