Skip to content

Commit

Permalink
fix(time): remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Dec 20, 2023
1 parent 70c03b0 commit 38aab9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/scale",
"version": "0.4.14",
"version": "0.4.15",
"description": "Toolkit for mapping abstract data into visual representation.",
"license": "MIT",
"main": "lib/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/utils/time-interval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ export function createInterval(duration: number, floorish: TimeProcess, offseti:
const ticks = [];
const roundStep = Math.floor(step);
const t = shouldAdjust ? ceil(start, step) : ceil(start);
let index = 0;
for (let i = t; +i < +stop && index < 10; offseti(i, roundStep), floori(i), index += 1) {
for (let i = t; +i < +stop; offseti(i, roundStep), floori(i)) {
ticks.push(new Date(+i));
}
return ticks;
Expand Down

0 comments on commit 38aab9c

Please sign in to comment.