Skip to content

Commit

Permalink
FLow icons in flow diagrams
Browse files Browse the repository at this point in the history
#CTCTOWALTZ-2618
finos#6350
  • Loading branch information
jessica-woodland-scott-db committed Dec 16, 2022
1 parent 96e7ad8 commit 587e870
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,17 +389,19 @@ function drawLabels(section, items = [], scale, anchor = "start", tweakers) {
.attr("transform", `translate(0,0)`)
.style("fill", d => d.deprecated ? amberHex : "inherit");

newLabels
.append("path")
.classed("wsat-icon", true)
.attr("d", d => tweakers.pfIcon(d).svgIcon)
.attr("stroke", d => tweakers.pfIcon(d).color)
.attr("transform", `translate(0,${iconAdjustment})`)
.attr("fill", "none");
if (tweakers.pfIcon) {
newLabels
.append("path")
.classed("wsat-icon", true)
.attr("d", d => tweakers.pfIcon(d).svgIcon)
.attr("stroke", d => tweakers.pfIcon(d).color)
.attr("transform", `translate(0, ${iconAdjustment})`)
.attr("fill", "none");
}

newLabels
.append("text")
.classed("wsat-cuIcon",true)
.classed("wsat-cuIcon", true)
.attr("dx", cuIconAdjustment)
.attr("font-family", "FontAwesome");

Expand All @@ -423,9 +425,7 @@ function drawLabels(section, items = [], scale, anchor = "start", tweakers) {
.append("path")
.attr("d", d => tweakers.pfIcon(d).svgIcon)
.attr("stroke", d => tweakers.pfIcon(d).color)
// .attr("stroke-width", 0.1)
.attr("fill", "none");
// .text((d) => tweakers.pfIcon(d).code || "");
}

if(tweakers.cuIcon) {
Expand Down

0 comments on commit 587e870

Please sign in to comment.