Physics based placement for the diagram