@@ -2588,8 +2588,8 @@ describe('Test geo zoom/pan/drag interactions:', function() {
25882588 var center = geoLayout . center ;
25892589 var scale = geoLayout . projection . scale ;
25902590
2591- expect ( center . lon ) . toBeCloseTo ( attr [ 0 ] [ 0 ] , 0.5 , msg + 'center.lon' ) ;
2592- expect ( center . lat ) . toBeCloseTo ( attr [ 0 ] [ 1 ] , 0.5 , msg + 'center.lat' ) ;
2591+ expect ( center . lon ) . toBeCloseTo ( attr [ 0 ] [ 0 ] , 0 , msg + 'center.lon' ) ;
2592+ expect ( center . lat ) . toBeCloseTo ( attr [ 0 ] [ 1 ] , 0 , msg + 'center.lat' ) ;
25932593 expect ( scale ) . toBeCloseTo ( attr [ 1 ] , 1 , msg + 'zoom' ) ;
25942594
25952595 // albersUsa projection does not have a center() method
@@ -2608,15 +2608,15 @@ describe('Test geo zoom/pan/drag interactions:', function() {
26082608 _assert ( 'base' , [
26092609 [ - 96.6 , 38.7 ] , 1 ,
26102610 ] , [
2611- [ 416 , 309 ] , 738.5
2611+ [ 410 , 329 ] , 738.5
26122612 ] , undefined ) ;
26132613 return drag ( { path : [ [ 250 , 250 ] , [ 200 , 200 ] ] , noCover : true } ) ;
26142614 } )
26152615 . then ( function ( ) {
26162616 _assert ( 'after NW-SE drag' , [
26172617 [ - 91.8 , 34.8 ] , 1 ,
26182618 ] , [
2619- [ 366 , 259 ] , 738.5
2619+ [ 366 , 279 ] , 738.5
26202620 ] , [
26212621 'geo.center.lon' , 'geo.center.lon'
26222622 ] ) ;
@@ -2626,7 +2626,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
26262626 _assert ( 'after scroll' , [
26272627 [ - 94.5 , 35.0 ] , 1.3
26282628 ] , [
2629- [ 387.1 , 245.9 ] , 974.4
2629+ [ 380 , 272 ] , 974.4
26302630 ] , [
26312631 'geo.center.lon' , 'geo.center.lon' , 'geo.projection.scale'
26322632 ] ) ;
@@ -2637,7 +2637,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
26372637 [ - 94.5 , 35.0 ] , 1.3
26382638 ] , [
26392639 // new center values are reflected in translate()
2640- [ 387.1 , 245.9 ] , 974.4
2640+ [ 380 , 273 ] , 974.4
26412641 ] , [
26422642 'geo.showlakes'
26432643 ] ) ;
@@ -2647,7 +2647,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
26472647 _assert ( 'after double click' , [
26482648 [ - 96.6 , 38.7 ] , 1 ,
26492649 ] , [
2650- [ 416 , 309 ] , 738.5
2650+ [ 416 , 329 ] , 738.5
26512651 ] , 'dblclick' ) ;
26522652 } )
26532653 . then ( done , done . fail ) ;
0 commit comments