scale: 3,即可设置箭头放大倍数
myDiagram.linkTemplate =
// $(go.Link, go.Link.Orthogonal, {
// corner: 5,
// selectable: false
// },
// $(go.Shape, {
// strokeWidth: 3,
// stroke: "#59D1E6"
// })); // dark gray, rounded corner links
$(go.Link, {
toShortLength: 3,
relinkableFrom: true,
relinkableTo: true
}, // allow the user to relink existing links
$(go.Shape, {
strokeWidth: 6, //节点连线宽度
stroke: "#57CFE3" //节点连线颜色
},
new go.Binding("stroke", "color")),
$(go.Shape, {
toArrow: "Standard", //箭头
scale: 3, //箭头放大倍数
fill: "#57CFE3", //箭头填充色
stroke: null
},
new go.Binding("fill", "color")), { // this tooltip Adornment is shared by all links
toolTip: $("ToolTip",
$(go.TextBlock, {
margin: 4
}, // the tooltip shows the result of calling linkInfo(data)
new go.Binding("text", "", linkInfo))
)
}
);