Midhun
April 27, 2022, 2:44pm
1
Guys,
I was exploring gojs different shapes and was using Rounded Rectange with some text in it.
$(
go.Panel,
'Auto',
{ margin: new go.Margin(40, 10, 2, -150), width: 155, height: 20 },
$(go.Shape, 'RoundedRectangle', { fill: '#BAE6FF' }),
$(go.TextBlock, 'Top-level assembly', { stroke: '#00539A', width: 120 }),
),
so right now things are working fine, but i dont want rectange with black border. Can you help me to resolve this, that is reactangle with no border , or border with its color used to fill
Secondly, can we increase the border-radius to some more pixel value , it seems like less rounded in corner
jhardy
April 27, 2022, 2:52pm
2
Sure, you can set the Shape.strokeWidth to 0.
$(go.Shape, 'RoundedRectangle', { fill: '#BAE6FF', strokeWidth: 0 })
Midhun
April 27, 2022, 2:55pm
3
@jhardy also can we increase the border radius to some more pixel of Rounded Rectangle ?
jhardy
April 27, 2022, 3:00pm
4
Yes, you can adjust the Shape.parameter1 value. For RoundedRectangles, the default is 5.
$(go.Shape, 'RoundedRectangle', { fill: '#BAE6FF', strokeWidth: 0, parameter1: 10 })
Midhun
April 27, 2022, 3:03pm
5
@jhardy somehow parameter1 is not taking value, its not getting more curve inspite of giving prameter1 :(
jhardy
April 27, 2022, 3:18pm
6
Can you show me the code for your Shape ?
Midhun
April 27, 2022, 4:15pm
7
Thanks @jhardy it seems working now