fix trace graph

This commit is contained in:
Qiuxia Fan 2022-07-27 10:51:31 +08:00
parent 7712603706
commit f7e31055a6
2 changed files with 4 additions and 4 deletions

View File

@ -46,8 +46,8 @@ export default class ListGraph {
.select(this.el) .select(this.el)
.append("svg") .append("svg")
.attr("class", "trace-list-dowanload") .attr("class", "trace-list-dowanload")
.attr("width", this.width) .attr("width", this.width > 0 ? this.width : 10)
.attr("height", this.height) .attr("height", this.height > 0 ? this.height : 10)
.attr("transform", `translate(-5, 0)`); .attr("transform", `translate(-5, 0)`);
this.tip = (d3tip as any)() this.tip = (d3tip as any)()
.attr("class", "d3-tip") .attr("class", "d3-tip")

View File

@ -57,8 +57,8 @@ export default class TraceMap {
.select(this.el) .select(this.el)
.append("svg") .append("svg")
.attr("class", "d3-trace-tree") .attr("class", "d3-trace-tree")
.attr("width", this.width) .attr("width", this.width > 0 ? this.width : 10)
.attr("height", this.height); .attr("height", this.height > 0 ? this.height : 10);
this.tip = (d3tip as any)() this.tip = (d3tip as any)()
.attr("class", "d3-tip") .attr("class", "d3-tip")
.offset([-8, 0]) .offset([-8, 0])