@tsparticles/updater-opacity 3.0.0-beta.0 → 3.0.0-beta.2
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/README.md +1 -1
- package/browser/OpacityUpdater.js +1 -1
- package/browser/index.js +1 -1
- package/browser/package.json +1 -0
- package/cjs/OpacityUpdater.js +2 -2
- package/cjs/index.js +2 -2
- package/cjs/package.json +1 -0
- package/esm/OpacityUpdater.js +1 -1
- package/esm/index.js +1 -1
- package/esm/package.json +1 -0
- package/package.json +18 -6
- package/report.html +23 -5
- package/tsparticles.updater.opacity.js +1 -1
- package/tsparticles.updater.opacity.min.js.LICENSE.txt +1 -1
- package/umd/OpacityUpdater.js +3 -3
- package/umd/index.js +3 -3
|
@@ -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
|
-
* v3.0.0-beta.
|
|
7
|
+
* v3.0.0-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Opacity Updater v3.0.0-beta.
|
|
1
|
+
/*! tsParticles Opacity Updater v3.0.0-beta.2 by Matteo Bruni */
|
package/umd/OpacityUpdater.js
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/engine", "./Utils"], factory);
|
|
7
|
+
define(["require", "exports", "@tsparticles/engine", "./Utils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OpacityUpdater = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
|
-
const
|
|
14
|
+
const Utils_js_1 = require("./Utils.js");
|
|
15
15
|
class OpacityUpdater {
|
|
16
16
|
constructor(container) {
|
|
17
17
|
this.container = container;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
if (!this.isEnabled(particle)) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
(0,
|
|
50
|
+
(0, Utils_js_1.updateOpacity)(particle, delta);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
exports.OpacityUpdater = OpacityUpdater;
|
package/umd/index.js
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./OpacityUpdater"], factory);
|
|
7
|
+
define(["require", "exports", "./OpacityUpdater.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadOpacityUpdater = void 0;
|
|
13
|
-
const
|
|
13
|
+
const OpacityUpdater_js_1 = require("./OpacityUpdater.js");
|
|
14
14
|
async function loadOpacityUpdater(engine, refresh = true) {
|
|
15
|
-
await engine.addParticleUpdater("opacity", (container) => new
|
|
15
|
+
await engine.addParticleUpdater("opacity", (container) => new OpacityUpdater_js_1.OpacityUpdater(container), refresh);
|
|
16
16
|
}
|
|
17
17
|
exports.loadOpacityUpdater = loadOpacityUpdater;
|
|
18
18
|
});
|