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

TransformJs放大svg时会变模糊 #107

Open
junxiachen2 opened this issue Mar 28, 2018 · 2 comments
Open

TransformJs放大svg时会变模糊 #107

junxiachen2 opened this issue Mar 28, 2018 · 2 comments

Comments

@junxiachen2
Copy link

我试了下用 transform: scale(10) 不会模糊,然后用 TransformJs 发现改变的是 matrix3d(10, 0, 0, 0, 0, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) 这样会出现模糊。这个有什么办法吗?

@dntzhang
Copy link
Contributor

Transform(element, true)关闭透视投影

@junxiachen2
Copy link
Author

@dntzhang 试过了,这样不行。看其他说法貌似 matrix 是基于像素操作的,所以会导致模糊。最后的解决方法是在 multipointEnd 里用 transform': 'translate(0 0) scale(10)' 放大就可以了。

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

2 participants