G2 icon indicating copy to clipboard operation
G2 copied to clipboard

fix: sankey mark state not work

Open wisonic-s opened this issue 6 months ago • 4 comments

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

桑基图的 elementHighlight 没有效果,原因是 sankey mark 的代码里面没有将 state 配置同步设置到子 mark 里面,本次改动将 state 配置拆分重组后分别设置到 link 和 node 的 mark 配置中,可以分开配置也可以统一配置。

wisonic-s avatar May 22 '25 09:05 wisonic-s

整体看上去没有啥问题 👍 不过可以增加一下文档说明 API 的具体用法。

OK,我加一下 demo

wisonic-s avatar May 23 '25 06:05 wisonic-s

整体看上去没有啥问题 👍 不过可以增加一下文档说明 API 的具体用法。

增加了 桑基图 state 的 demo

wisonic-s avatar May 26 '25 06:05 wisonic-s

辛苦更新下截图~可能因为 https://github.com/antvis/G2/pull/6889 ,线上CI环境有变化,截图和本地跑的不太一样~ image

interstellarmt avatar May 26 '25 12:05 interstellarmt

@interstellarmt 但是之前那个 pr 好像不会报错~ 合并到最新的代码,我跑一下看看~

hustcc avatar May 26 '25 13:05 hustcc

我来合并后跑一下截图吧~

interstellarmt avatar Jun 27 '25 03:06 interstellarmt