@hazem.mbarek wrote:
Hello!
I am trying to make a link between two nodes that follow a bezier shape. The link has two control points so i don't want to use a simple bezier link. The documentation describes here http://gojs.net/latest/intro/geometry.html how to create a Cubic Bezier Curves. My bezier curve is described in the property "geometryString" but i can figure out how to make it work. My code looks something like :
linkTemplate =
$(go.Link,
$(go.Shape, new go.Binding("geometryString", "geometryString"), new go.Binding("stroke", "strokeLink")),
$(go.Shape, { toArrow: "Standard" }, new go.Binding("fill", "fillArrow"), new go.Binding("stroke", "strokeArrow"))
);
My link model is a list. Here what looks like one of the element :
"{
"key": "1",
"from": "Reponse&Loop",
"to": "Reponse&Done",
"text": "Done",
"geometryString": "F M599,175 C683,214 711,-11 806,58z",
"__gohashid": 1188
}".
I also noticed that we can use routing property but it doesn't seem to be a "cubic Bézier curve" property.
Posts: 4
Participants: 2