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

Function highlightObject

web_server/public/javascripts/cert_graph.js:742–761  ·  view source on GitHub ↗
(event, obj)

Source from the content-addressed store, hash-verified

740}
741
742function 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
763var showingDocs = false,
764 docsClosePadding = 8,

Callers 3

drawGraphFunction · 0.70
selectObjectFunction · 0.70
deselectObjectFunction · 0.70

Calls 1

findLinkedNodesFunction · 0.85

Tested by

no test coverage detected