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:
@@ -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('');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user