antvis/G6


The issue has been closed
Graph.updateNodeData modifying fill is invalid #6496
ping40 posted onGitHub
Describe the bug / 问题描述
构建图的时候,如果指定了fill的值,则导致 updateNodeData fill的时候无效。
Graph({
container: 'container',
autoFit: 'view',
data: treeToGraphData(data),
behaviors: ['drag-canvas', 'zoom-canvas', 'drag-element'],
node: {
style: {
labelText: (d) => d.id,
//fill: '#909399', --》 这一行
labelBackground: true,
},
animation: {
enter: false,
},
},
Reproduction link / 重现链接
https://stackblitz.com/edit/p5kmma?file=index.js
Steps to Reproduce the Bug or Issue / 重现步骤
打开或者 屏蔽 第16行,然后鼠标移动到节点上看fill的变化。
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows, Others / 其他
Browser / 浏览器
Chrome, Firefox
Additional context / 补充说明
No response