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

旋转角度过大,导致文字被裁减而显示不全 #19

Open
YXM-fish opened this issue May 29, 2020 · 0 comments
Open

旋转角度过大,导致文字被裁减而显示不全 #19

YXM-fish opened this issue May 29, 2020 · 0 comments

Comments

@YXM-fish
Copy link

应设置ctx.textAlign='center',然后ctx.translate(canvas.width / 2, 0),以使文本居中显示,可改善文字被裁减的问题。

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

1 participant