Distribute Nodes Example?

Is there an example where I can create an even vertical or horizontal distribution of nodes regardless of the heights/widths of the nodes? In other words, the space between nodes is to be made equal for the selection set.

My intent is to create a tool for the user to do a distribution of nodes.

Thanks!

The DrawCommandHandler extension has such a command, alignRow.
Drawing Commands
DrawCommandHandler | GoJS API

You can see the implementation at https://gojs.net/latest/extensions/DrawCommandHandler.js