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 13
13
14
14
module . exports = computeTickMarks ;
15
15
16
- var Plotly = require ( '../../../plotly' ) ;
16
+ var Axes = require ( '../../cartesian/axes' ) ;
17
+ var Lib = require ( '../../../lib' ) ;
17
18
var convertHTMLToUnicode = require ( '../../../lib/html2unicode' ) ;
18
19
19
20
var AXES_NAMES = [ 'xaxis' , 'yaxis' , 'zaxis' ] ;
@@ -64,10 +65,10 @@ function computeTickMarks(scene) {
64
65
var tickModeCached = axes . tickmode ;
65
66
if ( axes . tickmode === 'auto' ) {
66
67
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 ) ;
69
70
}
70
- var dataTicks = Plotly . Axes . calcTicks ( axes ) ;
71
+ var dataTicks = Axes . calcTicks ( axes ) ;
71
72
for ( var j = 0 ; j < dataTicks . length ; ++ j ) {
72
73
dataTicks [ j ] . x = dataTicks [ j ] . x * scene . dataScale [ i ] ;
73
74
dataTicks [ j ] . text = convertHTMLToUnicode ( dataTicks [ j ] . text ) ;
You can’t perform that action at this time.
0 commit comments