@@ -23,7 +23,7 @@ var DBLCLICKDELAY = require('../../../src/plot_api/plot_config').dfltConfig.doub
23
23
var HOVERMINTIME = require ( '../../../src/components/fx' ) . constants . HOVERMINTIME ;
24
24
25
25
// use local topojson files
26
- Plotly . setPlotConfig ( { topojsonURL : '../../../ dist/topojson' } ) ;
26
+ Plotly . setPlotConfig ( { topojsonURL : '/base/ dist/topojson/ ' } ) ;
27
27
28
28
function move ( fromX , fromY , toX , toY , delay ) {
29
29
return new Promise ( function ( resolve ) {
@@ -1482,7 +1482,7 @@ describe('Test geo interactions', function() {
1482
1482
} )
1483
1483
. then ( function ( ) {
1484
1484
check ( [ 179 , - 16.6 ] , 1 , 'spot on Fiji island that cross antimeridian west of antimeridian' ) ;
1485
- check ( [ - 179.9 , - 16.2 ] , 1 , 'spot on Fiji island that cross antimeridian east of antimeridian' ) ;
1485
+ check ( [ - 179.9 , - 16.8 ] , 1 , 'spot on Fiji island that cross antimeridian east of antimeridian' ) ;
1486
1486
1487
1487
return Plotly . relayout ( gd , {
1488
1488
'geo.center.lat' : null ,
@@ -1796,8 +1796,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1796
1796
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
1797
1797
expect ( typeof pt . data ) . toEqual ( typeof { } , 'points[0].data' ) ;
1798
1798
expect ( typeof pt . fullData ) . toEqual ( typeof { } , 'points[0].fullData' ) ;
1799
- expect ( pt . lat ) . toEqual ( 57.75 , 'points[0].lat' ) ;
1800
- expect ( pt . lon ) . toEqual ( - 101.57 , 'points[0].lon' ) ;
1799
+ expect ( pt . lat ) . toEqual ( 57.72 , 'points[0].lat' ) ;
1800
+ expect ( pt . lon ) . toEqual ( - 101.68 , 'points[0].lon' ) ;
1801
1801
expect ( pt . location ) . toEqual ( 'CAN' , 'points[0].location' ) ;
1802
1802
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1803
1803
expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
@@ -1900,8 +1900,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1900
1900
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
1901
1901
expect ( typeof pt . data ) . toEqual ( typeof { } , 'points[0].data' ) ;
1902
1902
expect ( typeof pt . fullData ) . toEqual ( typeof { } , 'points[0].fullData' ) ;
1903
- expect ( pt . lat ) . toEqual ( 57.75 , 'points[0].lat' ) ;
1904
- expect ( pt . lon ) . toEqual ( - 101.57 , 'points[0].lon' ) ;
1903
+ expect ( pt . lat ) . toEqual ( 57.72 , 'points[0].lat' ) ;
1904
+ expect ( pt . lon ) . toEqual ( - 101.68 , 'points[0].lon' ) ;
1905
1905
expect ( pt . location ) . toEqual ( 'CAN' , 'points[0].location' ) ;
1906
1906
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1907
1907
expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
@@ -1941,8 +1941,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1941
1941
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
1942
1942
expect ( typeof pt . data ) . toEqual ( typeof { } , 'points[0].data' ) ;
1943
1943
expect ( typeof pt . fullData ) . toEqual ( typeof { } , 'points[0].fullData' ) ;
1944
- expect ( pt . lat ) . toEqual ( 57.75 , 'points[0].lat' ) ;
1945
- expect ( pt . lon ) . toEqual ( - 101.57 , 'points[0].lon' ) ;
1944
+ expect ( pt . lat ) . toEqual ( 57.72 , 'points[0].lat' ) ;
1945
+ expect ( pt . lon ) . toEqual ( - 101.68 , 'points[0].lon' ) ;
1946
1946
expect ( pt . location ) . toEqual ( 'CAN' , 'points[0].location' ) ;
1947
1947
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1948
1948
expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
@@ -2624,7 +2624,8 @@ describe('Test geo zoom/pan/drag interactions:', function() {
2624
2624
_assert ( 'after scroll' , [
2625
2625
[ - 94.5 , 35.0 ] , 1.3
2626
2626
] , [
2627
- [ 387.1 , 245.9 ] , 974.4
2627
+ // TODO: Verify that this change is acceptable
2628
+ [ 380.5 , 245.9 ] , 974.4
2628
2629
] , [
2629
2630
'geo.center.lon' , 'geo.center.lon' , 'geo.projection.scale'
2630
2631
] ) ;
@@ -2634,8 +2635,9 @@ describe('Test geo zoom/pan/drag interactions:', function() {
2634
2635
_assert ( 'after some relayout call that causes a replot' , [
2635
2636
[ - 94.5 , 35.0 ] , 1.3
2636
2637
] , [
2638
+ // TODO: Verify that this change is acceptable
2637
2639
// new center values are reflected in translate()
2638
- [ 387.1 , 245.9 ] , 974.4
2640
+ [ 380.5 , 245.9 ] , 974.4
2639
2641
] , [
2640
2642
'geo.showlakes'
2641
2643
] ) ;
@@ -2757,11 +2759,11 @@ describe('Test geo interactions update marker angles:', function() {
2757
2759
} )
2758
2760
. then ( function ( ) {
2759
2761
newPath = getPath ( ) ;
2760
- expect ( newPath ) . toEqual ( 'M0,0L18.238949470790537 ,8.206139299448276L19.579067739888885 ,-4.081679364776507Z ' ) ;
2762
+ expect ( newPath ) . toEqual ( 'M0,0L18.22327727600463 ,8.240883770679762L19.586810955756498 ,-4.044358612123453Z ' ) ;
2761
2763
2762
2764
expect ( newPath ) . not . toEqual ( initialPath ) ;
2763
- expect ( newPath ) . toEqual ( 'M0,0L18.238949470790537 ,8.206139299448276L19.579067739888885 ,-4.081679364776507Z ' ) ;
2764
- expect ( initialPath ) . toEqual ( 'M0,0L-1.5033314641545745 ,19.94341982983066L10.506227353572104 ,17.01820163222463Z ' ) ;
2765
+ expect ( newPath ) . toEqual ( 'M0,0L18.22327727600463 ,8.240883770679762L19.586810955756498 ,-4.044358612123453Z ' ) ;
2766
+ expect ( initialPath ) . toEqual ( 'M0,0L-1.5100144203478312 ,19.942914943667123L10.500523963798084 ,17.021721313830223Z ' ) ;
2765
2767
} )
2766
2768
. then ( done , done . fail ) ;
2767
2769
} ) ;
0 commit comments