@thi.ng/cellular 0.2.22 → 0.2.24

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/1d.d.ts CHANGED
@@ -162,7 +162,9 @@ export declare class MultiCA1D implements IClear {
162
162
  setPattern(target: Target, width: number, stride: number, val?: number, inc?: number, offset?: number): this;
163
163
  /**
164
164
  * Sets cells in current generation array to a random state using given
165
- * `probability` and optional PRNG ({@link @thi.ng/random#IRandom} instance).
165
+ * `probability` and optional PRNG
166
+ * ([`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
167
+ * instance).
166
168
  *
167
169
  * @param target
168
170
  * @param prob
@@ -217,7 +219,9 @@ export declare class MultiCA1D implements IClear {
217
219
  }
218
220
  /**
219
221
  * Creates a random rule ID for given `kernelSize` and using optionally provided
220
- * `rnd` {@link @thi.ng/random#IRandom} instance.
222
+ * `rnd`
223
+ * [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
224
+ * instance.
221
225
  *
222
226
  * @param kernelSize
223
227
  * @param rnd
package/1d.js CHANGED
@@ -200,7 +200,9 @@ export class MultiCA1D {
200
200
  }
201
201
  /**
202
202
  * Sets cells in current generation array to a random state using given
203
- * `probability` and optional PRNG ({@link @thi.ng/random#IRandom} instance).
203
+ * `probability` and optional PRNG
204
+ * ([`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
205
+ * instance).
204
206
  *
205
207
  * @param target
206
208
  * @param prob
@@ -361,7 +363,9 @@ const __rotate = (buf, dir) => {
361
363
  };
362
364
  /**
363
365
  * Creates a random rule ID for given `kernelSize` and using optionally provided
364
- * `rnd` {@link @thi.ng/random#IRandom} instance.
366
+ * `rnd`
367
+ * [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
368
+ * instance.
365
369
  *
366
370
  * @param kernelSize
367
371
  * @param rnd
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-20T16:33:11Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![cellular](https://media.thi.ng/umbrella/banners-20220914/thing-cellular.svg?4c8cf48e)
3
+ # ![@thi.ng/cellular](https://media.thi.ng/umbrella/banners-20220914/thing-cellular.svg?4c8cf48e)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/cellular.svg)](https://www.npmjs.com/package/@thi.ng/cellular)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/cellular.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](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
  ![Custom cellular automata w/ 7-neighborhood & 128 states](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/cellular/hero.png)
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
- ```text
160
- # with flag only for < v16
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
- &copy; 2022 Karsten Schmidt // Apache Software License 2.0
307
+ &copy; 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 declare type Target = "cells" | "mask" | "prob";
5
- export declare type Kernel = NumericArray[];
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}.
@@ -104,7 +104,8 @@ export interface UpdateImageOpts1D {
104
104
  probabilistic: boolean;
105
105
  /**
106
106
  * PRNG instance to use for perturbance. Default:
107
- * {@link @thi.ng/random#SYSTEM} aka `Math.random`.
107
+ * [`SYSTEM`](https://docs.thi.ng/umbrella/random/variables/SYSTEM.html) aka
108
+ * `Math.random`.
108
109
  */
109
110
  rnd: IRandom;
110
111
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/cellular",
3
- "version": "0.2.22",
3
+ "version": "0.2.24",
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/master/packages/cellular#readme",
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 <k+npm@thi.ng>",
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.5.1",
38
- "@thi.ng/checks": "^3.3.4",
39
- "@thi.ng/errors": "^2.2.5",
40
- "@thi.ng/random": "^3.3.17",
41
- "@thi.ng/transducers": "^8.3.25"
37
+ "@thi.ng/api": "^8.6.1",
38
+ "@thi.ng/checks": "^3.3.5",
39
+ "@thi.ng/errors": "^2.2.6",
40
+ "@thi.ng/random": "^3.3.19",
41
+ "@thi.ng/transducers": "^8.3.27"
42
42
  },
43
43
  "devDependencies": {
44
- "@microsoft/api-extractor": "^7.33.5",
45
- "@thi.ng/testament": "^0.3.6",
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.20",
49
- "typescript": "^4.8.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": "1fe40da507070653f420156d91e6b27cf682004f\n"
95
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
96
96
  }