LayeredDigraphLayout: align group of node

Hello, I’m using the go.LayeredDigraphLayout in my Angular app for the layout of my graph. I want to ask if there is any params to specify to the layout to align the group of node to the other direction.
This is what we have for the direction 90


And this is what we want

Same thing for the 270:

And what we want

Thank you for your help
My gojs version is 2.3.3

Try:

new go.LayeredDigraphLayout({
  direction: 90,
  layeringOption: go.LayeredDigraphLayering.LongestPathSource
})

Thank you, this is exactly what I was looking for. Have a nice day