@tsparticles/plugin-easing-linear 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.
@@ -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
- * v3.9.0
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
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
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 */ loadEasingLinearPlugin: () => (/* binding */ loadEasingLinearPlugin)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__);\n\nasync function loadEasingLinearPlugin(engine, refresh = true) {\n engine.checkVersion(\"3.9.0\");\n await engine.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInLinear, value => {\n return value;\n }, false);\n await engine.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeOutLinear, value => {\n return value;\n }, false);\n await engine.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInOutLinear, value => {\n return value;\n }, false);\n await engine.refresh(refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-easing-linear/./dist/browser/index.js?\n}");
37
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEasingLinearPlugin: () => (/* binding */ loadEasingLinearPlugin)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nfunction loadEasingLinearPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.0\");\n engine.register(e => {\n e.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInLinear, value => value);\n e.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeOutLinear, value => value);\n e.addEasing(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EasingType.easeInOutLinear, value => value);\n });\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-easing-linear/./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
- /***/ ((module) => {
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.linear.min.js.LICENSE.txt */
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 n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(e=>(()=>{var r={303:r=>{r.exports=e}},t={};function n(e){var a=t[e];if(void 0!==a)return a.exports;var o=t[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},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.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{loadEasingLinearPlugin:()=>i});var o=n(303);async function i(e,r=!0){e.checkVersion("3.9.0"),await e.addEasing(o.EasingType.easeInLinear,(e=>e),!1),await e.addEasing(o.EasingType.easeOutLinear,(e=>e),!1),await e.addEasing(o.EasingType.easeInOutLinear,(e=>e),!1),await e.refresh(r)}return a})()));
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={303(r){r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),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,{loadEasingLinearPlugin:()=>a});var i=o(303);function a(e){e.checkVersion("4.0.0-alpha.0"),e.register((e=>{e.addEasing(i.EasingType.easeInLinear,(e=>e)),e.addEasing(i.EasingType.easeOutLinear,(e=>e)),e.addEasing(i.EasingType.easeInOutLinear,(e=>e))}))}return n})()));
@@ -1 +1 @@
1
- /*! tsParticles Easing Linear Plugin v3.9.0 by Matteo Bruni */
1
+ /*! tsParticles Easing Linear 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 loadEasingLinearPlugin(engine: Engine, refresh?: boolean): Promise<void>;
2
+ export declare function loadEasingLinearPlugin(engine: Engine): void;
package/umd/index.js CHANGED
@@ -11,17 +11,12 @@
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.loadEasingLinearPlugin = loadEasingLinearPlugin;
13
13
  const engine_1 = require("@tsparticles/engine");
14
- async function loadEasingLinearPlugin(engine, refresh = true) {
15
- engine.checkVersion("3.9.0");
16
- await engine.addEasing(engine_1.EasingType.easeInLinear, value => {
17
- return value;
18
- }, false);
19
- await engine.addEasing(engine_1.EasingType.easeOutLinear, value => {
20
- return value;
21
- }, false);
22
- await engine.addEasing(engine_1.EasingType.easeInOutLinear, value => {
23
- return value;
24
- }, false);
25
- await engine.refresh(refresh);
14
+ function loadEasingLinearPlugin(engine) {
15
+ engine.checkVersion("4.0.0-alpha.0");
16
+ engine.register(e => {
17
+ e.addEasing(engine_1.EasingType.easeInLinear, value => value);
18
+ e.addEasing(engine_1.EasingType.easeOutLinear, value => value);
19
+ e.addEasing(engine_1.EasingType.easeInOutLinear, value => value);
20
+ });
26
21
  }
27
22
  });