Add export graph to svg

This commit is contained in:
Oleg Sh committed 2022-07-02 13:42:20 +02:00
1 parent 9ea83bf875
commit 59b01bec36
20 files changed
+1348 -9

No files matched your search

+14
View File
@@ -39,6 +39,20 @@ function getImageFileName($graphName, $fromRoot=false)
return $dirName . "/$graphName.png";
}
function getSvgFileName($graphName, $fromRoot=false)
{
global $g_config;
$dirName = ($fromRoot ? "" : "../") . $g_config['graphSavePath'] . substr($graphName, 0, 2);
if(!file_exists($dirName))
{
mkdir($dirName, 0777, true);
}
return $dirName . "/$graphName.svg";
}
function saveGraphXML($graph, $name, $fromRoot = false)
{