File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/shapes/draw_newshape Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,15 @@ function newShapes(outlines, dragOptions) {
8888 case 'circle' :
8989
9090 var xaxis = axis_ids . getFromId ( gd , beforeEdit . xref ) ;
91- if ( beforeEdit . xref . includes ( 'x' ) && xaxis . type . includes ( " category" ) ) {
91+ if ( beforeEdit . xref . includes ( 'x' ) && xaxis . type . includes ( ' category' ) ) {
9292 modifyItem ( 'x0' , afterEdit . x0 - ( beforeEdit . x0shift || 0 ) ) ;
9393 modifyItem ( 'x1' , afterEdit . x1 - ( beforeEdit . x1shift || 0 ) ) ;
9494 } else {
9595 modifyItem ( 'x0' , afterEdit . x0 ) ;
9696 modifyItem ( 'x1' , afterEdit . x1 ) ;
9797 }
9898 var yaxis = axis_ids . getFromId ( gd , beforeEdit . yref ) ;
99- if ( beforeEdit . yref . includes ( 'y' ) && yaxis . type . includes ( " category" ) ) {
99+ if ( beforeEdit . yref . includes ( 'y' ) && yaxis . type . includes ( ' category' ) ) {
100100 modifyItem ( 'y0' , afterEdit . y0 - ( beforeEdit . y0shift || 0 ) ) ;
101101 modifyItem ( 'y1' , afterEdit . y1 - ( beforeEdit . y1shift || 0 ) ) ;
102102 } else {
You can’t perform that action at this time.
0 commit comments