antvis/G6

activate-relations line active的样式问题 #4149

theDoinb posted onGitHub

问题描述

我需要读取后台的颜色生成线的颜色,所以在 data 每条 line 数据下配置了:

style: {
   stroke: item.color
},

但是 active 状态下,线的颜色没有继承 data 里的颜色,是一个默认的浅蓝色 我该如何配置 active 状态下,保持一样的样式结果呢?

重现链接

https://g6.antv.antgroup.com/manual/middle/states/state

重现步骤

style: {
   stroke: item.color
},

预期行为

active 状态下,保持一样的样式

平台

  • 操作系统: Windows
  • 网页浏览器: Google Chrome
  • G6 版本: 4.7.16

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded

Pull requests