API Reference
Command
Get-ImageTopologyDiagnostics
Analyzes prepared ChartForgeX topology geometry and routing.
Remarks
Returns machine-readable node bounds, named port positions, edge routes, fallback reasons, overlap scores, and collisions.
Examples
Inspect the layout of a service diagram
PS>
$chart = New-ImageTopology -TopologyDefinition {
New-ImageTopologyNode -Id api -Label API -Kind Service
New-ImageTopologyNode -Id db -Label Database -Kind Database
New-ImageTopologyEdge -SourceNodeId api -TargetNodeId db -Kind Dependency
} -Layout Layered -FilePath service-map.svg -PassThru
$chart | Get-ImageTopologyDiagnostics -LayoutPreset Balanced
Exports a service diagram and returns its node and edge layout diagnostics.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-ImageTopologyDiagnostics [-LayoutPreset <Automatic|Dense|Compact|Balanced|Presentation>] -Topology <TopologyChart> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- LayoutPreset TopologyLayoutPreset
- Reusable topology spacing and presentation profile.
- Possible values:
Automatic,Dense,Compact,Balanced,Presentation - Topology TopologyChart
- Topology chart to analyze.
Outputs
ChartForgeX.Topology.TopologyLayoutDiagnosticReport