(event, obj)
| 716 | } |
| 717 | |
| 718 | function highlightGroup(event, obj) { |
| 719 | if (obj) { |
| 720 | if (obj !== highlighted) { |
| 721 | graph.node.classed('inactive', function (d) { |
| 722 | return (obj !== d |
| 723 | && !(d.id.endsWith(obj.key)) |
| 724 | && obj.key !== d.id |
| 725 | && findLinkedNodes(d, obj.key) === false); |
| 726 | }); |
| 727 | /* eslint-disable-next-line no-unused-vars */ |
| 728 | graph.line.classed('inactive', function (d) { |
| 729 | return (true); |
| 730 | }); |
| 731 | } |
| 732 | highlighted = obj; |
| 733 | } else { |
| 734 | if (highlighted) { |
| 735 | graph.node.classed('inactive', false); |
| 736 | graph.line.classed('inactive', false); |
| 737 | } |
| 738 | highlighted = null; |
| 739 | } |
| 740 | } |
| 741 | |
| 742 | function highlightObject(event, obj) { |
| 743 | if (obj) { |
no test coverage detected