Stephanevg / PSClassUtils

A set of utilities to work with Powershell Classes
http://powershelldistrict.com/how-to-generate-a-uml-diagram-using-powershell/
93 stars 23 forks source link

splines='ortho' points row edges to center of row instead of on the side #66

Open Stephanevg opened 5 years ago

Stephanevg commented 5 years ago

splines='ortho' allows to specifiy that the edges have a straight line style, instead of a curved one:

in https://github.com/Stephanevg/PSClassUtils/blob/Feature_Composition/PSClassUtils/Functions/Private/Out-CUPSGraph.ps1

when setting:

$Graph = Graph -ScriptBlock {

(No attributes are added) we have the correct result (but with 'curved' lines)

image

$Graph = Graph -Attributes @{splines='ortho'} -ScriptBlock {

Attributes @{splines='ortho'} is added

Generates the following graph:

image

The issue, is that without splines=ortho the graph looks really messy when there are a lot of edges involved.