@tsparticles/plugin-poisson-disc 4.0.0-alpha.0 → 4.0.0-alpha.14
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/191.min.js +1 -0
- package/756.min.js +1 -0
- package/browser/Options/Classes/Poisson.js +5 -0
- package/browser/PoissonDisc.js +12 -2
- package/browser/PoissonDiscPlugin.js +5 -7
- package/{esm/PoissonInstance.js → browser/PoissonDiscPluginInstance.js} +5 -1
- package/browser/index.js +3 -3
- package/cjs/Options/Classes/Poisson.js +5 -0
- package/cjs/PoissonDisc.js +12 -2
- package/cjs/PoissonDiscPlugin.js +5 -7
- package/{browser/PoissonInstance.js → cjs/PoissonDiscPluginInstance.js} +5 -1
- package/cjs/index.js +3 -3
- package/dist_browser_PoissonDiscPluginInstance_js.js +40 -0
- package/dist_browser_PoissonDiscPlugin_js.js +3 -23
- package/esm/Options/Classes/Poisson.js +5 -0
- package/esm/PoissonDisc.js +12 -2
- package/esm/PoissonDiscPlugin.js +5 -7
- package/{cjs/PoissonInstance.js → esm/PoissonDiscPluginInstance.js} +5 -1
- package/esm/index.js +3 -3
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.plugin.poisson.js +2 -2
- package/tsparticles.plugin.poisson.min.js +2 -2
- package/types/PoissonDiscPlugin.d.ts +4 -6
- package/types/{PoissonInstance.d.ts → PoissonDiscPluginInstance.d.ts} +1 -1
- package/types/index.d.ts +1 -1
- package/umd/Options/Classes/Poisson.js +5 -0
- package/umd/PoissonDisc.js +12 -2
- package/umd/PoissonDiscPlugin.js +40 -8
- package/umd/{PoissonInstance.js → PoissonDiscPluginInstance.js} +7 -3
- package/umd/index.js +3 -3
- package/295.min.js +0 -2
- package/295.min.js.LICENSE.txt +0 -1
- package/tsparticles.plugin.poisson.min.js.LICENSE.txt +0 -1
|
@@ -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-alpha.
|
|
7
|
+
* v4.0.0-alpha.14
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -34,7 +34,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
34
34
|
\*******************************/
|
|
35
35
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36
36
|
|
|
37
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadPoissonDiscPlugin: () => (/* binding */ loadPoissonDiscPlugin)\n/* harmony export */ });\
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadPoissonDiscPlugin: () => (/* binding */ loadPoissonDiscPlugin)\n/* harmony export */ });\nasync function loadPoissonDiscPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.14\");\n await engine.register(async (e)=>{\n const { PoissonDiscPlugin } = await __webpack_require__.e(/*! import() */ \"dist_browser_PoissonDiscPlugin_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./PoissonDiscPlugin.js */ \"./dist/browser/PoissonDiscPlugin.js\"));\n e.addPlugin(new PoissonDiscPlugin());\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/plugin-poisson-disc/./dist/browser/index.js?\n}");
|
|
38
38
|
|
|
39
39
|
/***/ },
|
|
40
40
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var r="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,e=>(()=>{"use strict";var t,r,o,i={303(t){t.exports=e}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return i[e](r,r.exports,s),r.exports}s.m=i,s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".min.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a={},s.l=(e,t,r,o)=>{if(a[e])return void a[e].push(t);if(void 0!==r)for(var i,n,c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var l=c[p];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/plugin-poisson-disc:"+r){i=l;break}}i||(n=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack","@tsparticles/plugin-poisson-disc:"+r),i.src=e),a[e]=[t];var u=(t,r)=>{i.onerror=i.onload=null,clearTimeout(d);var o=a[e];if(delete a[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),n&&document.head.appendChild(i)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.g.importScripts&&(c=s.g.location+"");var a,c,p=s.g.document;if(!c&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(c=p.currentScript.src),!c)){var l=p.getElementsByTagName("script");if(l.length)for(var u=l.length-1;u>-1&&(!c||!/^http(s?):/.test(c));)c=l[u--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");s.p=c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t={189:0},s.f.j=(e,r)=>{var o=s.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((r,i)=>o=t[e]=[r,i]);r.push(o[2]=i);var n=s.p+s.u(e),a=Error();s.l(n,r=>{if(s.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+e+` failed.
|
|
2
|
+
(`+i+": "+n+")",a.name="ChunkLoadError",a.type=i,a.request=n,o[1](a)}},"chunk-"+e,e)}},r=(e,r)=>{var o,i,[n,a,c]=r,p=0;if(n.some(e=>0!==t[e])){for(o in a)s.o(a,o)&&(s.m[o]=a[o]);c&&c(s)}for(e&&e(r);p<n.length;p++)i=n[p],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0},(o=this.webpackChunk_tsparticles_plugin_poisson_disc=this.webpackChunk_tsparticles_plugin_poisson_disc||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o));var d={};async function f(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async e=>{let{PoissonDiscPlugin:t}=await s.e(756).then(s.bind(s,756));e.addPlugin(new t)})}return s.r(d),s.d(d,{loadPoissonDiscPlugin:()=>f}),d})());
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type Container, type IPlugin, type RecursivePartial } from "@tsparticles/engine";
|
|
1
|
+
import { type Container, type IContainerPlugin, type IPlugin, type RecursivePartial } from "@tsparticles/engine";
|
|
2
2
|
import type { IPoissonOptions, PoissonOptions } from "./types.js";
|
|
3
|
-
import { PoissonInstance } from "./PoissonInstance.js";
|
|
4
3
|
export declare class PoissonDiscPlugin implements IPlugin {
|
|
5
|
-
readonly id
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
loadOptions(options: PoissonOptions, source?: RecursivePartial<IPoissonOptions>): void;
|
|
4
|
+
readonly id = "poisson";
|
|
5
|
+
getPlugin(container: Container): Promise<IContainerPlugin>;
|
|
6
|
+
loadOptions(_container: Container, options: PoissonOptions, source?: RecursivePartial<IPoissonOptions>): void;
|
|
9
7
|
needsPlugin(options?: RecursivePartial<IPoissonOptions>): boolean;
|
|
10
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IContainerPlugin, type ICoordinates } from "@tsparticles/engine";
|
|
2
2
|
import type { PoissonContainer } from "./types.js";
|
|
3
3
|
import { PoissonDisc } from "./PoissonDisc.js";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class PoissonDiscPluginInstance implements IContainerPlugin {
|
|
5
5
|
poissonDisc?: PoissonDisc;
|
|
6
6
|
redrawTimeout?: number | NodeJS.Timeout;
|
|
7
7
|
private readonly _container;
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type Engine } from "@tsparticles/engine";
|
|
2
|
-
export declare function loadPoissonDiscPlugin(engine: Engine): void
|
|
2
|
+
export declare function loadPoissonDiscPlugin(engine: Engine): Promise<void>;
|
package/umd/PoissonDisc.js
CHANGED
|
@@ -11,8 +11,18 @@
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PoissonDisc = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
|
-
const double = 2, doublePI = Math.PI * double;
|
|
15
14
|
class PoissonDisc {
|
|
15
|
+
active;
|
|
16
|
+
cellSize;
|
|
17
|
+
cols;
|
|
18
|
+
dimensions;
|
|
19
|
+
firstPoint;
|
|
20
|
+
grid;
|
|
21
|
+
points;
|
|
22
|
+
radius;
|
|
23
|
+
retries;
|
|
24
|
+
rows;
|
|
25
|
+
size;
|
|
16
26
|
constructor(size, radius, retries, dimensions, firstPoint) {
|
|
17
27
|
this.size = { ...size };
|
|
18
28
|
this.radius = radius;
|
|
@@ -90,7 +100,7 @@
|
|
|
90
100
|
}
|
|
91
101
|
}
|
|
92
102
|
_getNewPoint(currentPoint, tries) {
|
|
93
|
-
const minCoordinate = 0, gridMinValue = 0, maxNeighbourIndex = 1, newAngle = tries * (doublePI / this.retries), newDist = this.getRandom(this.radius, this.radius * double), offset = {
|
|
103
|
+
const minCoordinate = 0, gridMinValue = 0, maxNeighbourIndex = 1, newAngle = tries * (engine_1.doublePI / this.retries), newDist = this.getRandom(this.radius, this.radius * engine_1.double), offset = {
|
|
94
104
|
x: Math.cos(newAngle) * newDist,
|
|
95
105
|
y: Math.sin(newAngle) * newDist,
|
|
96
106
|
}, newPoint = {
|
package/umd/PoissonDiscPlugin.js
CHANGED
|
@@ -1,25 +1,57 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
+
}) : function(o, v) {
|
|
15
|
+
o["default"] = v;
|
|
16
|
+
});
|
|
17
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
18
|
+
var ownKeys = function(o) {
|
|
19
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
20
|
+
var ar = [];
|
|
21
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
22
|
+
return ar;
|
|
23
|
+
};
|
|
24
|
+
return ownKeys(o);
|
|
25
|
+
};
|
|
26
|
+
return function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
1
34
|
(function (factory) {
|
|
2
35
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
36
|
var v = factory(require, exports);
|
|
4
37
|
if (v !== undefined) module.exports = v;
|
|
5
38
|
}
|
|
6
39
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./Options/Classes/Poisson.js"
|
|
40
|
+
define(["require", "exports", "./Options/Classes/Poisson.js"], factory);
|
|
8
41
|
}
|
|
9
42
|
})(function (require, exports) {
|
|
10
43
|
"use strict";
|
|
44
|
+
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
|
11
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
46
|
exports.PoissonDiscPlugin = void 0;
|
|
13
47
|
const Poisson_js_1 = require("./Options/Classes/Poisson.js");
|
|
14
|
-
const PoissonInstance_js_1 = require("./PoissonInstance.js");
|
|
15
48
|
class PoissonDiscPlugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return Promise.resolve(new PoissonInstance_js_1.PoissonInstance(container));
|
|
49
|
+
id = "poisson";
|
|
50
|
+
async getPlugin(container) {
|
|
51
|
+
const { PoissonDiscPluginInstance } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./PoissonDiscPluginInstance.js"))) : new Promise((resolve_1, reject_1) => { require(["./PoissonDiscPluginInstance.js"], resolve_1, reject_1); }).then(__importStar));
|
|
52
|
+
return new PoissonDiscPluginInstance(container);
|
|
21
53
|
}
|
|
22
|
-
loadOptions(options, source) {
|
|
54
|
+
loadOptions(_container, options, source) {
|
|
23
55
|
if (!this.needsPlugin(options) && !this.needsPlugin(source)) {
|
|
24
56
|
return;
|
|
25
57
|
}
|
|
@@ -9,10 +9,14 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.PoissonDiscPluginInstance = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
14
|
const PoissonDisc_js_1 = require("./PoissonDisc.js");
|
|
15
|
-
class
|
|
15
|
+
class PoissonDiscPluginInstance {
|
|
16
|
+
poissonDisc;
|
|
17
|
+
redrawTimeout;
|
|
18
|
+
_container;
|
|
19
|
+
_currentIndex;
|
|
16
20
|
constructor(container) {
|
|
17
21
|
this._container = container;
|
|
18
22
|
this._currentIndex = 0;
|
|
@@ -64,5 +68,5 @@
|
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
|
-
exports.
|
|
71
|
+
exports.PoissonDiscPluginInstance = PoissonDiscPluginInstance;
|
|
68
72
|
});
|
package/umd/index.js
CHANGED
|
@@ -44,9 +44,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
44
44
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.loadPoissonDiscPlugin = loadPoissonDiscPlugin;
|
|
47
|
-
function loadPoissonDiscPlugin(engine) {
|
|
48
|
-
engine.checkVersion("4.0.0-alpha.
|
|
49
|
-
engine.register(async (e) => {
|
|
47
|
+
async function loadPoissonDiscPlugin(engine) {
|
|
48
|
+
engine.checkVersion("4.0.0-alpha.14");
|
|
49
|
+
await engine.register(async (e) => {
|
|
50
50
|
const { PoissonDiscPlugin } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./PoissonDiscPlugin.js"))) : new Promise((resolve_1, reject_1) => { require(["./PoissonDiscPlugin.js"], resolve_1, reject_1); }).then(__importStar));
|
|
51
51
|
e.addPlugin(new PoissonDiscPlugin());
|
|
52
52
|
});
|
package/295.min.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 295.min.js.LICENSE.txt */
|
|
2
|
-
(this.webpackChunk_tsparticles_plugin_poisson_disc=this.webpackChunk_tsparticles_plugin_poisson_disc||[]).push([[295],{295(i,s,t){t.d(s,{PoissonDiscPlugin:()=>a});var e=t(303);class o{constructor(){this.enable=!1,this.dimensions=2,this.radius=0,this.retries=30,this.steps=0}load(i){(0,e.isNull)(i)||(void 0!==i.enable&&(this.enable=i.enable),void 0!==i.dimensions&&(this.dimensions=i.dimensions),void 0!==i.radius&&(this.radius=i.radius),void 0!==i.retries&&(this.retries=i.retries))}}const n=2*Math.PI;class h{constructor(i,s,t,e,o){this.size={...i},this.radius=s,this.retries=t,this.dimensions=e,this.cellSize=Math.floor(this.radius/Math.sqrt(this.dimensions)),this.cols=Math.floor(this.size.width/this.cellSize),this.rows=Math.floor(this.size.height/this.cellSize),this.points=[],this.active=[],this.grid=[],this.firstPoint=o?{...o}:void 0,this.reset()}addPoint(i){const s={position:{...i},gridPosition:{x:Math.floor(i.x/this.cellSize),y:Math.floor(i.y/this.cellSize)}},t=this.points.length,e=this.grid[s.gridPosition.y];e&&(this.points.push(s),e[s.gridPosition.x]=t,this.active.push(t))}getRandom(i,s){return Math.floor((0,e.getRandom)()*(s-i))+i}initialiseGrid(){for(let i=0;i<=this.rows;i++){this.grid[i]=[];const s=this.grid[i];if(s)for(let i=0;i<=this.cols;i++)s[i]=-1}}reset(){if(this.points=[],this.active=[],this.grid=[],this.initialiseGrid(),this.firstPoint)this.addPoint(this.firstPoint);else{const i=0;this.addPoint({x:this.getRandom(i,this.size.width),y:this.getRandom(i,this.size.height)})}}async run(){this.reset();for(;this.active.length>0;)await this.steps(1)}async steps(i){for(let s=0;s<i;s++)this.active.length<=0||await this._step()}_getNewPoint(i,s){const t=s*(n/this.retries),o=this.getRandom(this.radius,2*this.radius),h=Math.cos(t)*o,r=Math.sin(t)*o,a={x:Math.floor(i.position.x+h),y:Math.floor(i.position.y+r)},c=Math.floor(a.x/this.cellSize),l=Math.floor(a.y/this.cellSize);if(a.x>0&&a.x<this.size.width&&a.y>0&&a.y<this.size.height){{const i=this.grid[l];if(!i)return;const s=i[c];if(void 0===s)return;if(!(s<0))return;for(let i=-1;i<=1;i++)for(let t=-1;t<=1;t++){const o={x:c+t,y:l+i};if(o.x>=0&&o.y>=0&&o.x<this.cols&&o.y<this.rows&&(o.x!==c||o.y!==l)&&s>=0){const i=s,t=this.points[i];if(!t)continue;if((0,e.getDistance)(a,t.position)<this.radius)return}}}return a}}async _step(){const i=this.getRandom(0,this.active.length);return new Promise((s=>{let t=!1;for(let s=0;s<this.retries;s++){const e=this.active[i];if(void 0===e)continue;const o=this.points[e];if(!o)continue;const n=this._getNewPoint(o,s);if(n){t=!0,this.addPoint(n);break}}if(!t){const s=1;this.active.splice(i,s)}s()}))}}class r{constructor(i){this._container=i,this._currentIndex=0}async init(){await this._initData()}particlePosition(i){const s=this._container.actualOptions.poisson;if(this.poissonDisc&&s?.enable&&!(this._currentIndex>=this.poissonDisc.points.length))return i??this.poissonDisc.points[this._currentIndex++]?.position}resize(){const i=this._container,s=i.actualOptions.poisson;if(!s?.enable)return;this.redrawTimeout&&clearTimeout(this.redrawTimeout);this.redrawTimeout=setTimeout((()=>{(async()=>{await this._initData(),await i.particles.redraw()})()}),250)}stop(){delete this.poissonDisc}async _initData(){const i=this._container,s=i.actualOptions.poisson,t=i.actualOptions.particles,o=i.canvas.size,n=i.retina.pixelRatio;if(!s?.enable)return;this._currentIndex=0,this.poissonDisc=new h(o,s.radius?s.radius*n:Math.max((0,e.getRangeMax)(t.size.value)*n,Math.sqrt(o.width*o.height/t.number.value)),s.retries,s.dimensions);s.steps>0?await this.poissonDisc.steps(s.steps):await this.poissonDisc.run()}}class a{constructor(){this.id="poisson"}getPlugin(i){return Promise.resolve(new r(i))}loadOptions(i,s){if(!this.needsPlugin(i)&&!this.needsPlugin(s))return;let t=i.poisson;void 0===t?.load&&(i.poisson=t=new o),t.load(s?.poisson)}needsPlugin(i){return i?.poisson?.enable??!1}}}}]);
|
package/295.min.js.LICENSE.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tsParticles Poisson Disc Plugin v4.0.0-alpha.0 by Matteo Bruni */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tsParticles Poisson Disc Plugin v4.0.0-alpha.0 by Matteo Bruni */
|