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

svg的mask的transform跟随问题 #91

Closed
army8735 opened this issue Sep 16, 2020 · 0 comments
Closed

svg的mask的transform跟随问题 #91

army8735 opened this issue Sep 16, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@army8735
Copy link
Member

svg的mask元素应用在dom上时,dom如果有transform动画,引用的mask=maskId,mask也会跟随transform,错误展示,应该与引用的对象无关。
原本是所有path的point进行点乘this.matrix,性能也有问题,因为mask不支持transform。
将mask本身的transform下放到children里,然后在引用mask的dom那先求dom的matrix逆矩阵,然后将mask的children的transform点乘逆矩阵即可。

@army8735 army8735 added the bug Something isn't working label Sep 16, 2020
@army8735 army8735 self-assigned this Sep 16, 2020
army8735 added a commit that referenced this issue Sep 16, 2020
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

1 participant