@catface wrote:
hi,
please look at this video: http://www.screencast.com/t/iFuvWXE7oYD
we would like to have the link labels be on the first segment that can actually fit them... is that possible?
for some reason they appear to actually be perpendicular to links in some cases... my guess is that they are actually linked to a 0px segment there... :-Sthis is the relevant part of the link template:
map.add('', $GO(go.Link,
<go.Link>{
selectionAdorned: true,
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpOver,
corner: 20,
toEndSegmentLength: 25, fromEndSegmentLength: 25, toShortLength: 10
},
$GO(go.Shape, // the link path shape
{ isPanelMain: true, stroke: '#858585', strokeWidth: 2 }),
$GO(go.Shape, // the arrowhead
{ toArrow: 'standard', stroke: null, fill: '#858585', scale: 1.5 }),
$GO(go.TextBlock, 'outcome', // the label
{
textAlign: 'center', alignment: go.Spot.Center, alignmentFocus: go.Spot.BottomCenter,
font: 'bold 13px sans-serif',
stroke: '#242424',
segmentFraction: 0.5,
segmentOrientation: go.Link.OrientUpright
},
new go.Binding('text', 'label'),
new go.Binding('visible', 'showLabel')
)
));please let us know if that would be possible...
thanks,
cAndrei
decisions.com
Posts: 4
Participants: 2