@sarmal/core 0.9.1 → 0.9.7
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.
- package/dist/auto-init.cjs +49 -15
- package/dist/auto-init.cjs.map +1 -1
- package/dist/auto-init.js +49 -15
- package/dist/auto-init.js.map +1 -1
- package/dist/curves/artemis2.d.cts +1 -1
- package/dist/curves/artemis2.d.ts +1 -1
- package/dist/curves/astroid.d.cts +1 -1
- package/dist/curves/astroid.d.ts +1 -1
- package/dist/curves/deltoid.d.cts +1 -1
- package/dist/curves/deltoid.d.ts +1 -1
- package/dist/curves/epicycloid3.d.cts +1 -1
- package/dist/curves/epicycloid3.d.ts +1 -1
- package/dist/curves/epitrochoid7.d.cts +1 -1
- package/dist/curves/epitrochoid7.d.ts +1 -1
- package/dist/curves/index.d.cts +1 -1
- package/dist/curves/index.d.ts +1 -1
- package/dist/curves/lame.d.cts +1 -1
- package/dist/curves/lame.d.ts +1 -1
- package/dist/curves/lissajous32.d.cts +1 -1
- package/dist/curves/lissajous32.d.ts +1 -1
- package/dist/curves/lissajous43.d.cts +1 -1
- package/dist/curves/lissajous43.d.ts +1 -1
- package/dist/curves/rose3.d.cts +1 -1
- package/dist/curves/rose3.d.ts +1 -1
- package/dist/curves/rose5.d.cts +1 -1
- package/dist/curves/rose5.d.ts +1 -1
- package/dist/index.cjs +55 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +55 -15
- package/dist/index.js.map +1 -1
- package/dist/{types-DX8VfIVK.d.cts → types-cR2xOewv.d.cts} +8 -0
- package/dist/{types-DX8VfIVK.d.ts → types-cR2xOewv.d.ts} +8 -0
- package/package.json +4 -3
|
@@ -4,6 +4,14 @@ interface Point {
|
|
|
4
4
|
}
|
|
5
5
|
interface CurveDef {
|
|
6
6
|
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The parametric function that defines the curve shape.
|
|
9
|
+
* @param t Current position along the curve, in [0, period)
|
|
10
|
+
* @param time Elapsed wall-clock time in seconds — always increasing, never resets on period wrap
|
|
11
|
+
* @param params Named parameter overrides.
|
|
12
|
+
* Always `{}` today — reserved for the upcoming parameterized-curves feature.
|
|
13
|
+
* Do NOT remove this parameter; it is intentional forward-compatible plumbing.
|
|
14
|
+
*/
|
|
7
15
|
fn: (t: number, time: number, params: Record<string, number>) => Point;
|
|
8
16
|
/**
|
|
9
17
|
* @default (Math.PI * 2)
|
|
@@ -4,6 +4,14 @@ interface Point {
|
|
|
4
4
|
}
|
|
5
5
|
interface CurveDef {
|
|
6
6
|
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The parametric function that defines the curve shape.
|
|
9
|
+
* @param t Current position along the curve, in [0, period)
|
|
10
|
+
* @param time Elapsed wall-clock time in seconds — always increasing, never resets on period wrap
|
|
11
|
+
* @param params Named parameter overrides.
|
|
12
|
+
* Always `{}` today — reserved for the upcoming parameterized-curves feature.
|
|
13
|
+
* Do NOT remove this parameter; it is intentional forward-compatible plumbing.
|
|
14
|
+
*/
|
|
7
15
|
fn: (t: number, time: number, params: Record<string, number>) => Point;
|
|
8
16
|
/**
|
|
9
17
|
* @default (Math.PI * 2)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarmal/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "Curve path based loading indicators and their renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"animation",
|
|
@@ -65,11 +65,12 @@
|
|
|
65
65
|
"lint": "oxlint",
|
|
66
66
|
"format": "oxfmt",
|
|
67
67
|
"test": "vitest",
|
|
68
|
-
"test:watch": "vitest --watch"
|
|
68
|
+
"test:watch": "vitest --watch",
|
|
69
|
+
"bench": "vitest bench"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"@types/node": "^25.5.2",
|
|
72
|
-
"oxfmt": "^0.
|
|
73
|
+
"oxfmt": "^0.44.0",
|
|
73
74
|
"oxlint": "^1.58.0",
|
|
74
75
|
"tsup": "^8.5.1",
|
|
75
76
|
"typescript": "^6.0.2",
|