function onControlDepsClicked()
   {
      // Do nothing if scope has not changed
      if (this.value === appOptions.currentScope) { return; }

      // If max depth is set to sticky and current level is equal max level of old scope then set max level for
      // the new scope.
      if (appOptions.maxDepthSticky && appOptions.currentLevel === dataPackageMap[appOptions.currentScope].maxLevel)
      {
         appOptions.currentLevel = dataPackageMap[this.value].maxLevel
      }

      appOptions.currentScope = this.value;

      var maxLevel = dataPackageMap[appOptions.currentScope].maxLevel;

      // Adjust current level if it is greater than max level for current scope.
      if (appOptions.currentLevel > maxLevel) { appOptions.currentLevel = maxLevel; }

      // Update control level UI based on current and max level for given scope.
      $('.control-level input').attr({ max: maxLevel });
      $('.control-level input').val(appOptions.currentLevel);
      $('.control-level label').html(appOptions.currentLevel);

      // Redraw graph data
      updateAll({ redrawOnly: true });

      // Center graph w/ zoom fit w/ 1 second transition applied after a potential 2 seconds delay for debounce.
      centerGraph(zoomFit, 1000, data.allNodesFixed ? 0 : 2000);
   }
function onControlDepsClicked()
   {
      
      if (this.value === appOptions.currentScope) { return; }

      
      
      if (appOptions.maxDepthSticky && appOptions.currentLevel === dataPackageMap[appOptions.currentScope].maxLevel)
      {
         appOptions.currentLevel = dataPackageMap[this.value].maxLevel
      }

      appOptions.currentScope = this.value;

      var maxLevel = dataPackageMap[appOptions.currentScope].maxLevel;

      
      if (appOptions.currentLevel > maxLevel) { appOptions.currentLevel = maxLevel; }

      
      $('.control-level input').attr({ max: maxLevel });
      $('.control-level input').val(appOptions.currentLevel);
      $('.control-level label').html(appOptions.currentLevel);

      
      updateAll({ redrawOnly: true });

      
      centerGraph(zoomFit, 1000, data.allNodesFixed ? 0 : 2000);
   }
function onControlDepsClicked ( ) { // Do nothing if scope has not changed if ( this . value === appOptions . currentScope ) { return ; } // If max depth is set to sticky and current level is equal max level of old scope then set max level for // the new scope. if ( appOptions . maxDepthSticky && appOptions . currentLevel === dataPackageMap [ appOptions . currentScope ] . maxLevel ) { appOptions . currentLevel = dataPackageMap [ this . value ] . maxLevel } appOptions . currentScope = this . value ; var maxLevel = dataPackageMap [ appOptions . currentScope ] . maxLevel ; // Adjust current level if it is greater than max level for current scope. if ( appOptions . currentLevel > maxLevel ) { appOptions . currentLevel = maxLevel ; } // Update control level UI based on current and max level for given scope. $ ( '.control-level input' ) . attr ( { max : maxLevel } ) ; $ ( '.control-level input' ) . val ( appOptions . currentLevel ) ; $ ( '.control-level label' ) . html ( appOptions . currentLevel ) ; // Redraw graph data updateAll ( { redrawOnly : true } ) ; // Center graph w/ zoom fit w/ 1 second transition applied after a potential 2 seconds delay for debounce. centerGraph ( zoomFit , 1000 , data . allNodesFixed ? 0 : 2000 ) ; }
Handles responding to the dependencies radio group.
Handles responding to the dependencies radio group .