mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-04 16:45:22 +00:00
fix
This commit is contained in:
parent
ccdcdea296
commit
82fc788d8c
@ -212,8 +212,9 @@ export default class TraceMap {
|
|||||||
.attr("r", 2)
|
.attr("r", 2)
|
||||||
.attr("stroke", (d: Recordable) => this.sequentialScale(this.list.indexOf(d.data.serviceCode)))
|
.attr("stroke", (d: Recordable) => this.sequentialScale(this.list.indexOf(d.data.serviceCode)))
|
||||||
.attr("stroke-width", 2.5)
|
.attr("stroke-width", 2.5)
|
||||||
.attr("fill", (d: Recordable) => this.sequentialScale(this.list.indexOf(d.data.serviceCode)));
|
.attr("fill", (d: Recordable) =>
|
||||||
|
d.data.children.length ? this.sequentialScale(this.list.indexOf(d.data.serviceCode)) : "#fff",
|
||||||
|
);
|
||||||
nodeEnter
|
nodeEnter
|
||||||
.append("text")
|
.append("text")
|
||||||
.attr("class", "trace-node-text")
|
.attr("class", "trace-node-text")
|
||||||
@ -325,6 +326,18 @@ export default class TraceMap {
|
|||||||
d3.select(`#trace-node-${node.id}`).classed("highlightedParent", false);
|
d3.select(`#trace-node-${node.id}`).classed("highlightedParent", false);
|
||||||
return node;
|
return node;
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
.on("dblclick", function (event: MouseEvent, d: Recordable) {
|
||||||
|
event.stopPropagation();
|
||||||
|
t.tip.hide(d, this);
|
||||||
|
if (d.data.children.length === 0) return;
|
||||||
|
click(d);
|
||||||
|
})
|
||||||
|
.on("contextmenu", function (event: MouseEvent, d: Recordable) {
|
||||||
|
event.stopPropagation();
|
||||||
|
t.tip.hide(d, this);
|
||||||
|
if (d.data.children.length === 0) return;
|
||||||
|
click(d);
|
||||||
});
|
});
|
||||||
const nodeExit = node
|
const nodeExit = node
|
||||||
.exit()
|
.exit()
|
||||||
|
Loading…
Reference in New Issue
Block a user