mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
remove mutual graph edge tooltip and tweak echarts config
This commit is contained in:
@@ -218,17 +218,6 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) {
|
|||||||
);
|
);
|
||||||
return `${name}\n${mutualLabel}`;
|
return `${name}\n${mutualLabel}`;
|
||||||
}
|
}
|
||||||
if (params.dataType === 'edge') {
|
|
||||||
const sourceLabel =
|
|
||||||
labelMap[params.data.source] || params.data.source;
|
|
||||||
const targetLabel =
|
|
||||||
labelMap[params.data.target] || params.data.target;
|
|
||||||
return t('view.charts.mutual_friend.tooltip.edge', {
|
|
||||||
source: sourceLabel,
|
|
||||||
target: targetLabel
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return '';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
@@ -249,14 +238,9 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) {
|
|||||||
symbol: 'circle',
|
symbol: 'circle',
|
||||||
emphasis: {
|
emphasis: {
|
||||||
focus: 'adjacency',
|
focus: 'adjacency',
|
||||||
scale: true,
|
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
borderWidth: 3,
|
borderWidth: 3,
|
||||||
opacity: 1
|
opacity: 1
|
||||||
},
|
|
||||||
lineStyle: {
|
|
||||||
width: 5,
|
|
||||||
opacity: 0.5
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
force: resolvedForce,
|
force: resolvedForce,
|
||||||
@@ -270,9 +254,6 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) {
|
|||||||
curveness: 0.18,
|
curveness: 0.18,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
opacity: 0.4
|
opacity: 0.4
|
||||||
},
|
|
||||||
labelLayout: {
|
|
||||||
hideOverlap: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user