I’m trying to create a link shape with the following template :
diagram.linkTemplate = $(go.Link, go.Link.Bezier,
{
},
$(go.Shape,
{
stroke: "black",
},
new go.Binding("pathPattern", "pp", function(val) {
return $(go.Shape,
{
geomtryString : val,
stroke: "red",
fill: "transparent",
strokeWidth: 10
}
)}
)
)
);
var linkDataArray = [
{ from: "1", to: "2", "pp":"M0 3 L4 0 2 6 6 3" }];
But it draws a simple line .
I tried to follow the example, but didnt help.
What is wrong with the template ?
Please advise
Tany