diff --git a/.vscode/launch.json b/.vscode/launch.json index 4c752e5..343f0b2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,12 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name": "PowerShell: Module Interactive Session", + "type": "PowerShell", + "request": "launch", + "script": "Import-Module -Force /home/rebelinux/.local/share/powershell/Modules/AsBuiltReport.Diagram/AsBuiltReport.Diagram.psd1" + }, { "name": "PowerShell: Interactive Session", "type": "PowerShell", diff --git a/AsBuiltReport.Diagram/Src/Public/New-AbrDiagram.ps1 b/AsBuiltReport.Diagram/Src/Public/New-AbrDiagram.ps1 index 7a3985d..ae184a6 100644 --- a/AsBuiltReport.Diagram/Src/Public/New-AbrDiagram.ps1 +++ b/AsBuiltReport.Diagram/Src/Public/New-AbrDiagram.ps1 @@ -675,7 +675,8 @@ function New-AbrDiagram { foreach ($OutputFormat in $Format) { #Export the Diagram if ($Graph) { - Export-AbrDiagram -GraphObj ($Graph | Select-String -Pattern '"\w+"\s\[label="";style="invis";shape="point";]' -NotMatch) -ErrorDebug $EnableErrorDebug -Format $OutputFormat -Filename "$Filename.$OutputFormat" -OutputFolderPath $OutputFolderPath -WaterMarkText $WaterMarkText -WaterMarkColor $WaterMarkColor -IconPath $IconPath -WaterMarkFontOpacity $WaterMarkFontOpacity + $FilteredGraph = $Graph | Select-String -Pattern '(?s)"?\w+"?\s+\[\s*label="";\s*shape="point";\s*style="invis";\s*\]' -NotMatch + Export-AbrDiagram -GraphObj $FilteredGraph -ErrorDebug $EnableErrorDebug -Format $OutputFormat -Filename "$Filename.$OutputFormat" -OutputFolderPath $OutputFolderPath -WaterMarkText $WaterMarkText -WaterMarkColor $WaterMarkColor -IconPath $IconPath -WaterMarkFontOpacity $WaterMarkFontOpacity } else { Write-Verbose -Message 'No Graph object found. Disabling diagram section' } diff --git a/CHANGELOG.md b/CHANGELOG.md index 51de53c..34b0451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.9] - Unreleased +## [1.0.9] - 2026-07-27 ### :arrows_clockwise: Changed - Bump module version v1.0.9 - Update Graphviz binaries to v15.1.0 +### :wrench: Fixed + +- Fix for hidden nodes in the diagram output interfering with the layout of the graph, causing some nodes to be misplaced or not displayed correctly + ## [1.0.8] - 2026-06-16 ### :toolbox: Added