@thi.ng/timestep 1.0.59 → 1.0.61
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/README.md +2 -2
- package/package.json +7 -7
- package/state.js +4 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 215 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -169,7 +169,7 @@ For Node.js REPL:
|
|
|
169
169
|
const ts = await import("@thi.ng/timestep");
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
172
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.03 KB
|
|
173
173
|
|
|
174
174
|
## Dependencies
|
|
175
175
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/timestep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"description": "Deterministic fixed timestep simulation updates with state interpolation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/math": "^5.15.
|
|
45
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.20",
|
|
44
|
+
"@thi.ng/math": "^5.15.9",
|
|
45
|
+
"@thi.ng/vectors": "^8.6.29"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"esbuild": "^0.
|
|
49
|
-
"typedoc": "^0.28.
|
|
48
|
+
"esbuild": "^0.28.0",
|
|
49
|
+
"typedoc": "^0.28.18",
|
|
50
50
|
"typescript": "^5.9.3"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"status": "alpha",
|
|
96
96
|
"year": 2023
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
|
|
99
99
|
}
|
package/state.js
CHANGED
|
@@ -7,6 +7,8 @@ class NumericState {
|
|
|
7
7
|
this.update = update;
|
|
8
8
|
this.reset(value);
|
|
9
9
|
}
|
|
10
|
+
value;
|
|
11
|
+
update;
|
|
10
12
|
curr;
|
|
11
13
|
prev;
|
|
12
14
|
deref() {
|
|
@@ -38,6 +40,8 @@ class VectorState {
|
|
|
38
40
|
this.prev = this.setFn([], value);
|
|
39
41
|
this.curr = this.setFn([], value);
|
|
40
42
|
}
|
|
43
|
+
value;
|
|
44
|
+
update;
|
|
41
45
|
prev;
|
|
42
46
|
curr;
|
|
43
47
|
setFn;
|