@tsparticles/preset-fire 3.0.0-alpha.1 → 3.0.0-beta.1
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 +12 -52
- package/browser/bundle.js +1 -3
- package/browser/index.js +5 -15
- package/browser/package.json +1 -0
- package/cjs/bundle.js +1 -12
- package/cjs/index.js +5 -26
- package/cjs/package.json +1 -0
- package/esm/bundle.js +1 -3
- package/esm/index.js +5 -15
- package/esm/package.json +1 -0
- package/package.json +11 -15
- package/report.html +4 -4
- package/tsparticles.preset.fire.bundle.js +1978 -2185
- package/tsparticles.preset.fire.bundle.min.js +1 -1
- package/tsparticles.preset.fire.bundle.min.js.LICENSE.txt +1 -8
- package/tsparticles.preset.fire.js +29 -22
- package/tsparticles.preset.fire.min.js +1 -1
- package/tsparticles.preset.fire.min.js.LICENSE.txt +1 -8
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +1 -1
- package/umd/bundle.js +1 -3
- package/umd/index.js +6 -16
package/umd/index.js
CHANGED
|
@@ -4,29 +4,19 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/
|
|
7
|
+
define(["require", "exports", "@tsparticles/basic", "@tsparticles/interaction-external-push", "./options"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadFirePreset = void 0;
|
|
13
|
-
const
|
|
14
|
-
const shape_circle_1 = require("@tsparticles/shape-circle");
|
|
15
|
-
const updater_color_1 = require("@tsparticles/updater-color");
|
|
13
|
+
const basic_1 = require("@tsparticles/basic");
|
|
16
14
|
const interaction_external_push_1 = require("@tsparticles/interaction-external-push");
|
|
17
|
-
const updater_opacity_1 = require("@tsparticles/updater-opacity");
|
|
18
|
-
const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
|
|
19
|
-
const updater_size_1 = require("@tsparticles/updater-size");
|
|
20
15
|
const options_1 = require("./options");
|
|
21
|
-
async function loadFirePreset(engine) {
|
|
22
|
-
await (0,
|
|
23
|
-
await (0, interaction_external_push_1.loadExternalPushInteraction)(engine);
|
|
24
|
-
await (
|
|
25
|
-
await (0, updater_color_1.loadColorUpdater)(engine);
|
|
26
|
-
await (0, updater_opacity_1.loadOpacityUpdater)(engine);
|
|
27
|
-
await (0, updater_out_modes_1.loadOutModesUpdater)(engine);
|
|
28
|
-
await (0, updater_size_1.loadSizeUpdater)(engine);
|
|
29
|
-
await engine.addPreset("fire", options_1.options);
|
|
16
|
+
async function loadFirePreset(engine, refresh = true) {
|
|
17
|
+
await (0, basic_1.loadBasic)(engine, false);
|
|
18
|
+
await (0, interaction_external_push_1.loadExternalPushInteraction)(engine, false);
|
|
19
|
+
await engine.addPreset("fire", options_1.options, refresh);
|
|
30
20
|
}
|
|
31
21
|
exports.loadFirePreset = loadFirePreset;
|
|
32
22
|
});
|