@tsparticles/fractal-noise 4.0.0-beta.1 → 4.0.0-beta.10

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 CHANGED
@@ -8,6 +8,12 @@
8
8
 
9
9
  [tsParticles](https://github.com/tsparticles/tsparticles) path plugin for fractal noise movement.
10
10
 
11
+ ## Quick checklist
12
+
13
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
14
+ 2. Call the package loader function(s) before `tsParticles.load(...)`
15
+ 3. Apply the package options in your `tsParticles.load(...)` config
16
+
11
17
  ## How to use it
12
18
 
13
19
  ### CDN / Vanilla JS / jQuery
@@ -72,3 +78,14 @@ import { loadFractalNoisePath } from "@tsparticles/fractal-noise";
72
78
  await loadFractalNoisePath(tsParticles);
73
79
  })();
74
80
  ```
81
+
82
+ ## Common pitfalls
83
+
84
+ - Calling `tsParticles.load(...)` before `loadFractalNoisePath(...)`
85
+ - Verify required peer packages before enabling advanced options
86
+ - Change one option group at a time to isolate regressions quickly
87
+
88
+ ## Related docs
89
+
90
+ - All packages catalog: <https://github.com/tsparticles/tsparticles>
91
+ - Main docs: <https://particles.js.org/docs/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/fractal-noise",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.10",
4
4
  "description": "tsParticles fractal noise library",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -91,8 +91,8 @@
91
91
  "main": "cjs/index.js",
92
92
  "module": "esm/index.js",
93
93
  "types": "types/index.d.ts",
94
- "dependencies": {
95
- "@tsparticles/smooth-value-noise": "4.0.0-beta.1"
94
+ "peerDependencies": {
95
+ "@tsparticles/smooth-value-noise": "4.0.0-beta.10"
96
96
  },
97
97
  "exports": {
98
98
  ".": {
@@ -100,8 +100,7 @@
100
100
  "browser": "./browser/index.js",
101
101
  "import": "./esm/index.js",
102
102
  "require": "./cjs/index.js",
103
- "umd": "./umd/index.js",
104
- "default": "./cjs/index.js"
103
+ "default": "./esm/index.js"
105
104
  },
106
105
  "./package.json": "./package.json"
107
106
  },
package/report.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>@tsparticles/fractal-noise [31 Mar 2026 at 08:47]</title>
6
+ <title>@tsparticles/fractal-noise [8 Apr 2026 at 15:55]</title>
7
7
  <link
8
8
  rel="shortcut icon"
9
9
  href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y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/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII="
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-beta.1
7
+ * v4.0.0-beta.10
8
8
  */
9
9
  /*
10
10
  * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
@@ -1,54 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "@tsparticles/smooth-value-noise"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FractalNoise = void 0;
13
- const smooth_value_noise_1 = require("@tsparticles/smooth-value-noise");
14
- class FractalNoise {
15
- _smoothValueNoise;
16
- constructor() {
17
- this._smoothValueNoise = new smooth_value_noise_1.SmoothValueNoise();
18
- }
19
- noise2d(x, y, octaves = 5, persistence = 0.5, lacunarity = 2) {
20
- let total = 0, frequency = 1, amplitude = 1, maxValue = 0;
21
- for (let i = 0; i < octaves; i++) {
22
- total += this._smoothValueNoise.noise2d(x * frequency, y * frequency) * amplitude;
23
- maxValue += amplitude;
24
- amplitude *= persistence;
25
- frequency *= lacunarity;
26
- }
27
- return total / maxValue;
28
- }
29
- noise3d(x, y, z, octaves = 5, persistence = 0.5, lacunarity = 2) {
30
- let total = 0, frequency = 1, amplitude = 1, maxValue = 0;
31
- for (let i = 0; i < octaves; i++) {
32
- total += this._smoothValueNoise.noise3d(x * frequency, y * frequency, z * frequency) * amplitude;
33
- maxValue += amplitude;
34
- amplitude *= persistence;
35
- frequency *= lacunarity;
36
- }
37
- return total / maxValue;
38
- }
39
- noise4d(x, y, z, w, octaves = 5, persistence = 0.5, lacunarity = 2) {
40
- let total = 0, frequency = 1, amplitude = 1, maxValue = 0;
41
- for (let i = 0; i < octaves; i++) {
42
- total += this._smoothValueNoise.noise4d(x * frequency, y * frequency, z * frequency, w * frequency) * amplitude;
43
- maxValue += amplitude;
44
- amplitude *= persistence;
45
- frequency *= lacunarity;
46
- }
47
- return total / maxValue;
48
- }
49
- seed(seed) {
50
- this._smoothValueNoise.seed(seed);
51
- }
52
- }
53
- exports.FractalNoise = FractalNoise;
54
- });
package/umd/index.js DELETED
@@ -1,15 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./FractalNoise.js"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FractalNoise = void 0;
13
- var FractalNoise_js_1 = require("./FractalNoise.js");
14
- Object.defineProperty(exports, "FractalNoise", { enumerable: true, get: function () { return FractalNoise_js_1.FractalNoise; } });
15
- });