mma-server/src/main/resources/com/aliyun/odps/mma/server/ui/static/dag-viz.js
/*
 * (Job page only) Helper function to show or hide tooltips for all nodes
 * in the graph that refer to the same RDD the specified node represents.
 */
(Job page only) Helper function to show or hide tooltips for all nodes
in the graph that refer to the same RDD the specified node represents.
( Job page only ) Helper function to show or hide tooltips for all nodes in the graph that refer to the same RDD the specified node represents .
function triggerTooltipForRDD(d3node, show) {
  var classes = d3node.node().classList;
  for (var i = 0; i < classes.length; i++) {
    var clazz = classes[i];
    var isRDDClass = clazz.indexOf(VizConstants.nodePrefix) == 0;
    if (isRDDClass) {
      graphContainer().selectAll("g." + clazz).each(function() {
        var circle = d3.select(this).select("circle").node();
        var showOrHide = show ? "show" : "hide";
        $(circle).tooltip(showOrHide);
      });
    }
  }
}
function triggerTooltipForRDD ( d3node , show ) { var classes = d3node . node ( ) . classList ; for ( var i = 0 ; i < classes . length ; i ++ ) { var clazz = classes [ i ] ; var isRDDClass = clazz . indexOf ( VizConstants . nodePrefix ) == 0 ; if ( isRDDClass ) { graphContainer ( ) . selectAll ( "g." + clazz ) . each ( function ( ) { var circle = d3 . select ( this ) . select ( "circle" ) . node ( ) ; var showOrHide = show ? "show" : "hide" ; $ ( circle ) . tooltip ( showOrHide ) ; } ) ; } } }
(Job page only) Helper function to show or hide tooltips for all nodes
 in the graph that refer to the same RDD the specified node represents.
( Job page only ) Helper function to show or hide tooltips for all nodes in the graph that refer to the same RDD the specified node represents .