antvis/G6

nodeSate, 如果在data中设置了node的keyShape 的style,graph.setItemState时,state状态样式无效 #5099

rudyzou posted onGitHub

Describe the bug

nodeSate, 如果在data中设置了node的keyShape 的style,graph.setItemState时,state状态样式无效

Your Example Website or App

官网demo

Steps to Reproduce the Bug or Issue

1.在初始化data中设置node的keyShape的style,如fill 2. 定义在nodeState中定义 node的keyShape的状态样式 3.在调用graph.setItemState()时,keyShape的样式无法变更为nodeState中定义的样式

Expected behavior

1.在初始化data中设置node的keyShape的style,如fill 2. 定义在nodeState中定义 node的keyShape的状态样式 3.在调用graph.setItemState()时,keyShape的样式可以变更为nodeState中定义的样式

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser:Chrome
  • Version: 5.0.0-beta.26

Additional context

No response


Hi @rudyzou, Please star this repo if you find it useful! Thanks :star:! 你好 @rudyzou。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

给个在线 demo 看看?

posted by Yanyan-Wang over 1 year ago

Hello @rudyzou. Please provide a online reproduction by forking codesandbox of @antv/g6 demo template Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @rudyzou, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 @antv/g6 demo 模板 3 天内未跟进此 issue 将会被自动关闭。

posted by github-actions[bot] over 1 year ago

由于该 issue 被标记为需要复现,却 15 天未收到回应。现关闭 issue,若有任何问题,可另开 issue 并提供复现。

Since the issue was labeled as "🤔 need reproduce" but no response was received for 15 days. Now close the issue. If you have any questions, feel free to create a new issue with reproduce.

posted by github-actions[bot] over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests