MCPcopy Create free account
hub / github.com/adobe/Marinus / highlightObject

Function highlightObject

web_server/public/javascripts/draw_graph.js:731–751  ·  view source on GitHub ↗
(event, obj)

Source from the content-addressed store, hash-verified

729}
730
731function 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
753var showingDocs = false,
754 docsClosePadding = 8,

Callers 3

drawGraphFunction · 0.70
selectObjectFunction · 0.70
deselectObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected