mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
update line
This commit is contained in:
parent
2994c21c21
commit
34762c9eb0
@ -30,7 +30,10 @@ export const linkElement = (graph: any) => {
|
|||||||
0.5
|
0.5
|
||||||
);
|
);
|
||||||
if (d.lowerArc) {
|
if (d.lowerArc) {
|
||||||
controlPos[1] = -controlPos[1] - 10;
|
controlPos[1] =
|
||||||
|
Math.abs(controlPos[1]) < 50
|
||||||
|
? -controlPos[1] + 90
|
||||||
|
: controlPos[1] - 10;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
"M" +
|
"M" +
|
||||||
@ -141,7 +144,8 @@ function getMidpoint(d: Call) {
|
|||||||
0.5
|
0.5
|
||||||
);
|
);
|
||||||
if (d.lowerArc) {
|
if (d.lowerArc) {
|
||||||
controlPos[1] = -controlPos[1];
|
controlPos[1] =
|
||||||
|
Math.abs(controlPos[1]) < 50 ? -controlPos[1] + 100 : controlPos[1] - 10;
|
||||||
}
|
}
|
||||||
const p = quadraticBezier(
|
const p = quadraticBezier(
|
||||||
0.5,
|
0.5,
|
||||||
|
Loading…
Reference in New Issue
Block a user