Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jumpover 连接同一平行节点,效果不同 #3149

Closed
grace-yue opened this issue Jan 17, 2023 · 3 comments
Closed

jumpover 连接同一平行节点,效果不同 #3149

grace-yue opened this issue Jan 17, 2023 · 3 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@grace-yue
Copy link

问题描述

如截图所示,同一节点连向对齐的两个节点,但是连线交叉效果不同

重现链接

重现步骤

connector: {
name: 'jumpover',
args: {
type: 'arc'
}
}

预期行为

两者效果应该相同

平台

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

"@antv/x6": "^2.1.3",

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

我本地测试是好的,能否提供一个可以复现 demo。
image

@NewByVector NewByVector added the resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems label Feb 2, 2023
@18663872803
Copy link

18663872803 commented Aug 3, 2023

image
遇到类似的问题,经过同一路径节点,出现了跳线。demo代码如下:

` var r7 = r5.clone()
graph.addNode(r7)
r7.translate(0, 100)

var r8 = r7.clone()
graph.addNode(r8)
r8.translate(200, 80)

graph.addEdge({
  source: r7,
  target: r8,
  vertices: [{ x: 620, y: 325 }],
  router: { name: 'metro' },
  label: 'metro router',
})
graph.addEdge({
  source: r7,
  target: r8,
  vertices: [{ x: 140, y: 405 },{ x: 140, y: 450 },{ x: 440, y: 450 }],
  router: { name: 'normal' },
  connector: { name: 'jumpover' }
})
graph.addEdge({
  source: r7,
  target: r8,
  vertices: [{ x: 140, y: 405 },{ x: 140, y: 450 },{ x: 240, y: 450 },{ x: 240, y: 400 }],
  router: { name: 'normal' },
  connector: { name: 'jumpover' }
})
graph.addEdge({
  source: r7,
  target: r8,
  vertices: [{ x: 140, y: 405 },{ x: 140, y: 450 },{ x: 160, y: 450 },{ x: 160, y: 500 },{ x: 180, y: 500 },{ x: 180, y: 500 }],
  router: { name: 'normal' },
  connector: { name: 'jumpover' }
})`

其实我这边是想到一个转折处(类丁字路口)平滑的效果,不出现跳线
image

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 3, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

3 participants