Skip to content

Commit

Permalink
Fix tip fill bug. Closes #519
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Mar 2, 2018
1 parent cdb486d commit d3a0834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tree/phyloTree/renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const render = function render(svg, layout, distance, parameters, callbac
this.nodes.forEach((d, i) => {
d.branchStroke = branchStroke[i];
d.tipStroke = tipStroke[i];
d.tipFill = tipFill[i];
d.fill = tipFill[i];
d.visibility = visibility[i];
d["stroke-width"] = branchThickness[i];
d.r = tipRadii ? tipRadii[i] : this.params.tipRadius;
Expand Down Expand Up @@ -107,7 +107,7 @@ export const drawTips = function drawTips() {
.on("click", (d) => this.callbacks.onTipClick(d))
.style("pointer-events", "auto")
.style("visibility", (d) => d["visibility"])
.style("fill", (d) => d.tipFill || params.tipFill)
.style("fill", (d) => d.fill || params.tipFill)
.style("stroke", (d) => d.tipStroke || params.tipStroke)
.style("stroke-width", () => params.tipStrokeWidth) /* don't want branch thicknesses applied */
.style("cursor", "pointer");
Expand Down

0 comments on commit d3a0834

Please sign in to comment.