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

‘arrowheadMovable’配置不起作用 #4517

Closed
fu827707013 opened this issue Dec 2, 2024 · 1 comment
Closed

‘arrowheadMovable’配置不起作用 #4517

fu827707013 opened this issue Dec 2, 2024 · 1 comment

Comments

@fu827707013
Copy link

Describe the bug

https://x6.antv.antgroup.com/examples/showcase/practices/#flowchart
‘arrowheadMovable’配置不起作用

  interacting:{
    magnetConnectable:true,
    arrowheadMovable:true,
    vertexMovable:true,
    vertexAddable:true,
    vertexDeletable:true,
    edgeMovable:true,
  },

1733113292554

Your Example Website or App

Steps to Reproduce the Bug or Issue

interacting配置不生效

Expected behavior

能正常拖动箭头到另一个连接桩

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Microsoft Edge
  • Version: 131.0.2903.70 (正式版本) (64 位)
  • x6.antv 2X

Additional context

No response

@fu827707013
Copy link
Author

解决了,
https://x6.antv.antgroup.com/examples/showcase/practices/#flowchart,这里说明不够详细,之说了设置 arrowheadMovable:true,可以移动,
https://x6.antv.antgroup.com/api/registry/edge-tool#source-arrowhead-%E5%92%8C-target-arrowhead,这里才有详细 说明
graph.on('edge:mouseenter', ({ cell }) => {
cell.addTools([
{ name: 'vertices' },
{
name: 'segments',
args: {
attrs: {
fill: '#444',
},
},
},,
{
name: 'source-arrowhead',
args: {
attrs: {
fill: 'red',
},
},
},,
{
name: 'target-arrowhead',
args: {
attrs: {
fill: 'red',
},
},
},
])
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant