mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 12:49:04 +08:00
fix: case-simplify edge stroke problem
This commit is contained in:
parent
e61213e2ad
commit
ce6da78349
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user