src/InfoViz/Native/MutualInformationDiagram/index.js
function singleClick(d, i) {
          // single click handler
          const overCoords = d3.mouse(model.container);
          const info = findGroupAndBin(overCoords);
          if (info.radius > veryOutermostRadius) {
            showAllChords();
          } else if (
            info.radius > outerRadius ||
            (info.radius <= innerRadius &&
              pmiChordMode.mode === PMI_CHORD_MODE_ONE_BIN_ALL_VARS &&
              info.group === pmiChordMode.srcParam)
          ) {
            if (info.found) {
              model.renderState.pmiAllBinsTwoVars = null;
              model.renderState.pmiOneBinAllVars = {
                group: info.group,
                bin: info.bin,
                d,
                i,
              };
              drawPMIOneBinAllVars()(d, i);
              publicAPI.selectStatusBarText();
            }
          }
          // },
        }
function singleClick(d, i) {
          // single click handler
          const overCoords = d3.mouse(model.container);
          const info = findGroupAndBin(overCoords);
          if (info.radius > veryOutermostRadius) {
            showAllChords();
          } else if (
            info.radius > outerRadius ||
            (info.radius <= innerRadius &&
              pmiChordMode.mode === PMI_CHORD_MODE_ONE_BIN_ALL_VARS &&
              info.group === pmiChordMode.srcParam)
          ) {
            if (info.found) {
              model.renderState.pmiAllBinsTwoVars = null;
              model.renderState.pmiOneBinAllVars = {
                group: info.group,
                bin: info.bin,
                d,
                i,
              };
              drawPMIOneBinAllVars()(d, i);
              publicAPI.selectStatusBarText();
            }
          }
          // },
        }
function singleClick ( d , i ) { // single click handler const overCoords = d3 . mouse ( model . container ) ; const info = findGroupAndBin ( overCoords ) ; if ( info . radius > veryOutermostRadius ) { showAllChords ( ) ; } else if ( info . radius > outerRadius || ( info . radius <= innerRadius && pmiChordMode . mode === PMI_CHORD_MODE_ONE_BIN_ALL_VARS && info . group === pmiChordMode . srcParam ) ) { if ( info . found ) { model . renderState . pmiAllBinsTwoVars = null ; model . renderState . pmiOneBinAllVars = { group : info . group , bin : info . bin , d , i , } ; drawPMIOneBinAllVars ( ) ( d , i ) ; publicAPI . selectStatusBarText ( ) ; } } // }, }
multiClicker([
multiClicker ( [