fixing connection lines and rollbacking unnecesary changes

This commit is contained in:
Pablo Luna
2010-12-31 15:11:32 -03:00
parent 85804b74a4
commit fa58c683c0
5 changed files with 70 additions and 117 deletions

View File

@@ -29,29 +29,9 @@ mindplot.CentralTopic = function(model)
objects.extend(mindplot.CentralTopic, mindplot.Topic);
mindplot.CentralTopic.prototype.workoutIncomingConnectionPoint = function(sourcePosition, onBoundingBox)
mindplot.CentralTopic.prototype.workoutIncomingConnectionPoint = function(sourcePosition)
{
if(!core.Utils.isDefined(onBoundingBox)){
onBoundingBox=false;
}
var pos = this.getPosition();
var size = this.getSize();
var isAtRight = mindplot.util.Shape.isAtRight(sourcePosition, pos);
var result = null;
if(onBoundingBox){
result = new core.Point();
if(isAtRight){
console.log("incomming at right");
result.x = pos.x - (size.width/2)-20;
result.y = pos.y;
} else {
result.x = pos.x;
result.y = pos.y;
}
}else{
result = pos;
}
return result;
return this.getPosition();
};
mindplot.CentralTopic.prototype.getTopicType = function()