tsparticles-preset-fireworks
Advanced tools
Comparing version 2.2.4 to 2.3.0
@@ -5,2 +5,3 @@ import { loadAngleUpdater } from "tsparticles-updater-angle"; | ||
import { loadColorUpdater } from "tsparticles-updater-color"; | ||
import { loadDestroyUpdater } from "tsparticles-updater-destroy"; | ||
import { loadEmittersPlugin } from "tsparticles-plugin-emitters"; | ||
@@ -21,2 +22,3 @@ import { loadLifeUpdater } from "tsparticles-updater-life"; | ||
await loadColorUpdater(engine); | ||
await loadDestroyUpdater(engine); | ||
await loadLifeUpdater(engine); | ||
@@ -23,0 +25,0 @@ await loadOpacityUpdater(engine); |
@@ -120,3 +120,3 @@ import { rgbToHsl, setRangeValue, stringToRgb, } from "tsparticles-engine"; | ||
destroy: { | ||
mode: "split" /* DestroyMode.split */, | ||
mode: "split", | ||
split: { | ||
@@ -123,0 +123,0 @@ count: 1, |
@@ -8,2 +8,3 @@ "use strict"; | ||
const tsparticles_updater_color_1 = require("tsparticles-updater-color"); | ||
const tsparticles_updater_destroy_1 = require("tsparticles-updater-destroy"); | ||
const tsparticles_plugin_emitters_1 = require("tsparticles-plugin-emitters"); | ||
@@ -24,2 +25,3 @@ const tsparticles_updater_life_1 = require("tsparticles-updater-life"); | ||
await (0, tsparticles_updater_color_1.loadColorUpdater)(engine); | ||
await (0, tsparticles_updater_destroy_1.loadDestroyUpdater)(engine); | ||
await (0, tsparticles_updater_life_1.loadLifeUpdater)(engine); | ||
@@ -26,0 +28,0 @@ await (0, tsparticles_updater_opacity_1.loadOpacityUpdater)(engine); |
@@ -5,2 +5,3 @@ import { loadAngleUpdater } from "tsparticles-updater-angle"; | ||
import { loadColorUpdater } from "tsparticles-updater-color"; | ||
import { loadDestroyUpdater } from "tsparticles-updater-destroy"; | ||
import { loadEmittersPlugin } from "tsparticles-plugin-emitters"; | ||
@@ -21,2 +22,3 @@ import { loadLifeUpdater } from "tsparticles-updater-life"; | ||
await loadColorUpdater(engine); | ||
await loadDestroyUpdater(engine); | ||
await loadLifeUpdater(engine); | ||
@@ -23,0 +25,0 @@ await loadOpacityUpdater(engine); |
{ | ||
"name": "tsparticles-preset-fireworks", | ||
"version": "2.2.4", | ||
"version": "2.3.0", | ||
"description": "tsParticles fireworks preset", | ||
@@ -86,15 +86,16 @@ "homepage": "https://particles.js.org", | ||
"dependencies": { | ||
"tsparticles-engine": "^2.2.4", | ||
"tsparticles-move-base": "^2.2.4", | ||
"tsparticles-plugin-emitters": "^2.2.4", | ||
"tsparticles-shape-circle": "^2.2.4", | ||
"tsparticles-shape-line": "^2.2.4", | ||
"tsparticles-updater-angle": "^2.2.4", | ||
"tsparticles-updater-color": "^2.2.4", | ||
"tsparticles-updater-life": "^2.2.4", | ||
"tsparticles-updater-opacity": "^2.2.4", | ||
"tsparticles-updater-out-modes": "^2.2.4", | ||
"tsparticles-updater-size": "^2.2.4", | ||
"tsparticles-updater-stroke-color": "^2.2.4" | ||
"tsparticles-engine": "^2.3.0", | ||
"tsparticles-move-base": "^2.3.0", | ||
"tsparticles-plugin-emitters": "^2.3.0", | ||
"tsparticles-shape-circle": "^2.3.0", | ||
"tsparticles-shape-line": "^2.3.0", | ||
"tsparticles-updater-angle": "^2.3.0", | ||
"tsparticles-updater-color": "^2.3.0", | ||
"tsparticles-updater-destroy": "^2.3.0", | ||
"tsparticles-updater-life": "^2.3.0", | ||
"tsparticles-updater-opacity": "^2.3.0", | ||
"tsparticles-updater-out-modes": "^2.3.0", | ||
"tsparticles-updater-size": "^2.3.0", | ||
"tsparticles-updater-stroke-color": "^2.3.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v2.2.4 | ||
* v2.3.0 | ||
*/ |
@@ -7,14 +7,14 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v2.2.4 | ||
* v2.3.0 | ||
*/ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("tsparticles-updater-angle"), require("tsparticles-move-base"), require("tsparticles-shape-circle"), require("tsparticles-updater-color"), require("tsparticles-plugin-emitters"), require("tsparticles-updater-life"), require("tsparticles-shape-line"), require("tsparticles-updater-opacity"), require("tsparticles-updater-out-modes"), require("tsparticles-updater-size"), require("tsparticles-engine")); | ||
module.exports = factory(require("tsparticles-updater-angle"), require("tsparticles-move-base"), require("tsparticles-shape-circle"), require("tsparticles-updater-color"), require("tsparticles-updater-destroy"), require("tsparticles-plugin-emitters"), require("tsparticles-updater-life"), require("tsparticles-shape-line"), require("tsparticles-updater-opacity"), require("tsparticles-updater-out-modes"), require("tsparticles-updater-size"), require("tsparticles-engine")); | ||
else if(typeof define === 'function' && define.amd) | ||
define(["tsparticles-updater-angle", "tsparticles-move-base", "tsparticles-shape-circle", "tsparticles-updater-color", "tsparticles-plugin-emitters", "tsparticles-updater-life", "tsparticles-shape-line", "tsparticles-updater-opacity", "tsparticles-updater-out-modes", "tsparticles-updater-size", "tsparticles-engine"], factory); | ||
define(["tsparticles-updater-angle", "tsparticles-move-base", "tsparticles-shape-circle", "tsparticles-updater-color", "tsparticles-updater-destroy", "tsparticles-plugin-emitters", "tsparticles-updater-life", "tsparticles-shape-line", "tsparticles-updater-opacity", "tsparticles-updater-out-modes", "tsparticles-updater-size", "tsparticles-engine"], factory); | ||
else { | ||
var a = typeof exports === 'object' ? factory(require("tsparticles-updater-angle"), require("tsparticles-move-base"), require("tsparticles-shape-circle"), require("tsparticles-updater-color"), require("tsparticles-plugin-emitters"), require("tsparticles-updater-life"), require("tsparticles-shape-line"), require("tsparticles-updater-opacity"), require("tsparticles-updater-out-modes"), require("tsparticles-updater-size"), require("tsparticles-engine")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]); | ||
var a = typeof exports === 'object' ? factory(require("tsparticles-updater-angle"), require("tsparticles-move-base"), require("tsparticles-shape-circle"), require("tsparticles-updater-color"), require("tsparticles-updater-destroy"), require("tsparticles-plugin-emitters"), require("tsparticles-updater-life"), require("tsparticles-shape-line"), require("tsparticles-updater-opacity"), require("tsparticles-updater-out-modes"), require("tsparticles-updater-size"), require("tsparticles-engine")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__919__, __WEBPACK_EXTERNAL_MODULE__941__, __WEBPACK_EXTERNAL_MODULE__841__, __WEBPACK_EXTERNAL_MODULE__949__, __WEBPACK_EXTERNAL_MODULE__489__, __WEBPACK_EXTERNAL_MODULE__45__, __WEBPACK_EXTERNAL_MODULE__838__, __WEBPACK_EXTERNAL_MODULE__364__, __WEBPACK_EXTERNAL_MODULE__328__, __WEBPACK_EXTERNAL_MODULE__818__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE__490__, __WEBPACK_EXTERNAL_MODULE__565__, __WEBPACK_EXTERNAL_MODULE__851__, __WEBPACK_EXTERNAL_MODULE__613__, __WEBPACK_EXTERNAL_MODULE__731__, __WEBPACK_EXTERNAL_MODULE__716__, __WEBPACK_EXTERNAL_MODULE__86__, __WEBPACK_EXTERNAL_MODULE__598__, __WEBPACK_EXTERNAL_MODULE__515__, __WEBPACK_EXTERNAL_MODULE__509__, __WEBPACK_EXTERNAL_MODULE__694__, __WEBPACK_EXTERNAL_MODULE__961__) { | ||
return /******/ (function() { // webpackBootstrap | ||
@@ -24,77 +24,84 @@ /******/ "use strict"; | ||
/***/ 818: | ||
/***/ 961: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__818__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__961__; | ||
/***/ }), | ||
/***/ 919: | ||
/***/ 565: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__919__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__565__; | ||
/***/ }), | ||
/***/ 949: | ||
/***/ 716: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__949__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__716__; | ||
/***/ }), | ||
/***/ 941: | ||
/***/ 851: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__941__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__851__; | ||
/***/ }), | ||
/***/ 45: | ||
/***/ 598: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__45__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__598__; | ||
/***/ }), | ||
/***/ 1: | ||
/***/ 490: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__1__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__490__; | ||
/***/ }), | ||
/***/ 841: | ||
/***/ 613: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__841__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__613__; | ||
/***/ }), | ||
/***/ 489: | ||
/***/ 731: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__489__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__731__; | ||
/***/ }), | ||
/***/ 838: | ||
/***/ 86: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__838__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__86__; | ||
/***/ }), | ||
/***/ 364: | ||
/***/ 515: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__364__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__515__; | ||
/***/ }), | ||
/***/ 328: | ||
/***/ 509: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__328__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__509__; | ||
/***/ }), | ||
/***/ 694: | ||
/***/ (function(module) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__694__; | ||
/***/ }) | ||
@@ -170,23 +177,25 @@ | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-angle","commonjs2":"tsparticles-updater-angle","amd":"tsparticles-updater-angle","root":"window"} | ||
var external_commonjs_tsparticles_updater_angle_commonjs2_tsparticles_updater_angle_amd_tsparticles_updater_angle_root_window_ = __webpack_require__(1); | ||
var external_commonjs_tsparticles_updater_angle_commonjs2_tsparticles_updater_angle_amd_tsparticles_updater_angle_root_window_ = __webpack_require__(490); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-move-base","commonjs2":"tsparticles-move-base","amd":"tsparticles-move-base","root":"window"} | ||
var external_commonjs_tsparticles_move_base_commonjs2_tsparticles_move_base_amd_tsparticles_move_base_root_window_ = __webpack_require__(919); | ||
var external_commonjs_tsparticles_move_base_commonjs2_tsparticles_move_base_amd_tsparticles_move_base_root_window_ = __webpack_require__(565); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-shape-circle","commonjs2":"tsparticles-shape-circle","amd":"tsparticles-shape-circle","root":"window"} | ||
var external_commonjs_tsparticles_shape_circle_commonjs2_tsparticles_shape_circle_amd_tsparticles_shape_circle_root_window_ = __webpack_require__(941); | ||
var external_commonjs_tsparticles_shape_circle_commonjs2_tsparticles_shape_circle_amd_tsparticles_shape_circle_root_window_ = __webpack_require__(851); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-color","commonjs2":"tsparticles-updater-color","amd":"tsparticles-updater-color","root":"window"} | ||
var external_commonjs_tsparticles_updater_color_commonjs2_tsparticles_updater_color_amd_tsparticles_updater_color_root_window_ = __webpack_require__(841); | ||
var external_commonjs_tsparticles_updater_color_commonjs2_tsparticles_updater_color_amd_tsparticles_updater_color_root_window_ = __webpack_require__(613); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-destroy","commonjs2":"tsparticles-updater-destroy","amd":"tsparticles-updater-destroy","root":"window"} | ||
var external_commonjs_tsparticles_updater_destroy_commonjs2_tsparticles_updater_destroy_amd_tsparticles_updater_destroy_root_window_ = __webpack_require__(731); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-emitters","commonjs2":"tsparticles-plugin-emitters","amd":"tsparticles-plugin-emitters","root":"window"} | ||
var external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_ = __webpack_require__(949); | ||
var external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_ = __webpack_require__(716); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-life","commonjs2":"tsparticles-updater-life","amd":"tsparticles-updater-life","root":"window"} | ||
var external_commonjs_tsparticles_updater_life_commonjs2_tsparticles_updater_life_amd_tsparticles_updater_life_root_window_ = __webpack_require__(489); | ||
var external_commonjs_tsparticles_updater_life_commonjs2_tsparticles_updater_life_amd_tsparticles_updater_life_root_window_ = __webpack_require__(86); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-shape-line","commonjs2":"tsparticles-shape-line","amd":"tsparticles-shape-line","root":"window"} | ||
var external_commonjs_tsparticles_shape_line_commonjs2_tsparticles_shape_line_amd_tsparticles_shape_line_root_window_ = __webpack_require__(45); | ||
var external_commonjs_tsparticles_shape_line_commonjs2_tsparticles_shape_line_amd_tsparticles_shape_line_root_window_ = __webpack_require__(598); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-opacity","commonjs2":"tsparticles-updater-opacity","amd":"tsparticles-updater-opacity","root":"window"} | ||
var external_commonjs_tsparticles_updater_opacity_commonjs2_tsparticles_updater_opacity_amd_tsparticles_updater_opacity_root_window_ = __webpack_require__(838); | ||
var external_commonjs_tsparticles_updater_opacity_commonjs2_tsparticles_updater_opacity_amd_tsparticles_updater_opacity_root_window_ = __webpack_require__(515); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-out-modes","commonjs2":"tsparticles-updater-out-modes","amd":"tsparticles-updater-out-modes","root":"window"} | ||
var external_commonjs_tsparticles_updater_out_modes_commonjs2_tsparticles_updater_out_modes_amd_tsparticles_updater_out_modes_root_window_ = __webpack_require__(364); | ||
var external_commonjs_tsparticles_updater_out_modes_commonjs2_tsparticles_updater_out_modes_amd_tsparticles_updater_out_modes_root_window_ = __webpack_require__(509); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-size","commonjs2":"tsparticles-updater-size","amd":"tsparticles-updater-size","root":"window"} | ||
var external_commonjs_tsparticles_updater_size_commonjs2_tsparticles_updater_size_amd_tsparticles_updater_size_root_window_ = __webpack_require__(328); | ||
var external_commonjs_tsparticles_updater_size_commonjs2_tsparticles_updater_size_amd_tsparticles_updater_size_root_window_ = __webpack_require__(694); | ||
// EXTERNAL MODULE: external {"commonjs":"tsparticles-engine","commonjs2":"tsparticles-engine","amd":"tsparticles-engine","root":"window"} | ||
var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(818); | ||
var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(961); | ||
;// CONCATENATED MODULE: ../../updaters/strokeColor/dist/esm/StrokeColorUpdater.js | ||
@@ -269,3 +278,3 @@ | ||
const container = this.container; | ||
particle.stroke = particle.options.stroke instanceof Array ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.itemFromArray)(particle.options.stroke, particle.id, particle.options.reduceDuplicates) : particle.options.stroke; | ||
particle.stroke = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.itemFromSingleOrMultiple)(particle.options.stroke, particle.id, particle.options.reduceDuplicates); | ||
particle.strokeWidth = particle.stroke.width * container.retina.pixelRatio; | ||
@@ -452,5 +461,3 @@ const strokeHslColor = (_a = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.rangeColorToHsl)(particle.stroke.color)) !== null && _a !== void 0 ? _a : particle.getFillColor(); | ||
destroy: { | ||
mode: "split" | ||
/* DestroyMode.split */ | ||
, | ||
mode: "split", | ||
split: { | ||
@@ -540,2 +547,3 @@ count: 1, | ||
async function loadFireworksPreset(engine) { | ||
@@ -548,2 +556,3 @@ await (0,external_commonjs_tsparticles_move_base_commonjs2_tsparticles_move_base_amd_tsparticles_move_base_root_window_.loadBaseMover)(engine); | ||
await (0,external_commonjs_tsparticles_updater_color_commonjs2_tsparticles_updater_color_amd_tsparticles_updater_color_root_window_.loadColorUpdater)(engine); | ||
await (0,external_commonjs_tsparticles_updater_destroy_commonjs2_tsparticles_updater_destroy_amd_tsparticles_updater_destroy_root_window_.loadDestroyUpdater)(engine); | ||
await (0,external_commonjs_tsparticles_updater_life_commonjs2_tsparticles_updater_life_amd_tsparticles_updater_life_root_window_.loadLifeUpdater)(engine); | ||
@@ -550,0 +559,0 @@ await (0,external_commonjs_tsparticles_updater_opacity_commonjs2_tsparticles_updater_opacity_amd_tsparticles_updater_opacity_root_window_.loadOpacityUpdater)(engine); |
/*! For license information please see tsparticles.preset.fireworks.min.js.LICENSE.txt */ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-updater-angle"),require("tsparticles-move-base"),require("tsparticles-shape-circle"),require("tsparticles-updater-color"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-shape-line"),require("tsparticles-updater-opacity"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-size"),require("tsparticles-engine"));else if("function"==typeof define&&define.amd)define(["tsparticles-updater-angle","tsparticles-move-base","tsparticles-shape-circle","tsparticles-updater-color","tsparticles-plugin-emitters","tsparticles-updater-life","tsparticles-shape-line","tsparticles-updater-opacity","tsparticles-updater-out-modes","tsparticles-updater-size","tsparticles-engine"],t);else{var o="object"==typeof exports?t(require("tsparticles-updater-angle"),require("tsparticles-move-base"),require("tsparticles-shape-circle"),require("tsparticles-updater-color"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-shape-line"),require("tsparticles-updater-opacity"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-size"),require("tsparticles-engine")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(this,(function(e,t,o,i,r,a,n,s,l,u,c){return function(){"use strict";var d={818:function(e){e.exports=c},919:function(e){e.exports=t},949:function(e){e.exports=r},941:function(e){e.exports=o},45:function(e){e.exports=n},1:function(t){t.exports=e},841:function(e){e.exports=i},489:function(e){e.exports=a},838:function(e){e.exports=s},364:function(e){e.exports=l},328:function(e){e.exports=u}},p={};function v(e){var t=p[e];if(void 0!==t)return t.exports;var o=p[e]={exports:{}};return d[e](o,o.exports,v),o.exports}v.d=function(e,t){for(var o in t)v.o(t,o)&&!v.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return function(){v.r(f),v.d(f,{loadFireworksPreset:function(){return w}});var e=v(1),t=v(919),o=v(941),i=v(841),r=v(949),a=v(489),n=v(45),s=v(838),l=v(364),u=v(328),c=v(818);function d(e,t,o,i,r){var a,n;const s=t;if(!s||!s.enable)return;const l=(0,c.randomInRange)(o.offset),u=(null!==(a=t.velocity)&&void 0!==a?a:0)*e.factor+3.6*l,d=null!==(n=t.decay)&&void 0!==n?n:1;r&&0!==s.status?(s.value-=u,s.value<0&&(s.status=0,s.value+=s.value)):(s.value+=u,r&&s.value>i&&(s.status=1,s.value-=s.value%i)),s.velocity&&1!==d&&(s.velocity*=d),s.value>i&&(s.value%=i)}class p{constructor(e){this.container=e}init(e){var t,o;const i=this.container;e.stroke=e.options.stroke instanceof Array?(0,c.itemFromArray)(e.options.stroke,e.id,e.options.reduceDuplicates):e.options.stroke,e.strokeWidth=e.stroke.width*i.retina.pixelRatio;const r=null!==(t=(0,c.rangeColorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();r&&(e.strokeColor=(0,c.getHslAnimationFromHsl)(r,null===(o=e.stroke.color)||void 0===o?void 0:o.animation,i.retina.reduceFactor))}isEnabled(e){var t,o,i,r;const a=null===(t=e.stroke)||void 0===t?void 0:t.color;return!e.destroyed&&!e.spawning&&!!a&&(void 0!==(null===(o=e.strokeColor)||void 0===o?void 0:o.h.value)&&a.animation.h.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.s.value)&&a.animation.s.enable||void 0!==(null===(r=e.strokeColor)||void 0===r?void 0:r.l.value)&&a.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var o,i,r,a,n,s,l,u,c,p;if(!(null===(o=e.stroke)||void 0===o?void 0:o.color))return;const v=e.stroke.color.animation,f=null!==(r=null===(i=e.strokeColor)||void 0===i?void 0:i.h)&&void 0!==r?r:null===(a=e.color)||void 0===a?void 0:a.h;f&&d(t,f,v.h,360,!1);const m=null!==(s=null===(n=e.strokeColor)||void 0===n?void 0:n.s)&&void 0!==s?s:null===(l=e.color)||void 0===l?void 0:l.s;m&&d(t,m,v.s,100,!0);const y=null!==(c=null===(u=e.strokeColor)||void 0===u?void 0:u.l)&&void 0!==c?c:null===(p=e.color)||void 0===p?void 0:p.l;y&&d(t,y,v.l,100,!0)}(e,t)}}const m=(e,t,o)=>{const i=e.max>o?e.max-o:0;let r=(0,c.setRangeValue)(e);i&&(r=(0,c.setRangeValue)(e.min-i,o));const a=e.min<t?e.min:0;return a&&(r=(0,c.setRangeValue)(0,e.max+a)),r},y={detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:"top",life:{count:0,duration:.1,delay:.1},rate:{delay:.15,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",split:{count:1,factor:{value:.333333},rate:{value:100},particles:["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"].map((e=>{const t=(0,c.stringToRgb)(e);if(!t)return;const o=(0,c.rgbToHsl)(t),i=m({min:o.s-20,max:o.s+20},0,100),r=m({min:o.l-20,max:o.l+20},0,100);return{color:{value:{h:o.h,s:i,l:r}},stroke:{width:0},number:{value:0},collisions:{enable:!1},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:"max",destroy:"min"}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:"min",destroy:"none"}},life:{count:1,duration:{value:{min:1,max:2}}},move:{decay:.05,enable:!0,gravity:{enable:!0,inverse:!1,acceleration:5},speed:{min:5,max:10},direction:"none",outModes:"destroy"}}})).filter((e=>void 0!==e))}},life:{count:1},shape:{type:"line"},size:{value:{min:.1,max:50},animation:{enable:!0,sync:!0,speed:90,startValue:"max",destroy:"min"}},stroke:{color:{value:"#ffffff"},width:1},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:"destroy",top:"none"},trail:{fillColor:"#000",enable:!0,length:10}}}};async function w(c){await(0,t.loadBaseMover)(c),await(0,r.loadEmittersPlugin)(c),await(0,o.loadCircleShape)(c),await(0,n.loadLineShape)(c),await(0,e.loadAngleUpdater)(c),await(0,i.loadColorUpdater)(c),await(0,a.loadLifeUpdater)(c),await(0,s.loadOpacityUpdater)(c),await(0,l.loadOutModesUpdater)(c),await(0,u.loadSizeUpdater)(c),await async function(e){await e.addParticleUpdater("strokeColor",(e=>new p(e)))}(c),await c.addPreset("fireworks",y)}}(),f}()})); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-updater-angle"),require("tsparticles-move-base"),require("tsparticles-shape-circle"),require("tsparticles-updater-color"),require("tsparticles-updater-destroy"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-shape-line"),require("tsparticles-updater-opacity"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-size"),require("tsparticles-engine"));else if("function"==typeof define&&define.amd)define(["tsparticles-updater-angle","tsparticles-move-base","tsparticles-shape-circle","tsparticles-updater-color","tsparticles-updater-destroy","tsparticles-plugin-emitters","tsparticles-updater-life","tsparticles-shape-line","tsparticles-updater-opacity","tsparticles-updater-out-modes","tsparticles-updater-size","tsparticles-engine"],t);else{var o="object"==typeof exports?t(require("tsparticles-updater-angle"),require("tsparticles-move-base"),require("tsparticles-shape-circle"),require("tsparticles-updater-color"),require("tsparticles-updater-destroy"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-shape-line"),require("tsparticles-updater-opacity"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-size"),require("tsparticles-engine")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(this,(function(e,t,o,r,i,a,n,s,l,u,c,d){return function(){"use strict";var p={961:function(e){e.exports=d},565:function(e){e.exports=t},716:function(e){e.exports=a},851:function(e){e.exports=o},598:function(e){e.exports=s},490:function(t){t.exports=e},613:function(e){e.exports=r},731:function(e){e.exports=i},86:function(e){e.exports=n},515:function(e){e.exports=l},509:function(e){e.exports=u},694:function(e){e.exports=c}},v={};function f(e){var t=v[e];if(void 0!==t)return t.exports;var o=v[e]={exports:{}};return p[e](o,o.exports,f),o.exports}f.d=function(e,t){for(var o in t)f.o(t,o)&&!f.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};return function(){f.r(m),f.d(m,{loadFireworksPreset:function(){return x}});var e=f(490),t=f(565),o=f(851),r=f(613),i=f(731),a=f(716),n=f(86),s=f(598),l=f(515),u=f(509),c=f(694),d=f(961);function p(e,t,o,r,i){var a,n;const s=t;if(!s||!s.enable)return;const l=(0,d.randomInRange)(o.offset),u=(null!==(a=t.velocity)&&void 0!==a?a:0)*e.factor+3.6*l,c=null!==(n=t.decay)&&void 0!==n?n:1;i&&0!==s.status?(s.value-=u,s.value<0&&(s.status=0,s.value+=s.value)):(s.value+=u,i&&s.value>r&&(s.status=1,s.value-=s.value%r)),s.velocity&&1!==c&&(s.velocity*=c),s.value>r&&(s.value%=r)}class v{constructor(e){this.container=e}init(e){var t,o;const r=this.container;e.stroke=(0,d.itemFromSingleOrMultiple)(e.options.stroke,e.id,e.options.reduceDuplicates),e.strokeWidth=e.stroke.width*r.retina.pixelRatio;const i=null!==(t=(0,d.rangeColorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();i&&(e.strokeColor=(0,d.getHslAnimationFromHsl)(i,null===(o=e.stroke.color)||void 0===o?void 0:o.animation,r.retina.reduceFactor))}isEnabled(e){var t,o,r,i;const a=null===(t=e.stroke)||void 0===t?void 0:t.color;return!e.destroyed&&!e.spawning&&!!a&&(void 0!==(null===(o=e.strokeColor)||void 0===o?void 0:o.h.value)&&a.animation.h.enable||void 0!==(null===(r=e.strokeColor)||void 0===r?void 0:r.s.value)&&a.animation.s.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.l.value)&&a.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var o,r,i,a,n,s,l,u,c,d;if(!(null===(o=e.stroke)||void 0===o?void 0:o.color))return;const v=e.stroke.color.animation,f=null!==(i=null===(r=e.strokeColor)||void 0===r?void 0:r.h)&&void 0!==i?i:null===(a=e.color)||void 0===a?void 0:a.h;f&&p(t,f,v.h,360,!1);const m=null!==(s=null===(n=e.strokeColor)||void 0===n?void 0:n.s)&&void 0!==s?s:null===(l=e.color)||void 0===l?void 0:l.s;m&&p(t,m,v.s,100,!0);const y=null!==(c=null===(u=e.strokeColor)||void 0===u?void 0:u.l)&&void 0!==c?c:null===(d=e.color)||void 0===d?void 0:d.l;y&&p(t,y,v.l,100,!0)}(e,t)}}const y=(e,t,o)=>{const r=e.max>o?e.max-o:0;let i=(0,d.setRangeValue)(e);r&&(i=(0,d.setRangeValue)(e.min-r,o));const a=e.min<t?e.min:0;return a&&(i=(0,d.setRangeValue)(0,e.max+a)),i},w={detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:"top",life:{count:0,duration:.1,delay:.1},rate:{delay:.15,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",split:{count:1,factor:{value:.333333},rate:{value:100},particles:["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"].map((e=>{const t=(0,d.stringToRgb)(e);if(!t)return;const o=(0,d.rgbToHsl)(t),r=y({min:o.s-20,max:o.s+20},0,100),i=y({min:o.l-20,max:o.l+20},0,100);return{color:{value:{h:o.h,s:r,l:i}},stroke:{width:0},number:{value:0},collisions:{enable:!1},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:"max",destroy:"min"}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:"min",destroy:"none"}},life:{count:1,duration:{value:{min:1,max:2}}},move:{decay:.05,enable:!0,gravity:{enable:!0,inverse:!1,acceleration:5},speed:{min:5,max:10},direction:"none",outModes:"destroy"}}})).filter((e=>void 0!==e))}},life:{count:1},shape:{type:"line"},size:{value:{min:.1,max:50},animation:{enable:!0,sync:!0,speed:90,startValue:"max",destroy:"min"}},stroke:{color:{value:"#ffffff"},width:1},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:"destroy",top:"none"},trail:{fillColor:"#000",enable:!0,length:10}}}};async function x(d){await(0,t.loadBaseMover)(d),await(0,a.loadEmittersPlugin)(d),await(0,o.loadCircleShape)(d),await(0,s.loadLineShape)(d),await(0,e.loadAngleUpdater)(d),await(0,r.loadColorUpdater)(d),await(0,i.loadDestroyUpdater)(d),await(0,n.loadLifeUpdater)(d),await(0,l.loadOpacityUpdater)(d),await(0,u.loadOutModesUpdater)(d),await(0,c.loadSizeUpdater)(d),await async function(e){await e.addParticleUpdater("strokeColor",(e=>new v(e)))}(d),await d.addPreset("fireworks",w)}}(),m}()})); |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v2.2.4 | ||
* v2.3.0 | ||
*/ |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "tsparticles-updater-angle", "tsparticles-move-base", "tsparticles-shape-circle", "tsparticles-updater-color", "tsparticles-plugin-emitters", "tsparticles-updater-life", "tsparticles-shape-line", "tsparticles-updater-opacity", "tsparticles-updater-out-modes", "tsparticles-updater-size", "tsparticles-updater-stroke-color", "./options"], factory); | ||
define(["require", "exports", "tsparticles-updater-angle", "tsparticles-move-base", "tsparticles-shape-circle", "tsparticles-updater-color", "tsparticles-updater-destroy", "tsparticles-plugin-emitters", "tsparticles-updater-life", "tsparticles-shape-line", "tsparticles-updater-opacity", "tsparticles-updater-out-modes", "tsparticles-updater-size", "tsparticles-updater-stroke-color", "./options"], factory); | ||
} | ||
@@ -18,2 +18,3 @@ })(function (require, exports) { | ||
const tsparticles_updater_color_1 = require("tsparticles-updater-color"); | ||
const tsparticles_updater_destroy_1 = require("tsparticles-updater-destroy"); | ||
const tsparticles_plugin_emitters_1 = require("tsparticles-plugin-emitters"); | ||
@@ -34,2 +35,3 @@ const tsparticles_updater_life_1 = require("tsparticles-updater-life"); | ||
await (0, tsparticles_updater_color_1.loadColorUpdater)(engine); | ||
await (0, tsparticles_updater_destroy_1.loadDestroyUpdater)(engine); | ||
await (0, tsparticles_updater_life_1.loadLifeUpdater)(engine); | ||
@@ -36,0 +38,0 @@ await (0, tsparticles_updater_opacity_1.loadOpacityUpdater)(engine); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
726682
13
8824
+ Addedtsparticles-updater-destroy@2.12.0(transitive)
Updatedtsparticles-engine@^2.3.0
Updatedtsparticles-move-base@^2.3.0