@rokkit/core 1.0.0-next.76 → 1.0.0-next.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/ticks.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.0.0-next.76",
3
+ "version": "1.0.0-next.78",
4
4
  "description": "Core components, actions and stores for svelte apps.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -22,8 +22,8 @@
22
22
  "typescript": "^5.3.3",
23
23
  "vite": "^5.0.12",
24
24
  "vitest": "~1.2.2",
25
- "shared-config": "1.0.0-next.76",
26
- "validators": "1.0.0-next.76"
25
+ "shared-config": "1.0.0-next.78",
26
+ "validators": "1.0.0-next.78"
27
27
  },
28
28
  "files": [
29
29
  "src/**/*.js",
package/src/ticks.js CHANGED
@@ -13,6 +13,10 @@ export function generateTicks(
13
13
  minorTickStep = upperBound - lowerBound,
14
14
  majorTickStep = 1
15
15
  ) {
16
+ // lowerBound = +lowerBound
17
+ // upperBound = +upperBound
18
+ // minorTickStep = +minorTickStep
19
+ // majorTickStep = +majorTickStep
16
20
  const length = 1 + Math.ceil((upperBound - lowerBound) / minorTickStep)
17
21
  return Array.from({ length }, (_, i) => {
18
22
  const value = i == length - 1 ? upperBound : lowerBound + minorTickStep * i