@tsparticles/preset-firefly 3.0.0-alpha.1 → 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/umd/bundle.js CHANGED
@@ -14,7 +14,5 @@
14
14
  Object.defineProperty(exports, "loadFireflyPreset", { enumerable: true, get: function () { return _1.loadFireflyPreset; } });
15
15
  const engine_1 = require("@tsparticles/engine");
16
16
  Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
17
- (async () => {
18
- await (0, _1.loadFireflyPreset)(engine_1.tsParticles);
19
- })();
17
+ (0, _1.loadFireflyPreset)(engine_1.tsParticles);
20
18
  });
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/move-base", "@tsparticles/shape-circle", "@tsparticles/updater-color", "@tsparticles/interaction-external-trail", "@tsparticles/updater-life", "@tsparticles/updater-opacity", "@tsparticles/updater-size", "./options"], factory);
7
+ define(["require", "exports", "@tsparticles/basic", "@tsparticles/interaction-external-trail", "./options"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.loadFireflyPreset = void 0;
13
- const move_base_1 = require("@tsparticles/move-base");
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_trail_1 = require("@tsparticles/interaction-external-trail");
17
- const updater_life_1 = require("@tsparticles/updater-life");
18
- const updater_opacity_1 = require("@tsparticles/updater-opacity");
19
- const updater_size_1 = require("@tsparticles/updater-size");
20
15
  const options_1 = require("./options");
21
- async function loadFireflyPreset(engine) {
22
- await (0, move_base_1.loadBaseMover)(engine);
23
- await (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine);
24
- await (0, shape_circle_1.loadCircleShape)(engine);
25
- await (0, updater_color_1.loadColorUpdater)(engine);
26
- await (0, updater_life_1.loadLifeUpdater)(engine);
27
- await (0, updater_opacity_1.loadOpacityUpdater)(engine);
28
- await (0, updater_size_1.loadSizeUpdater)(engine);
29
- await engine.addPreset("firefly", options_1.options);
16
+ async function loadFireflyPreset(engine, refresh = true) {
17
+ await (0, basic_1.loadBasic)(engine, false);
18
+ await (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine, false);
19
+ await engine.addPreset("firefly", options_1.options, refresh);
30
20
  }
31
21
  exports.loadFireflyPreset = loadFireflyPreset;
32
22
  });