mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-07 18:52:54 +00:00
refactor
This commit is contained in:
parent
60267cea84
commit
ee1f2f586f
@ -162,13 +162,15 @@ export default class ListGraph {
|
|||||||
t.selectedNode.classed("highlighted", false);
|
t.selectedNode.classed("highlighted", false);
|
||||||
d3.select("#action-box").style("display", "none");
|
d3.select("#action-box").style("display", "none");
|
||||||
}
|
}
|
||||||
if (!hasClass) {
|
if (hasClass) {
|
||||||
d3.select(this).classed("highlighted", true);
|
t.selectedNode = null;
|
||||||
d3.select("#action-box")
|
return;
|
||||||
.style("display", "block")
|
|
||||||
.style("left", `${event.pageX - 70}px`)
|
|
||||||
.style("top", `${event.pageY - 100}px`);
|
|
||||||
}
|
}
|
||||||
|
d3.select(this).classed("highlighted", true);
|
||||||
|
d3.select("#action-box")
|
||||||
|
.style("display", "block")
|
||||||
|
.style("left", `${event.pageX - 70}px`)
|
||||||
|
.style("top", `${event.pageY - 100}px`);
|
||||||
t.selectedNode = d3.select(this);
|
t.selectedNode = d3.select(this);
|
||||||
if (t.handleSelectSpan) {
|
if (t.handleSelectSpan) {
|
||||||
t.handleSelectSpan(d);
|
t.handleSelectSpan(d);
|
||||||
|
Loading…
Reference in New Issue
Block a user