mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Added multi select using ctrl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user