Making relationship arrows a solid line

This commit is contained in:
Pablo Luna
2011-01-23 19:54:40 -03:00
parent 2b81b71cb4
commit cfe833f947
8 changed files with 96 additions and 23 deletions

View File

@@ -90,10 +90,10 @@ mindplot.ControlPoint.prototype._mouseMove = function(event, point) {
var topic = null;
if(point==0){
var cords = core.Utils.calculateRelationShipPointCoordinates(this._line.getSourceTopic(),pos);
this._line.getLine().setFrom(cords.x, cords.y);
this._line.setFrom(cords.x, cords.y);
}else{
var cords = core.Utils.calculateRelationShipPointCoordinates(this._line.getTargetTopic(),pos);
this._line.getLine().setTo(cords.x, cords.y);
this._line.setTo(cords.x, cords.y);
}
this._controls[point].x=(pos.x - cords.x);
this._controls[point].y=(pos.y - cords.y);