I'm trying to figure out how to retain the aspect ratio of image elements that are resized.
In principle it seems like this can be handled by setting the SVG image element's preserveAspectRatio property to "xMidYMid meet" or the like.
I cant figure how to apply this property in the template (which would be the ideal place to apply it).
I've tried manually applying the property after the itemboundschange but this doesnt seem to work until the diagram is reinitialized after a page refresh.
Any suggestions?