@sg-pattern-engine/algorithms 1.0.0 → 1.1.0
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +14 -0
- package/README.md +32 -0
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @sg-pattern-engine/algorithms@1.
|
|
2
|
+
> @sg-pattern-engine/algorithms@1.1.0 build /workspace/packages/algorithms
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --clean
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mESM[39m [1mdist/index.mjs [22m[32m4.55 KB[39m
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 66ms
|
|
14
14
|
[32mCJS[39m [1mdist/index.js [22m[32m5.73 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 67ms
|
|
16
16
|
DTS Build start
|
|
17
|
-
DTS ⚡️ Build success in
|
|
17
|
+
DTS ⚡️ Build success in 2374ms
|
|
18
18
|
DTS dist/index.d.ts 1.34 KB
|
|
19
19
|
DTS dist/index.d.mts 1.34 KB
|
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @sg-pattern-engine/algorithms
|
|
2
|
+
|
|
3
|
+
Built-in algorithm plugins for PatternEngine.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
\`\`\`bash
|
|
8
|
+
npm install @sg-pattern-engine/core @sg-pattern-engine/algorithms
|
|
9
|
+
\`\`\`
|
|
10
|
+
|
|
11
|
+
## Algorithms
|
|
12
|
+
|
|
13
|
+
| Name | Output | Description |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| `perlin` | `scalarField` | Hash-based Perlin noise |
|
|
16
|
+
| `flowField` | `vectorField` | Random unit vector field |
|
|
17
|
+
| `voronoi` | `points` | Scattered Voronoi seed points |
|
|
18
|
+
| `reactionDiffusion` | `scalarField` | Full Gray-Scott simulation |
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
\`\`\`typescript
|
|
23
|
+
import { PatternEngine } from '@sg-pattern-engine/core';
|
|
24
|
+
import { algorithms } from '@sg-pattern-engine/algorithms';
|
|
25
|
+
|
|
26
|
+
const engine = new PatternEngine();
|
|
27
|
+
algorithms.forEach(algo => engine.registerAlgorithm(algo));
|
|
28
|
+
\`\`\`
|
|
29
|
+
|
|
30
|
+
## Documentation
|
|
31
|
+
|
|
32
|
+
See the [full documentation](https://github.com/sarthakganguly/sg-design-patterns#readme).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sg-pattern-engine/algorithms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@sg-pattern-engine/core": "1.
|
|
15
|
+
"@sg-pattern-engine/core": "1.1.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tsup": "^8.0.0",
|