antvis/G6

combo 收起状态节点 edge 宽度展示问题 #4776

MusicTen posted onGitHub

Describe the bug

combo 收起状态下,两个combo间的edge连线宽度展示过粗。

Your Example Website or App

https://g6.antv.antgroup.com/zh/examples/interaction/combo/#rect

Steps to Reproduce the Bug or Issue

// 调整 edges 连线宽度 edges: [ { source: 'node1', target: 'node2',size: 2 }, { source: 'node1', target: 'node3', size: 10 }, { source: 'combo1', target: 'node3', size: 8 }, ],

Expected behavior

收起 combo1,combo1 与 combo3 的连线展示过粗。

Screenshots or Videos

image

Platform

  • OS: [macOS]
  • Browser: [Chrome]
  • Version: [115.0.5790.114]

Additional context

No response


Set the edge style lineWidth to 1:

defaultEdge: {
    style: {
      lineWidth: 1,
    }
},
posted by bsansone over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests