Improved load GraphML graphs.

This commit is contained in:
Unick Soft
2020-03-02 21:05:17 +02:00
parent fa79baf2ea
commit fe4f14970b
4 changed files with 50 additions and 10 deletions

View File

@@ -851,7 +851,6 @@ Application.prototype.Test = function ()
}
Application.prototype.SetAdjacencyMatrixSmart = function (matrix, separator)
{
if (separator === undefined)
@@ -1002,6 +1001,10 @@ Application.prototype.LoadGraphFromString = function (str)
this.LoadUserSettings(userSettings["data"]);
this.SetDefaultTransformations();
this.graph = graph;
if (this.graph.isNeedReposition())
{
this.graph.VertexesReposition(new Point(this.GetRealWidth(), this.GetRealHeight()), this.graph.vertices);
}
this.AutoAdjustViewport();
this.updateMessage();
this.redrawGraph();