@@ -4,37 +4,37 @@ import {initRange} from "./init.js";
4
4
import tickFormat from "./tickFormat.js" ;
5
5
6
6
export function linearish ( scale ) {
7
- const domain = scale . domain ;
7
+ var domain = scale . domain ;
8
8
9
9
scale . ticks = function ( count ) {
10
- const d = domain ( ) ;
10
+ var d = domain ( ) ;
11
11
return ticks ( d [ 0 ] , d [ d . length - 1 ] , count == null ? 10 : count ) ;
12
12
} ;
13
13
14
14
scale . tickFormat = function ( count , specifier ) {
15
- const d = domain ( ) ;
15
+ var d = domain ( ) ;
16
16
return tickFormat ( d [ 0 ] , d [ d . length - 1 ] , count == null ? 10 : count , specifier ) ;
17
17
} ;
18
18
19
19
scale . nice = function ( count ) {
20
20
if ( count == null ) count = 10 ;
21
21
22
- const d = domain ( ) ;
23
- let i0 = 0 ;
24
- let i1 = d . length - 1 ;
25
- let start = d [ i0 ] ;
26
- let stop = d [ i1 ] ;
27
- let prestep ;
28
- let step ;
29
- let maxIter = 10 ;
22
+ var d = domain ( ) ;
23
+ var i0 = 0 ;
24
+ var i1 = d . length - 1 ;
25
+ var start = d [ i0 ] ;
26
+ var stop = d [ i1 ] ;
27
+ var prestep ;
28
+ var step ;
29
+ var maxIter = 10 ;
30
30
31
31
if ( stop < start ) {
32
32
step = start , start = stop , stop = step ;
33
33
step = i0 , i0 = i1 , i1 = step ;
34
34
}
35
35
36
36
while ( maxIter -- > 0 ) {
37
- const step = tickIncrement ( start , stop , count ) ;
37
+ step = tickIncrement ( start , stop , count ) ;
38
38
if ( step === prestep ) {
39
39
d [ i0 ] = start
40
40
d [ i1 ] = stop
@@ -58,7 +58,7 @@ export function linearish(scale) {
58
58
}
59
59
60
60
export default function linear ( ) {
61
- const scale = continuous ( ) ;
61
+ var scale = continuous ( ) ;
62
62
63
63
scale . copy = function ( ) {
64
64
return copy ( scale , linear ( ) ) ;
0 commit comments