@tsparticles/updater-wobble 4.0.0-beta.15 → 4.0.0-beta.16
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/index.js +1 -1
- package/browser/index.lazy.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.lazy.js +1 -1
- package/esm/index.js +1 -1
- package/esm/index.lazy.js +1 -1
- package/package.json +2 -2
- package/tsparticles.updater.wobble.js +2 -2
- package/tsparticles.updater.wobble.min.js +1 -1
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WobbleUpdater } from "./WobbleUpdater.js";
|
|
2
2
|
export async function loadWobbleUpdater(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
6
6
|
return Promise.resolve(new WobbleUpdater(container));
|
package/browser/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadWobbleUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
3
|
await engine.pluginManager.register(e => {
|
|
4
4
|
e.pluginManager.addParticleUpdater("wobble", async (container) => {
|
|
5
5
|
const { WobbleUpdater } = await import("./WobbleUpdater.js");
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WobbleUpdater } from "./WobbleUpdater.js";
|
|
2
2
|
export async function loadWobbleUpdater(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
6
6
|
return Promise.resolve(new WobbleUpdater(container));
|
package/cjs/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadWobbleUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
3
|
await engine.pluginManager.register(e => {
|
|
4
4
|
e.pluginManager.addParticleUpdater("wobble", async (container) => {
|
|
5
5
|
const { WobbleUpdater } = await import("./WobbleUpdater.js");
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WobbleUpdater } from "./WobbleUpdater.js";
|
|
2
2
|
export async function loadWobbleUpdater(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
6
6
|
return Promise.resolve(new WobbleUpdater(container));
|
package/esm/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadWobbleUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
3
|
await engine.pluginManager.register(e => {
|
|
4
4
|
e.pluginManager.addParticleUpdater("wobble", async (container) => {
|
|
5
5
|
const { WobbleUpdater } = await import("./WobbleUpdater.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/updater-wobble",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "tsParticles particles wobble 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.0-beta.
|
|
96
|
+
"@tsparticles/engine": "4.0.0-beta.16"
|
|
97
97
|
},
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
@@ -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.0-beta.
|
|
2
|
+
/* Updater v4.0.0-beta.16 */
|
|
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) :
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
async function loadWobbleUpdater(engine) {
|
|
123
|
-
engine.checkVersion("4.0.0-beta.
|
|
123
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
124
124
|
await engine.pluginManager.register(e => {
|
|
125
125
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
126
126
|
return Promise.resolve(new WobbleUpdater(container));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){e.__tsParticlesInternals=e.__tsParticlesInternals||{},e.__tsParticlesInternals.bundles=e.__tsParticlesInternals.bundles||{},e.__tsParticlesInternals.effects=e.__tsParticlesInternals.effects||{},e.__tsParticlesInternals.engine=e.__tsParticlesInternals.engine||{},e.__tsParticlesInternals.interactions=e.__tsParticlesInternals.interactions||{},e.__tsParticlesInternals.palettes=e.__tsParticlesInternals.palettes||{},e.__tsParticlesInternals.paths=e.__tsParticlesInternals.paths||{},e.__tsParticlesInternals.plugins=e.__tsParticlesInternals.plugins||{},e.__tsParticlesInternals.plugins=e.__tsParticlesInternals.plugins||{},e.__tsParticlesInternals.plugins.emittersShapes=e.__tsParticlesInternals.plugins.emittersShapes||{},e.__tsParticlesInternals.presets=e.__tsParticlesInternals.presets||{},e.__tsParticlesInternals.shapes=e.__tsParticlesInternals.shapes||{},e.__tsParticlesInternals.updaters=e.__tsParticlesInternals.updaters||{},e.__tsParticlesInternals.utils=e.__tsParticlesInternals.utils||{},e.__tsParticlesInternals.canvas=e.__tsParticlesInternals.canvas||{},e.__tsParticlesInternals.canvas=e.__tsParticlesInternals.canvas||{},e.__tsParticlesInternals.canvas.utils=e.__tsParticlesInternals.canvas.utils||{},e.__tsParticlesInternals.path=e.__tsParticlesInternals.path||{},e.__tsParticlesInternals.path=e.__tsParticlesInternals.path||{},e.__tsParticlesInternals.path.utils=e.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(e){return new Proxy(e,{get:function(e,s){return s in e||(e[s]={}),e[s]}})}:function(e){return e};e.__tsParticlesInternals.bundles=s(e.__tsParticlesInternals.bundles),e.__tsParticlesInternals.effects=s(e.__tsParticlesInternals.effects),e.__tsParticlesInternals.interactions=s(e.__tsParticlesInternals.interactions),e.__tsParticlesInternals.palettes=s(e.__tsParticlesInternals.palettes),e.__tsParticlesInternals.paths=s(e.__tsParticlesInternals.paths),e.__tsParticlesInternals.plugins=s(e.__tsParticlesInternals.plugins),e.__tsParticlesInternals.plugins.emittersShapes=s(e.__tsParticlesInternals.plugins.emittersShapes),e.__tsParticlesInternals.presets=s(e.__tsParticlesInternals.presets),e.__tsParticlesInternals.shapes=s(e.__tsParticlesInternals.shapes),e.__tsParticlesInternals.updaters=s(e.__tsParticlesInternals.updaters),e.__tsParticlesInternals.utils=s(e.__tsParticlesInternals.utils),e.__tsParticlesInternals.canvas=s(e.__tsParticlesInternals.canvas),e.__tsParticlesInternals.path=s(e.__tsParticlesInternals.path),e.tsparticlesInternalExports=e.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],s):s(((e="undefined"!=typeof globalThis?globalThis:e||self).__tsParticlesInternals=e.__tsParticlesInternals||{},e.__tsParticlesInternals.updaters=e.__tsParticlesInternals.updaters||{},e.__tsParticlesInternals.updaters.wobble=e.__tsParticlesInternals.updaters.wobble||{}),e.__tsParticlesInternals.engine)}(this,function(e,s){"use strict";class t{angle;move;constructor(){this.angle=50,this.move=10}load(e){s.isNull(e)||(void 0!==e.angle&&(this.angle=s.setRangeValue(e.angle)),void 0!==e.move&&(this.move=s.setRangeValue(e.move)))}}class n{distance;enable;speed;constructor(){this.distance=5,this.enable=!1,this.speed=new t}load(e){if(!s.isNull(e)&&(void 0!==e.distance&&(this.distance=s.setRangeValue(e.distance)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed))if(s.isNumber(e.speed))this.speed.load({angle:e.speed});else{const s=e.speed;"min"in s?this.speed.load({angle:s}):this.speed.load(e.speed)}}}class a{_container;constructor(e){this._container=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:s.getRandom()*s.doublePI,angleSpeed:s.getRangeValue(t.speed.angle)/360,moveSpeed:s.getRangeValue(t.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=s.getRangeValue(t?.distance??0)*this._container.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...s){e.wobble??=new n;for(const t of s)e.wobble.load(t?.wobble)}update(e,t){this.isEnabled(e)&&function(e,t,n){const{wobble:a}=t.options,{wobble:l}=t;if(!a?.enable||!l)return;const r=e.retina.reduceFactor,i=l.angleSpeed*n.factor*r,_=l.moveSpeed*n.factor*r*(t.retina.wobbleDistance??0)/(s.millisecondsToSeconds/60),c=s.doublePI,{position:o}=t;l.angle+=i,l.angle>c&&(l.angle-=c),o.x+=_*Math.cos(l.angle),o.y+=_*Math.abs(Math.sin(l.angle))}(this._container,e,t)}}async function l(e){e.checkVersion("4.0.0-beta.
|
|
1
|
+
!function(e){e.__tsParticlesInternals=e.__tsParticlesInternals||{},e.__tsParticlesInternals.bundles=e.__tsParticlesInternals.bundles||{},e.__tsParticlesInternals.effects=e.__tsParticlesInternals.effects||{},e.__tsParticlesInternals.engine=e.__tsParticlesInternals.engine||{},e.__tsParticlesInternals.interactions=e.__tsParticlesInternals.interactions||{},e.__tsParticlesInternals.palettes=e.__tsParticlesInternals.palettes||{},e.__tsParticlesInternals.paths=e.__tsParticlesInternals.paths||{},e.__tsParticlesInternals.plugins=e.__tsParticlesInternals.plugins||{},e.__tsParticlesInternals.plugins=e.__tsParticlesInternals.plugins||{},e.__tsParticlesInternals.plugins.emittersShapes=e.__tsParticlesInternals.plugins.emittersShapes||{},e.__tsParticlesInternals.presets=e.__tsParticlesInternals.presets||{},e.__tsParticlesInternals.shapes=e.__tsParticlesInternals.shapes||{},e.__tsParticlesInternals.updaters=e.__tsParticlesInternals.updaters||{},e.__tsParticlesInternals.utils=e.__tsParticlesInternals.utils||{},e.__tsParticlesInternals.canvas=e.__tsParticlesInternals.canvas||{},e.__tsParticlesInternals.canvas=e.__tsParticlesInternals.canvas||{},e.__tsParticlesInternals.canvas.utils=e.__tsParticlesInternals.canvas.utils||{},e.__tsParticlesInternals.path=e.__tsParticlesInternals.path||{},e.__tsParticlesInternals.path=e.__tsParticlesInternals.path||{},e.__tsParticlesInternals.path.utils=e.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(e){return new Proxy(e,{get:function(e,s){return s in e||(e[s]={}),e[s]}})}:function(e){return e};e.__tsParticlesInternals.bundles=s(e.__tsParticlesInternals.bundles),e.__tsParticlesInternals.effects=s(e.__tsParticlesInternals.effects),e.__tsParticlesInternals.interactions=s(e.__tsParticlesInternals.interactions),e.__tsParticlesInternals.palettes=s(e.__tsParticlesInternals.palettes),e.__tsParticlesInternals.paths=s(e.__tsParticlesInternals.paths),e.__tsParticlesInternals.plugins=s(e.__tsParticlesInternals.plugins),e.__tsParticlesInternals.plugins.emittersShapes=s(e.__tsParticlesInternals.plugins.emittersShapes),e.__tsParticlesInternals.presets=s(e.__tsParticlesInternals.presets),e.__tsParticlesInternals.shapes=s(e.__tsParticlesInternals.shapes),e.__tsParticlesInternals.updaters=s(e.__tsParticlesInternals.updaters),e.__tsParticlesInternals.utils=s(e.__tsParticlesInternals.utils),e.__tsParticlesInternals.canvas=s(e.__tsParticlesInternals.canvas),e.__tsParticlesInternals.path=s(e.__tsParticlesInternals.path),e.tsparticlesInternalExports=e.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],s):s(((e="undefined"!=typeof globalThis?globalThis:e||self).__tsParticlesInternals=e.__tsParticlesInternals||{},e.__tsParticlesInternals.updaters=e.__tsParticlesInternals.updaters||{},e.__tsParticlesInternals.updaters.wobble=e.__tsParticlesInternals.updaters.wobble||{}),e.__tsParticlesInternals.engine)}(this,function(e,s){"use strict";class t{angle;move;constructor(){this.angle=50,this.move=10}load(e){s.isNull(e)||(void 0!==e.angle&&(this.angle=s.setRangeValue(e.angle)),void 0!==e.move&&(this.move=s.setRangeValue(e.move)))}}class n{distance;enable;speed;constructor(){this.distance=5,this.enable=!1,this.speed=new t}load(e){if(!s.isNull(e)&&(void 0!==e.distance&&(this.distance=s.setRangeValue(e.distance)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed))if(s.isNumber(e.speed))this.speed.load({angle:e.speed});else{const s=e.speed;"min"in s?this.speed.load({angle:s}):this.speed.load(e.speed)}}}class a{_container;constructor(e){this._container=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:s.getRandom()*s.doublePI,angleSpeed:s.getRangeValue(t.speed.angle)/360,moveSpeed:s.getRangeValue(t.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=s.getRangeValue(t?.distance??0)*this._container.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...s){e.wobble??=new n;for(const t of s)e.wobble.load(t?.wobble)}update(e,t){this.isEnabled(e)&&function(e,t,n){const{wobble:a}=t.options,{wobble:l}=t;if(!a?.enable||!l)return;const r=e.retina.reduceFactor,i=l.angleSpeed*n.factor*r,_=l.moveSpeed*n.factor*r*(t.retina.wobbleDistance??0)/(s.millisecondsToSeconds/60),c=s.doublePI,{position:o}=t;l.angle+=i,l.angle>c&&(l.angle-=c),o.x+=_*Math.cos(l.angle),o.y+=_*Math.abs(Math.sin(l.angle))}(this._container,e,t)}}async function l(e){e.checkVersion("4.0.0-beta.16"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("wobble",e=>Promise.resolve(new a(e)))})}const r=globalThis;r.__tsParticlesInternals=r.__tsParticlesInternals??{},r.loadWobbleUpdater=l,e.loadWobbleUpdater=l}),Object.assign(globalThis.window||globalThis,{loadWobbleUpdater:(globalThis.__tsParticlesInternals.updaters.wobble||{}).loadWobbleUpdater}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|