Skip to content

Commit

Permalink
#85 underline selected label
Browse files Browse the repository at this point in the history
Signed-off-by: David Radley <david_radley@uk.ibm.com>
  • Loading branch information
davidradl committed Mar 16, 2021
1 parent 1b0f0b6 commit d0ef860
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Diagram(props) {
* We need a force-directed sim, which ideally should be created on load of the component.
* and only restarted when the data is updated. Unfortunately it cannot be made part of the
* Diagram's state, otherwise animation does not work. This is true whether one attempts to
* use useState or useRef. So, unfortunately, it seeems to be necessary to make it soft.
* use useState or useRef. So, unfortunately, it seems to be necessary to make it soft.
* This will mean that every rendering will cause the first useEffect to re-create it and
* initialise it. It will be lost and recreated on each render.
*/
Expand Down Expand Up @@ -581,7 +581,8 @@ export default function Diagram(props) {
.attr('stroke', d => (pinningRef.current && d.fx !== undefined && d.fx !== null) ? egeria_primary_color_string : "none");

nodes.selectAll('text')
.attr("fill", d => (d.id === focusGUID) ? egeria_text_color_string : "#444" );
.attr("fill", d => (d.id === focusGUID) ? egeria_text_color_string : "#444" )
.style("text-decoration", d => (d.id === focusGUID) ? "underline" : "none" );

const links = svg.selectAll(".link")

Expand Down

0 comments on commit d0ef860

Please sign in to comment.