chore:删除不必要的代码

This commit is contained in:
liyuanhu 2025-04-16 19:18:21 +08:00
parent 41dba8cb7c
commit 064973aaf0

View File

@ -808,75 +808,7 @@ export const WorldGeo = memo(
});
return true;
};
// 主线tip series
const getMianLineTipData = (series: echarts.SeriesOption[] = []) => {
series.push(
// 柱状体的主干
{
name: "solidTip",
type: "lines",
zlevel: 5,
effect: {
show: false,
symbolSize: 5, // 图标大小
},
lineStyle: {
width: 0, // 尾迹线条宽度
color: "#F0FFA2",
opacity: 1, // 尾迹线条透明度
curveness: 0, // 尾迹线条曲直度
},
label: {
show: true,
position: "end",
color: "#fff",
formatter: (parameters) => {
const isFr = parameters.value === "FR";
console.log(parameters, "parameters");
const name = isFr ? "权威节点团" : "待认证节点";
return `{left|}{gap2|}{name${
isFr ? "2" : "1"
}|${name}}{gap3|}{right|}`;
},
rich: {
gap1: {
height: 35,
width: 8,
},
gap2: {
height: 35,
width: 6,
},
name1: {
color: "#FF6B01",
align: "center",
lineHeight: 35,
fontSize: 18,
fontWeight: 600,
padding: [11, 16.52, 11, 16.52],
backgroundColor: "rgba(63, 6, 3, 0.5)",
},
name2: {
color: "#37FF00",
align: "center",
lineHeight: 35,
fontSize: 18,
fontWeight: 600,
padding: [11, 16.52, 11, 16.52],
backgroundColor: "rgba(4, 59, 27, 0.5)",
},
gap3: {
height: 35,
width: 8,
},
},
backgroundColor: "transparent",
},
silent: true,
data: mianLineData(mainToData),
}
);
};
// 创建A点和B点并添加飞线和标签
const createSpecialPoints = (series: echarts.SeriesOption[]) => {
// 定义点A和点B的坐标