@tsparticles/plugin-easing-quad 4.0.0-alpha.3 → 4.0.0-alpha.5

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/628.min.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 628.min.js.LICENSE.txt */
2
+ (this.webpackChunk_tsparticles_plugin_easing_quad=this.webpackChunk_tsparticles_plugin_easing_quad||[]).push([[628],{628(s,a,e){e.d(a,{easingsFunctions:()=>i});var n=e(303);const i=new Map;i.set(n.EasingType.easeInQuad,(s=>s**2)),i.set(n.EasingType.easeOutQuad,(s=>1-(1-s)**2)),i.set(n.EasingType.easeInOutQuad,(s=>s<.5?2*s**2:1-(-2*s+2)**2/2))}}]);
@@ -0,0 +1 @@
1
+ /*! tsParticles Easing Quad Plugin v4.0.0-alpha.5 by Matteo Bruni */
@@ -0,0 +1,6 @@
1
+ import { EasingType } from "@tsparticles/engine";
2
+ const easingsFunctions = new Map();
3
+ easingsFunctions.set(EasingType.easeInQuad, value => value ** 2);
4
+ easingsFunctions.set(EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
5
+ easingsFunctions.set(EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
6
+ export { easingsFunctions };
package/browser/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { EasingType } from "@tsparticles/engine";
2
- export function loadEasingQuadPlugin(engine) {
3
- engine.checkVersion("4.0.0-alpha.3");
4
- engine.register(e => {
5
- e.addEasing(EasingType.easeInQuad, value => value ** 2);
6
- e.addEasing(EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
7
- e.addEasing(EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
1
+ export async function loadEasingQuadPlugin(engine) {
2
+ engine.checkVersion("4.0.0-alpha.5");
3
+ await engine.register(async (e) => {
4
+ const { easingsFunctions } = await import("./easingsFunctions.js");
5
+ for (const [easing, easingFn] of easingsFunctions) {
6
+ e.addEasing(easing, easingFn);
7
+ }
8
8
  });
9
9
  }
@@ -0,0 +1,6 @@
1
+ import { EasingType } from "@tsparticles/engine";
2
+ const easingsFunctions = new Map();
3
+ easingsFunctions.set(EasingType.easeInQuad, value => value ** 2);
4
+ easingsFunctions.set(EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
5
+ easingsFunctions.set(EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
6
+ export { easingsFunctions };
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { EasingType } from "@tsparticles/engine";
2
- export function loadEasingQuadPlugin(engine) {
3
- engine.checkVersion("4.0.0-alpha.3");
4
- engine.register(e => {
5
- e.addEasing(EasingType.easeInQuad, value => value ** 2);
6
- e.addEasing(EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
7
- e.addEasing(EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
1
+ export async function loadEasingQuadPlugin(engine) {
2
+ engine.checkVersion("4.0.0-alpha.5");
3
+ await engine.register(async (e) => {
4
+ const { easingsFunctions } = await import("./easingsFunctions.js");
5
+ for (const [easing, easingFn] of easingsFunctions) {
6
+ e.addEasing(easing, easingFn);
7
+ }
8
8
  });
9
9
  }
@@ -0,0 +1,30 @@
1
+ /*!
2
+ * Author : Matteo Bruni
3
+ * MIT license: https://opensource.org/licenses/MIT
4
+ * Demo / Generator : https://particles.js.org/
5
+ * GitHub : https://www.github.com/matteobruni/tsparticles
6
+ * How to use? : Check the GitHub README
7
+ * v4.0.0-alpha.5
8
+ */
9
+ "use strict";
10
+ /*
11
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
+ * This devtool is neither made for production nor for readable output files.
13
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
14
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
+ * or disable the default devtool with "devtool: false".
16
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
+ */
18
+ (this["webpackChunk_tsparticles_plugin_easing_quad"] = this["webpackChunk_tsparticles_plugin_easing_quad"] || []).push([["dist_browser_easingsFunctions_js"],{
19
+
20
+ /***/ "./dist/browser/easingsFunctions.js"
21
+ /*!******************************************!*\
22
+ !*** ./dist/browser/easingsFunctions.js ***!
23
+ \******************************************/
24
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
+
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ easingsFunctions: () => (/* binding */ easingsFunctions)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nconst easingsFunctions = new Map();\neasingsFunctions.set(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInQuad, value => value ** 2);\neasingsFunctions.set(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);\neasingsFunctions.set(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInOutQuad, value => value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2);\n\n\n//# sourceURL=webpack://@tsparticles/plugin-easing-quad/./dist/browser/easingsFunctions.js?\n}");
27
+
28
+ /***/ }
29
+
30
+ }]);
@@ -0,0 +1,6 @@
1
+ import { EasingType } from "@tsparticles/engine";
2
+ const easingsFunctions = new Map();
3
+ easingsFunctions.set(EasingType.easeInQuad, value => value ** 2);
4
+ easingsFunctions.set(EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
5
+ easingsFunctions.set(EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
6
+ export { easingsFunctions };
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { EasingType } from "@tsparticles/engine";
2
- export function loadEasingQuadPlugin(engine) {
3
- engine.checkVersion("4.0.0-alpha.3");
4
- engine.register(e => {
5
- e.addEasing(EasingType.easeInQuad, value => value ** 2);
6
- e.addEasing(EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
7
- e.addEasing(EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
1
+ export async function loadEasingQuadPlugin(engine) {
2
+ engine.checkVersion("4.0.0-alpha.5");
3
+ await engine.register(async (e) => {
4
+ const { easingsFunctions } = await import("./easingsFunctions.js");
5
+ for (const [easing, easingFn] of easingsFunctions) {
6
+ e.addEasing(easing, easingFn);
7
+ }
8
8
  });
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/plugin-easing-quad",
3
- "version": "4.0.0-alpha.3",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "tsParticles easing quad plugin",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -100,7 +100,7 @@
100
100
  "./package.json": "./package.json"
101
101
  },
102
102
  "dependencies": {
103
- "@tsparticles/engine": "4.0.0-alpha.3"
103
+ "@tsparticles/engine": "4.0.0-alpha.5"
104
104
  },
105
105
  "publishConfig": {
106
106
  "access": "public"
package/report.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>@tsparticles/plugin-easing-quad [10 Jan 2026 at 19:19]</title>
6
+ <title>@tsparticles/plugin-easing-quad [21 Jan 2026 at 18:53]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
@@ -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
- * v4.0.0-alpha.3
7
+ * v4.0.0-alpha.5
8
8
  */
9
9
  /*
10
10
  * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
@@ -34,7 +34,7 @@ return /******/ (() => { // webpackBootstrap
34
34
  \*******************************/
35
35
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
36
36
 
37
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEasingQuadPlugin: () => (/* binding */ loadEasingQuadPlugin)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nfunction loadEasingQuadPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.3\");\n engine.register(e => {\n e.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInQuad, value => value ** 2);\n e.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);\n e.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInOutQuad, value => value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2);\n });\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-easing-quad/./dist/browser/index.js?\n}");
37
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEasingQuadPlugin: () => (/* binding */ loadEasingQuadPlugin)\n/* harmony export */ });\nasync function loadEasingQuadPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async e => {\n const {\n easingsFunctions\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_easingsFunctions_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./easingsFunctions.js */ \"./dist/browser/easingsFunctions.js\"));\n for (const [easing, easingFn] of easingsFunctions) {\n e.addEasing(easing, easingFn);\n }\n });\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-easing-quad/./dist/browser/index.js?\n}");
38
38
 
39
39
  /***/ },
40
40
 
@@ -80,6 +80,9 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
80
80
  /******/ return module.exports;
81
81
  /******/ }
82
82
  /******/
83
+ /******/ // expose the modules object (__webpack_modules__)
84
+ /******/ __webpack_require__.m = __webpack_modules__;
85
+ /******/
83
86
  /************************************************************************/
84
87
  /******/ /* webpack/runtime/define property getters */
85
88
  /******/ (() => {
@@ -93,11 +96,78 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
93
96
  /******/ };
94
97
  /******/ })();
95
98
  /******/
99
+ /******/ /* webpack/runtime/ensure chunk */
100
+ /******/ (() => {
101
+ /******/ __webpack_require__.f = {};
102
+ /******/ // This file contains only the entry chunk.
103
+ /******/ // The chunk loading function for additional chunks
104
+ /******/ __webpack_require__.e = (chunkId) => {
105
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
106
+ /******/ __webpack_require__.f[key](chunkId, promises);
107
+ /******/ return promises;
108
+ /******/ }, []));
109
+ /******/ };
110
+ /******/ })();
111
+ /******/
112
+ /******/ /* webpack/runtime/get javascript chunk filename */
113
+ /******/ (() => {
114
+ /******/ // This function allow to reference async chunks
115
+ /******/ __webpack_require__.u = (chunkId) => {
116
+ /******/ // return url for filenames based on template
117
+ /******/ return "" + chunkId + ".js";
118
+ /******/ };
119
+ /******/ })();
120
+ /******/
96
121
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
97
122
  /******/ (() => {
98
123
  /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
99
124
  /******/ })();
100
125
  /******/
126
+ /******/ /* webpack/runtime/load script */
127
+ /******/ (() => {
128
+ /******/ var inProgress = {};
129
+ /******/ var dataWebpackPrefix = "@tsparticles/plugin-easing-quad:";
130
+ /******/ // loadScript function to load a script via script tag
131
+ /******/ __webpack_require__.l = (url, done, key, chunkId) => {
132
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
133
+ /******/ var script, needAttach;
134
+ /******/ if(key !== undefined) {
135
+ /******/ var scripts = document.getElementsByTagName("script");
136
+ /******/ for(var i = 0; i < scripts.length; i++) {
137
+ /******/ var s = scripts[i];
138
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
139
+ /******/ }
140
+ /******/ }
141
+ /******/ if(!script) {
142
+ /******/ needAttach = true;
143
+ /******/ script = document.createElement('script');
144
+ /******/
145
+ /******/ script.charset = 'utf-8';
146
+ /******/ if (__webpack_require__.nc) {
147
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
148
+ /******/ }
149
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
150
+ /******/
151
+ /******/ script.src = url;
152
+ /******/ }
153
+ /******/ inProgress[url] = [done];
154
+ /******/ var onScriptComplete = (prev, event) => {
155
+ /******/ // avoid mem leaks in IE.
156
+ /******/ script.onerror = script.onload = null;
157
+ /******/ clearTimeout(timeout);
158
+ /******/ var doneFns = inProgress[url];
159
+ /******/ delete inProgress[url];
160
+ /******/ script.parentNode && script.parentNode.removeChild(script);
161
+ /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
162
+ /******/ if(prev) return prev(event);
163
+ /******/ }
164
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
165
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
166
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
167
+ /******/ needAttach && document.head.appendChild(script);
168
+ /******/ };
169
+ /******/ })();
170
+ /******/
101
171
  /******/ /* webpack/runtime/make namespace object */
102
172
  /******/ (() => {
103
173
  /******/ // define __esModule on exports
@@ -109,6 +179,119 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
109
179
  /******/ };
110
180
  /******/ })();
111
181
  /******/
182
+ /******/ /* webpack/runtime/publicPath */
183
+ /******/ (() => {
184
+ /******/ var scriptUrl;
185
+ /******/ if (globalThis.importScripts) scriptUrl = globalThis.location + "";
186
+ /******/ var document = globalThis.document;
187
+ /******/ if (!scriptUrl && document) {
188
+ /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
189
+ /******/ scriptUrl = document.currentScript.src;
190
+ /******/ if (!scriptUrl) {
191
+ /******/ var scripts = document.getElementsByTagName("script");
192
+ /******/ if(scripts.length) {
193
+ /******/ var i = scripts.length - 1;
194
+ /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
195
+ /******/ }
196
+ /******/ }
197
+ /******/ }
198
+ /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
199
+ /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
200
+ /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
201
+ /******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
202
+ /******/ __webpack_require__.p = scriptUrl;
203
+ /******/ })();
204
+ /******/
205
+ /******/ /* webpack/runtime/jsonp chunk loading */
206
+ /******/ (() => {
207
+ /******/ // no baseURI
208
+ /******/
209
+ /******/ // object to store loaded and loading chunks
210
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
211
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
212
+ /******/ var installedChunks = {
213
+ /******/ "tsparticles.plugin.easing.quad": 0
214
+ /******/ };
215
+ /******/
216
+ /******/ __webpack_require__.f.j = (chunkId, promises) => {
217
+ /******/ // JSONP chunk loading for javascript
218
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
219
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
220
+ /******/
221
+ /******/ // a Promise means "currently loading".
222
+ /******/ if(installedChunkData) {
223
+ /******/ promises.push(installedChunkData[2]);
224
+ /******/ } else {
225
+ /******/ if(true) { // all chunks have JS
226
+ /******/ // setup Promise in chunk cache
227
+ /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
228
+ /******/ promises.push(installedChunkData[2] = promise);
229
+ /******/
230
+ /******/ // start chunk loading
231
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
232
+ /******/ // create error before stack unwound to get useful stacktrace later
233
+ /******/ var error = new Error();
234
+ /******/ var loadingEnded = (event) => {
235
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
236
+ /******/ installedChunkData = installedChunks[chunkId];
237
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
238
+ /******/ if(installedChunkData) {
239
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
240
+ /******/ var realSrc = event && event.target && event.target.src;
241
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
242
+ /******/ error.name = 'ChunkLoadError';
243
+ /******/ error.type = errorType;
244
+ /******/ error.request = realSrc;
245
+ /******/ installedChunkData[1](error);
246
+ /******/ }
247
+ /******/ }
248
+ /******/ };
249
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
250
+ /******/ }
251
+ /******/ }
252
+ /******/ }
253
+ /******/ };
254
+ /******/
255
+ /******/ // no prefetching
256
+ /******/
257
+ /******/ // no preloaded
258
+ /******/
259
+ /******/ // no HMR
260
+ /******/
261
+ /******/ // no HMR manifest
262
+ /******/
263
+ /******/ // no on chunks loaded
264
+ /******/
265
+ /******/ // install a JSONP callback for chunk loading
266
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
267
+ /******/ var [chunkIds, moreModules, runtime] = data;
268
+ /******/ // add "moreModules" to the modules object,
269
+ /******/ // then flag all "chunkIds" as loaded and fire callback
270
+ /******/ var moduleId, chunkId, i = 0;
271
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
272
+ /******/ for(moduleId in moreModules) {
273
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
274
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
275
+ /******/ }
276
+ /******/ }
277
+ /******/ if(runtime) var result = runtime(__webpack_require__);
278
+ /******/ }
279
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
280
+ /******/ for(;i < chunkIds.length; i++) {
281
+ /******/ chunkId = chunkIds[i];
282
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
283
+ /******/ installedChunks[chunkId][0]();
284
+ /******/ }
285
+ /******/ installedChunks[chunkId] = 0;
286
+ /******/ }
287
+ /******/
288
+ /******/ }
289
+ /******/
290
+ /******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_plugin_easing_quad"] = this["webpackChunk_tsparticles_plugin_easing_quad"] || [];
291
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
292
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
293
+ /******/ })();
294
+ /******/
112
295
  /************************************************************************/
113
296
  /******/
114
297
  /******/ // startup
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see tsparticles.plugin.easing.quad.min.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var r="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e=>(()=>{var t={303(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{loadEasingQuadPlugin:()=>i});var a=o(303);function i(e){e.checkVersion("4.0.0-alpha.3"),e.register((e=>{e.addEasing(a.EasingType.easeInQuad,(e=>e**2)),e.addEasing(a.EasingType.easeOutQuad,(e=>1-(1-e)**2)),e.addEasing(a.EasingType.easeInOutQuad,(e=>e<.5?2*e**2:1-(-2*e+2)**2/2))}))}return n})()));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var r="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e=>(()=>{var t,r,o={303(t){t.exports=e}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,i),r.exports}i.m=o,i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>e+".min.js",i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="@tsparticles/plugin-easing-quad:",i.l=(e,o,n,a)=>{if(t[e])t[e].push(o);else{var s,l;if(void 0!==n)for(var p=document.getElementsByTagName("script"),c=0;c<p.length;c++){var u=p[c];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+n){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",r+n),s.src=e),t[e]=[o];var d=(r,o)=>{s.onerror=s.onload=null,clearTimeout(f);var n=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(o))),r)return r(o)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={422:0};i.f.j=(t,r)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var n=new Promise(((r,n)=>o=e[t]=[r,n]));r.push(o[2]=n);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,n,[a,s,l]=r,p=0;if(a.some((t=>0!==e[t]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)l(i)}for(t&&t(r);p<a.length;p++)n=a[p],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=this.webpackChunk_tsparticles_plugin_easing_quad=this.webpackChunk_tsparticles_plugin_easing_quad||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a={};async function s(e){e.checkVersion("4.0.0-alpha.5"),await e.register((async e=>{const{easingsFunctions:t}=await i.e(628).then(i.bind(i,628));for(const[r,o]of t)e.addEasing(r,o)}))}return i.r(a),i.d(a,{loadEasingQuadPlugin:()=>s}),a})()));
@@ -1 +1 @@
1
- /*! tsParticles Easing Quad Plugin v4.0.0-alpha.3 by Matteo Bruni */
1
+ /*! tsParticles Easing Quad Plugin v4.0.0-alpha.5 by Matteo Bruni */
@@ -0,0 +1,3 @@
1
+ import { type EasingFunction, EasingType, type EasingTypeAlt } from "@tsparticles/engine";
2
+ declare const easingsFunctions: Map<EasingTypeAlt | EasingType, EasingFunction>;
3
+ export { easingsFunctions };
package/types/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import { type Engine } from "@tsparticles/engine";
2
- export declare function loadEasingQuadPlugin(engine: Engine): void;
2
+ export declare function loadEasingQuadPlugin(engine: Engine): Promise<void>;
@@ -0,0 +1,19 @@
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "@tsparticles/engine"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.easingsFunctions = void 0;
13
+ const engine_1 = require("@tsparticles/engine");
14
+ const easingsFunctions = new Map();
15
+ exports.easingsFunctions = easingsFunctions;
16
+ easingsFunctions.set(engine_1.EasingType.easeInQuad, value => value ** 2);
17
+ easingsFunctions.set(engine_1.EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
18
+ easingsFunctions.set(engine_1.EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
19
+ });
package/umd/index.js CHANGED
@@ -1,22 +1,56 @@
1
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
+ if (k2 === undefined) k2 = k;
3
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
+ desc = { enumerable: true, get: function() { return m[k]; } };
6
+ }
7
+ Object.defineProperty(o, k2, desc);
8
+ }) : (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ o[k2] = m[k];
11
+ }));
12
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
13
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
14
+ }) : function(o, v) {
15
+ o["default"] = v;
16
+ });
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
1
34
  (function (factory) {
2
35
  if (typeof module === "object" && typeof module.exports === "object") {
3
36
  var v = factory(require, exports);
4
37
  if (v !== undefined) module.exports = v;
5
38
  }
6
39
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "@tsparticles/engine"], factory);
40
+ define(["require", "exports"], factory);
8
41
  }
9
42
  })(function (require, exports) {
10
43
  "use strict";
44
+ var __syncRequire = typeof module === "object" && typeof module.exports === "object";
11
45
  Object.defineProperty(exports, "__esModule", { value: true });
12
46
  exports.loadEasingQuadPlugin = loadEasingQuadPlugin;
13
- const engine_1 = require("@tsparticles/engine");
14
- function loadEasingQuadPlugin(engine) {
15
- engine.checkVersion("4.0.0-alpha.3");
16
- engine.register(e => {
17
- e.addEasing(engine_1.EasingType.easeInQuad, value => value ** 2);
18
- e.addEasing(engine_1.EasingType.easeOutQuad, value => 1 - (1 - value) ** 2);
19
- e.addEasing(engine_1.EasingType.easeInOutQuad, value => (value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2));
47
+ async function loadEasingQuadPlugin(engine) {
48
+ engine.checkVersion("4.0.0-alpha.5");
49
+ await engine.register(async (e) => {
50
+ const { easingsFunctions } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./easingsFunctions.js"))) : new Promise((resolve_1, reject_1) => { require(["./easingsFunctions.js"], resolve_1, reject_1); }).then(__importStar));
51
+ for (const [easing, easingFn] of easingsFunctions) {
52
+ e.addEasing(easing, easingFn);
53
+ }
20
54
  });
21
55
  }
22
56
  });