Removing some connecting lines

This is in preparation for properly aligning nodes and simplifying the
connecting lines to reduce the number of path elements required.
This commit is contained in:
Jeff Avallone
2014-12-10 17:13:23 -05:00
parent 6ab5b2993b
commit b13ee3add2
5 changed files with 5 additions and 30 deletions
+4 -4
View File
@@ -39,13 +39,13 @@ export default _.extend({}, Base, {
if (distance >= 15) {
pathStr = [
'M10,{box.cy}m0,{shift}q0,{curve} 10,{curve}h{box.x}',
'M{containerBox.width},{box.cy}m30,{shift}q0,{curve} -10,{curve}h-{box.x}'
'M10,{box.cy}m0,{shift}q0,{curve} 10,{curve}',
'M{containerBox.width},{box.cy}m30,{shift}q0,{curve} -10,{curve}'
].join('');
} else {
pathStr = [
'M0,{containerBox.cy}c10,0 10,{anchor.y} {anchor.x},{anchor.y}',
'M{containerBox.width},{containerBox.cy}m40,0c-10,0 -10,{anchor.y} -{anchor.x},{anchor.y}'
'M0,{containerBox.cy}c10,0 10,{anchor.y} 20,{anchor.y}',
'M{containerBox.width},{containerBox.cy}m40,0c-10,0 -10,{anchor.y} -20,{anchor.y}'
].join('');
}