| 706 | } |
| 707 | |
| 708 | function highlightGroup(event, obj) { |
| 709 | if (obj) { |
| 710 | if (obj !== highlighted) { |
| 711 | graph.node.classed('inactive', function (d) { |
| 712 | return (obj !== d |
| 713 | && d.type !== obj.type |
| 714 | && d.type !== obj.type); |
| 715 | }); |
| 716 | /* eslint-disable-next-line no-unused-vars */ |
| 717 | graph.line.classed('inactive', function (d) { |
| 718 | return (true); |
| 719 | }); |
| 720 | } |
| 721 | highlighted = obj; |
| 722 | } else { |
| 723 | if (highlighted) { |
| 724 | graph.node.classed('inactive', false); |
| 725 | graph.line.classed('inactive', false); |
| 726 | } |
| 727 | highlighted = null; |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | function highlightObject(event, obj) { |
| 732 | if (obj) { |