@tsparticles/plugin-easing-quad 3.9.0 → 4.0.0-alpha.0
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/browser/index.js +7 -6
- package/cjs/index.js +8 -10
- package/esm/index.js +7 -6
- package/package.json +4 -3
- package/report.html +5 -4
- package/tsparticles.plugin.easing.quad.js +14 -20
- package/tsparticles.plugin.easing.quad.min.js +1 -1
- package/tsparticles.plugin.easing.quad.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/index.js +7 -6
|
@@ -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
|
-
*
|
|
7
|
+
* v4.0.0-alpha.0
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -28,25 +28,25 @@ return /******/ (() => { // webpackBootstrap
|
|
|
28
28
|
/******/ "use strict";
|
|
29
29
|
/******/ var __webpack_modules__ = ({
|
|
30
30
|
|
|
31
|
-
/***/ "./dist/browser/index.js"
|
|
31
|
+
/***/ "./dist/browser/index.js"
|
|
32
32
|
/*!*******************************!*\
|
|
33
33
|
!*** ./dist/browser/index.js ***!
|
|
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
|
|
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.0\");\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}");
|
|
38
38
|
|
|
39
|
-
/***/ }
|
|
39
|
+
/***/ },
|
|
40
40
|
|
|
41
|
-
/***/ "@tsparticles/engine"
|
|
41
|
+
/***/ "@tsparticles/engine"
|
|
42
42
|
/*!*********************************************************************************************************************************!*\
|
|
43
43
|
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
44
44
|
\*********************************************************************************************************************************/
|
|
45
|
-
|
|
45
|
+
(module) {
|
|
46
46
|
|
|
47
47
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
48
48
|
|
|
49
|
-
/***/ }
|
|
49
|
+
/***/ }
|
|
50
50
|
|
|
51
51
|
/******/ });
|
|
52
52
|
/************************************************************************/
|
|
@@ -60,6 +60,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
|
60
60
|
/******/ if (cachedModule !== undefined) {
|
|
61
61
|
/******/ return cachedModule.exports;
|
|
62
62
|
/******/ }
|
|
63
|
+
/******/ // Check if module exists (development only)
|
|
64
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
65
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
66
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
67
|
+
/******/ throw e;
|
|
68
|
+
/******/ }
|
|
63
69
|
/******/ // Create a new module (and put it into the cache)
|
|
64
70
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
65
71
|
/******/ // no module.id needed
|
|
@@ -75,18 +81,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
|
75
81
|
/******/ }
|
|
76
82
|
/******/
|
|
77
83
|
/************************************************************************/
|
|
78
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
79
|
-
/******/ (() => {
|
|
80
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
81
|
-
/******/ __webpack_require__.n = (module) => {
|
|
82
|
-
/******/ var getter = module && module.__esModule ?
|
|
83
|
-
/******/ () => (module['default']) :
|
|
84
|
-
/******/ () => (module);
|
|
85
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
86
|
-
/******/ return getter;
|
|
87
|
-
/******/ };
|
|
88
|
-
/******/ })();
|
|
89
|
-
/******/
|
|
90
84
|
/******/ /* webpack/runtime/define property getters */
|
|
91
85
|
/******/ (() => {
|
|
92
86
|
/******/ // define getter functions for harmony exports
|
|
@@ -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
|
|
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.0"),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})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Easing Quad Plugin
|
|
1
|
+
/*! tsParticles Easing Quad Plugin v4.0.0-alpha.0 by Matteo Bruni */
|
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
|
|
2
|
+
export declare function loadEasingQuadPlugin(engine: Engine): void;
|
package/umd/index.js
CHANGED
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadEasingQuadPlugin = loadEasingQuadPlugin;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
|
-
|
|
15
|
-
engine.checkVersion("
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
function loadEasingQuadPlugin(engine) {
|
|
15
|
+
engine.checkVersion("4.0.0-alpha.0");
|
|
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));
|
|
20
|
+
});
|
|
20
21
|
}
|
|
21
22
|
});
|