mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-24 00:46:39 +00:00
Add select vertex for default handler
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user