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

Function highlightGroup

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

Source from the content-addressed store, hash-verified

716}
717
718function highlightGroup(event, obj) {
719 if (obj) {
720 if (obj !== highlighted) {
721 graph.node.classed('inactive', function (d) {
722 return (obj !== d
723 && !(d.id.endsWith(obj.key))
724 && obj.key !== d.id
725 && findLinkedNodes(d, obj.key) === false);
726 });
727 /* eslint-disable-next-line no-unused-vars */
728 graph.line.classed('inactive', function (d) {
729 return (true);
730 });
731 }
732 highlighted = obj;
733 } else {
734 if (highlighted) {
735 graph.node.classed('inactive', false);
736 graph.line.classed('inactive', false);
737 }
738 highlighted = null;
739 }
740}
741
742function highlightObject(event, obj) {
743 if (obj) {

Callers 1

drawGraphFunction · 0.70

Calls 1

findLinkedNodesFunction · 0.85

Tested by

no test coverage detected