Add select vertex for default handler

This commit is contained in:
Oleg Sh
2025-06-09 20:15:24 +02:00
parent 13f305dcb5
commit 54e58c8011
4 changed files with 177 additions and 148 deletions

View File

@@ -1094,6 +1094,12 @@ Application.prototype.LoadGraphFromString = function (str)
this.graph.VerticesReposition(new Point(this.GetRealWidth(), this.GetRealHeight()), this.graph.vertices);
}
this.AutoAdjustViewport();
if (this.handler != null)
{
this.handler.GraphWasUpdated();
this.handler.RestRedraw();
}
this.updateMessage();
this.redrawGraph();
}
@@ -1324,6 +1330,11 @@ Application.prototype.Undo = function()
if (userSettings.hasOwnProperty("data") && userSettings["data"].length > 0)
this.LoadUserSettings(userSettings["data"]);
if (this.handler != null)
{
this.handler.GraphWasUpdated();
this.handler.RestRedraw();
}
this.redrawGraph();
if (this.undoStack.IsUndoStackEmpty())