G6 icon indicating copy to clipboard operation
G6 copied to clipboard

polyline 连接线不正确的问题

Open ProsperLee opened this issue 3 weeks ago • 1 comments

Describe the bug / 问题描述

image

polyline 连接线不正确的问题

【期望连接形式】

image

Reproduction link / 重现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

node: {
  style: {
      size: [240, isDetail ? (550 - 100) : 150],
      type: 'tree-node',
      component: (data: never) => <TreeNode data={data} theme={theme} isDetail={isDetail} openCV={openCV}/>,
      port: true,
      ports: [{placement: 'top'}, {placement: 'bottom'}],
  },
},
edge: {
    type: 'polyline',
    style: {
        stroke: theme === 'dark' ? '#595959' : '#D9D9D9',
        lineWidth: 1,
        router: true,
        routerPadding: 0,
    }
},

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

ProsperLee avatar Jun 28 '24 06:06 ProsperLee