(event, obj)
| 740 | } |
| 741 | |
| 742 | function highlightObject(event, obj) { |
| 743 | if (obj) { |
| 744 | if (obj !== highlighted) { |
| 745 | graph.node.classed('inactive', function (d) { |
| 746 | return (obj !== d |
| 747 | && findLinkedNodes(d, obj.id) === false); |
| 748 | }); |
| 749 | graph.line.classed('inactive', function (d) { |
| 750 | return (obj !== d.source && obj !== d.target); |
| 751 | }); |
| 752 | } |
| 753 | highlighted = obj; |
| 754 | } else { |
| 755 | if (highlighted) { |
| 756 | graph.node.classed('inactive', false); |
| 757 | graph.line.classed('inactive', false); |
| 758 | } |
| 759 | highlighted = null; |
| 760 | } |
| 761 | } |
| 762 | |
| 763 | var showingDocs = false, |
| 764 | docsClosePadding = 8, |
no test coverage detected