@tsparticles/plugin-easing-circ 4.0.0-alpha.2 → 4.0.0-alpha.4
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 +2 -0
- package/628.min.js.LICENSE.txt +1 -0
- package/browser/easingsFunctions.js +6 -0
- package/browser/index.js +6 -6
- package/cjs/easingsFunctions.js +6 -0
- package/cjs/index.js +6 -6
- package/dist_browser_easingsFunctions_js.js +30 -0
- package/esm/easingsFunctions.js +6 -0
- package/esm/index.js +6 -6
- package/package.json +2 -2
- package/report.html +1 -1
- package/tsparticles.plugin.easing.circ.js +185 -2
- package/tsparticles.plugin.easing.circ.min.js +1 -1
- package/tsparticles.plugin.easing.circ.min.js.LICENSE.txt +1 -1
- package/types/easingsFunctions.d.ts +3 -0
- package/umd/easingsFunctions.js +19 -0
- package/umd/index.js +41 -7
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_circ=this.webpackChunk_tsparticles_plugin_easing_circ||[]).push([[628],{628(s,t,e){e.d(t,{easingsFunctions:()=>i});var a=e(303);const i=new Map;i.set(a.EasingType.easeInCirc,(s=>1-Math.sqrt(1-s**2))),i.set(a.EasingType.easeOutCirc,(s=>Math.sqrt(1-(s-1)**2))),i.set(a.EasingType.easeInOutCirc,(s=>s<.5?(1-Math.sqrt(1-(2*s)**2))/2:(Math.sqrt(1-(-2*s+2)**2)+1)/2))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Easing Circ Plugin v4.0.0-alpha.4 by Matteo Bruni */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EasingType } from "@tsparticles/engine";
|
|
2
|
+
const easingsFunctions = new Map();
|
|
3
|
+
easingsFunctions.set(EasingType.easeInCirc, value => 1 - Math.sqrt(1 - value ** 2));
|
|
4
|
+
easingsFunctions.set(EasingType.easeOutCirc, value => Math.sqrt(1 - (value - 1) ** 2));
|
|
5
|
+
easingsFunctions.set(EasingType.easeInOutCirc, value => value < 0.5 ? (1 - Math.sqrt(1 - (2 * value) ** 2)) / 2 : (Math.sqrt(1 - (-2 * value + 2) ** 2) + 1) / 2);
|
|
6
|
+
export { easingsFunctions };
|
package/browser/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EasingType } from "@tsparticles/engine";
|
|
2
1
|
export function loadEasingCircPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-alpha.
|
|
4
|
-
engine.register(e => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
3
|
+
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.easeInCirc, value => 1 - Math.sqrt(1 - value ** 2));
|
|
4
|
+
easingsFunctions.set(EasingType.easeOutCirc, value => Math.sqrt(1 - (value - 1) ** 2));
|
|
5
|
+
easingsFunctions.set(EasingType.easeInOutCirc, value => value < 0.5 ? (1 - Math.sqrt(1 - (2 * value) ** 2)) / 2 : (Math.sqrt(1 - (-2 * value + 2) ** 2) + 1) / 2);
|
|
6
|
+
export { easingsFunctions };
|
package/cjs/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EasingType } from "@tsparticles/engine";
|
|
2
1
|
export function loadEasingCircPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-alpha.
|
|
4
|
-
engine.register(e => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
3
|
+
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.4
|
|
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_circ"] = this["webpackChunk_tsparticles_plugin_easing_circ"] || []).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.easeInCirc, value => 1 - Math.sqrt(1 - value ** 2));\neasingsFunctions.set(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeOutCirc, value => Math.sqrt(1 - (value - 1) ** 2));\neasingsFunctions.set(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInOutCirc, value => value < 0.5 ? (1 - Math.sqrt(1 - (2 * value) ** 2)) / 2 : (Math.sqrt(1 - (-2 * value + 2) ** 2) + 1) / 2);\n\n\n//# sourceURL=webpack://@tsparticles/plugin-easing-circ/./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.easeInCirc, value => 1 - Math.sqrt(1 - value ** 2));
|
|
4
|
+
easingsFunctions.set(EasingType.easeOutCirc, value => Math.sqrt(1 - (value - 1) ** 2));
|
|
5
|
+
easingsFunctions.set(EasingType.easeInOutCirc, value => value < 0.5 ? (1 - Math.sqrt(1 - (2 * value) ** 2)) / 2 : (Math.sqrt(1 - (-2 * value + 2) ** 2) + 1) / 2);
|
|
6
|
+
export { easingsFunctions };
|
package/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EasingType } from "@tsparticles/engine";
|
|
2
1
|
export function loadEasingCircPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-alpha.
|
|
4
|
-
engine.register(e => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
3
|
+
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-circ",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.4",
|
|
4
4
|
"description": "tsParticles easing circ 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.
|
|
103
|
+
"@tsparticles/engine": "4.0.0-alpha.4"
|
|
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-circ [
|
|
6
|
+
<title>@tsparticles/plugin-easing-circ [21 Jan 2026 at 14:31]</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/j9f7c8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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.
|
|
7
|
+
* v4.0.0-alpha.4
|
|
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 */ loadEasingCircPlugin: () => (/* binding */ loadEasingCircPlugin)\n/* harmony export */ });\
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEasingCircPlugin: () => (/* binding */ loadEasingCircPlugin)\n/* harmony export */ });\nfunction loadEasingCircPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.4\");\n 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-circ/./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-circ:";
|
|
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.circ": 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_circ"] = this["webpackChunk_tsparticles_plugin_easing_circ"] || [];
|
|
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.circ.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,
|
|
2
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],r);else{var t="object"==typeof exports?r(require("@tsparticles/engine")):r(e.window);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,(e=>(()=>{var r,t,o={303(r){r.exports=e}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return o[e](t,t.exports,n),t.exports}n.m=o,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+".min.js",n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="@tsparticles/plugin-easing-circ:",n.l=(e,o,i,a)=>{if(r[e])r[e].push(o);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var u=l[p];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=e),r[e]=[o];var d=(t,o)=>{s.onerror=s.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(o))),t)return t(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),c&&document.head.appendChild(s)}},n.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 r=globalThis.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={578:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var i=new Promise(((t,i)=>o=e[r]=[t,i]));t.push(o[2]=i);var a=n.p+n.u(r),s=new Error;n.l(a,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var i=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+r,r)}};var r=(r,t)=>{var o,i,[a,s,c]=t,l=0;if(a.some((r=>0!==e[r]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(c)c(n)}for(r&&r(t);l<a.length;l++)i=a[l],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},t=this.webpackChunk_tsparticles_plugin_easing_circ=this.webpackChunk_tsparticles_plugin_easing_circ||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var a={};function s(e){e.checkVersion("4.0.0-alpha.4"),e.register((async e=>{const{easingsFunctions:r}=await n.e(628).then(n.bind(n,628));for(const[t,o]of r)e.addEasing(t,o)}))}return n.r(a),n.d(a,{loadEasingCircPlugin:()=>s}),a})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Easing Circ Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Easing Circ Plugin v4.0.0-alpha.4 by Matteo Bruni */
|
|
@@ -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.easeInCirc, value => 1 - Math.sqrt(1 - value ** 2));
|
|
17
|
+
easingsFunctions.set(engine_1.EasingType.easeOutCirc, value => Math.sqrt(1 - (value - 1) ** 2));
|
|
18
|
+
easingsFunctions.set(engine_1.EasingType.easeInOutCirc, value => value < 0.5 ? (1 - Math.sqrt(1 - (2 * value) ** 2)) / 2 : (Math.sqrt(1 - (-2 * value + 2) ** 2) + 1) / 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"
|
|
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.loadEasingCircPlugin = loadEasingCircPlugin;
|
|
13
|
-
const engine_1 = require("@tsparticles/engine");
|
|
14
47
|
function loadEasingCircPlugin(engine) {
|
|
15
|
-
engine.checkVersion("4.0.0-alpha.
|
|
16
|
-
engine.register(e => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
48
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
49
|
+
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
|
});
|