function zoomed(){
	    if ( forceNotZooming === true ) {
	      zoom.translate(graphTranslation);
	      zoom.scale(zoomFactor);
	      return;
	    }


	    var zoomEventByMWheel = false;
	    if ( d3.event.sourceEvent ) {
	      if ( d3.event.sourceEvent.deltaY ) zoomEventByMWheel = true;
	    }
	    if ( zoomEventByMWheel === false ) {
	      if ( transformAnimation === true ) {
	        return;
	      }
	      zoomFactor = d3.event.scale;
	      graphTranslation = d3.event.translate;
	      graphContainer.attr("transform", "translate(" + graphTranslation + ")scale(" + zoomFactor + ")");
	      updateHaloRadius();
	      graph.options().zoomSlider().updateZoomSliderValue(zoomFactor);
	      return;
	    }
	    /** animate the transition **/
	    zoomFactor = d3.event.scale;
	    graphTranslation = d3.event.translate;
	    graphContainer.transition()
	      .tween("attr.translate", function (){
	        return function ( t ){
	          transformAnimation = true;
	          var tr = d3.transform(graphContainer.attr("transform"));
	          graphTranslation[0] = tr.translate[0];
	          graphTranslation[1] = tr.translate[1];
	          zoomFactor = tr.scale[0];
	          updateHaloRadius();
	          graph.options().zoomSlider().updateZoomSliderValue(zoomFactor);
	        };
	      })
	      .each("end", function (){
	        transformAnimation = false;
	      })
	      .attr("transform", "translate(" + graphTranslation + ")scale(" + zoomFactor + ")")
	      .ease('linear')
	      .duration(250);
	  }// end of zoomed function
/** Adjusts the containers current scale and position. */
Adjusts the containers current scale and position.
Adjusts the containers current scale and position .
function zoomed(){
	    if ( forceNotZooming === true ) {
	      zoom.translate(graphTranslation);
	      zoom.scale(zoomFactor);
	      return;
	    }
	    var zoomEventByMWheel = false;
	    if ( d3.event.sourceEvent ) {
	      if ( d3.event.sourceEvent.deltaY ) zoomEventByMWheel = true;
	    }
	    if ( zoomEventByMWheel === false ) {
	      if ( transformAnimation === true ) {
	        return;
	      }
	      zoomFactor = d3.event.scale;
	      graphTranslation = d3.event.translate;
	      graphContainer.attr("transform", "translate(" + graphTranslation + ")scale(" + zoomFactor + ")");
	      updateHaloRadius();
	      graph.options().zoomSlider().updateZoomSliderValue(zoomFactor);
	      return;
	    }
	    zoomFactor = d3.event.scale;
	    graphTranslation = d3.event.translate;
	    graphContainer.transition()
	      .tween("attr.translate", function (){
	        return function ( t ){
	          transformAnimation = true;
	          var tr = d3.transform(graphContainer.attr("transform"));
	          graphTranslation[0] = tr.translate[0];
	          graphTranslation[1] = tr.translate[1];
	          zoomFactor = tr.scale[0];
	          updateHaloRadius();
	          graph.options().zoomSlider().updateZoomSliderValue(zoomFactor);
	        };
	      })
	      .each("end", function (){
	        transformAnimation = false;
	      })
	      .attr("transform", "translate(" + graphTranslation + ")scale(" + zoomFactor + ")")
	      .ease('linear')
	      .duration(250);
	  }
function zoomed ( ) { if ( forceNotZooming === true ) { zoom . translate ( graphTranslation ) ; zoom . scale ( zoomFactor ) ; return ; } var zoomEventByMWheel = false ; if ( d3 . event . sourceEvent ) { if ( d3 . event . sourceEvent . deltaY ) zoomEventByMWheel = true ; } if ( zoomEventByMWheel === false ) { if ( transformAnimation === true ) { return ; } zoomFactor = d3 . event . scale ; graphTranslation = d3 . event . translate ; graphContainer . attr ( "transform" , "translate(" + graphTranslation + ")scale(" + zoomFactor + ")" ) ; updateHaloRadius ( ) ; graph . options ( ) . zoomSlider ( ) . updateZoomSliderValue ( zoomFactor ) ; return ; } zoomFactor = d3 . event . scale ; graphTranslation = d3 . event . translate ; graphContainer . transition ( ) . tween ( "attr.translate" , function ( ) { return function ( t ) { transformAnimation = true ; var tr = d3 . transform ( graphContainer . attr ( "transform" ) ) ; graphTranslation [ 0 ] = tr . translate [ 0 ] ; graphTranslation [ 1 ] = tr . translate [ 1 ] ; zoomFactor = tr . scale [ 0 ] ; updateHaloRadius ( ) ; graph . options ( ) . zoomSlider ( ) . updateZoomSliderValue ( zoomFactor ) ; } ; } ) . each ( "end" , function ( ) { transformAnimation = false ; } ) . attr ( "transform" , "translate(" + graphTranslation + ")scale(" + zoomFactor + ")" ) . ease ( 'linear' ) . duration ( 250 ) ; }
Adjusts the containers current scale and position.
Adjusts the containers current scale and position .
/** animate the transition **/ // end of zoomed function