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

fix: 修复 2.x 与 1.x 下相同的网格线宽,Grid 表现不一致的问题 #1907

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChangeSuger
Copy link
Collaborator

#1904

重写 Grid 的时候没有考虑到原先只有一半的宽度可见,实际表现就是 2.x 的网格在相同的网格线宽下,线的宽度实际上是 1.x 的两倍。举个例子,使用下面的配置,在 1.x 下,网格的线宽实际上是 stroke-width="0.5";而在 2.x 下,网格的线宽实际上是 stroke-width="1"

const gridConfig = {
  type: 'mesh',
  config: {
    thickness: 1
  }
}

考虑到迁移影响,这里就将 2.x 的表现调整为与 1.x 的表现一致。

Copy link

changeset-bot bot commented Oct 15, 2024

⚠️ No Changeset found

Latest commit: ab1779f

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

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.

1 participant