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

unable to connect shapes #130

Open
Chiranjeevi9 opened this issue Mar 20, 2022 · 0 comments
Open

unable to connect shapes #130

Chiranjeevi9 opened this issue Mar 20, 2022 · 0 comments

Comments

@Chiranjeevi9
Copy link

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 (





<EllipseOne id={Nodes[0].id } x={Nodes[0].x} y={Nodes[0].y}/>
<EllipseEnd id={Nodes[1].id } x={Nodes[1].x} y={Nodes[1].y} />

<Rectangle id={Nodes[2].id } x={Nodes[2].x} y={Nodes[2].y}/>







)
}
export default ToolBox;

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