-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: 修复快照插件导出图片受浏览器对canvas限制 #2230
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
Conversation
|
| otherMaxCanvasDimension: number | ||
| } { | ||
| const userAgent = navigator.userAgent | ||
| console.log('userAgent', userAgent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console 就不需要了
| const actualWidth = (bbox.width / SCALE_X) * safetyFactor | ||
| const actualHeight = (bbox.height / SCALE_Y) * safetyFactor | ||
|
|
||
| // 将导出区域移动到左上角,canvas 绘制的时候是从左上角开始绘制的 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果没用了,就干掉,不要留着
|
୧(๑•̀◡•́๑)૭ |
|
👍 |
close #2187