@tsparticles/basic 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/182.min.js +2 -0
- package/182.min.js.LICENSE.txt +1 -0
- package/204.min.js +2 -0
- package/204.min.js.LICENSE.txt +1 -0
- package/241.min.js +2 -0
- package/241.min.js.LICENSE.txt +1 -0
- package/303.min.js +2 -0
- package/303.min.js.LICENSE.txt +1 -0
- package/309.min.js +2 -0
- package/309.min.js.LICENSE.txt +1 -0
- package/321.min.js +2 -0
- package/321.min.js.LICENSE.txt +1 -0
- package/416.min.js +2 -0
- package/416.min.js.LICENSE.txt +1 -0
- package/420.min.js +2 -0
- package/420.min.js.LICENSE.txt +1 -0
- package/440.min.js +2 -0
- package/440.min.js.LICENSE.txt +1 -0
- package/491.min.js +2 -0
- package/491.min.js.LICENSE.txt +1 -0
- package/493.min.js +2 -0
- package/493.min.js.LICENSE.txt +1 -0
- package/561.min.js +2 -0
- package/561.min.js.LICENSE.txt +1 -0
- package/571.min.js +2 -0
- package/571.min.js.LICENSE.txt +1 -0
- package/606.min.js +2 -0
- package/606.min.js.LICENSE.txt +1 -0
- package/620.min.js +2 -0
- package/620.min.js.LICENSE.txt +1 -0
- package/704.min.js +2 -0
- package/704.min.js.LICENSE.txt +1 -0
- package/869.min.js +2 -0
- package/869.min.js.LICENSE.txt +1 -0
- package/885.min.js +2 -0
- package/885.min.js.LICENSE.txt +1 -0
- package/907.min.js +2 -0
- package/907.min.js.LICENSE.txt +1 -0
- package/browser/bundle.js +1 -1
- package/browser/index.js +14 -21
- package/cjs/bundle.js +3 -20
- package/cjs/index.js +14 -24
- package/engine_dist_browser_Core_Container_js.js +100 -0
- package/esm/bundle.js +1 -1
- package/esm/index.js +14 -21
- package/move_base_dist_browser_BaseMover_js.js +40 -0
- package/move_base_dist_browser_index_js.js +30 -0
- package/package.json +13 -12
- package/plugins_colors_hex_dist_browser_HexColorManager_js.js +30 -0
- package/plugins_colors_hex_dist_browser_index_js.js +30 -0
- package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +30 -0
- package/plugins_colors_hsl_dist_browser_index_js.js +30 -0
- package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +30 -0
- package/plugins_colors_rgb_dist_browser_index_js.js +30 -0
- package/report.html +5 -4
- package/shapes_circle_dist_browser_CircleDrawer_js.js +40 -0
- package/shapes_circle_dist_browser_index_js.js +30 -0
- package/tsparticles.basic.bundle.js +500 -1709
- package/tsparticles.basic.bundle.min.js +1 -1
- package/tsparticles.basic.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.basic.js +68 -44
- package/tsparticles.basic.min.js +1 -1
- package/tsparticles.basic.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/umd/bundle.js +3 -3
- package/umd/index.js +49 -22
- package/updaters_color_dist_browser_ColorUpdater_js.js +30 -0
- package/updaters_color_dist_browser_index_js.js +30 -0
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +30 -0
- package/updaters_opacity_dist_browser_index_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +80 -0
- package/updaters_outModes_dist_browser_index_js.js +30 -0
- package/updaters_size_dist_browser_SizeUpdater_js.js +30 -0
- package/updaters_size_dist_browser_index_js.js +30 -0
|
@@ -0,0 +1,40 @@
|
|
|
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.0
|
|
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_basic"] = this["webpackChunk_tsparticles_basic"] || []).push([["shapes_circle_dist_browser_CircleDrawer_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../shapes/circle/dist/browser/CircleDrawer.js"
|
|
21
|
+
/*!********************************************************!*\
|
|
22
|
+
!*** ../../shapes/circle/dist/browser/CircleDrawer.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 */ CircleDrawer: () => (/* binding */ CircleDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/circle/dist/browser/Utils.js\");\n\n\nconst sides = 12,\n maxAngle = 360,\n minAngle = 0;\nclass CircleDrawer {\n constructor() {\n this.validTypes = [\"circle\"];\n }\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.drawCircle)(data);\n }\n getSidesCount() {\n return sides;\n }\n particleInit(_container, particle) {\n const shapeData = particle.shapeData,\n angle = shapeData?.angle ?? {\n max: maxAngle,\n min: minAngle\n };\n particle.circleRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isObject)(angle) ? {\n min: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle.min),\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle.max)\n } : {\n min: minAngle,\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle)\n };\n }\n}\n\n//# sourceURL=webpack://@tsparticles/basic/../../shapes/circle/dist/browser/CircleDrawer.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../shapes/circle/dist/browser/Utils.js"
|
|
31
|
+
/*!*************************************************!*\
|
|
32
|
+
!*** ../../shapes/circle/dist/browser/Utils.js ***!
|
|
33
|
+
\*************************************************/
|
|
34
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawCircle: () => (/* binding */ drawCircle)\n/* harmony export */ });\nconst double = 2,\n doublePI = Math.PI * double,\n minAngle = 0,\n origin = {\n x: 0,\n y: 0\n };\nfunction drawCircle(data) {\n const {\n context,\n particle,\n radius\n } = data;\n particle.circleRange ??= {\n min: minAngle,\n max: doublePI\n };\n const circleRange = particle.circleRange;\n context.arc(origin.x, origin.y, radius, circleRange.min, circleRange.max, false);\n}\n\n//# sourceURL=webpack://@tsparticles/basic/../../shapes/circle/dist/browser/Utils.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ }
|
|
39
|
+
|
|
40
|
+
}]);
|
|
@@ -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.0
|
|
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_basic"] = this["webpackChunk_tsparticles_basic"] || []).push([["shapes_circle_dist_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../shapes/circle/dist/browser/index.js"
|
|
21
|
+
/*!*************************************************!*\
|
|
22
|
+
!*** ../../shapes/circle/dist/browser/index.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 */ loadCircleShape: () => (/* binding */ loadCircleShape)\n/* harmony export */ });\nfunction loadCircleShape(engine) {\n engine.checkVersion(\"4.0.0-alpha.0\");\n engine.register(async e => {\n const {\n CircleDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_circle_dist_browser_CircleDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./CircleDrawer.js */ \"../../shapes/circle/dist/browser/CircleDrawer.js\"));\n e.addShape(new CircleDrawer());\n });\n}\n\n//# sourceURL=webpack://@tsparticles/basic/../../shapes/circle/dist/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|