antvis/G6

请问 description 支持动态显示吗 #4276

bbaduser posted onGitHub

问题描述

请问在使用 graph.node(nodeFn) 配置 > 数据中动态配置 > 实例化图时全局配置这三种方式中,是否支持读取node中的数据动态显示,顺便想请问全局配置这种方式中是否能够拿到node节点?

重现链接

https://antv-g6.gitee.io/zh/docs/manual/middle/elements/nodes/built-in/modelRect#%E6%8F%8F%E8%BF%B0%E6%96%87%E6%9C%AC%E9%85%8D%E7%BD%AE--descriptioncfg

预期行为

直接通过node节点进行配置,如下图所示的layoutcfg那样 <img width="582" alt="image" src="https://user-images.githubusercontent.com/120174736/218410913-5b8ececa-d038-4b34-9a5a-e37b8d0972e8.png">


G6 5.0 中可通过 graph.getNodeData 获取全部节点数据

posted by Aarebecca 11 months ago

Fund this Issue

$0.00
Funded

Pull requests