antvis/G6

使用dagre布局,当节点的宽度不同时,不能正确居中 #3559

brinkr posted onGitHub

问题描述

image 如图所示,中间的"+"节点因为宽度和其他节点不一样,其实是左对齐的,怎样设置成居中,和“开始”“结束”两个节点同一个中轴线?

重现链接

重现步骤

如图

预期行为

如图所示

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

image

补充说明(可选)

No response


Fund this Issue

$0.00
Funded

Pull requests