I am trying to create diagrams.net (formerly known as draw.io) shapes that are 5- or 6-ominoes (shapes made of 5 or 6 adjacent square blocks). I would like each of the constituent squares to be 40x40 (one big grid square or 16 little grid-squares). I created two such shapes using <path>. The first shape, a pentomino, is a Greek (4-way symmetrical) cross:
<shape h="120" w="120" aspect="fixed" strokewidth="inherit"><connections></connections><background><path><move x="40" y="0" /><line x="80" y="0" /><line x="80" y="40" /><line x="120" y="40" /><line x="120" y="80" /><line x="80" y="80" /><line x="80" y="120" /><line x="40" y="120" /><line x="40" y="80" /><line x="0" y="80" /><line x="0" y="40" /><line x="40" y="40" /><line x="40" y="0" /></path></background><foreground><fillstroke /><stroke /></foreground></shape>As expected, the size of the resulting shape is 120x120.
I did not get the expected behavior for this hexonimo:
<shape h="120" w="160" aspect="fixed" strokewidth="inherit"><connections></connections><background><path><move x="80" y="0" /><line x="120" y="0" /><line x="120" y="80" /><line x="160" y="80" /><line x="160" y="120" /><line x="0" y="120" /><line x="0" y="80" /><line x="80" y="80" /><line x="80" y="0" /></path></background><foreground><fillstroke /><stroke /></foreground></shape>Despite specifying a width of 160 and x values from 0 to 160, it is no wider than than the pentomino. I expected it to be 4/3 as wide. I also expected it to be the same height (instead of shorter) and for its area to be 6/5 the pentomino.
Here is a picture of the two shapes:
See source file.
I would like to know what I need to do differently to make the second shape the expected size.
