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. https://gojs.net/latest/intro/templateMaps.html

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”). https://gojs.net/latest/intro/dataBinding.html#BindingToSharedModelDataSource