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

@@ -15,6 +15,14 @@ function EdgeModel()
EdgeModel.prototype.defaultCruved = 0.1;
EdgeModel.prototype.copyFrom = function(other)
{
this.width = other.width;
this.type = other.type;
this.curvedValue = other.curvedValue;
this.default = other.default;
}
EdgeModel.prototype.SaveToXML = function ()
{
return "model_width=\"" + this.width + "\" " +
@@ -150,3 +158,19 @@ EdgeModel.prototype.ChangeCurvedValue = function (delta)
this.default = false;
}
EdgeModel.prototype.SetCurvedValue = function (value)
{
if (this.type == EdgeModels.line)
{
this.type = EdgeModels.cruvled;
this.curvedValue = 0.0;
}
this.curvedValue = value;
if (Math.abs(this.curvedValue) <= 0.01)
this.type = EdgeModels.line;
this.default = false;
}