You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x-zhao-res opened this issue
Dec 25, 2023
· 3 comments
Labels
good first issueOutdateThis issue is too old to be resolvedstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed
good first issueOutdateThis issue is too old to be resolvedstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed
G6 版本
5.x
问题描述
版本: G6-4.8.23
在自定义布局的execute()内,更改节点Style不生效,是否是因为自定义layout生命周期的问题导致的?
重现链接
https://stackblitz.com/edit/vitejs-vite-kzfulb?file=src%2Fgloballayout.js
重现步骤
操作:
1.设置自定义布局,循环将节点的style.fill设置为red
2.配置节点点击回调,设置点击后将节点激活为click状态,这个应该是默认的
现象:
自定义布局结束后,未看到style改变,但是点击节点激活为click之后可以看到颜色更新,推测应该是layout布局结束后只refresh了x y属性,其他属性需要下次时才能refresh
预期行为
自定义布局内改变节点的style后,布局结束后直接更新节点,而不是需要点击一下
平台
屏幕截图或视频(可选)
无
补充说明(可选)
无
The text was updated successfully, but these errors were encountered: