Skip to content

Conversation

@fairy782
Copy link
Contributor

@fairy782 fairy782 commented Aug 4, 2025

close #2187

@changeset-bot
Copy link

changeset-bot bot commented Aug 4, 2025

⚠️ No Changeset found

Latest commit: feb1948

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

otherMaxCanvasDimension: number
} {
const userAgent = navigator.userAgent
console.log('userAgent', userAgent)
Copy link
Collaborator

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 绘制的时候是从左上角开始绘制的
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果没用了,就干掉,不要留着

@boyongjiong boyongjiong merged commit 130d5ce into didi:master Aug 5, 2025
@boyongjiong
Copy link
Collaborator

୧(๑•̀◡•́๑)૭

@Mirrors406
Copy link
Contributor

👍

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

Successfully merging this pull request may close these issues.

[Bug Report]: Snapshot 导出快照,画布比较大时会导出空

3 participants