@tsparticles/updater-gradient 4.0.0-alpha.4 → 4.0.0-alpha.8
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/652.min.js.LICENSE.txt +1 -1
- package/browser/GradientUpdater.js +2 -4
- package/browser/index.js +3 -3
- package/cjs/GradientUpdater.js +2 -4
- package/cjs/index.js +3 -3
- package/dist_browser_GradientUpdater_js.js +1 -1
- package/esm/GradientUpdater.js +2 -4
- package/esm/index.js +3 -3
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.updater.gradient.js +2 -2
- package/tsparticles.updater.gradient.min.js +1 -1
- package/tsparticles.updater.gradient.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/GradientUpdater.js +2 -4
- package/umd/index.js +3 -3
package/652.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Gradient Updater v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Gradient Updater v4.0.0-alpha.8 by Matteo Bruni */
|
|
@@ -98,8 +98,7 @@ export class GradientUpdater {
|
|
|
98
98
|
case StartValueType.random:
|
|
99
99
|
default:
|
|
100
100
|
addOpacity.value = randomInRangeValue(addOpacity);
|
|
101
|
-
addOpacity.status =
|
|
102
|
-
getRandom() >= half ? AnimationStatus.increasing : AnimationStatus.decreasing;
|
|
101
|
+
addOpacity.status = getRandom() >= half ? AnimationStatus.increasing : AnimationStatus.decreasing;
|
|
103
102
|
break;
|
|
104
103
|
}
|
|
105
104
|
}
|
|
@@ -110,8 +109,7 @@ export class GradientUpdater {
|
|
|
110
109
|
return (!particle.destroyed &&
|
|
111
110
|
!particle.spawning &&
|
|
112
111
|
(!!particle.gradient?.angle.enable ||
|
|
113
|
-
(particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ??
|
|
114
|
-
false)));
|
|
112
|
+
(particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ?? false)));
|
|
115
113
|
}
|
|
116
114
|
loadOptions(options, ...sources) {
|
|
117
115
|
for (const source of sources) {
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadGradientUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(e => {
|
|
1
|
+
export async function loadGradientUpdater(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(e => {
|
|
4
4
|
e.addParticleUpdater("gradient", async () => {
|
|
5
5
|
const { GradientUpdater } = await import("./GradientUpdater.js");
|
|
6
6
|
return new GradientUpdater(e);
|
package/cjs/GradientUpdater.js
CHANGED
|
@@ -98,8 +98,7 @@ export class GradientUpdater {
|
|
|
98
98
|
case StartValueType.random:
|
|
99
99
|
default:
|
|
100
100
|
addOpacity.value = randomInRangeValue(addOpacity);
|
|
101
|
-
addOpacity.status =
|
|
102
|
-
getRandom() >= half ? AnimationStatus.increasing : AnimationStatus.decreasing;
|
|
101
|
+
addOpacity.status = getRandom() >= half ? AnimationStatus.increasing : AnimationStatus.decreasing;
|
|
103
102
|
break;
|
|
104
103
|
}
|
|
105
104
|
}
|
|
@@ -110,8 +109,7 @@ export class GradientUpdater {
|
|
|
110
109
|
return (!particle.destroyed &&
|
|
111
110
|
!particle.spawning &&
|
|
112
111
|
(!!particle.gradient?.angle.enable ||
|
|
113
|
-
(particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ??
|
|
114
|
-
false)));
|
|
112
|
+
(particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ?? false)));
|
|
115
113
|
}
|
|
116
114
|
loadOptions(options, ...sources) {
|
|
117
115
|
for (const source of sources) {
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadGradientUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(e => {
|
|
1
|
+
export async function loadGradientUpdater(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(e => {
|
|
4
4
|
e.addParticleUpdater("gradient", async () => {
|
|
5
5
|
const { GradientUpdater } = await import("./GradientUpdater.js");
|
|
6
6
|
return new GradientUpdater(e);
|
package/esm/GradientUpdater.js
CHANGED
|
@@ -98,8 +98,7 @@ export class GradientUpdater {
|
|
|
98
98
|
case StartValueType.random:
|
|
99
99
|
default:
|
|
100
100
|
addOpacity.value = randomInRangeValue(addOpacity);
|
|
101
|
-
addOpacity.status =
|
|
102
|
-
getRandom() >= half ? AnimationStatus.increasing : AnimationStatus.decreasing;
|
|
101
|
+
addOpacity.status = getRandom() >= half ? AnimationStatus.increasing : AnimationStatus.decreasing;
|
|
103
102
|
break;
|
|
104
103
|
}
|
|
105
104
|
}
|
|
@@ -110,8 +109,7 @@ export class GradientUpdater {
|
|
|
110
109
|
return (!particle.destroyed &&
|
|
111
110
|
!particle.spawning &&
|
|
112
111
|
(!!particle.gradient?.angle.enable ||
|
|
113
|
-
(particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ??
|
|
114
|
-
false)));
|
|
112
|
+
(particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ?? false)));
|
|
115
113
|
}
|
|
116
114
|
loadOptions(options, ...sources) {
|
|
117
115
|
for (const source of sources) {
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadGradientUpdater(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(e => {
|
|
1
|
+
export async function loadGradientUpdater(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(e => {
|
|
4
4
|
e.addParticleUpdater("gradient", async () => {
|
|
5
5
|
const { GradientUpdater } = await import("./GradientUpdater.js");
|
|
6
6
|
return new GradientUpdater(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/updater-gradient",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles particles gradient updater",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"./package.json": "./package.json"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
104
|
+
"@tsparticles/engine": "4.0.0-alpha.8"
|
|
105
105
|
},
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|