Node border is not comming from all four sides

I have to add a border around the component. For that I am using “strokeWidth” o property. But the borders are only coming at left and top side.

See the image below
Screenshot from 2022-09-23 16-27-37

Code

I am not getting the mistake I am doing. Please help

The normal way to add a border around an element is to use an Auto Panel. GoJS Panels -- Northwoods Software

In this case, the reason only the top and left are showing up is because the Rectangle Shape is larger than its containing Panel.