gpt4 book ai didi

javascript - gojs:如何增加链接或链接标签之间的距离?

转载 作者:行者123 更新时间:2023-11-28 01:09:17 29 4
gpt4 key购买 nike

如何增加链接之间的距离(双链接)?

myDiagram.linkTemplate=
$(go.Link, // the whole link panel
$(go.Shape, // the link shape
{ isPanelMain: true,
stroke: "black" }),
$(go.Shape, // the arrowhead
{ toArrow: "standard",
stroke: null }),
$(go.Panel, "Auto",
$(go.Shape, // the link shape
{ fill: radgrad, stroke: null }),
$(go.TextBlock, // the label
{ textAlign: "center",
font: "10pt helvetica, arial, sans-serif",
stroke: "#919191",
margin: 4 },
new go.Binding("text", "text"))
)
);

http://jsfiddle.net/66ENu/

最佳答案

切换link.curviness的值:

myDiagram.linkTemplate=
$(go.Link, // the whole link panel
{ curviness: 20 },
// ... rest of link template

参见Link.curviness in the API

关于javascript - gojs:如何增加链接或链接标签之间的距离?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24676887/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com