Can we change image src while change of Orientation

Hi I have different Node templates, out of which one node template has image,
Now when i change diagrams orientation from angle 0 to 90 or visa-versa, need to toggle img src is there any method for the same…?

If there are a lot of differences between the nodes that you want to show depending on the direction, use two different node templates. GoJS Template Maps -- Northwoods Software

If there are no structural differences between the nodes based on layout direction but just a few property changes (such as the Picture.source), then use a Binding.ofModel binding and set a property on on the Model.modelData object (such as “angle”). GoJS Data Binding -- Northwoods Software