mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-07 02:22:55 +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);
|
||||
d3.select("#action-box").style("display", "none");
|
||||
}
|
||||
if (!hasClass) {
|
||||
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`);
|
||||
if (hasClass) {
|
||||
t.selectedNode = null;
|
||||
return;
|
||||
}
|
||||
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);
|
||||
if (t.handleSelectSpan) {
|
||||
t.handleSelectSpan(d);
|
||||
|
Loading…
Reference in New Issue
Block a user