File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313
1414module . exports = computeTickMarks ;
1515
16- var Plotly = require ( '../../../plotly' ) ;
16+ var Axes = require ( '../../cartesian/axes' ) ;
17+ var Lib = require ( '../../../lib' ) ;
1718var convertHTMLToUnicode = require ( '../../../lib/html2unicode' ) ;
1819
1920var AXES_NAMES = [ 'xaxis' , 'yaxis' , 'zaxis' ] ;
@@ -64,10 +65,10 @@ function computeTickMarks(scene) {
6465 var tickModeCached = axes . tickmode ;
6566 if ( axes . tickmode === 'auto' ) {
6667 axes . tickmode = 'linear' ;
67- var nticks = axes . nticks || Plotly . Lib . constrain ( ( axes . _length / 40 ) , 4 , 9 ) ;
68- Plotly . Axes . autoTicks ( axes , Math . abs ( axes . range [ 1 ] - axes . range [ 0 ] ) / nticks ) ;
68+ var nticks = axes . nticks || Lib . constrain ( ( axes . _length / 40 ) , 4 , 9 ) ;
69+ Axes . autoTicks ( axes , Math . abs ( axes . range [ 1 ] - axes . range [ 0 ] ) / nticks ) ;
6970 }
70- var dataTicks = Plotly . Axes . calcTicks ( axes ) ;
71+ var dataTicks = Axes . calcTicks ( axes ) ;
7172 for ( var j = 0 ; j < dataTicks . length ; ++ j ) {
7273 dataTicks [ j ] . x = dataTicks [ j ] . x * scene . dataScale [ i ] ;
7374 dataTicks [ j ] . text = convertHTMLToUnicode ( dataTicks [ j ] . text ) ;
You can’t perform that action at this time.
0 commit comments