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 4f84b6b commit 96e7ad8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions waltz-ng/client/flow-diagram/components/diagram-svelte/Flow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import {determineStylingBasedUponLifecycle} from "./flow-diagram-utils";
import {selectedFlow, selectedNode} from "./diagram-model-store";
import {toGraphId} from "../../flow-diagram-utils";
import {getSymbol} from "../../../common/svg-icon";
const dispatch = createEventDispatcher();
Expand All @@ -18,11 +19,13 @@
function determineIcon(count) {
if (count === 0) {
return "\uf29c"; // question
return getSymbol("questionCircle"); // question
} else if (count === 1) {
return "\uf016"; // one
return getSymbol("page"); // one
} else if (count === 2) {
return getSymbol("pages"); // two
} else {
return "\uf0c5"; // many
return getSymbol("folder"); // many
}
}
Expand Down Expand Up @@ -124,14 +127,10 @@
fill="#fff"
stroke-dasharray={flowStyling.dashArray}>
</circle>
<text style="font-size: 14px;"
font-family="FontAwesome"
text-anchor="middle"
dx="0"
dy="4.5"
fill={flowStyling.color}>
{icon}
</text>
<path d={icon}
fill="none"
stroke={flowStyling.color}>
</path>
</g>
</g>

Expand Down

0 comments on commit 96e7ad8

Please sign in to comment.