antvis/G6

polyline 连接线不正确的问题 #5952

ProsperLee posted onGitHub

Describe the bug / 问题描述

image

polyline 连接线不正确的问题

【期望连接形式】

image

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


麻烦提供一个复现链接

posted by Aarebecca 10 months ago

Fund this Issue

$0.00
Funded

Pull requests