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

@@ -17,6 +17,17 @@ function BaseVertex(x, y, vertexEnumType)
BaseVertex.prototype.position = new Point(0, 0);
BaseVertex.prototype.copyFrom = function (other)
{
this.position = new Point(other.position.x, other.position.y);
this.id = other.id;
this.mainText = other.mainText;
this.upText = other.upText;
this.vertexEnumType = other.vertexEnumType;
this.model = new VertexModel();
this.hasUndefinedPosition = other.hasUndefinedPosition;
}
BaseVertex.prototype.SaveToXML = function ()
{
return "<node " +
@@ -48,7 +59,8 @@ BaseVertex.prototype.LoadFromXML = function (xml)
BaseVertex.prototype.SetId = function (id)
{
this.id = id;
this.mainText = this.vertexEnumType.GetVertexText(id);
if (this.vertexEnumType != null)
this.mainText = this.vertexEnumType.GetVertexText(id);
}
BaseVertex.prototype.diameterFactor = function ()