src/captors/sigma.captors.mouse.js
function _doubleClickHandler(e) {
      var pos,
          ratio,
          animation;

      if (_settings('mouseEnabled')) {
        ratio = 1 / _settings('doubleClickZoomingRatio');

        _self.dispatchEvent('doubleclick',
            sigma.utils.mouseCoords(e, _startMouseX, _startMouseY));

        if (_settings('doubleClickEnabled')) {
          pos = _camera.cameraPosition(
            sigma.utils.getX(e) - sigma.utils.getCenter(e).x,
            sigma.utils.getY(e) - sigma.utils.getCenter(e).y,
            true
          );

          animation = {
            duration: _settings('doubleClickZoomDuration')
          };

          sigma.utils.zoomTo(_camera, pos.x, pos.y, ratio, animation);
        }

        if (e.preventDefault)
          e.preventDefault();
        else
          e.returnValue = false;

        e.stopPropagation();
        return false;
      }
    }
function _doubleClickHandler(e) {
      var pos,
          ratio,
          animation;

      if (_settings('mouseEnabled')) {
        ratio = 1 / _settings('doubleClickZoomingRatio');

        _self.dispatchEvent('doubleclick',
            sigma.utils.mouseCoords(e, _startMouseX, _startMouseY));

        if (_settings('doubleClickEnabled')) {
          pos = _camera.cameraPosition(
            sigma.utils.getX(e) - sigma.utils.getCenter(e).x,
            sigma.utils.getY(e) - sigma.utils.getCenter(e).y,
            true
          );

          animation = {
            duration: _settings('doubleClickZoomDuration')
          };

          sigma.utils.zoomTo(_camera, pos.x, pos.y, ratio, animation);
        }

        if (e.preventDefault)
          e.preventDefault();
        else
          e.returnValue = false;

        e.stopPropagation();
        return false;
      }
    }
function _doubleClickHandler ( e ) { var pos , ratio , animation ; if ( _settings ( 'mouseEnabled' ) ) { ratio = 1 / _settings ( 'doubleClickZoomingRatio' ) ; _self . dispatchEvent ( 'doubleclick' , sigma . utils . mouseCoords ( e , _startMouseX , _startMouseY ) ) ; if ( _settings ( 'doubleClickEnabled' ) ) { pos = _camera . cameraPosition ( sigma . utils . getX ( e ) - sigma . utils . getCenter ( e ) . x , sigma . utils . getY ( e ) - sigma . utils . getCenter ( e ) . y , true ) ; animation = { duration : _settings ( 'doubleClickZoomDuration' ) } ; sigma . utils . zoomTo ( _camera , pos . x , pos . y , ratio , animation ) ; } if ( e . preventDefault ) e . preventDefault ( ) ; else e . returnValue = false ; e . stopPropagation ( ) ; return false ; } }
The handler listening to the double click custom event. It will
basically zoom into the graph.

@param {event} e A mouse event.
The handler listening to the double click custom event . It will basically zoom into the graph .