I’m trying to make a badge that is a circle until the text gets long enough to make it stretch horizontally which then the sides are half circles. I’m trying to use RoundedRectangle where the radius is half of the height but it doesn’t work. I also tried making the radius the same as the height but still doesn’t work. Should this be possible using RoundedRectangle, and if so, what am I missing? I increased the numbers to show what’s happening.
Here is the link label template:
make('Panel', 'Auto', {
segmentIndex: 0,
segmentOffset: new go.Point(45, 0)
},
new go.Binding('visible', 'labelVisible'),
make('Shape', 'RoundedRectangle', {
parameter1: 25,
minSize: new go.Size(50, 50),
strokeWidth: 0,
fill: '#f00'
}),
make('TextBlock', {
textAlign: 'center',
font: me.baseLinkFont,
stroke: '#fff',
text: '100'
})
)