@tsparticles/smooth-value-noise 3.9.1 → 4.0.0-alpha.1

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.
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SmoothValueNoise = void 0;
4
1
  const lerp = (a, b, t) => {
5
2
  return a + t * (b - a);
6
3
  }, smoothstep = (t) => {
@@ -8,7 +5,7 @@ const lerp = (a, b, t) => {
8
5
  }, fract = (x) => {
9
6
  return x - Math.floor(x);
10
7
  };
11
- class SmoothValueNoise {
8
+ export class SmoothValueNoise {
12
9
  constructor() {
13
10
  this._coeffW = 29.537;
14
11
  this._coeffX = 127.1;
@@ -51,4 +48,3 @@ class SmoothValueNoise {
51
48
  return (n - Math.floor(n)) * 2 - 1;
52
49
  }
53
50
  }
54
- exports.SmoothValueNoise = SmoothValueNoise;
package/cjs/index.js CHANGED
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SmoothValueNoise = void 0;
4
- var SmoothValueNoise_js_1 = require("./SmoothValueNoise.js");
5
- Object.defineProperty(exports, "SmoothValueNoise", { enumerable: true, get: function () { return SmoothValueNoise_js_1.SmoothValueNoise; } });
1
+ export { SmoothValueNoise } from "./SmoothValueNoise.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/smooth-value-noise",
3
- "version": "3.9.1",
3
+ "version": "4.0.0-alpha.1",
4
4
  "description": "tsParticles smooth value noise library",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -101,5 +101,6 @@
101
101
  "default": "./cjs/index.js"
102
102
  },
103
103
  "./package.json": "./package.json"
104
- }
104
+ },
105
+ "type": "module"
105
106
  }