mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 22:45:24 +00:00
update links
This commit is contained in:
parent
b693348172
commit
9d1ef93bd1
@ -27,6 +27,9 @@ export const linkElement = (graph: any) => {
|
|||||||
[d.target.x, d.target.y - 5],
|
[d.target.x, d.target.y - 5],
|
||||||
0.5
|
0.5
|
||||||
);
|
);
|
||||||
|
if (d.lowerArc) {
|
||||||
|
controlPos[1] = -controlPos[1];
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
"M" +
|
"M" +
|
||||||
d.source.x +
|
d.source.x +
|
||||||
@ -57,6 +60,9 @@ export const anchorElement = (graph: any, funcs: any, tip: any) => {
|
|||||||
[d.target.x, d.target.y - 5],
|
[d.target.x, d.target.y - 5],
|
||||||
0.5
|
0.5
|
||||||
);
|
);
|
||||||
|
if (d.lowerArc) {
|
||||||
|
controlPos[1] = -controlPos[1];
|
||||||
|
}
|
||||||
const p = quadraticBezier(
|
const p = quadraticBezier(
|
||||||
0.5,
|
0.5,
|
||||||
{ x: d.source.x, y: d.source.y - 5 },
|
{ x: d.source.x, y: d.source.y - 5 },
|
||||||
|
@ -297,15 +297,11 @@ function drawTopology(nodeArr: any[]) {
|
|||||||
// line element
|
// line element
|
||||||
const obj = {} as any;
|
const obj = {} as any;
|
||||||
const calls = networkProfilingStore.calls.reduce((prev: any[], next: any) => {
|
const calls = networkProfilingStore.calls.reduce((prev: any[], next: any) => {
|
||||||
if (
|
if (obj[next.targetId + next.sourceId]) {
|
||||||
!(
|
next.lowerArc = true;
|
||||||
obj[next.sourceId + next.targetId] && obj[next.targetId + next.sourceId]
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
obj[next.sourceId + next.targetId] = true;
|
|
||||||
obj[next.targetId + next.sourceId] = true;
|
|
||||||
prev.push(next);
|
|
||||||
}
|
}
|
||||||
|
obj[next.sourceId + next.targetId] = true;
|
||||||
|
prev.push(next);
|
||||||
return prev;
|
return prev;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user