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

Function highlightGroup

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

Source from the content-addressed store, hash-verified

706}
707
708function highlightGroup(event, obj) {
709 if (obj) {
710 if (obj !== highlighted) {
711 graph.node.classed('inactive', function (d) {
712 return (obj !== d
713 && d.type !== obj.type
714 && d.type !== obj.type);
715 });
716 /* eslint-disable-next-line no-unused-vars */
717 graph.line.classed('inactive', function (d) {
718 return (true);
719 });
720 }
721 highlighted = obj;
722 } else {
723 if (highlighted) {
724 graph.node.classed('inactive', false);
725 graph.line.classed('inactive', false);
726 }
727 highlighted = null;
728 }
729}
730
731function highlightObject(event, obj) {
732 if (obj) {

Callers 1

drawGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected