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) {
88
88
case 'circle' :
89
89
90
90
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' ) ) {
92
92
modifyItem ( 'x0' , afterEdit . x0 - ( beforeEdit . x0shift || 0 ) ) ;
93
93
modifyItem ( 'x1' , afterEdit . x1 - ( beforeEdit . x1shift || 0 ) ) ;
94
94
} else {
95
95
modifyItem ( 'x0' , afterEdit . x0 ) ;
96
96
modifyItem ( 'x1' , afterEdit . x1 ) ;
97
97
}
98
98
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' ) ) {
100
100
modifyItem ( 'y0' , afterEdit . y0 - ( beforeEdit . y0shift || 0 ) ) ;
101
101
modifyItem ( 'y1' , afterEdit . y1 - ( beforeEdit . y1shift || 0 ) ) ;
102
102
} else {
You can’t perform that action at this time.
0 commit comments