@tsparticles/path-simplex-noise 3.0.0-beta.0 → 3.0.0-beta.2

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
@@ -6,7 +6,7 @@
6
6
  [![npmjs](https://badge.fury.io/js/@tsparticles/path-simplex-noise.svg)](https://www.npmjs.com/package/@tsparticles/path-simplex-noise)
7
7
  [![npmjs](https://img.shields.io/npm/dt/@tsparticles/path-simplex-noise)](https://www.npmjs.com/package/@tsparticles/path-simplex-noise) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
8
8
 
9
- [tsParticles](https://github.com/matteobruni/tsparticles) path plugin for simplex noise movement.
9
+ [tsParticles](https://github.com/tsparticles/tsparticles) path plugin for simplex noise movement.
10
10
 
11
11
  ## How to use it
12
12
 
@@ -1,5 +1,5 @@
1
1
  import { Vector, getRandom } from "@tsparticles/engine";
2
- import { makeNoise4D } from "./simplex";
2
+ import { makeNoise4D } from "./simplex.js";
3
3
  export class SimplexNoiseGenerator {
4
4
  constructor() {
5
5
  this._calculateField = () => {
package/browser/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SimplexNoiseGenerator } from "./SimplexNoiseGenerator";
1
+ import { SimplexNoiseGenerator } from "./SimplexNoiseGenerator.js";
2
2
  export const simplexNoisePathName = "simplexNoise";
3
3
  export async function loadSimplexNoisePath(engine, refresh = true) {
4
4
  await engine.addPathGenerator(simplexNoisePathName, new SimplexNoiseGenerator(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SimplexNoiseGenerator = void 0;
4
4
  const engine_1 = require("@tsparticles/engine");
5
- const simplex_1 = require("./simplex");
5
+ const simplex_js_1 = require("./simplex.js");
6
6
  class SimplexNoiseGenerator {
7
7
  constructor() {
8
8
  this._calculateField = () => {
@@ -33,7 +33,7 @@ class SimplexNoiseGenerator {
33
33
  this.options.increment = sourceOptions.increment > 0 ? sourceOptions.increment : 0.004;
34
34
  this.options.width = container.canvas.size.width;
35
35
  this.options.height = container.canvas.size.height;
36
- this.noiseFunc = (0, simplex_1.makeNoise4D)(sourceOptions.seed ?? (0, engine_1.getRandom)());
36
+ this.noiseFunc = (0, simplex_js_1.makeNoise4D)(sourceOptions.seed ?? (0, engine_1.getRandom)());
37
37
  this.options.columns = Math.floor(this.options.width / this.options.size) + 1;
38
38
  this.options.rows = Math.floor(this.options.height / this.options.size) + 1;
39
39
  this.options.layers = Math.floor(container.zLayers / this.options.size) + 1;
@@ -45,7 +45,7 @@ class SimplexNoiseGenerator {
45
45
  addEventListener("resize", () => this._resetField(container));
46
46
  };
47
47
  this.field = [];
48
- this.noiseFunc = (0, simplex_1.makeNoise4D)((0, engine_1.getRandom)());
48
+ this.noiseFunc = (0, simplex_js_1.makeNoise4D)((0, engine_1.getRandom)());
49
49
  this.noiseW = 0;
50
50
  this.options = {
51
51
  size: 20,
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadSimplexNoisePath = exports.simplexNoisePathName = void 0;
4
- const SimplexNoiseGenerator_1 = require("./SimplexNoiseGenerator");
4
+ const SimplexNoiseGenerator_js_1 = require("./SimplexNoiseGenerator.js");
5
5
  exports.simplexNoisePathName = "simplexNoise";
6
6
  async function loadSimplexNoisePath(engine, refresh = true) {
7
- await engine.addPathGenerator(exports.simplexNoisePathName, new SimplexNoiseGenerator_1.SimplexNoiseGenerator(), refresh);
7
+ await engine.addPathGenerator(exports.simplexNoisePathName, new SimplexNoiseGenerator_js_1.SimplexNoiseGenerator(), refresh);
8
8
  }
9
9
  exports.loadSimplexNoisePath = loadSimplexNoisePath;
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
@@ -1,5 +1,5 @@
1
1
  import { Vector, getRandom } from "@tsparticles/engine";
2
- import { makeNoise4D } from "./simplex";
2
+ import { makeNoise4D } from "./simplex.js";
3
3
  export class SimplexNoiseGenerator {
4
4
  constructor() {
5
5
  this._calculateField = () => {
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SimplexNoiseGenerator } from "./SimplexNoiseGenerator";
1
+ import { SimplexNoiseGenerator } from "./SimplexNoiseGenerator.js";
2
2
  export const simplexNoisePathName = "simplexNoise";
3
3
  export async function loadSimplexNoisePath(engine, refresh = true) {
4
4
  await engine.addPathGenerator(simplexNoisePathName, new SimplexNoiseGenerator(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/path-simplex-noise",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "tsParticles simplex noise path",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/matteobruni/tsparticles.git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
9
  "directory": "paths/simplexNoise"
10
10
  },
11
11
  "keywords": [
@@ -69,7 +69,7 @@
69
69
  "author": "Matteo Bruni <matteo.bruni@me.com>",
70
70
  "license": "MIT",
71
71
  "bugs": {
72
- "url": "https://github.com/matteobruni/tsparticles/issues"
72
+ "url": "https://github.com/tsparticles/tsparticles/issues"
73
73
  },
74
74
  "funding": [
75
75
  {
@@ -85,13 +85,25 @@
85
85
  "url": "https://www.buymeacoffee.com/matteobruni"
86
86
  }
87
87
  ],
88
- "main": "cjs/index.js",
88
+ "sideEffects": false,
89
89
  "jsdelivr": "tsparticles.path.simplex.noise.min.js",
90
90
  "unpkg": "tsparticles.path.simplex.noise.min.js",
91
+ "browser": "browser/index.js",
92
+ "main": "cjs/index.js",
91
93
  "module": "esm/index.js",
92
94
  "types": "types/index.d.ts",
93
- "sideEffects": false,
95
+ "exports": {
96
+ ".": {
97
+ "types": "./types/index.d.ts",
98
+ "browser": "./browser/index.js",
99
+ "import": "./esm/index.js",
100
+ "require": "./cjs/index.js",
101
+ "umd": "./umd/index.js",
102
+ "default": "./cjs/index.js"
103
+ },
104
+ "./package.json": "./package.json"
105
+ },
94
106
  "dependencies": {
95
- "@tsparticles/engine": "^3.0.0-beta.0"
107
+ "@tsparticles/engine": "^3.0.0-beta.2"
96
108
  }
97
109
  }