(event, obj)
| 729 | } |
| 730 | |
| 731 | function highlightObject(event, obj) { |
| 732 | if (obj) { |
| 733 | if (obj !== highlighted) { |
| 734 | graph.node.classed('inactive', function (d) { |
| 735 | return (obj !== d |
| 736 | && d.depends.indexOf(obj.name) === -1 |
| 737 | && d.dependedOnBy.indexOf(obj.name) === -1); |
| 738 | }); |
| 739 | graph.line.classed('inactive', function (d) { |
| 740 | return (obj !== d.source && obj !== d.target); |
| 741 | }); |
| 742 | } |
| 743 | highlighted = obj; |
| 744 | } else { |
| 745 | if (highlighted) { |
| 746 | graph.node.classed('inactive', false); |
| 747 | graph.line.classed('inactive', false); |
| 748 | } |
| 749 | highlighted = null; |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | var showingDocs = false, |
| 754 | docsClosePadding = 8, |
no outgoing calls
no test coverage detected