@tsparticles/plugin-emitters-shape-circle 4.1.2 → 4.2.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/EmittersCircleShape.js +1 -2
- package/browser/index.js +1 -1
- package/browser/index.lazy.js +1 -1
- package/cjs/EmittersCircleShape.js +1 -2
- package/cjs/index.js +1 -1
- package/cjs/index.lazy.js +1 -1
- package/esm/EmittersCircleShape.js +1 -2
- package/esm/index.js +1 -1
- package/esm/index.lazy.js +1 -1
- package/package.json +3 -3
- package/report.html +1 -1
- package/tsparticles.plugin.emitters.shape.circle.js +3 -4
- package/tsparticles.plugin.emitters.shape.circle.min.js +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EmitterShapeBase } from "@tsparticles/plugin-emitters";
|
|
2
|
-
import { double, doublePI, getRandom, half, quarter } from "@tsparticles/engine";
|
|
3
|
-
const squareExp = 2;
|
|
2
|
+
import { double, doublePI, getRandom, half, quarter, squareExp, } from "@tsparticles/engine";
|
|
4
3
|
export class EmittersCircleShape extends EmitterShapeBase {
|
|
5
4
|
constructor(position, size, fill, options) {
|
|
6
5
|
super(position, size, fill, options);
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ensureEmittersPluginLoaded } from "@tsparticles/plugin-emitters";
|
|
2
2
|
import { EmittersCircleShapeGenerator } from "./EmittersCircleShapeGenerator.js";
|
|
3
3
|
export async function loadEmittersShapeCircle(engine) {
|
|
4
|
-
engine.checkVersion("4.
|
|
4
|
+
engine.checkVersion("4.2.0");
|
|
5
5
|
await engine.pluginManager.register((e) => {
|
|
6
6
|
ensureEmittersPluginLoaded(e);
|
|
7
7
|
e.pluginManager.addEmitterShapeGenerator?.("circle", new EmittersCircleShapeGenerator());
|
package/browser/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadEmittersShapeCircle(engine) {
|
|
2
|
-
engine.checkVersion("4.
|
|
2
|
+
engine.checkVersion("4.2.0");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { ensureEmittersPluginLoaded } = await import("@tsparticles/plugin-emitters/lazy");
|
|
5
5
|
ensureEmittersPluginLoaded(e);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EmitterShapeBase } from "@tsparticles/plugin-emitters";
|
|
2
|
-
import { double, doublePI, getRandom, half, quarter } from "@tsparticles/engine";
|
|
3
|
-
const squareExp = 2;
|
|
2
|
+
import { double, doublePI, getRandom, half, quarter, squareExp, } from "@tsparticles/engine";
|
|
4
3
|
export class EmittersCircleShape extends EmitterShapeBase {
|
|
5
4
|
constructor(position, size, fill, options) {
|
|
6
5
|
super(position, size, fill, options);
|
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ensureEmittersPluginLoaded } from "@tsparticles/plugin-emitters";
|
|
2
2
|
import { EmittersCircleShapeGenerator } from "./EmittersCircleShapeGenerator.js";
|
|
3
3
|
export async function loadEmittersShapeCircle(engine) {
|
|
4
|
-
engine.checkVersion("4.
|
|
4
|
+
engine.checkVersion("4.2.0");
|
|
5
5
|
await engine.pluginManager.register((e) => {
|
|
6
6
|
ensureEmittersPluginLoaded(e);
|
|
7
7
|
e.pluginManager.addEmitterShapeGenerator?.("circle", new EmittersCircleShapeGenerator());
|
package/cjs/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadEmittersShapeCircle(engine) {
|
|
2
|
-
engine.checkVersion("4.
|
|
2
|
+
engine.checkVersion("4.2.0");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { ensureEmittersPluginLoaded } = await import("@tsparticles/plugin-emitters/lazy");
|
|
5
5
|
ensureEmittersPluginLoaded(e);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EmitterShapeBase } from "@tsparticles/plugin-emitters";
|
|
2
|
-
import { double, doublePI, getRandom, half, quarter } from "@tsparticles/engine";
|
|
3
|
-
const squareExp = 2;
|
|
2
|
+
import { double, doublePI, getRandom, half, quarter, squareExp, } from "@tsparticles/engine";
|
|
4
3
|
export class EmittersCircleShape extends EmitterShapeBase {
|
|
5
4
|
constructor(position, size, fill, options) {
|
|
6
5
|
super(position, size, fill, options);
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ensureEmittersPluginLoaded } from "@tsparticles/plugin-emitters";
|
|
2
2
|
import { EmittersCircleShapeGenerator } from "./EmittersCircleShapeGenerator.js";
|
|
3
3
|
export async function loadEmittersShapeCircle(engine) {
|
|
4
|
-
engine.checkVersion("4.
|
|
4
|
+
engine.checkVersion("4.2.0");
|
|
5
5
|
await engine.pluginManager.register((e) => {
|
|
6
6
|
ensureEmittersPluginLoaded(e);
|
|
7
7
|
e.pluginManager.addEmitterShapeGenerator?.("circle", new EmittersCircleShapeGenerator());
|
package/esm/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadEmittersShapeCircle(engine) {
|
|
2
|
-
engine.checkVersion("4.
|
|
2
|
+
engine.checkVersion("4.2.0");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { ensureEmittersPluginLoaded } = await import("@tsparticles/plugin-emitters/lazy");
|
|
5
5
|
ensureEmittersPluginLoaded(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-emitters-shape-circle",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "tsParticles emitters shape circle plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"./package.json": "./package.json"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
|
-
"@tsparticles/engine": "4.
|
|
110
|
-
"@tsparticles/plugin-emitters": "4.
|
|
109
|
+
"@tsparticles/engine": "4.2.0",
|
|
110
|
+
"@tsparticles/plugin-emitters": "4.2.0"
|
|
111
111
|
},
|
|
112
112
|
"publishConfig": {
|
|
113
113
|
"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.plugin.emitters.shape.circle.js","children":[{"name":"dist/browser","children":[{"uid":"
|
|
4933
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.plugin.emitters.shape.circle.js","children":[{"name":"dist/browser","children":[{"uid":"60befaef-1","name":"EmittersCircleShape.js"},{"uid":"60befaef-3","name":"EmittersCircleShapeGenerator.js"},{"uid":"60befaef-5","name":"index.js"},{"uid":"60befaef-7","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"60befaef-1":{"renderedLength":1547,"gzipLength":0,"brotliLength":0,"metaUid":"60befaef-0"},"60befaef-3":{"renderedLength":193,"gzipLength":0,"brotliLength":0,"metaUid":"60befaef-2"},"60befaef-5":{"renderedLength":321,"gzipLength":0,"brotliLength":0,"metaUid":"60befaef-4"},"60befaef-7":{"renderedLength":189,"gzipLength":0,"brotliLength":0,"metaUid":"60befaef-6"}},"nodeMetas":{"60befaef-0":{"id":"/dist/browser/EmittersCircleShape.js","moduleParts":{"tsparticles.plugin.emitters.shape.circle.js":"60befaef-1"},"imported":[{"uid":"60befaef-8"},{"uid":"60befaef-9"}],"importedBy":[{"uid":"60befaef-2"}]},"60befaef-2":{"id":"/dist/browser/EmittersCircleShapeGenerator.js","moduleParts":{"tsparticles.plugin.emitters.shape.circle.js":"60befaef-3"},"imported":[{"uid":"60befaef-0"}],"importedBy":[{"uid":"60befaef-4"}]},"60befaef-4":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.plugin.emitters.shape.circle.js":"60befaef-5"},"imported":[{"uid":"60befaef-8"},{"uid":"60befaef-2"}],"importedBy":[{"uid":"60befaef-6"}]},"60befaef-6":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.plugin.emitters.shape.circle.js":"60befaef-7"},"imported":[{"uid":"60befaef-4"}],"importedBy":[],"isEntry":true},"60befaef-8":{"id":"@tsparticles/plugin-emitters","moduleParts":{},"imported":[],"importedBy":[{"uid":"60befaef-4"},{"uid":"60befaef-0"}],"isExternal":true},"60befaef-9":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"60befaef-0"}],"isExternal":true}},"env":{"rollup":"4.62.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
4934
4934
|
|
|
4935
4935
|
const run = () => {
|
|
4936
4936
|
const width = window.innerWidth;
|
|
@@ -1,12 +1,11 @@
|
|
|
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
|
-
/* Emitters Shape v4.
|
|
2
|
+
/* Emitters Shape v4.2.0 */
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/plugin-emitters'), require('@tsparticles/engine')) :
|
|
5
5
|
typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/plugin-emitters', '@tsparticles/engine'], factory) :
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.plugins = global.__tsParticlesInternals.plugins || {}, global.__tsParticlesInternals.plugins.emittersShapes = global.__tsParticlesInternals.plugins.emittersShapes || {}, global.__tsParticlesInternals.plugins.emittersShapes.circle = global.__tsParticlesInternals.plugins.emittersShapes.circle || {}), global.__tsParticlesInternals.plugins.emitters, global.__tsParticlesInternals.engine));
|
|
7
7
|
})(this, (function (exports, pluginEmitters, engine) { 'use strict';
|
|
8
8
|
|
|
9
|
-
const squareExp = 2;
|
|
10
9
|
class EmittersCircleShape extends pluginEmitters.EmitterShapeBase {
|
|
11
10
|
constructor(position, size, fill, options) {
|
|
12
11
|
super(position, size, fill, options);
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
else {
|
|
29
28
|
return -theta;
|
|
30
29
|
}
|
|
31
|
-
}, radius = (x, y, theta) => (x * y) / Math.sqrt((y * Math.cos(theta)) ** squareExp + (x * Math.sin(theta)) ** squareExp), [a, b] = [size.width * engine.half, size.height * engine.half], randomTheta = generateTheta(a, b), maxRadius = radius(a, b, randomTheta), randomRadius = fill ? maxRadius * Math.sqrt(engine.getRandom()) : maxRadius;
|
|
30
|
+
}, radius = (x, y, theta) => (x * y) / Math.sqrt((y * Math.cos(theta)) ** engine.squareExp + (x * Math.sin(theta)) ** engine.squareExp), [a, b] = [size.width * engine.half, size.height * engine.half], randomTheta = generateTheta(a, b), maxRadius = radius(a, b, randomTheta), randomRadius = fill ? maxRadius * Math.sqrt(engine.getRandom()) : maxRadius;
|
|
32
31
|
return {
|
|
33
32
|
position: {
|
|
34
33
|
x: position.x + randomRadius * Math.cos(randomTheta),
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
async function loadEmittersShapeCircle(engine) {
|
|
48
|
-
engine.checkVersion("4.
|
|
47
|
+
engine.checkVersion("4.2.0");
|
|
49
48
|
await engine.pluginManager.register((e) => {
|
|
50
49
|
pluginEmitters.ensureEmittersPluginLoaded(e);
|
|
51
50
|
e.pluginManager.addEmitterShapeGenerator?.("circle", new EmittersCircleShapeGenerator());
|
|
@@ -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 s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/plugin-emitters"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/plugin-emitters","@tsparticles/engine"],s):s(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.plugins.emittersShapes.circle=t.__tsParticlesInternals.plugins.emittersShapes.circle||{}),t.__tsParticlesInternals.plugins.emitters,t.__tsParticlesInternals.engine)}(this,function(t,s,e){"use strict";class
|
|
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 s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/plugin-emitters"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/plugin-emitters","@tsparticles/engine"],s):s(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.plugins.emittersShapes.circle=t.__tsParticlesInternals.plugins.emittersShapes.circle||{}),t.__tsParticlesInternals.plugins.emitters,t.__tsParticlesInternals.engine)}(this,function(t,s,e){"use strict";class a extends s.EmitterShapeBase{constructor(t,s,e,a){super(t,s,e,a)}async init(){}randomPosition(){const t=this.size,s=this.fill,a=this.position,[n,r]=[t.width*e.half,t.height*e.half],l=((t,s)=>{const a=e.getRandom()*e.quarter,n=Math.atan(s/t*Math.tan(e.doublePI*a)),r=e.getRandom();return r<e.quarter?n:r<e.double*e.quarter?Math.PI-n:r<e.double*e.quarter+e.quarter?Math.PI+n:-n})(n,r),i=(P=l,(c=n)*(p=r)/Math.sqrt((p*Math.cos(P))**e.squareExp+(c*Math.sin(P))**e.squareExp)),_=s?i*Math.sqrt(e.getRandom()):i;var c,p,P;return{position:{x:a.x+_*Math.cos(l),y:a.y+_*Math.sin(l)}}}}class n{generate(t,s,e,n,r){return new a(s,e,n,r)}}async function r(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{s.ensureEmittersPluginLoaded(t),t.pluginManager.addEmitterShapeGenerator?.("circle",new n)})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadEmittersShapeCircle=r,t.loadEmittersShapeCircle=r}),Object.assign(globalThis.window||globalThis,{loadEmittersShapeCircle:(globalThis.__tsParticlesInternals.plugins.emittersShapes.circle||{}).loadEmittersShapeCircle}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|