mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-04 23:06:07 +00:00
Add export graph to svg
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user