Added multi select using ctrl

This commit is contained in:
Unick Soft
2020-05-05 20:23:55 +02:00
parent 42c592fe2f
commit 6e17b9719c
12 changed files with 254 additions and 21 deletions

View File

@@ -27,6 +27,24 @@ function BaseEdge(vertex1, vertex2, isDirect, weight, upText)
this.SetWeight(weight);
}
BaseEdge.prototype.copyFrom = function(other)
{
this.vertex1 = other.vertex1;
this.vertex2 = other.vertex2;
this.arrayStyleStart = other.arrayStyleStart;
this.arrayStyleFinish = other.arrayStyleFinish;
this.isDirect = other.isDirect;
this.weight = other.weight;
this.text = other.text;
this.useWeight = other.useWeight;
this.id = other.id;
this.model = new EdgeModel();
this.model.copyFrom(other.model);
this.upText = other.upText;
}
BaseEdge.prototype.SaveToXML = function ()
{
return "<edge " +