Skip to content

Commit

Permalink
Added Graphviz library files to local module folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed Jan 25, 2024
1 parent 2a4d573 commit 7602063
Show file tree
Hide file tree
Showing 106 changed files with 291 additions and 10 deletions.
Binary file added Graphviz/bin/Pathplan.exp
Binary file not shown.
Binary file added Graphviz/bin/Pathplan.lib
Binary file not shown.
Binary file added Graphviz/bin/acyclic.exe
Binary file not shown.
Binary file added Graphviz/bin/ast.lib
Binary file not shown.
Binary file added Graphviz/bin/ast.pdb
Binary file not shown.
Binary file added Graphviz/bin/bcomps.exe
Binary file not shown.
Binary file added Graphviz/bin/ccomps.exe
Binary file not shown.
Binary file added Graphviz/bin/cdt.exp
Binary file not shown.
Binary file added Graphviz/bin/cdt.lib
Binary file not shown.
Binary file added Graphviz/bin/cgraph.exp
Binary file not shown.
Binary file added Graphviz/bin/cgraph.lib
Binary file not shown.
Binary file added Graphviz/bin/circo.exe
Binary file not shown.
Binary file added Graphviz/bin/circogen.lib
Binary file not shown.
Binary file added Graphviz/bin/circogen.pdb
Binary file not shown.
280 changes: 280 additions & 0 deletions Graphviz/bin/config6
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
# This file was generated by "dot -c" at time of install.

# You may temporarily disable a plugin by removing or commenting out
# a line in this file, or you can modify its "quality" value to affect
# default plugin selection.

# Manual edits to this file **will be lost** on upgrade.

gvplugin_core.dll core {
device {
dot:dot 1
gv:dot 1
canon:dot 1
plain:dot 1
plain-ext:dot 1
xdot:xdot 1
xdot1.2:xdot 1
xdot1.4:xdot 1
}
device {
fig:fig 1
}
device {
ismap:map 1
cmap:map 1
imap:map 1
cmapx:map 1
imap_np:map 1
cmapx_np:map 1
}
device {
mp:mp -1
}
device {
ps:ps 1
ps2:ps 1
eps:ps 1
}
device {
svg:svg 1
svgz:svg 1
}
device {
json:json 1
json0:json 1
dot_json:json 1
xdot_json:json 1
}
device {
tk:tk 1
}
device {
pic:pic -1
}
device {
pov:pov 1
}
render {
dot 1
xdot 1
}
render {
fig 1
}
render {
map 1
}
render {
mp -1
}
render {
ps 1
}
render {
svg 1
}
render {
json 1
json0 1
dot_json 1
xdot_json 1
}
render {
tk 1
}
render {
pic -1
}
render {
pov 1
}
loadimage {
png:svg 1
gif:svg 1
jpeg:svg 1
jpe:svg 1
jpg:svg 1
png:fig 1
gif:fig 1
jpeg:fig 1
jpe:fig 1
jpg:fig 1
png:vrml 1
gif:vrml 1
jpeg:vrml 1
jpe:vrml 1
jpg:vrml 1
eps:ps 1
ps:ps 1
(lib):ps 1
png:map 1
gif:map 1
jpeg:map 1
jpe:map 1
jpg:map 1
ps:map 1
eps:map 1
svg:map 1
png:dot 1
gif:dot 1
jpeg:dot 1
jpe:dot 1
jpg:dot 1
ps:dot 1
eps:dot 1
svg:dot 1
png:xdot 1
gif:xdot 1
jpeg:xdot 1
jpe:xdot 1
jpg:xdot 1
ps:xdot 1
eps:xdot 1
svg:xdot 1
svg:svg 1
gif:tk 1
}
}
gvplugin_dot_layout.dll dot_layout {
layout {
dot 0
}
}
gvplugin_gd.dll gd {
render {
gd 1
}
render {
vrml 1
}
textlayout {
textlayout 2
}
loadimage {
gd:gd 1
gd2:gd 1
gif:gd 1
jpeg:gd 1
jpe:gd 1
jpg:gd 1
png:gd 1
gd:ps 1
#FAILS gd:lasi 1
gd2:ps 1
#FAILS gd2:lasi 1
gif:ps 1
#FAILS gif:lasi 1
jpeg:ps 1
jpg:ps 1
jpe:ps 1
#FAILS jpeg:lasi 1
#FAILS jpg:lasi 1
#FAILS jpe:lasi 1
png:ps 1
#FAILS png:lasi 1
gd:cairo 1
gd2:cairo 1
gif:cairo 1
jpeg:cairo 1
jpg:cairo 1
jpe:cairo 1
png:cairo -1
}
device {
gif:cairo 10
wbmp:cairo 5
jpe:cairo 5
jpeg:cairo 5
jpg:cairo 5
png:cairo 5
gd:cairo 5
gd2:cairo 5
}
device {
gif:gd 1
wbmp:gd 1
jpe:gd 1
jpeg:gd 1
jpg:gd 1
png:gd 1
gd:gd 1
gd2:gd 1
}
device {
vrml:vrml 1
}
}
gvplugin_gdiplus.dll gdiplus {
render {
gdiplus 1
}
textlayout {
textlayout 8
}
loadimage {
bmp:gdiplus 8
gif:gdiplus 8
jpe:gdiplus 8
jpeg:gdiplus 8
jpg:gdiplus 8
png:gdiplus 8
}
device {
metafile:gdiplus 8
bmp:gdiplus 8
emf:gdiplus 8
emfplus:gdiplus 8
gif:gdiplus 8
jpe:gdiplus 8
jpeg:gdiplus 8
jpg:gdiplus 8
png:gdiplus 8
tif:gdiplus 8
tiff:gdiplus 8
}
device {
bmp:cairo 8
gif:cairo 8
jpe:cairo 8
jpeg:cairo 8
jpg:cairo 8
png:cairo 8
tif:cairo 8
tiff:cairo 8
}
}
gvplugin_neato_layout.dll neato_layout {
layout {
neato 0
fdp 0
sfdp 0
twopi 0
circo 0
patchwork 0
osage 0
nop 0
nop1 0
nop2 0
}
}
gvplugin_pango.dll cairo {
render {
cairo 10
}
textlayout {
textlayout 10
}
loadimage {
png:cairo 1
#FAILS png:lasi 2
png:ps 2
}
device {
png:cairo 10
ps:cairo -10
eps:cairo -10
pdf:cairo 10
svg:cairo -10
}
}
Binary file added Graphviz/bin/diffimg.exe
Binary file not shown.
Binary file added Graphviz/bin/dijkstra.exe
Binary file not shown.
Binary file added Graphviz/bin/dot.exe
Binary file not shown.
Binary file added Graphviz/bin/dotgen.lib
Binary file not shown.
Binary file added Graphviz/bin/dotgen.pdb
Binary file not shown.
Binary file added Graphviz/bin/edgepaint.exe
Binary file not shown.
Binary file added Graphviz/bin/edgepaintlib.lib
Binary file not shown.
Binary file added Graphviz/bin/edgepaintlib.pdb
Binary file not shown.
Binary file added Graphviz/bin/expr.lib
Binary file not shown.
Binary file added Graphviz/bin/expr.pdb
Binary file not shown.
Binary file added Graphviz/bin/fdp.exe
Binary file not shown.
Binary file added Graphviz/bin/fdpgen.lib
Binary file not shown.
Binary file added Graphviz/bin/fdpgen.pdb
Binary file not shown.
Binary file added Graphviz/bin/gc.exe
Binary file not shown.
Binary file added Graphviz/bin/glcomp.lib
Binary file not shown.
Binary file added Graphviz/bin/glcomp.pdb
Binary file not shown.
Binary file added Graphviz/bin/gml2gv.exe
Binary file not shown.
Binary file added Graphviz/bin/graphml2gv.exe
Binary file not shown.
Binary file added Graphviz/bin/gv2gml.exe
Binary file not shown.
Binary file added Graphviz/bin/gvc.exp
Binary file not shown.
Binary file added Graphviz/bin/gvc.lib
Binary file not shown.
Binary file added Graphviz/bin/gvcolor.exe
Binary file not shown.
Binary file added Graphviz/bin/gvgen.exe
Binary file not shown.
Binary file added Graphviz/bin/gvmap.exe
Binary file not shown.
Binary file added Graphviz/bin/gvortho.lib
Binary file not shown.
Binary file added Graphviz/bin/gvortho.pdb
Binary file not shown.
Binary file added Graphviz/bin/gvpack.exe
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_core.exp
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_core.lib
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_dot_layout.exp
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_dot_layout.lib
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_gd.exp
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_gd.lib
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_gdiplus.exp
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_gdiplus.lib
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_neato_layout.exp
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_neato_layout.lib
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_pango.exp
Binary file not shown.
Binary file added Graphviz/bin/gvplugin_pango.lib
Binary file not shown.
Binary file added Graphviz/bin/gvpr.exe
Binary file not shown.
Binary file added Graphviz/bin/gvprlib.exp
Binary file not shown.
Binary file added Graphviz/bin/gvprlib.lib
Binary file not shown.
Binary file added Graphviz/bin/gxl2gv.exe
Binary file not shown.
Binary file added Graphviz/bin/ingraphs.lib
Binary file not shown.
Binary file added Graphviz/bin/ingraphs.pdb
Binary file not shown.
Binary file added Graphviz/bin/lab_gamut.exp
Binary file not shown.
Binary file added Graphviz/bin/lab_gamut.lib
Binary file not shown.
Binary file added Graphviz/bin/mingle.exe
Binary file not shown.
Binary file added Graphviz/bin/minglelib.lib
Binary file not shown.
Binary file added Graphviz/bin/minglelib.pdb
Binary file not shown.
Binary file added Graphviz/bin/mm2gv.exe
Binary file not shown.
Binary file added Graphviz/bin/neato.exe
Binary file not shown.
Binary file added Graphviz/bin/neatogen.lib
Binary file not shown.
Binary file added Graphviz/bin/neatogen.pdb
Binary file not shown.
Binary file added Graphviz/bin/nop.exe
Binary file not shown.
Binary file added Graphviz/bin/osage.exe
Binary file not shown.
Binary file added Graphviz/bin/osage.lib
Binary file not shown.
Binary file added Graphviz/bin/osage.pdb
Binary file not shown.
Binary file added Graphviz/bin/patchwork.exe
Binary file not shown.
Binary file added Graphviz/bin/patchwork.lib
Binary file not shown.
Binary file added Graphviz/bin/patchwork.pdb
Binary file not shown.
Binary file added Graphviz/bin/prune.exe
Binary file not shown.
Binary file added Graphviz/bin/rbtree.lib
Binary file not shown.
Binary file added Graphviz/bin/rbtree.pdb
Binary file not shown.
Binary file added Graphviz/bin/sccmap.exe
Binary file not shown.
Binary file added Graphviz/bin/sfdp.exe
Binary file not shown.
Binary file added Graphviz/bin/sfdp.lib
Binary file not shown.
Binary file added Graphviz/bin/sfdp.pdb
Binary file not shown.
Binary file added Graphviz/bin/sfio.lib
Binary file not shown.
Binary file added Graphviz/bin/sfio.pdb
Binary file not shown.
Binary file added Graphviz/bin/smyrna.exe
Binary file not shown.
Binary file added Graphviz/bin/smyrna.exp
Binary file not shown.
Binary file added Graphviz/bin/smyrna.lib
Binary file not shown.
Binary file added Graphviz/bin/sparse.lib
Binary file not shown.
Binary file added Graphviz/bin/sparse.pdb
Binary file not shown.
Binary file added Graphviz/bin/topfish.lib
Binary file not shown.
Binary file added Graphviz/bin/topfish.pdb
Binary file not shown.
Binary file added Graphviz/bin/tred.exe
Binary file not shown.
Binary file added Graphviz/bin/twopi.exe
Binary file not shown.
Binary file added Graphviz/bin/twopigen.lib
Binary file not shown.
Binary file added Graphviz/bin/twopigen.pdb
Binary file not shown.
Binary file added Graphviz/bin/unflatten.exe
Binary file not shown.
Binary file added Graphviz/bin/vmalloc.lib
Binary file not shown.
Binary file added Graphviz/bin/vmalloc.pdb
Binary file not shown.
Binary file added Graphviz/bin/vpsc.lib
Binary file not shown.
Binary file added Graphviz/bin/vpsc.pdb
Binary file not shown.
Binary file added Graphviz/bin/xdot.exp
Binary file not shown.
Binary file added Graphviz/bin/xdot.lib
Binary file not shown.
12 changes: 6 additions & 6 deletions Src/Private/Out-VbrDiagram.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ function Out-VbrDiagram {
Try {
if ($OutputFormat -ne "base64") {
if($OutputFormat -ne "svg") {
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($FileName)" -OutputFormat $OutputFormat
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($FileName)" -OutputFormat $OutputFormat -GraphVizPath $GraphvizPath
Write-ColorOutput -Color green "Diagram '$FileName' has been saved to '$OutputFolderPath'."
} else {
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($FileName)" -OutputFormat $OutputFormat
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($FileName)" -OutputFormat $OutputFormat -GraphVizPath $GraphvizPath
#Fix icon path issue with svg output
$images = Select-String -Path $($Document.fullname) -Pattern '<image xlink:href=".*png".*>' -AllMatches
foreach($match in $images) {
Expand All @@ -51,7 +51,7 @@ function Out-VbrDiagram {

}
} else {
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($FileName)" -OutputFormat 'png'
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($FileName)" -OutputFormat 'png' -GraphVizPath $GraphvizPath
if ($Document) {
# Code used to allow rotating image!
if ($Rotate) {
Expand Down Expand Up @@ -89,10 +89,10 @@ function Out-VbrDiagram {
Try {
if ($OutputFormat -ne "base64") {
if($OutputFormat -ne "svg") {
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($File)" -OutputFormat $OutputFormat
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($File)" -OutputFormat $OutputFormat -GraphVizPath $GraphvizPath
Write-ColorOutput -Color green "Diagram '$File' has been saved to '$OutputFolderPath'."
} else {
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($File)" -OutputFormat $OutputFormat
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($File)" -OutputFormat $OutputFormat -GraphVizPath $GraphvizPath
$images = Select-String -Path $($Document.fullname) -Pattern '<image xlink:href=".*png".*>' -AllMatches
foreach($match in $images) {
$matchFound = $match -Match '"(.*png)"'
Expand All @@ -110,7 +110,7 @@ function Out-VbrDiagram {
}
}
} else {
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($File)" -OutputFormat 'png'
$Document = Export-PSGraph -Source $Graph -DestinationPath "$($OutputFolderPath)$($File)" -OutputFormat 'png' -GraphVizPath $GraphvizPath
if ($Document) {
$Base64 = [convert]::ToBase64String((get-content $Document -encoding byte))
if ($Base64) {
Expand Down
1 change: 1 addition & 0 deletions Src/Public/New-VeeamDiagram.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ function New-VeeamDiagram {

$RootPath = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
$IconPath = Join-Path $RootPath 'icons'
$GraphvizPath = Join-Path $RootPath 'Graphviz\bin\dot.exe'
$Dir = switch ($Direction) {
'top-to-bottom' {'TB'}
'left-to-right' {'LR'}
Expand Down
8 changes: 4 additions & 4 deletions Veeam.Diagrammer.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Veeam.Diagrammer.psm1'

# Version number of this module.
ModuleVersion = '0.5.7'
ModuleVersion = '0.5.8'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -72,13 +72,13 @@ RequiredModules = @(@{ModuleName = 'PSGraph'; ModuleVersion = '2.1.38.27'; })
FunctionsToExport = 'New-VeeamDiagram'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = '*'
# CmdletsToExport = '*'

# Variables to export from this module
VariablesToExport = '*'
# VariablesToExport = '*'

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = '*'
# AliasesToExport = '*'

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down

0 comments on commit 7602063

Please sign in to comment.