I have a little alignment issue with geometryStretch when set to the “uniform” value. With some size (little height or width), the shape alignment is not correct. An example below :
Geometries naturally align to the top left corner of their containing area. This is something we’re considering adding a property for, but we can’t make any promises. For now, you can wrap the Shape in a Viewbox panel like so:
...
$(go.Panel, "Viewbox",
{
desiredSize: new go.Size(20, 20),
margin: new go.Margin(5, 5)
},
$(go.Shape,
{
strokeWidth: 0,
fill: '#009ABD'
},
new go.Binding("geometryString", "icon")
)
)
...
Ok ! I check your workaround. Thanks !