Unable to resize the shape

You need to declare which figures should be filled. Normally one can just prefix "F1 " to the string. Or more generally, call Geometry | GoJS API.

https://gojs.net/latest/intro/geometry.html#ConvertingPathStrings