Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

Any idea why link labels are not oriented right along the link?

$
0
0

@catface wrote:

problem is this:
https://www.screencast.com/t/fjjpaaG0su

for some reason it seems that labels are attached to one segment... but rotate to match another segment... :S

any ideas?

this is how the label is defined:
$GO(go.TextBlock, 'outcome', // the label
{
name: 'LABELTHING',
textAlign: 'center', alignment: go.Spot.Center, alignmentFocus: go.Spot.BottomCenter,
stroke: '#242424',
segmentFraction: 0.5,
segmentOrientation: go.Link.OrientUpright
}, ...debugShapeBindings(), // just something about opacity... or an empty array
new go.Binding('text', 'label'),
new go.Binding('visible', 'showLabel'),
new go.Binding('font', 'defaultLinkFont', v => (v || 'bold 13px sans-serif')).ofModel(),
new go.Binding('stroke', 'defaultLinkTextColor', v => (v || 'black')).ofModel()
),

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles