Allow overriding the default diagrams layout direction