Skip to content

Commit

Permalink
remove (unused) dotted vaccine line from DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Aug 4, 2018
1 parent 1dd60fd commit b9a8d5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
6 changes: 0 additions & 6 deletions src/components/tree/phyloTree/change.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ const svgSetters = {
".vaccineCross": {
d: (d) => d.vaccineCross
},
".vaccineDottedLine": {
d: (d) => d.vaccineLine
},
".conf": {
d: (d) => d.confLine
}
Expand All @@ -53,9 +50,6 @@ const svgSetters = {
"stroke": (d) => d.tipStroke,
"visibility": (d) => d["visibility"]
},
".vaccineDottedLine": {
opacity: (d) => d.that.distance === "num_date" ? 1 : 0
},
".conf": {
"stroke": (d) => d.branchStroke,
"stroke-width": calcConfidenceWidth
Expand Down
1 change: 0 additions & 1 deletion src/components/tree/phyloTree/layouts.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ export const mapToScreen = function mapToScreen() {
const xTipCross = this.xScale(d.xCross); /* x position of the center of the cross */
const yTipCross = this.yScale(d.yCross); /* x position of the center of the cross */
d.vaccineCross = ` M ${xTipCross-n},${yTipCross-n} L ${xTipCross+n},${yTipCross+n} M ${xTipCross-n},${yTipCross+n} L ${xTipCross+n},${yTipCross-n}`;
d.vaccineLine = ` M ${d.xTip},${d.yTip} L ${xTipCross},${yTipCross}`;
});
}

Expand Down
13 changes: 0 additions & 13 deletions src/components/tree/phyloTree/renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,6 @@ export const drawVaccines = function drawVaccines() {
.on("mouseover", this.callbacks.onTipHover)
.on("mouseout", this.callbacks.onTipLeave)
.on("click", this.callbacks.onTipClick);

this.groups.vaccines
.selectAll('.vaccineDottedLine')
.data(this.vaccines)
.enter()
.append("path")
.attr("class", "vaccineDottedLine")
.attr("d", (d) => d.vaccineLine)
.style("stroke-dasharray", "5, 5")
.style("stroke", "black")
.style("stroke-width", this.params.branchStrokeWidth)
.style("fill", "none")
.style("pointer-events", "none");
};


Expand Down

0 comments on commit b9a8d5a

Please sign in to comment.