@thi.ng/cellular 0.2.22 → 0.2.23
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/CHANGELOG.md +1 -1
- package/README.md +7 -10
- package/api.d.ts +2 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/cellular)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -31,7 +31,7 @@ This project is part of the
|
|
|
31
31
|
|
|
32
32
|

|
|
33
33
|
|
|
34
|
-
Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc
|
|
34
|
+
Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc.
|
|
35
35
|
|
|
36
36
|
The generic implementation provided by this package enables many novel and
|
|
37
37
|
unusual CA setups as well as coevolution of multiple CAs within a shared
|
|
@@ -156,11 +156,8 @@ ES module import:
|
|
|
156
156
|
|
|
157
157
|
For Node.js REPL:
|
|
158
158
|
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
node --experimental-repl-await
|
|
162
|
-
|
|
163
|
-
> const cellular = await import("@thi.ng/cellular");
|
|
159
|
+
```js
|
|
160
|
+
const cellular = await import("@thi.ng/cellular");
|
|
164
161
|
```
|
|
165
162
|
|
|
166
163
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.40 KB
|
|
@@ -292,7 +289,7 @@ writeFileSync("export/out.ppm", asPPM(img));
|
|
|
292
289
|
|
|
293
290
|
## Authors
|
|
294
291
|
|
|
295
|
-
Karsten Schmidt
|
|
292
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
296
293
|
|
|
297
294
|
If this project contributes to an academic publication, please cite it as:
|
|
298
295
|
|
|
@@ -307,4 +304,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
307
304
|
|
|
308
305
|
## License
|
|
309
306
|
|
|
310
|
-
© 2022 Karsten Schmidt // Apache
|
|
307
|
+
© 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Fn2, FnN, NumericArray } from "@thi.ng/api";
|
|
2
2
|
import type { IRandom } from "@thi.ng/random";
|
|
3
3
|
import type { MultiCA1D } from "./1d.js";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type Target = "cells" | "mask" | "prob";
|
|
5
|
+
export type Kernel = NumericArray[];
|
|
6
6
|
export interface CAConfig1D {
|
|
7
7
|
/**
|
|
8
8
|
* Same as {@link CASpec1D.kernel}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cellular",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/cellular#readme",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/random": "^3.3.
|
|
41
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/checks": "^3.3.5",
|
|
39
|
+
"@thi.ng/errors": "^2.2.6",
|
|
40
|
+
"@thi.ng/random": "^3.3.18",
|
|
41
|
+
"@thi.ng/transducers": "^8.3.26"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.33.
|
|
45
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
45
|
+
"@thi.ng/testament": "^0.3.7",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.23.
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typedoc": "^0.23.22",
|
|
49
|
+
"typescript": "^4.9.4"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"1d",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
],
|
|
93
93
|
"year": 2022
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
96
96
|
}
|