File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ module.exports = {
37
37
ONEHOUR : 3600000 ,
38
38
ONEMIN : 60000 ,
39
39
ONESEC : 1000 ,
40
+ ONEMILLI : 1 ,
40
41
ONEMICROSEC : 0.001 ,
41
42
/*
42
43
* For fast conversion btwn world calendars and epoch ms, the Julian Day Number
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ var HALFDAY = ONEDAY / 2;
31
31
var ONEHOUR = constants . ONEHOUR ;
32
32
var ONEMIN = constants . ONEMIN ;
33
33
var ONESEC = constants . ONESEC ;
34
+ var ONEMILLI = constants . ONEMILLI ;
34
35
var ONEMICROSEC = constants . ONEMICROSEC ;
35
36
var MINUS_SIGN = constants . MINUS_SIGN ;
36
37
var BADNUM = constants . BADNUM ;
@@ -4607,7 +4608,7 @@ function setShiftVal(ax, axShifts) {
4607
4608
function periodCompatibleWithTickformat ( period , tickformat ) {
4608
4609
return (
4609
4610
/ % f / . test ( tickformat ) ? period >= ONEMICROSEC :
4610
- / % L / . test ( tickformat ) ? period >= 1 :
4611
+ / % L / . test ( tickformat ) ? period >= ONEMILLI :
4611
4612
/ % [ S X ] / . test ( tickformat ) ? period >= ONESEC :
4612
4613
/ % M / . test ( tickformat ) ? period >= ONEMIN :
4613
4614
/ % [ H I ] / . test ( tickformat ) ? period >= ONEHOUR :
You can’t perform that action at this time.
0 commit comments