We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import { Graph } from '@antv/x6' const graph = new Graph({ container: document.getElementById('container'), grid: true, connecting: { anchor: 'nodeCenter', connectionPoint: 'anchor', }, //连线都在节点中心点 }) const source = graph.addNode({ x: 120, y: 40, width: 100, height: 40, zIndex:10, attrs: { body: { fill: '#f5f5f5', stroke: '#d9d9d9', }, }, }) const target = graph.addNode({ x: 400, y: 260, width: 100, height: 40, zIndex:10, attrs: { body: { fill: '#f5f5f5', stroke: '#d9d9d9', }, }, }) graph.addEdge({ source, target, zIndex:9, connector: { name: 'smooth' }, attrs: { line: { stroke: '#722ed1', }, }, tools: { name: 'vertices', args: { snapRadius: 2, attrs: { fill: '#444', r: 5, // 顶点的半径,控制大小 }, }, } })
上述为复现代码,当connecting: { anchor: 'nodeCenter', connectionPoint: 'anchor', }, 属性连线都在节点中心点时,只要加入tools: { name: 'vertices', args: { snapRadius: 2, attrs: { fill: '#444', r: 5, // 顶点的半径,控制大小 }, }, }属性,不管边的zIndex设置为多少,鼠标移上节点,都能点击到边
'#444',
无
1、创建两个节点 2、用边连接两个节点,并设置节点zIndex>边的zIndex 3、鼠标移上节点
当connecting: { anchor: 'nodeCenter', connectionPoint: 'anchor', }, 属性连线都在节点中心点时,只要加入tools: { name: 'vertices', args: { snapRadius: 2, attrs: { fill: '#444', r: 5, // 顶点的半径,控制大小 }, }, }属性,不管边的zIndex设置为多少,鼠标移上节点,都能点击到边,正常期望结果应该为节点zIndex比边大的情况下,鼠标移上节点不应该能点击到边
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
上述为复现代码,当connecting: {
anchor: 'nodeCenter',
connectionPoint: 'anchor',
}, 属性连线都在节点中心点时,只要加入tools: {
name: 'vertices',
args: {
snapRadius: 2,
attrs: {
fill:
'#444',
r: 5, // 顶点的半径,控制大小
},
},
}属性,不管边的zIndex设置为多少,鼠标移上节点,都能点击到边
Your Example Website or App
无
Steps to Reproduce the Bug or Issue
1、创建两个节点
2、用边连接两个节点,并设置节点zIndex>边的zIndex
3、鼠标移上节点
Expected behavior
当connecting: {
anchor: 'nodeCenter',
connectionPoint: 'anchor',
}, 属性连线都在节点中心点时,只要加入tools: {
name: 'vertices',
args: {
snapRadius: 2,
attrs: {
fill: '#444',
r: 5, // 顶点的半径,控制大小
},
},
}属性,不管边的zIndex设置为多少,鼠标移上节点,都能点击到边,正常期望结果应该为节点zIndex比边大的情况下,鼠标移上节点不应该能点击到边
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: