Skip to content

Commit

Permalink
Merge pull request #8 from uber/proper-highlighting-for-non-highlight…
Browse files Browse the repository at this point in the history
…Dependencies

don't highlight any links if highlightDependencies is false
  • Loading branch information
fastfrwrd committed Oct 12, 2016
2 parents d074c7e + 1a96985 commit e79f1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/InteractiveForceGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ export default class InteractiveForceGraph extends PureRenderComponent {

const opacityForLink = (link, origOpacity = 1) => {
if (
highlightDependencies && (
highlightDependencies ? (
(hoveredNode && !isLinkHighlighted(hoveredNode, link)) ||
(selectedNode && !isLinkHighlighted(selectedNode, link))
)
) : (hoveredNode || selectedNode)
) {
return applyOpacity(origOpacity / 4);
}
Expand Down

0 comments on commit e79f1c9

Please sign in to comment.