I want to create a rounded rectangle node like this -
However, the following code leaves a little space as the vertical panel is not filling the inside of the node:
const nodeTemplate = $(
go.Node,
'Auto',
{
width: 200,
height: 200,
},
$(go.Shape,
'RoundedRectangle',
{
fill: '#f7f6f0',
strokeWidth: 3,
},
new go.Binding('stroke', 'borderColor')
),
$(go.Panel,
'Auto',
{
stretch: go.GraphObject.Fill,
height: 30,
alignment: go.Spot.Top
},
$(go.Shape,
'RoundedRectangle',
{
fill: '#f0a432',
strokeWidth: 0
}
)
)
);
I see a little gap as the shape is not filling the entire rect. Is there a way I can achieve this?
Thanks.