You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (
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;
The text was updated successfully, but these errors were encountered: