From ce6da7834958fdbcefd23de026a88e116989c52f Mon Sep 17 00:00:00 2001 From: "shiwu.wyy" Date: Tue, 8 Oct 2019 15:48:49 +0800 Subject: [PATCH] fix: case-simplify edge stroke problem --- demos/case-simplify.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/case-simplify.html b/demos/case-simplify.html index 4039a43523..787bec2950 100644 --- a/demos/case-simplify.html +++ b/demos/case-simplify.html @@ -227,7 +227,7 @@ }); } else if (ge.get('targetNode').get('visible') && targetModel.cluster !== model.cluster) { let c1 = beginColor, c2 = endColor; - if (sourceModel.x < model.x) { + if (sourceModel.x > model.x) { c1 = endColor; c2 = beginColor; } @@ -319,7 +319,7 @@ }); } else if (targetModel.cluster === model.cluster && sourceModel.cluster !== model.cluster) { let c1 = beginColor, c2 = endColor; - if (sourceModel.x < center.x) { + if (sourceModel.x > center.x) { c1 = endColor; c2 = beginColor; }