@tsparticles/updater-destroy 4.0.4 → 4.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/browser/DestroyUpdater.js +6 -6
- package/browser/Utils.js +9 -7
- package/browser/index.js +1 -1
- package/browser/index.lazy.js +1 -1
- package/cjs/DestroyUpdater.js +6 -6
- package/cjs/Utils.js +9 -7
- package/cjs/index.js +1 -1
- package/cjs/index.lazy.js +1 -1
- package/esm/DestroyUpdater.js +6 -6
- package/esm/Utils.js +9 -7
- package/esm/index.js +1 -1
- package/esm/index.lazy.js +1 -1
- package/package.json +2 -2
- package/report.html +1 -1
- package/tsparticles.updater.destroy.js +17 -15
- package/tsparticles.updater.destroy.min.js +1 -1
- package/types/DestroyUpdater.d.ts +1 -2
|
@@ -4,14 +4,14 @@ import { DestroyMode } from "./Enums/DestroyMode.js";
|
|
|
4
4
|
import { split } from "./Utils.js";
|
|
5
5
|
const defaultDeltaFactor = 1, fpsFactor = 60, minExplodeSpeed = 0.01, maxExplodeProgress = 1;
|
|
6
6
|
export class DestroyUpdater {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
#container;
|
|
8
|
+
#pluginManager;
|
|
9
9
|
constructor(pluginManager, container) {
|
|
10
|
-
this
|
|
11
|
-
this
|
|
10
|
+
this.#container = container;
|
|
11
|
+
this.#pluginManager = pluginManager;
|
|
12
12
|
}
|
|
13
13
|
init(particle) {
|
|
14
|
-
const container = this
|
|
14
|
+
const container = this.#container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;
|
|
15
15
|
if (!destroyOptions) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -50,7 +50,7 @@ export class DestroyUpdater {
|
|
|
50
50
|
const destroyOptions = particle.options.destroy;
|
|
51
51
|
switch (destroyOptions?.mode) {
|
|
52
52
|
case DestroyMode.split:
|
|
53
|
-
split(this
|
|
53
|
+
split(this.#pluginManager, this.#container, particle);
|
|
54
54
|
break;
|
|
55
55
|
case DestroyMode.explode: {
|
|
56
56
|
if (particle.exploding) {
|
package/browser/Utils.js
CHANGED
|
@@ -44,13 +44,15 @@ function addSplitParticle(pluginManager, container, parent, splitParticlesOption
|
|
|
44
44
|
mode: PixelMode.precise,
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
|
-
const factor = identity / getRangeValue(splitOptions.factor.value);
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
const factor = identity / getRangeValue(splitOptions.factor.value), sizeOptions = splitParticleOptions["size"];
|
|
48
|
+
if (sizeOptions) {
|
|
49
|
+
if (isNumber(sizeOptions.value)) {
|
|
50
|
+
sizeOptions.value *= factor;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
sizeOptions.value.min *= factor;
|
|
54
|
+
sizeOptions.value.max *= factor;
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
splitParticleOptions.load(splitParticlesOptions);
|
|
56
58
|
const splitParticlePaintOptions = itemFromSingleOrMultiple(splitParticleOptions.paint), splitParticleFillOptions = splitParticlePaintOptions?.fill, splitParticleStrokeOptions = splitParticlePaintOptions?.stroke, fillColor = resolveSplitColor(splitOptions.fillColorOffset, splitFillColor, splitParticleFillOptions?.color, parentFillColor), strokeColor = resolveSplitColor(splitOptions.strokeColorOffset, splitStrokeColor, splitParticleStrokeOptions?.color, parentStrokeColor);
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DestroyUpdater } from "./DestroyUpdater.js";
|
|
2
2
|
export async function loadDestroyUpdater(engine) {
|
|
3
|
-
engine.checkVersion("4.0
|
|
3
|
+
engine.checkVersion("4.1.0");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addParticleUpdater("destroy", container => {
|
|
6
6
|
return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
|
package/browser/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadDestroyUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0
|
|
2
|
+
engine.checkVersion("4.1.0");
|
|
3
3
|
await engine.pluginManager.register(e => {
|
|
4
4
|
e.pluginManager.addParticleUpdater("destroy", async (container) => {
|
|
5
5
|
const { DestroyUpdater } = await import("./DestroyUpdater.js");
|
package/cjs/DestroyUpdater.js
CHANGED
|
@@ -4,14 +4,14 @@ import { DestroyMode } from "./Enums/DestroyMode.js";
|
|
|
4
4
|
import { split } from "./Utils.js";
|
|
5
5
|
const defaultDeltaFactor = 1, fpsFactor = 60, minExplodeSpeed = 0.01, maxExplodeProgress = 1;
|
|
6
6
|
export class DestroyUpdater {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
#container;
|
|
8
|
+
#pluginManager;
|
|
9
9
|
constructor(pluginManager, container) {
|
|
10
|
-
this
|
|
11
|
-
this
|
|
10
|
+
this.#container = container;
|
|
11
|
+
this.#pluginManager = pluginManager;
|
|
12
12
|
}
|
|
13
13
|
init(particle) {
|
|
14
|
-
const container = this
|
|
14
|
+
const container = this.#container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;
|
|
15
15
|
if (!destroyOptions) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -50,7 +50,7 @@ export class DestroyUpdater {
|
|
|
50
50
|
const destroyOptions = particle.options.destroy;
|
|
51
51
|
switch (destroyOptions?.mode) {
|
|
52
52
|
case DestroyMode.split:
|
|
53
|
-
split(this
|
|
53
|
+
split(this.#pluginManager, this.#container, particle);
|
|
54
54
|
break;
|
|
55
55
|
case DestroyMode.explode: {
|
|
56
56
|
if (particle.exploding) {
|
package/cjs/Utils.js
CHANGED
|
@@ -44,13 +44,15 @@ function addSplitParticle(pluginManager, container, parent, splitParticlesOption
|
|
|
44
44
|
mode: PixelMode.precise,
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
|
-
const factor = identity / getRangeValue(splitOptions.factor.value);
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
const factor = identity / getRangeValue(splitOptions.factor.value), sizeOptions = splitParticleOptions["size"];
|
|
48
|
+
if (sizeOptions) {
|
|
49
|
+
if (isNumber(sizeOptions.value)) {
|
|
50
|
+
sizeOptions.value *= factor;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
sizeOptions.value.min *= factor;
|
|
54
|
+
sizeOptions.value.max *= factor;
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
splitParticleOptions.load(splitParticlesOptions);
|
|
56
58
|
const splitParticlePaintOptions = itemFromSingleOrMultiple(splitParticleOptions.paint), splitParticleFillOptions = splitParticlePaintOptions?.fill, splitParticleStrokeOptions = splitParticlePaintOptions?.stroke, fillColor = resolveSplitColor(splitOptions.fillColorOffset, splitFillColor, splitParticleFillOptions?.color, parentFillColor), strokeColor = resolveSplitColor(splitOptions.strokeColorOffset, splitStrokeColor, splitParticleStrokeOptions?.color, parentStrokeColor);
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DestroyUpdater } from "./DestroyUpdater.js";
|
|
2
2
|
export async function loadDestroyUpdater(engine) {
|
|
3
|
-
engine.checkVersion("4.0
|
|
3
|
+
engine.checkVersion("4.1.0");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addParticleUpdater("destroy", container => {
|
|
6
6
|
return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
|
package/cjs/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadDestroyUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0
|
|
2
|
+
engine.checkVersion("4.1.0");
|
|
3
3
|
await engine.pluginManager.register(e => {
|
|
4
4
|
e.pluginManager.addParticleUpdater("destroy", async (container) => {
|
|
5
5
|
const { DestroyUpdater } = await import("./DestroyUpdater.js");
|
package/esm/DestroyUpdater.js
CHANGED
|
@@ -4,14 +4,14 @@ import { DestroyMode } from "./Enums/DestroyMode.js";
|
|
|
4
4
|
import { split } from "./Utils.js";
|
|
5
5
|
const defaultDeltaFactor = 1, fpsFactor = 60, minExplodeSpeed = 0.01, maxExplodeProgress = 1;
|
|
6
6
|
export class DestroyUpdater {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
#container;
|
|
8
|
+
#pluginManager;
|
|
9
9
|
constructor(pluginManager, container) {
|
|
10
|
-
this
|
|
11
|
-
this
|
|
10
|
+
this.#container = container;
|
|
11
|
+
this.#pluginManager = pluginManager;
|
|
12
12
|
}
|
|
13
13
|
init(particle) {
|
|
14
|
-
const container = this
|
|
14
|
+
const container = this.#container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;
|
|
15
15
|
if (!destroyOptions) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -50,7 +50,7 @@ export class DestroyUpdater {
|
|
|
50
50
|
const destroyOptions = particle.options.destroy;
|
|
51
51
|
switch (destroyOptions?.mode) {
|
|
52
52
|
case DestroyMode.split:
|
|
53
|
-
split(this
|
|
53
|
+
split(this.#pluginManager, this.#container, particle);
|
|
54
54
|
break;
|
|
55
55
|
case DestroyMode.explode: {
|
|
56
56
|
if (particle.exploding) {
|
package/esm/Utils.js
CHANGED
|
@@ -44,13 +44,15 @@ function addSplitParticle(pluginManager, container, parent, splitParticlesOption
|
|
|
44
44
|
mode: PixelMode.precise,
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
|
-
const factor = identity / getRangeValue(splitOptions.factor.value);
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
const factor = identity / getRangeValue(splitOptions.factor.value), sizeOptions = splitParticleOptions["size"];
|
|
48
|
+
if (sizeOptions) {
|
|
49
|
+
if (isNumber(sizeOptions.value)) {
|
|
50
|
+
sizeOptions.value *= factor;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
sizeOptions.value.min *= factor;
|
|
54
|
+
sizeOptions.value.max *= factor;
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
splitParticleOptions.load(splitParticlesOptions);
|
|
56
58
|
const splitParticlePaintOptions = itemFromSingleOrMultiple(splitParticleOptions.paint), splitParticleFillOptions = splitParticlePaintOptions?.fill, splitParticleStrokeOptions = splitParticlePaintOptions?.stroke, fillColor = resolveSplitColor(splitOptions.fillColorOffset, splitFillColor, splitParticleFillOptions?.color, parentFillColor), strokeColor = resolveSplitColor(splitOptions.strokeColorOffset, splitStrokeColor, splitParticleStrokeOptions?.color, parentStrokeColor);
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DestroyUpdater } from "./DestroyUpdater.js";
|
|
2
2
|
export async function loadDestroyUpdater(engine) {
|
|
3
|
-
engine.checkVersion("4.0
|
|
3
|
+
engine.checkVersion("4.1.0");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addParticleUpdater("destroy", container => {
|
|
6
6
|
return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
|
package/esm/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadDestroyUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0
|
|
2
|
+
engine.checkVersion("4.1.0");
|
|
3
3
|
await engine.pluginManager.register(e => {
|
|
4
4
|
e.pluginManager.addParticleUpdater("destroy", async (container) => {
|
|
5
5
|
const { DestroyUpdater } = await import("./DestroyUpdater.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/updater-destroy",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "tsParticles particles destroy updater",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"./package.json": "./package.json"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@tsparticles/engine": "4.0
|
|
96
|
+
"@tsparticles/engine": "4.1.0"
|
|
97
97
|
},
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
package/report.html
CHANGED
|
@@ -4930,7 +4930,7 @@ var drawChart = (function (exports) {
|
|
|
4930
4930
|
</script>
|
|
4931
4931
|
<script>
|
|
4932
4932
|
/*<!--*/
|
|
4933
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.updater.destroy.js","children":[{"name":"dist/browser","children":[{"name":"Options/Classes","children":[{"uid":"
|
|
4933
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.updater.destroy.js","children":[{"name":"dist/browser","children":[{"name":"Options/Classes","children":[{"uid":"11a6662b-1","name":"DestroyBounds.js"},{"uid":"11a6662b-5","name":"Explode.js"},{"uid":"11a6662b-7","name":"SplitFactor.js"},{"uid":"11a6662b-9","name":"SplitRate.js"},{"uid":"11a6662b-11","name":"Split.js"},{"uid":"11a6662b-13","name":"Destroy.js"}]},{"name":"Enums/DestroyMode.js","uid":"11a6662b-3"},{"uid":"11a6662b-15","name":"Utils.js"},{"uid":"11a6662b-17","name":"DestroyUpdater.js"},{"uid":"11a6662b-19","name":"index.js"},{"uid":"11a6662b-21","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"11a6662b-1":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-0"},"11a6662b-3":{"renderedLength":215,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-2"},"11a6662b-5":{"renderedLength":491,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-4"},"11a6662b-7":{"renderedLength":143,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-6"},"11a6662b-9":{"renderedLength":158,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-8"},"11a6662b-11":{"renderedLength":2418,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-10"},"11a6662b-13":{"renderedLength":658,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-12"},"11a6662b-15":{"renderedLength":5283,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-14"},"11a6662b-17":{"renderedLength":4940,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-16"},"11a6662b-19":{"renderedLength":331,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-18"},"11a6662b-21":{"renderedLength":179,"gzipLength":0,"brotliLength":0,"metaUid":"11a6662b-20"}},"nodeMetas":{"11a6662b-0":{"id":"/dist/browser/Options/Classes/DestroyBounds.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-1"},"imported":[{"uid":"11a6662b-22"}],"importedBy":[{"uid":"11a6662b-12"}]},"11a6662b-2":{"id":"/dist/browser/Enums/DestroyMode.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-3"},"imported":[],"importedBy":[{"uid":"11a6662b-16"},{"uid":"11a6662b-12"}]},"11a6662b-4":{"id":"/dist/browser/Options/Classes/Explode.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-5"},"imported":[{"uid":"11a6662b-22"}],"importedBy":[{"uid":"11a6662b-12"}]},"11a6662b-6":{"id":"/dist/browser/Options/Classes/SplitFactor.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-7"},"imported":[{"uid":"11a6662b-22"}],"importedBy":[{"uid":"11a6662b-10"}]},"11a6662b-8":{"id":"/dist/browser/Options/Classes/SplitRate.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-9"},"imported":[{"uid":"11a6662b-22"}],"importedBy":[{"uid":"11a6662b-10"}]},"11a6662b-10":{"id":"/dist/browser/Options/Classes/Split.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-11"},"imported":[{"uid":"11a6662b-22"},{"uid":"11a6662b-6"},{"uid":"11a6662b-8"}],"importedBy":[{"uid":"11a6662b-12"}]},"11a6662b-12":{"id":"/dist/browser/Options/Classes/Destroy.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-13"},"imported":[{"uid":"11a6662b-22"},{"uid":"11a6662b-0"},{"uid":"11a6662b-2"},{"uid":"11a6662b-4"},{"uid":"11a6662b-10"}],"importedBy":[{"uid":"11a6662b-16"}]},"11a6662b-14":{"id":"/dist/browser/Utils.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-15"},"imported":[{"uid":"11a6662b-22"}],"importedBy":[{"uid":"11a6662b-16"}]},"11a6662b-16":{"id":"/dist/browser/DestroyUpdater.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-17"},"imported":[{"uid":"11a6662b-22"},{"uid":"11a6662b-12"},{"uid":"11a6662b-2"},{"uid":"11a6662b-14"}],"importedBy":[{"uid":"11a6662b-18"}]},"11a6662b-18":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-19"},"imported":[{"uid":"11a6662b-16"}],"importedBy":[{"uid":"11a6662b-20"}]},"11a6662b-20":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.updater.destroy.js":"11a6662b-21"},"imported":[{"uid":"11a6662b-18"}],"importedBy":[],"isEntry":true},"11a6662b-22":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"11a6662b-16"},{"uid":"11a6662b-12"},{"uid":"11a6662b-14"},{"uid":"11a6662b-0"},{"uid":"11a6662b-4"},{"uid":"11a6662b-10"},{"uid":"11a6662b-6"},{"uid":"11a6662b-8"}],"isExternal":true}},"env":{"rollup":"4.60.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
4934
4934
|
|
|
4935
4935
|
const run = () => {
|
|
4936
4936
|
const width = window.innerWidth;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
|
|
2
|
-
/* Updater v4.0
|
|
2
|
+
/* Updater v4.1.0 */
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/engine')) :
|
|
5
5
|
typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/engine'], factory) :
|
|
@@ -206,13 +206,15 @@
|
|
|
206
206
|
mode: engine.PixelMode.precise,
|
|
207
207
|
},
|
|
208
208
|
});
|
|
209
|
-
const factor = engine.identity / engine.getRangeValue(splitOptions.factor.value);
|
|
210
|
-
if (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
209
|
+
const factor = engine.identity / engine.getRangeValue(splitOptions.factor.value), sizeOptions = splitParticleOptions["size"];
|
|
210
|
+
if (sizeOptions) {
|
|
211
|
+
if (engine.isNumber(sizeOptions.value)) {
|
|
212
|
+
sizeOptions.value *= factor;
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
sizeOptions.value.min *= factor;
|
|
216
|
+
sizeOptions.value.max *= factor;
|
|
217
|
+
}
|
|
216
218
|
}
|
|
217
219
|
splitParticleOptions.load(splitParticlesOptions);
|
|
218
220
|
const splitParticlePaintOptions = engine.itemFromSingleOrMultiple(splitParticleOptions.paint), splitParticleFillOptions = splitParticlePaintOptions?.fill, splitParticleStrokeOptions = splitParticlePaintOptions?.stroke, fillColor = resolveSplitColor(splitOptions.fillColorOffset, splitFillColor, splitParticleFillOptions?.color, parentFillColor), strokeColor = resolveSplitColor(splitOptions.strokeColorOffset, splitStrokeColor, splitParticleStrokeOptions?.color, parentStrokeColor);
|
|
@@ -257,14 +259,14 @@
|
|
|
257
259
|
|
|
258
260
|
const defaultDeltaFactor = 1, fpsFactor = 60, minExplodeSpeed = 0.01, maxExplodeProgress = 1;
|
|
259
261
|
class DestroyUpdater {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
+
#container;
|
|
263
|
+
#pluginManager;
|
|
262
264
|
constructor(pluginManager, container) {
|
|
263
|
-
this
|
|
264
|
-
this
|
|
265
|
+
this.#container = container;
|
|
266
|
+
this.#pluginManager = pluginManager;
|
|
265
267
|
}
|
|
266
268
|
init(particle) {
|
|
267
|
-
const container = this
|
|
269
|
+
const container = this.#container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;
|
|
268
270
|
if (!destroyOptions) {
|
|
269
271
|
return;
|
|
270
272
|
}
|
|
@@ -303,7 +305,7 @@
|
|
|
303
305
|
const destroyOptions = particle.options.destroy;
|
|
304
306
|
switch (destroyOptions?.mode) {
|
|
305
307
|
case DestroyMode.split:
|
|
306
|
-
split(this
|
|
308
|
+
split(this.#pluginManager, this.#container, particle);
|
|
307
309
|
break;
|
|
308
310
|
case DestroyMode.explode: {
|
|
309
311
|
if (particle.exploding) {
|
|
@@ -359,7 +361,7 @@
|
|
|
359
361
|
}
|
|
360
362
|
|
|
361
363
|
async function loadDestroyUpdater(engine) {
|
|
362
|
-
engine.checkVersion("4.0
|
|
364
|
+
engine.checkVersion("4.1.0");
|
|
363
365
|
await engine.pluginManager.register(e => {
|
|
364
366
|
e.pluginManager.addParticleUpdater("destroy", container => {
|
|
365
367
|
return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.updaters.destroy=t.__tsParticlesInternals.updaters.destroy||{}),t.__tsParticlesInternals.engine)}(this,function(t,e){"use strict";class s{bottom;left;right;top;load(t){e.isNull(t)||(void 0!==t.bottom&&(this.bottom=e.setRangeValue(t.bottom)),void 0!==t.left&&(this.left=e.setRangeValue(t.left)),void 0!==t.right&&(this.right=e.setRangeValue(t.right)),void 0!==t.top&&(this.top=e.setRangeValue(t.top)))}}var l;!function(t){t.explode="explode",t.none="none",t.split="split"}(l||(l={}));class i{maxSizeFactor;speed;constructor(){this.maxSizeFactor=3,this.speed=2}load(t){e.isNull(t)||(void 0!==t.maxSizeFactor&&(this.maxSizeFactor=t.maxSizeFactor),void 0!==t.speed&&(this.speed=t.speed))}}class n extends e.ValueWithRandom{constructor(){super(),this.value=3}}class r extends e.ValueWithRandom{constructor(){super(),this.value={min:4,max:9}}}class a{count;factor;fillColor;fillColorOffset;particles;rate;sizeOffset;strokeColor;strokeColorOffset;constructor(){this.count=1,this.factor=new n,this.rate=new r,this.sizeOffset=!0}load(t){e.isNull(t)||(void 0!==t.fillColor&&(this.fillColor=e.OptionsColor.create(this.fillColor,t.fillColor)),void 0!==t.strokeColor&&(this.strokeColor=e.OptionsColor.create(this.strokeColor,t.strokeColor)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=e.executeOnSingleOrMultiple(t.particles,t=>e.deepExtend({},t)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.fillColorOffset&&(this.fillColorOffset=this.fillColorOffset??{},void 0!==t.fillColorOffset.h&&(this.fillColorOffset.h=t.fillColorOffset.h),void 0!==t.fillColorOffset.s&&(this.fillColorOffset.s=t.fillColorOffset.s),void 0!==t.fillColorOffset.l&&(this.fillColorOffset.l=t.fillColorOffset.l)),t.strokeColorOffset&&(this.strokeColorOffset=this.strokeColorOffset??{},void 0!==t.strokeColorOffset.h&&(this.strokeColorOffset.h=t.strokeColorOffset.h),void 0!==t.strokeColorOffset.s&&(this.strokeColorOffset.s=t.strokeColorOffset.s),void 0!==t.strokeColorOffset.l&&(this.strokeColorOffset.l=t.strokeColorOffset.l)))}}class o{bounds;explode;mode;split;constructor(){this.bounds=new s,this.explode=new i,this.mode=l.none,this.split=new a}load(t){e.isNull(t)||(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.explode.load(t.explode),this.split.load(t.split))}}function c(t,s,l,i){return t&&i?function(t,s){const l=e.getRangeValue(s.h??0),i=e.getRangeValue(s.s??0),n=e.getRangeValue(s.l??0),r=(t.h+l)%360,a=Math.max(0,Math.min(100,t.s+i)),o=Math.max(0,Math.min(100,t.l+n));return e.AnimatableColor.create(void 0,{value:{hsl:{h:r<0?r+360:r,s:a,l:o}}})}(i,t):s?e.AnimatableColor.create(void 0,s):l?e.AnimatableColor.create(void 0,l):i?function(t){return e.AnimatableColor.create(void 0,{value:{hsl:t}})}(i):void 0}function p(t,s,l,i){const n=l.options.destroy;if(!n)return;const r=n.split,a=e.loadParticlesOptions(t,s,l.options),o=e.itemFromSingleOrMultiple(r.fillColor),p=e.itemFromSingleOrMultiple(r.strokeColor),d=l.getFillColor(),
|
|
1
|
+
!function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.updaters.destroy=t.__tsParticlesInternals.updaters.destroy||{}),t.__tsParticlesInternals.engine)}(this,function(t,e){"use strict";class s{bottom;left;right;top;load(t){e.isNull(t)||(void 0!==t.bottom&&(this.bottom=e.setRangeValue(t.bottom)),void 0!==t.left&&(this.left=e.setRangeValue(t.left)),void 0!==t.right&&(this.right=e.setRangeValue(t.right)),void 0!==t.top&&(this.top=e.setRangeValue(t.top)))}}var l;!function(t){t.explode="explode",t.none="none",t.split="split"}(l||(l={}));class i{maxSizeFactor;speed;constructor(){this.maxSizeFactor=3,this.speed=2}load(t){e.isNull(t)||(void 0!==t.maxSizeFactor&&(this.maxSizeFactor=t.maxSizeFactor),void 0!==t.speed&&(this.speed=t.speed))}}class n extends e.ValueWithRandom{constructor(){super(),this.value=3}}class r extends e.ValueWithRandom{constructor(){super(),this.value={min:4,max:9}}}class a{count;factor;fillColor;fillColorOffset;particles;rate;sizeOffset;strokeColor;strokeColorOffset;constructor(){this.count=1,this.factor=new n,this.rate=new r,this.sizeOffset=!0}load(t){e.isNull(t)||(void 0!==t.fillColor&&(this.fillColor=e.OptionsColor.create(this.fillColor,t.fillColor)),void 0!==t.strokeColor&&(this.strokeColor=e.OptionsColor.create(this.strokeColor,t.strokeColor)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=e.executeOnSingleOrMultiple(t.particles,t=>e.deepExtend({},t)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.fillColorOffset&&(this.fillColorOffset=this.fillColorOffset??{},void 0!==t.fillColorOffset.h&&(this.fillColorOffset.h=t.fillColorOffset.h),void 0!==t.fillColorOffset.s&&(this.fillColorOffset.s=t.fillColorOffset.s),void 0!==t.fillColorOffset.l&&(this.fillColorOffset.l=t.fillColorOffset.l)),t.strokeColorOffset&&(this.strokeColorOffset=this.strokeColorOffset??{},void 0!==t.strokeColorOffset.h&&(this.strokeColorOffset.h=t.strokeColorOffset.h),void 0!==t.strokeColorOffset.s&&(this.strokeColorOffset.s=t.strokeColorOffset.s),void 0!==t.strokeColorOffset.l&&(this.strokeColorOffset.l=t.strokeColorOffset.l)))}}class o{bounds;explode;mode;split;constructor(){this.bounds=new s,this.explode=new i,this.mode=l.none,this.split=new a}load(t){e.isNull(t)||(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.explode.load(t.explode),this.split.load(t.split))}}function c(t,s,l,i){return t&&i?function(t,s){const l=e.getRangeValue(s.h??0),i=e.getRangeValue(s.s??0),n=e.getRangeValue(s.l??0),r=(t.h+l)%360,a=Math.max(0,Math.min(100,t.s+i)),o=Math.max(0,Math.min(100,t.l+n));return e.AnimatableColor.create(void 0,{value:{hsl:{h:r<0?r+360:r,s:a,l:o}}})}(i,t):s?e.AnimatableColor.create(void 0,s):l?e.AnimatableColor.create(void 0,l):i?function(t){return e.AnimatableColor.create(void 0,{value:{hsl:t}})}(i):void 0}function p(t,s,l,i){const n=l.options.destroy;if(!n)return;const r=n.split,a=e.loadParticlesOptions(t,s,l.options),o=e.itemFromSingleOrMultiple(r.fillColor),p=e.itemFromSingleOrMultiple(r.strokeColor),d=l.getFillColor(),f=l.getStrokeColor();a.move.load({center:{x:l.position.x,y:l.position.y,mode:e.PixelMode.precise}});const u=e.identity/e.getRangeValue(r.factor.value),_=a.size;_&&(e.isNumber(_.value)?_.value*=u:(_.value.min*=u,_.value.max*=u)),a.load(i);const h=e.itemFromSingleOrMultiple(a.paint),g=h?.fill,P=h?.stroke,I=c(r.fillColorOffset,o,g?.color,d),m=c(r.strokeColorOffset,p,P?.color,f);I&&g&&(g.color=I),m&&P&&(P.color=m);const v=r.sizeOffset?e.setRangeValue(-l.size.value,l.size.value):0,O={x:l.position.x+e.randomInRangeValue(v),y:l.position.y+e.randomInRangeValue(v)};return s.particles.addParticle(O,a,l.group,t=>!(t.size.value<.5)&&(t.velocity.length=e.randomInRangeValue(e.setRangeValue(l.velocity.length,t.velocity.length)),t.splitCount=(l.splitCount??0)+1,t.unbreakable=!0,t.unbreakableUntil=performance.now()+500,!0))}class d{#t;#e;constructor(t,e){this.#t=e,this.#e=t}init(t){const s=this.#t,l=t.options.destroy;if(!l)return;t.exploding=void 0,t.splitCount=0;const i=l.bounds;t.destroyBounds??={};const{bottom:n,left:r,right:a,top:o}=i,{destroyBounds:c}=t,p=s.canvas.size;n&&(c.bottom=e.getRangeValue(n)*p.height/e.percentDenominator),r&&(c.left=e.getRangeValue(r)*p.width/e.percentDenominator),a&&(c.right=e.getRangeValue(a)*p.width/e.percentDenominator),o&&(c.top=e.getRangeValue(o)*p.height/e.percentDenominator)}isEnabled(t){const e=t;return!e.destroyed||!!e.exploding}loadOptions(t,...e){t.destroy??=new o;for(const s of e)t.destroy.load(s?.destroy)}particleDestroyed(t,s){if(s)return;const i=t.options.destroy;switch(i?.mode){case l.split:!function(t,s,l){const i=l.options.destroy;if(!i)return;const n=i.split;if(n.count>=0){if(void 0===l.splitCount||l.splitCount>n.count)return;l.splitCount++}const r=e.getRangeValue(n.rate.value),a=e.itemFromSingleOrMultiple(n.particles);for(let e=0;e<r;e++)p(t,s,l,a)}(this.#e,this.#t,t);break;case l.explode:{if(t.exploding){t.destroyed=!1;break}const{explode:e}=i,s=t.size.value,l=s*e.maxSizeFactor,n=t.getOpacity();t.exploding={initialFillOpacity:n.fillOpacity,initialSize:s,initialStrokeOpacity:n.strokeOpacity,maxSize:l,progress:0,speed:Math.max(e.speed,.01)},t.fillOpacity=n.fillOpacity,t.strokeOpacity=n.strokeOpacity,t.destroyed=!1;break}}}update(t,e){if(t.exploding){const s=t.exploding,l=e.factor||1;s.progress=Math.min(1,s.progress+s.speed*l/60);const i=s.progress;return t.size.value=s.initialSize+(s.maxSize-s.initialSize)*i,t.fillOpacity=s.initialFillOpacity*(1-i),t.strokeOpacity=s.initialStrokeOpacity*(1-i),void(i>=1&&(t.exploding=void 0,t.destroy(!0)))}void 0!==t.unbreakableUntil&&performance.now()>=t.unbreakableUntil&&(t.unbreakable=!1,t.unbreakableUntil=void 0);const s=t.getPosition(),l=t.destroyBounds;l&&(void 0!==l.bottom&&s.y>=l.bottom||void 0!==l.left&&s.x<=l.left||void 0!==l.right&&s.x>=l.right||void 0!==l.top&&s.y<=l.top)&&t.destroy()}}async function f(t){t.checkVersion("4.1.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("destroy",e=>Promise.resolve(new d(t.pluginManager,e)))})}const u=globalThis;u.__tsParticlesInternals=u.__tsParticlesInternals??{},u.loadDestroyUpdater=f,t.loadDestroyUpdater=f}),Object.assign(globalThis.window||globalThis,{loadDestroyUpdater:(globalThis.__tsParticlesInternals.updaters.destroy||{}).loadDestroyUpdater}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type Container, type IDelta, type IParticleUpdater, type Particle, type PluginManager, type RecursivePartial } from "@tsparticles/engine";
|
|
2
2
|
import type { DestroyParticle, DestroyParticlesOptions, IDestroyParticlesOptions } from "./Types.js";
|
|
3
3
|
export declare class DestroyUpdater implements IParticleUpdater {
|
|
4
|
-
private
|
|
5
|
-
private readonly _pluginManager;
|
|
4
|
+
#private;
|
|
6
5
|
constructor(pluginManager: PluginManager, container: Container);
|
|
7
6
|
init(particle: DestroyParticle): void;
|
|
8
7
|
isEnabled(particle: Particle): boolean;
|