1

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

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/

4

1 回答 1

1

切换 的值link.curviness

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

请参阅API 中的 Link.curvines

于 2014-07-29T14:36:50.120 回答