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 = {
3737 ONEHOUR : 3600000 ,
3838 ONEMIN : 60000 ,
3939 ONESEC : 1000 ,
40+ ONEMILLI : 1 ,
4041 ONEMICROSEC : 0.001 ,
4142 /*
4243 * 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;
3131var ONEHOUR = constants . ONEHOUR ;
3232var ONEMIN = constants . ONEMIN ;
3333var ONESEC = constants . ONESEC ;
34+ var ONEMILLI = constants . ONEMILLI ;
3435var ONEMICROSEC = constants . ONEMICROSEC ;
3536var MINUS_SIGN = constants . MINUS_SIGN ;
3637var BADNUM = constants . BADNUM ;
@@ -4607,7 +4608,7 @@ function setShiftVal(ax, axShifts) {
46074608function periodCompatibleWithTickformat ( period , tickformat ) {
46084609 return (
46094610 / % f / . test ( tickformat ) ? period >= ONEMICROSEC :
4610- / % L / . test ( tickformat ) ? period >= 1 :
4611+ / % L / . test ( tickformat ) ? period >= ONEMILLI :
46114612 / % [ S X ] / . test ( tickformat ) ? period >= ONESEC :
46124613 / % M / . test ( tickformat ) ? period >= ONEMIN :
46134614 / % [ H I ] / . test ( tickformat ) ? period >= ONEHOUR :
You can’t perform that action at this time.
0 commit comments