First of all, thanks for these prompt replies.
Despite the binding the size property is not there.
This is my nodeTemplate (just case in case I messed something here)
const rectangleNodeTemplate = $(
go.Node,
'Auto',
{
resizable: true,
resizeObjectName: 'Rectangle',
},
new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
$(
go.Shape,
'Rectangle',
{
fill: 'yellow',
stroke: 'black',
...commonRectangleShapeOptions,
},
new go.Binding('desiredSize', 'size', go.Size.parse).makeTwoWay(go.Size.stringify)
),
$(
go.TextBlock,
{ margin: 6, font: fonts.big, editable: true },
new go.Binding('text', 'text').makeTwoWay()
)
);
Also, once serialized and saved - next time when I reload the diagram into canvas. The resize adornment works weirdly instead of resizing the rectangle it resizes the node or something exterior to it.
It seems like I am missing something. Any pointers will be really appreciated.