Hi there,
I am trying to have an option to make the backround link of the pathparttern transparent in the form of a checkbox or a true/false dropdown in the inspector. but fail to set the property. please help.
var genericLinkTemplate =
$(go.Link, // slightly curved, by default
{
corner: 10,
fromSpot: go.Spot.AllSides, routing: go.Link.Orthogonal, curve: go.Link.JumpOver, toSpot: go.Spot.AllSides, resegmentable: true,
reshapable: true, relinkableFrom: true, relinkableTo: true, toEndSegmentLength: 20,
}, // users can reshape the link route
$(go.Shape, // the link’s path shape
new go.Binding(“stroke”, “bgTransparent”, function (f) { return (f === “true”) ? “stroke” : “transparent” }).makeTwoWay(),
));
//inspector
var inspector = new Inspector(‘myInspectorDiv’, myDiagram,
{
properties: {
“bgTransparent”: {
defaultValue: “false”,
show: Inspector.showIfLink, type: ‘select’,
choices: [“true”, “false”]
},
}
});