Skip to content

fix: label transfrom remain #6781

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

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

fix: label transfrom remain #6781

wants to merge 2 commits into from

Conversation

moayuisuda
Copy link
Collaborator

@moayuisuda moayuisuda commented Apr 15, 2025

Checklist
  • [] npm test passes
  • [] commit message follows commit guidelines
Description of change

#6780
当原来 label 有 overlapHide 时,会把 label 的 visibility 置为 hidden
当更新节点,将 overlapHide 去除时,因为新生成的 label 的属性里没有 visibility 这个 key,会导致这里也不会更新节点的 visibility
image
image

// @fixme The cancel render is not marked, which will cause additional rendered event.
// @ref src/runtime/render.ts
/**
* @fixme Trailing render WILL NOT invoke AFTER_RENDER, only main render will invoke AFTER_RENDER.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这里是另一个bug,我先注释记录下

@moayuisuda moayuisuda force-pushed the fix/transform-remain branch from feb1516 to 8ff381e Compare April 16, 2025 03:03
@hustcc
Copy link
Member

hustcc commented Apr 16, 2025

单测看看,对照下~

@moayuisuda
Copy link
Collaborator Author

moayuisuda commented Apr 21, 2025

这个改动到的快照太多了(因为很多svg都会加上visibility属性),我尝试看看有无啥另外的方案不改动这么多单测的

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.

2 participants