flot
Advanced tools
Comparing version 4.2.2 to 4.2.3
{ | ||
"name": "flot", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"main": "dist/es5/jquery.flot.js", | ||
@@ -38,2 +38,3 @@ "scripts": { | ||
"jasmine-core": "~2.7.0", | ||
"jasmine-jquery": "^2.1.1", | ||
"karma": "^1.3.0", | ||
@@ -48,3 +49,2 @@ "karma-chrome-launcher": "^2.0.0", | ||
"karma-jasmine-html-reporter": "^0.2.2", | ||
"karma-jasmine-jquery": "^0.1.1", | ||
"karma-safari-launcher": "^1.0.0", | ||
@@ -54,4 +54,3 @@ "karma-spec-reporter": "0.0.32", | ||
"tmp": "0.0.33" | ||
}, | ||
"dependencies": {} | ||
} | ||
} |
@@ -34,7 +34,7 @@ /* Pretty handling of time axes. | ||
newDate.update = function(microEpoch) { | ||
oldSetTime(microEpoch); | ||
// Round epoch to 3 decimal accuracy | ||
microEpoch = Math.round(microEpoch * 1000) / 1000; | ||
oldSetTime(microEpoch); | ||
// Microseconds are stored as integers | ||
@@ -399,8 +399,7 @@ this.microseconds = 1000 * (microEpoch - Math.floor(microEpoch)); | ||
if (step >= timeUnitSize.millisecond) { | ||
if (step >= timeUnitSize.second) { | ||
d.setMicroseconds(0); | ||
} else { | ||
d.setMicroseconds(d.getMilliseconds() * 1000); | ||
} | ||
d.setMicroseconds(0); | ||
} | ||
if (step >= timeUnitSize.second) { | ||
d.setMilliseconds(0); | ||
} | ||
if (step >= timeUnitSize.minute) { | ||
@@ -407,0 +406,0 @@ d.setSeconds(0); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
994111
19579