__Custom edge that avoids crossing nodes__
npm install @vue-flow/pathfinding-edge__Custom edge that avoids crossing nodes__
``bashinstall
$ yarn add @vue-flow/pathfinding-edge
🎮 Quickstart
`vue
``js
// initial-elements.js
export default [
{
id: 'e12',
source: '1',
target: '2',
label: 'Smart Edge',
style: { stroke: 'red' },
// assign pathfinding edge type
type: 'pathfinding'
},
{
id: '1',
label: 'Node 1',
position: {
x: 430,
y: 0,
},
},
{
id: '2',
label: 'Node 2',
position: {
x: 230,
y: 90,
},
},
]
``