Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 19, 2016
1 parent 2ef4584 commit 6d3a9e6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -236,8 +236,8 @@ define( [ 'utils/utils' ], function( Utils ) {
xScale.nice();
yScale.nice();
function fixDomain( domain, boundary ) {
domain[0] = Math.min( Math.max( domain[ 0 ], boundary[ 0 ] ), boundary[ 1 ] - boundary[ 1 ]/scaleExtent );
domain[1] = Math.max( boundary[ 0 ] + boundary[ 1 ] / scaleExtent, Math.min( domain[ 1 ], boundary[ 1 ] ) );
domain[ 0 ] = Math.min( Math.max( domain[ 0 ], boundary[ 0 ] ), boundary[ 1 ] - boundary[ 1 ]/scaleExtent );
domain[ 1 ] = Math.max( boundary[ 0 ] + boundary[ 1 ] / scaleExtent, Math.min( domain[ 1 ], boundary[ 1 ] ) );
return domain;
};
function zoomed() {
Expand Down

0 comments on commit 6d3a9e6

Please sign in to comment.