changing default shapes to be all lines, and fixing text centering bug

This commit is contained in:
Pablo Luna
2011-04-15 16:18:59 +01:00
parent 0f496bb4b3
commit d97121ce87
8 changed files with 39 additions and 58 deletions

View File

@@ -22,7 +22,7 @@ mindplot.util.Shape =
{
core.assert(sourcePoint, "Source can not be null");
core.assert(targetPoint, "Target can not be null");
return (targetPoint.x - sourcePoint.x) > 0;
return sourcePoint.x < targetPoint.x;
},
workoutDistance: function(sourceNode, targetNode)
{