@@ -1487,8 +1487,8 @@ describe('Test shapes', function() {
14871487 function testShapeDrag ( dx , dy , layoutShape , node ) {
14881488 var xa = Axes . getFromId ( gd , layoutShape . xref ) ;
14891489 var ya = Axes . getFromId ( gd , layoutShape . yref ) ;
1490- var x2p = helpers . getDataToPixel ( gd , xa ) ;
1491- var y2p = helpers . getDataToPixel ( gd , ya , true ) ;
1490+ var x2p = helpers . getDataToPixel ( gd , xa , layoutShape . x_shift ) ;
1491+ var y2p = helpers . getDataToPixel ( gd , ya , layoutShape . y_shift , true ) ;
14921492
14931493 var initialCoordinates = getShapeCoordinates ( layoutShape , x2p , y2p ) ;
14941494
@@ -1514,8 +1514,8 @@ describe('Test shapes', function() {
15141514 function testPathDrag ( dx , dy , layoutShape , node ) {
15151515 var xa = Axes . getFromId ( gd , layoutShape . xref ) ;
15161516 var ya = Axes . getFromId ( gd , layoutShape . yref ) ;
1517- var x2p = helpers . getDataToPixel ( gd , xa ) ;
1518- var y2p = helpers . getDataToPixel ( gd , ya , true ) ;
1517+ var x2p = helpers . getDataToPixel ( gd , xa , layoutShape . x_shift ) ;
1518+ var y2p = helpers . getDataToPixel ( gd , ya , layoutShape . y_shift , true ) ;
15191519
15201520 var initialPath = layoutShape . path ;
15211521 var initialCoordinates = getPathCoordinates ( initialPath , x2p , y2p ) ;
@@ -1546,8 +1546,8 @@ describe('Test shapes', function() {
15461546 function testShapeResize ( direction , dx , dy , layoutShape , node ) {
15471547 var xa = Axes . getFromId ( gd , layoutShape . xref ) ;
15481548 var ya = Axes . getFromId ( gd , layoutShape . yref ) ;
1549- var x2p = helpers . getDataToPixel ( gd , xa ) ;
1550- var y2p = helpers . getDataToPixel ( gd , ya , true ) ;
1549+ var x2p = helpers . getDataToPixel ( gd , xa , layoutShape . x_shift ) ;
1550+ var y2p = helpers . getDataToPixel ( gd , ya , layoutShape . y_shift , true ) ;
15511551
15521552 var initialCoordinates = getShapeCoordinates ( layoutShape , x2p , y2p ) ;
15531553
@@ -1590,9 +1590,8 @@ describe('Test shapes', function() {
15901590
15911591 var xa = Axes . getFromId ( gd , layoutShape . xref ) ;
15921592 var ya = Axes . getFromId ( gd , layoutShape . yref ) ;
1593- var x2p = helpers . getDataToPixel ( gd , xa ) ;
1594- var y2p = helpers . getDataToPixel ( gd , ya , true ) ;
1595-
1593+ var x2p = helpers . getDataToPixel ( gd , xa , layoutShape . x_shift ) ;
1594+ var y2p = helpers . getDataToPixel ( gd , ya , layoutShape . y_shift , true ) ;
15961595
15971596 promise = promise . then ( function ( ) {
15981597 var dragHandle = pointToMove === 'start' ?
0 commit comments