This commit is contained in:
Fine 2022-08-25 11:45:43 +08:00
parent 8d74554639
commit 668e1a4d19

View File

@ -104,16 +104,10 @@ export const anchorElement = (graph: any, funcs: any, tip: any) => {
}) })
.attr("xlink:href", (d: Call) => { .attr("xlink:href", (d: Call) => {
const types = [...d.sourceComponents, ...d.targetComponents]; const types = [...d.sourceComponents, ...d.targetComponents];
if (types.includes("tcp")) { if (types.includes("tcp") || types.includes("http")) {
return icons.HTTPDARK; return icons.HTTPDARK;
} }
if (types.includes("https")) { if (types.includes("https") || types.includes("tls")) {
return icons.HTTPS;
}
if (types.includes("http")) {
return icons.HTTPDARK;
}
if (types.includes("tls")) {
return icons.HTTPS; return icons.HTTPS;
} }
}); });