Skip to content

Commit

Permalink
Move and rewrite time helpers (#4549)
Browse files Browse the repository at this point in the history
Move time helpers back into time scale, remove the `Chart.helpers.time namespace` and attempt to make the auto generation logic a bit simpler. The generate method doesn't anymore enforce min/max, the calling code needs to clamp timestamps if needed.
  • Loading branch information
simonbrunel authored and etimberg committed Jul 23, 2017
1 parent e7445a5 commit 48d6fac
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 281 deletions.
4 changes: 1 addition & 3 deletions src/core/core.ticks.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ module.exports = {
ticks.push(lastTick);

return ticks;
},

time: helpers.time.generateTicks
}
},

/**
Expand Down
232 changes: 0 additions & 232 deletions src/helpers/helpers.time.js

This file was deleted.

1 change: 0 additions & 1 deletion src/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ module.exports = require('./helpers.core');
module.exports.easing = require('./helpers.easing');
module.exports.canvas = require('./helpers.canvas');
module.exports.options = require('./helpers.options');
module.exports.time = require('./helpers.time');
Loading

0 comments on commit 48d6fac

Please sign in to comment.