mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-03 14:26:26 +00:00
Change modern graph style
This commit is contained in:
@@ -54,3 +54,8 @@ BaseEdge.prototype.GetPixelLength = function ()
|
||||
return Point.distance(this.vertex1.position, this.vertex2.position);
|
||||
}
|
||||
}
|
||||
|
||||
BaseEdge.prototype.GetWeight = function ()
|
||||
{
|
||||
return this.useWeight ? this.weight : 1;
|
||||
}
|
||||
Reference in New Issue
Block a user