@@ -309,21 +309,21 @@ describe('Test plot api', function() {
309
309
} ]
310
310
} )
311
311
. then ( function ( ) {
312
- expect ( getAnnotationPos ( ) ) . toBeCloseToArray ( [ 247.5 , 210.1 ] ) ;
312
+ expect ( getAnnotationPos ( ) ) . toBeCloseToArray ( [ 247.5 , 210.1 ] , - 0.5 ) ;
313
313
expect ( getShapePos ( ) ) . toBeCloseToArray ( [ 350 , 369 ] ) ;
314
314
expect ( getImagePos ( ) ) . toBeCloseToArray ( [ 170 , 272.52 ] ) ;
315
315
316
316
return Plotly . relayout ( gd , 'xaxis.range' , [ 0 , 2 ] ) ;
317
317
} )
318
318
. then ( function ( ) {
319
- expect ( getAnnotationPos ( ) ) . toBeCloseToArray ( [ 337.5 , 210.1 ] ) ;
319
+ expect ( getAnnotationPos ( ) ) . toBeCloseToArray ( [ 337.5 , 210.1 ] , - 0.5 ) ;
320
320
expect ( getShapePos ( ) ) . toBeCloseToArray ( [ 620 , 369 ] ) ;
321
321
expect ( getImagePos ( ) ) . toBeCloseToArray ( [ 80 , 272.52 ] ) ;
322
322
323
323
return Plotly . relayout ( gd , 'xaxis.range' , [ - 1 , 5 ] ) ;
324
324
} )
325
325
. then ( function ( ) {
326
- expect ( getAnnotationPos ( ) ) . toBeCloseToArray ( [ 247.5 , 210.1 ] ) ;
326
+ expect ( getAnnotationPos ( ) ) . toBeCloseToArray ( [ 247.5 , 210.1 ] , - 0.5 ) ;
327
327
expect ( getShapePos ( ) ) . toBeCloseToArray ( [ 350 , 369 ] ) ;
328
328
expect ( getImagePos ( ) ) . toBeCloseToArray ( [ 170 , 272.52 ] ) ;
329
329
} )
0 commit comments