mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 02:04:13 +00:00
fix
This commit is contained in:
parent
77c1db0337
commit
0d07cac94e
@ -120,6 +120,7 @@ export default class ListGraph {
|
||||
if (event.target === this) {
|
||||
d3.select("#trace-action-box").style("display", "none");
|
||||
t.selectedNode && t.selectedNode.classed("highlighted", false);
|
||||
t.clearParentHighlight();
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -406,14 +407,17 @@ export default class ListGraph {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
clearParentHighlight() {
|
||||
return this.root.descendants().map((node: { id: number }) => {
|
||||
d3.select(`#list-node-${node.id}`).classed("highlightedParent", false);
|
||||
return node;
|
||||
});
|
||||
}
|
||||
highlightParents(span: Recordable) {
|
||||
if (!span) {
|
||||
return;
|
||||
}
|
||||
const nodes = this.root.descendants().map((node: { id: number }) => {
|
||||
d3.select(`#list-node-${node.id}`).classed("highlightedParent", false);
|
||||
return node;
|
||||
});
|
||||
const nodes = this.clearParentHighlight();
|
||||
const parentSpan = nodes.find(
|
||||
(node: Recordable) =>
|
||||
span.spanId === node.data.spanId &&
|
||||
|
@ -144,6 +144,7 @@ export default class TraceMap {
|
||||
if (event.target === this) {
|
||||
d3.select("#trace-action-box").style("display", "none");
|
||||
t.selectedNode && t.selectedNode.classed("highlighted", false);
|
||||
t.clearParentHighlight();
|
||||
}
|
||||
});
|
||||
|
||||
@ -404,14 +405,17 @@ export default class TraceMap {
|
||||
that.update(d);
|
||||
}
|
||||
}
|
||||
clearParentHighlight() {
|
||||
return this.root.descendants().map((node: { id: number }) => {
|
||||
d3.select(`#trace-node-${node.id}`).classed("highlightedParent", false);
|
||||
return node;
|
||||
});
|
||||
}
|
||||
highlightParents(span: Recordable) {
|
||||
if (!span) {
|
||||
return;
|
||||
}
|
||||
const nodes = this.root.descendants().map((node: { id: number }) => {
|
||||
d3.select(`#trace-node-${node.id}`).classed("highlightedParent", false);
|
||||
return node;
|
||||
});
|
||||
const nodes = this.clearParentHighlight();
|
||||
const parentSpan = nodes.find(
|
||||
(node: Recordable) =>
|
||||
span.spanId === node.data.spanId &&
|
||||
|
Loading…
Reference in New Issue
Block a user