Eliav2 / react-xarrows

Draw arrows (or lines) between components in React!
https://codesandbox.io/embed/github/Eliav2/react-xarrows/tree/master/examples?fontsize=14&hidenavigation=1&theme=dark
MIT License
584 stars 75 forks source link

unable to connect shapes #130

Open Chiranjeevi9 opened 2 years ago

Chiranjeevi9 commented 2 years ago

Hi @Eliav2
I have two shapes and with Ids and I want to draw an arrow between two shapes when i sue the library I am unable to connect Two shapes. sample code function ToolBox() { const Nodes=[ { id:"START", x:window.innerWidth/2, y:window.innerHeight/5 }, { id:"END", x:window.innerWidth/2, y:window.innerHeight/2}, { id:"Rect", x:15,y:120 }, ] const Connectors={ id:1, source:"START", target:"END" } return (

)  

} export default ToolBox;