fix: case-simplify edge stroke problem

This commit is contained in:
shiwu.wyy 2019-10-08 15:48:49 +08:00
parent e61213e2ad
commit ce6da78349

View File

@ -227,7 +227,7 @@
}); });
} else if (ge.get('targetNode').get('visible') && targetModel.cluster !== model.cluster) { } else if (ge.get('targetNode').get('visible') && targetModel.cluster !== model.cluster) {
let c1 = beginColor, c2 = endColor; let c1 = beginColor, c2 = endColor;
if (sourceModel.x < model.x) { if (sourceModel.x > model.x) {
c1 = endColor; c1 = endColor;
c2 = beginColor; c2 = beginColor;
} }
@ -319,7 +319,7 @@
}); });
} else if (targetModel.cluster === model.cluster && sourceModel.cluster !== model.cluster) { } else if (targetModel.cluster === model.cluster && sourceModel.cluster !== model.cluster) {
let c1 = beginColor, c2 = endColor; let c1 = beginColor, c2 = endColor;
if (sourceModel.x < center.x) { if (sourceModel.x > center.x) {
c1 = endColor; c1 = endColor;
c2 = beginColor; c2 = beginColor;
} }