@tsparticles/path-fractal-noise 3.9.1 → 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/819.min.js +2 -0
- package/819.min.js.LICENSE.txt +1 -0
- package/browser/FractalNoiseGenerator.js +9 -96
- package/browser/index.js +6 -4
- package/cjs/FractalNoiseGenerator.js +10 -101
- package/cjs/index.js +7 -9
- package/dist_browser_FractalNoiseGenerator_js.js +30 -0
- package/esm/FractalNoiseGenerator.js +9 -96
- package/esm/index.js +6 -4
- package/package.json +6 -4
- package/report.html +5 -4
- package/tsparticles.path.fractal.noise.js +223 -44
- package/tsparticles.path.fractal.noise.min.js +1 -1
- package/tsparticles.path.fractal.noise.min.js.LICENSE.txt +1 -1
- package/types/FractalNoiseGenerator.d.ts +2 -16
- package/types/index.d.ts +1 -1
- package/umd/FractalNoiseGenerator.js +10 -97
- package/umd/index.js +41 -5
- package/browser/IFractalOptions.js +0 -1
- package/browser/IOffsetValues.js +0 -1
- package/cjs/IFractalOptions.js +0 -2
- package/cjs/IOffsetValues.js +0 -2
- package/esm/IFractalOptions.js +0 -1
- package/esm/IOffsetValues.js +0 -1
- package/types/IFractalOptions.d.ts +0 -12
- package/types/IOffsetValues.d.ts +0 -5
- package/umd/IFractalOptions.js +0 -12
- package/umd/IOffsetValues.js +0 -12
|
@@ -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").
|
|
@@ -16,57 +16,47 @@
|
|
|
16
16
|
*/
|
|
17
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
18
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
19
|
-
module.exports = factory(require("@tsparticles/
|
|
19
|
+
module.exports = factory(require("@tsparticles/fractal-noise"), require("@tsparticles/noise-field"));
|
|
20
20
|
else if(typeof define === 'function' && define.amd)
|
|
21
|
-
define(["@tsparticles/
|
|
21
|
+
define(["@tsparticles/fractal-noise", "@tsparticles/noise-field"], factory);
|
|
22
22
|
else {
|
|
23
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/fractal-noise"), require("@tsparticles/noise-field")) : factory(root["window"], root["window"]);
|
|
24
24
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
25
25
|
}
|
|
26
|
-
})(this, (
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_fractal_noise__, __WEBPACK_EXTERNAL_MODULE__tsparticles_noise_field__) => {
|
|
27
27
|
return /******/ (() => { // webpackBootstrap
|
|
28
28
|
/******/ "use strict";
|
|
29
29
|
/******/ var __webpack_modules__ = ({
|
|
30
30
|
|
|
31
|
-
/***/ "./dist/browser/
|
|
32
|
-
/*!***********************************************!*\
|
|
33
|
-
!*** ./dist/browser/FractalNoiseGenerator.js ***!
|
|
34
|
-
\***********************************************/
|
|
35
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
36
|
-
|
|
37
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FractalNoiseGenerator: () => (/* binding */ FractalNoiseGenerator)\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/* harmony import */ var _tsparticles_fractal_noise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/fractal-noise */ \"@tsparticles/fractal-noise\");\n/* harmony import */ var _tsparticles_fractal_noise__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_fractal_noise__WEBPACK_IMPORTED_MODULE_1__);\n\n\nconst defaultOptions = {\n size: 20,\n increment: 0.004,\n columns: 0,\n rows: 0,\n layers: 0,\n width: 0,\n height: 0,\n offset: {\n x: 40000,\n y: 40000,\n z: 40000\n }\n};\nclass FractalNoiseGenerator {\n constructor() {\n this._fractal = new _tsparticles_fractal_noise__WEBPACK_IMPORTED_MODULE_1__.FractalNoise();\n this.field = [];\n this.noiseW = 0;\n this.options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, defaultOptions);\n }\n generate(particle) {\n const pos = particle.getPosition(),\n point = {\n x: Math.max(Math.floor(pos.x / this.options.size), 0),\n y: Math.max(Math.floor(pos.y / this.options.size), 0),\n z: Math.max(Math.floor(pos.z / this.options.size), 0)\n },\n v = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n if (!this.field?.[point.x]?.[point.y]?.[point.z]) {\n return v;\n }\n v.setTo(this.field[point.x][point.y][point.z]);\n return v;\n }\n init(container) {\n this.container = container;\n this._setup();\n }\n reset() {}\n update() {\n if (!this.container) {\n return;\n }\n this._calculateField();\n this.noiseW += this.options.increment;\n }\n _calculateField() {\n const options = this.options;\n for (let x = 0; x < options.columns; x++) {\n for (let y = 0; y < options.rows; y++) {\n for (let z = 0; z < options.layers; z++) {\n this.field[x][y][z].angle = this._fractal.noise4d(x / 50, y / 50, z / 50, this.noiseW) * Math.PI * 2;\n this.field[x][y][z].length = this._fractal.noise4d(x / 100 + options.offset.x, y / 100 + options.offset.y, z / 100 + options.offset.z, this.noiseW);\n }\n }\n }\n }\n _initField() {\n this.field = new Array(this.options.columns);\n for (let x = 0; x < this.options.columns; x++) {\n this.field[x] = new Array(this.options.rows);\n for (let y = 0; y < this.options.rows; y++) {\n this.field[x][y] = new Array(this.options.layers);\n for (let z = 0; z < this.options.layers; z++) {\n this.field[x][y][z] = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n }\n }\n }\n }\n _resetField() {\n const container = this.container;\n if (!container) {\n return;\n }\n const sourceOptions = container.actualOptions.particles.move.path.options;\n this.options.size = sourceOptions.size > 0 ? sourceOptions.size : defaultOptions.size;\n this.options.increment = sourceOptions.increment > 0 ? sourceOptions.increment : defaultOptions.increment;\n this.options.width = container.canvas.size.width;\n this.options.height = container.canvas.size.height;\n const offset = sourceOptions.offset;\n this.options.offset.x = offset?.x ?? defaultOptions.offset.x;\n this.options.offset.y = offset?.y ?? defaultOptions.offset.y;\n this.options.offset.z = offset?.z ?? defaultOptions.offset.z;\n this.options.seed = sourceOptions.seed;\n this._fractal.seed(this.options.seed ?? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)());\n this.options.columns = Math.floor(this.options.width / this.options.size) + 1;\n this.options.rows = Math.floor(this.options.height / this.options.size) + 1;\n this.options.layers = Math.floor(container.zLayers / this.options.size) + 1;\n this._initField();\n }\n _setup() {\n this.noiseW = 0;\n this._resetField();\n addEventListener(\"resize\", () => this._resetField());\n }\n}\n\n//# sourceURL=webpack://@tsparticles/path-fractal-noise/./dist/browser/FractalNoiseGenerator.js?\n}");
|
|
38
|
-
|
|
39
|
-
/***/ }),
|
|
40
|
-
|
|
41
|
-
/***/ "./dist/browser/index.js":
|
|
31
|
+
/***/ "./dist/browser/index.js"
|
|
42
32
|
/*!*******************************!*\
|
|
43
33
|
!*** ./dist/browser/index.js ***!
|
|
44
34
|
\*******************************/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fractalNoisePathName: () => (/* binding */ fractalNoisePathName),\n/* harmony export */ loadFractalNoisePath: () => (/* binding */ loadFractalNoisePath)\n/* harmony export */ });\n/* harmony import */ var _FractalNoiseGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FractalNoiseGenerator.js */ \"./dist/browser/FractalNoiseGenerator.js\");\n\nconst fractalNoisePathName = \"fractalNoise\";\nasync function loadFractalNoisePath(engine, refresh = true) {\n engine.checkVersion(\"3.9.1\");\n await engine.addPathGenerator(fractalNoisePathName, new _FractalNoiseGenerator_js__WEBPACK_IMPORTED_MODULE_0__.FractalNoiseGenerator(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/path-fractal-noise/./dist/browser/index.js?\n}");
|
|
35
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
48
36
|
|
|
49
|
-
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fractalNoisePathName: () => (/* binding */ fractalNoisePathName),\n/* harmony export */ loadFractalNoisePath: () => (/* binding */ loadFractalNoisePath)\n/* harmony export */ });\nconst fractalNoisePathName = \"fractalNoise\";\nfunction loadFractalNoisePath(engine) {\n engine.checkVersion(\"4.0.0-alpha.0\");\n engine.register(async e => {\n const {\n FractalNoiseGenerator\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_FractalNoiseGenerator_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./FractalNoiseGenerator.js */ \"./dist/browser/FractalNoiseGenerator.js\"));\n e.addPathGenerator(fractalNoisePathName, new FractalNoiseGenerator());\n });\n}\n\n//# sourceURL=webpack://@tsparticles/path-fractal-noise/./dist/browser/index.js?\n}");
|
|
50
38
|
|
|
51
|
-
/***/
|
|
52
|
-
/*!*********************************************************************************************************************************!*\
|
|
53
|
-
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
54
|
-
\*********************************************************************************************************************************/
|
|
55
|
-
/***/ ((module) => {
|
|
39
|
+
/***/ },
|
|
56
40
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/***/ }),
|
|
60
|
-
|
|
61
|
-
/***/ "@tsparticles/fractal-noise":
|
|
41
|
+
/***/ "@tsparticles/fractal-noise"
|
|
62
42
|
/*!******************************************************************************************************************************************************!*\
|
|
63
43
|
!*** external {"commonjs":"@tsparticles/fractal-noise","commonjs2":"@tsparticles/fractal-noise","amd":"@tsparticles/fractal-noise","root":"window"} ***!
|
|
64
44
|
\******************************************************************************************************************************************************/
|
|
65
|
-
|
|
45
|
+
(module) {
|
|
66
46
|
|
|
67
47
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_fractal_noise__;
|
|
68
48
|
|
|
69
|
-
/***/ }
|
|
49
|
+
/***/ },
|
|
50
|
+
|
|
51
|
+
/***/ "@tsparticles/noise-field"
|
|
52
|
+
/*!************************************************************************************************************************************************!*\
|
|
53
|
+
!*** external {"commonjs":"@tsparticles/noise-field","commonjs2":"@tsparticles/noise-field","amd":"@tsparticles/noise-field","root":"window"} ***!
|
|
54
|
+
\************************************************************************************************************************************************/
|
|
55
|
+
(module) {
|
|
56
|
+
|
|
57
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_noise_field__;
|
|
58
|
+
|
|
59
|
+
/***/ }
|
|
70
60
|
|
|
71
61
|
/******/ });
|
|
72
62
|
/************************************************************************/
|
|
@@ -80,6 +70,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_fractal_noise__;
|
|
|
80
70
|
/******/ if (cachedModule !== undefined) {
|
|
81
71
|
/******/ return cachedModule.exports;
|
|
82
72
|
/******/ }
|
|
73
|
+
/******/ // Check if module exists (development only)
|
|
74
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
75
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
76
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
77
|
+
/******/ throw e;
|
|
78
|
+
/******/ }
|
|
83
79
|
/******/ // Create a new module (and put it into the cache)
|
|
84
80
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
85
81
|
/******/ // no module.id needed
|
|
@@ -94,19 +90,10 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_fractal_noise__;
|
|
|
94
90
|
/******/ return module.exports;
|
|
95
91
|
/******/ }
|
|
96
92
|
/******/
|
|
97
|
-
|
|
98
|
-
/******/
|
|
99
|
-
/******/ (() => {
|
|
100
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
101
|
-
/******/ __webpack_require__.n = (module) => {
|
|
102
|
-
/******/ var getter = module && module.__esModule ?
|
|
103
|
-
/******/ () => (module['default']) :
|
|
104
|
-
/******/ () => (module);
|
|
105
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
106
|
-
/******/ return getter;
|
|
107
|
-
/******/ };
|
|
108
|
-
/******/ })();
|
|
93
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
94
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
109
95
|
/******/
|
|
96
|
+
/************************************************************************/
|
|
110
97
|
/******/ /* webpack/runtime/define property getters */
|
|
111
98
|
/******/ (() => {
|
|
112
99
|
/******/ // define getter functions for harmony exports
|
|
@@ -119,11 +106,90 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_fractal_noise__;
|
|
|
119
106
|
/******/ };
|
|
120
107
|
/******/ })();
|
|
121
108
|
/******/
|
|
109
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
110
|
+
/******/ (() => {
|
|
111
|
+
/******/ __webpack_require__.f = {};
|
|
112
|
+
/******/ // This file contains only the entry chunk.
|
|
113
|
+
/******/ // The chunk loading function for additional chunks
|
|
114
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
115
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
116
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
117
|
+
/******/ return promises;
|
|
118
|
+
/******/ }, []));
|
|
119
|
+
/******/ };
|
|
120
|
+
/******/ })();
|
|
121
|
+
/******/
|
|
122
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
123
|
+
/******/ (() => {
|
|
124
|
+
/******/ // This function allow to reference async chunks
|
|
125
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
126
|
+
/******/ // return url for filenames based on template
|
|
127
|
+
/******/ return "" + chunkId + ".js";
|
|
128
|
+
/******/ };
|
|
129
|
+
/******/ })();
|
|
130
|
+
/******/
|
|
131
|
+
/******/ /* webpack/runtime/global */
|
|
132
|
+
/******/ (() => {
|
|
133
|
+
/******/ __webpack_require__.g = (function() {
|
|
134
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
135
|
+
/******/ try {
|
|
136
|
+
/******/ return this || new Function('return this')();
|
|
137
|
+
/******/ } catch (e) {
|
|
138
|
+
/******/ if (typeof window === 'object') return window;
|
|
139
|
+
/******/ }
|
|
140
|
+
/******/ })();
|
|
141
|
+
/******/ })();
|
|
142
|
+
/******/
|
|
122
143
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
123
144
|
/******/ (() => {
|
|
124
145
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
125
146
|
/******/ })();
|
|
126
147
|
/******/
|
|
148
|
+
/******/ /* webpack/runtime/load script */
|
|
149
|
+
/******/ (() => {
|
|
150
|
+
/******/ var inProgress = {};
|
|
151
|
+
/******/ var dataWebpackPrefix = "@tsparticles/path-fractal-noise:";
|
|
152
|
+
/******/ // loadScript function to load a script via script tag
|
|
153
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
154
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
155
|
+
/******/ var script, needAttach;
|
|
156
|
+
/******/ if(key !== undefined) {
|
|
157
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
158
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
159
|
+
/******/ var s = scripts[i];
|
|
160
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
161
|
+
/******/ }
|
|
162
|
+
/******/ }
|
|
163
|
+
/******/ if(!script) {
|
|
164
|
+
/******/ needAttach = true;
|
|
165
|
+
/******/ script = document.createElement('script');
|
|
166
|
+
/******/
|
|
167
|
+
/******/ script.charset = 'utf-8';
|
|
168
|
+
/******/ if (__webpack_require__.nc) {
|
|
169
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
170
|
+
/******/ }
|
|
171
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
172
|
+
/******/
|
|
173
|
+
/******/ script.src = url;
|
|
174
|
+
/******/ }
|
|
175
|
+
/******/ inProgress[url] = [done];
|
|
176
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
177
|
+
/******/ // avoid mem leaks in IE.
|
|
178
|
+
/******/ script.onerror = script.onload = null;
|
|
179
|
+
/******/ clearTimeout(timeout);
|
|
180
|
+
/******/ var doneFns = inProgress[url];
|
|
181
|
+
/******/ delete inProgress[url];
|
|
182
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
183
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
184
|
+
/******/ if(prev) return prev(event);
|
|
185
|
+
/******/ }
|
|
186
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
187
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
188
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
189
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
190
|
+
/******/ };
|
|
191
|
+
/******/ })();
|
|
192
|
+
/******/
|
|
127
193
|
/******/ /* webpack/runtime/make namespace object */
|
|
128
194
|
/******/ (() => {
|
|
129
195
|
/******/ // define __esModule on exports
|
|
@@ -135,6 +201,119 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_fractal_noise__;
|
|
|
135
201
|
/******/ };
|
|
136
202
|
/******/ })();
|
|
137
203
|
/******/
|
|
204
|
+
/******/ /* webpack/runtime/publicPath */
|
|
205
|
+
/******/ (() => {
|
|
206
|
+
/******/ var scriptUrl;
|
|
207
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
208
|
+
/******/ var document = __webpack_require__.g.document;
|
|
209
|
+
/******/ if (!scriptUrl && document) {
|
|
210
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
211
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
212
|
+
/******/ if (!scriptUrl) {
|
|
213
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
214
|
+
/******/ if(scripts.length) {
|
|
215
|
+
/******/ var i = scripts.length - 1;
|
|
216
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
217
|
+
/******/ }
|
|
218
|
+
/******/ }
|
|
219
|
+
/******/ }
|
|
220
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
221
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
222
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
223
|
+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
224
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
225
|
+
/******/ })();
|
|
226
|
+
/******/
|
|
227
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
228
|
+
/******/ (() => {
|
|
229
|
+
/******/ // no baseURI
|
|
230
|
+
/******/
|
|
231
|
+
/******/ // object to store loaded and loading chunks
|
|
232
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
233
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
234
|
+
/******/ var installedChunks = {
|
|
235
|
+
/******/ "tsparticles.path.fractal.noise": 0
|
|
236
|
+
/******/ };
|
|
237
|
+
/******/
|
|
238
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
239
|
+
/******/ // JSONP chunk loading for javascript
|
|
240
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
241
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
242
|
+
/******/
|
|
243
|
+
/******/ // a Promise means "currently loading".
|
|
244
|
+
/******/ if(installedChunkData) {
|
|
245
|
+
/******/ promises.push(installedChunkData[2]);
|
|
246
|
+
/******/ } else {
|
|
247
|
+
/******/ if(true) { // all chunks have JS
|
|
248
|
+
/******/ // setup Promise in chunk cache
|
|
249
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
250
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
251
|
+
/******/
|
|
252
|
+
/******/ // start chunk loading
|
|
253
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
254
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
255
|
+
/******/ var error = new Error();
|
|
256
|
+
/******/ var loadingEnded = (event) => {
|
|
257
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
258
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
259
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
260
|
+
/******/ if(installedChunkData) {
|
|
261
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
262
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
263
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
264
|
+
/******/ error.name = 'ChunkLoadError';
|
|
265
|
+
/******/ error.type = errorType;
|
|
266
|
+
/******/ error.request = realSrc;
|
|
267
|
+
/******/ installedChunkData[1](error);
|
|
268
|
+
/******/ }
|
|
269
|
+
/******/ }
|
|
270
|
+
/******/ };
|
|
271
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
272
|
+
/******/ }
|
|
273
|
+
/******/ }
|
|
274
|
+
/******/ }
|
|
275
|
+
/******/ };
|
|
276
|
+
/******/
|
|
277
|
+
/******/ // no prefetching
|
|
278
|
+
/******/
|
|
279
|
+
/******/ // no preloaded
|
|
280
|
+
/******/
|
|
281
|
+
/******/ // no HMR
|
|
282
|
+
/******/
|
|
283
|
+
/******/ // no HMR manifest
|
|
284
|
+
/******/
|
|
285
|
+
/******/ // no on chunks loaded
|
|
286
|
+
/******/
|
|
287
|
+
/******/ // install a JSONP callback for chunk loading
|
|
288
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
289
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
290
|
+
/******/ // add "moreModules" to the modules object,
|
|
291
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
292
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
293
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
294
|
+
/******/ for(moduleId in moreModules) {
|
|
295
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
296
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
297
|
+
/******/ }
|
|
298
|
+
/******/ }
|
|
299
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
300
|
+
/******/ }
|
|
301
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
302
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
303
|
+
/******/ chunkId = chunkIds[i];
|
|
304
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
305
|
+
/******/ installedChunks[chunkId][0]();
|
|
306
|
+
/******/ }
|
|
307
|
+
/******/ installedChunks[chunkId] = 0;
|
|
308
|
+
/******/ }
|
|
309
|
+
/******/
|
|
310
|
+
/******/ }
|
|
311
|
+
/******/
|
|
312
|
+
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_path_fractal_noise"] = this["webpackChunk_tsparticles_path_fractal_noise"] || [];
|
|
313
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
314
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
315
|
+
/******/ })();
|
|
316
|
+
/******/
|
|
138
317
|
/************************************************************************/
|
|
139
318
|
/******/
|
|
140
319
|
/******/ // startup
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.path.fractal.noise.min.js.LICENSE.txt */
|
|
2
|
-
!function(t
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/fractal-noise"),require("@tsparticles/noise-field"));else if("function"==typeof define&&define.amd)define(["@tsparticles/fractal-noise","@tsparticles/noise-field"],t);else{var r="object"==typeof exports?t(require("@tsparticles/fractal-noise"),require("@tsparticles/noise-field")):t(e.window,e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,((e,t)=>(()=>{var r,o,a={104(e){e.exports=t},689(t){t.exports=e}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,n),r.exports}n.m=a,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>e+".min.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@tsparticles/path-fractal-noise:",n.l=(e,t,a,i)=>{if(r[e])r[e].push(t);else{var s,c;if(void 0!==a)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")==o+a){s=u;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",o+a),s.src=e),r[e]=[t];var f=(t,o)=>{s.onerror=s.onload=null,clearTimeout(d);var a=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(o))),t)return t(o)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.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;n.g.importScripts&&(e=n.g.location+"");var t=n.g.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(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={107:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(((r,a)=>o=e[t]=[r,a]));r.push(o[2]=a);var i=n.p+n.u(t),s=new Error;n.l(i,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(c)c(n)}for(t&&t(r);l<i.length;l++)a=i[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=this.webpackChunk_tsparticles_path_fractal_noise=this.webpackChunk_tsparticles_path_fractal_noise||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};n.r(s),n.d(s,{fractalNoisePathName:()=>c,loadFractalNoisePath:()=>l});const c="fractalNoise";function l(e){e.checkVersion("4.0.0-alpha.0"),e.register((async e=>{const{FractalNoiseGenerator:t}=await n.e(819).then(n.bind(n,819));e.addPathGenerator(c,new t)}))}return s})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Fractal Noise Path
|
|
1
|
+
/*! tsParticles Fractal Noise Path v4.0.0-alpha.0 by Matteo Bruni */
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare class FractalNoiseGenerator implements IMovePathGenerator {
|
|
4
|
-
container?: Container;
|
|
5
|
-
field: Vector[][][];
|
|
6
|
-
noiseW: number;
|
|
7
|
-
readonly options: IFractalOptions;
|
|
8
|
-
private readonly _fractal;
|
|
1
|
+
import { NoiseFieldGenerator } from "@tsparticles/noise-field";
|
|
2
|
+
export declare class FractalNoiseGenerator extends NoiseFieldGenerator {
|
|
9
3
|
constructor();
|
|
10
|
-
generate(particle: Particle): Vector;
|
|
11
|
-
init(container: Container): void;
|
|
12
|
-
reset(): void;
|
|
13
|
-
update(): void;
|
|
14
|
-
private _calculateField;
|
|
15
|
-
private _initField;
|
|
16
|
-
private _resetField;
|
|
17
|
-
private _setup;
|
|
18
4
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Engine } from "@tsparticles/engine";
|
|
2
2
|
export declare const fractalNoisePathName = "fractalNoise";
|
|
3
|
-
export declare function loadFractalNoisePath(engine: Engine
|
|
3
|
+
export declare function loadFractalNoisePath(engine: Engine): void;
|
|
@@ -4,110 +4,23 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/
|
|
7
|
+
define(["require", "exports", "@tsparticles/fractal-noise", "@tsparticles/noise-field"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FractalNoiseGenerator = void 0;
|
|
13
|
-
const engine_1 = require("@tsparticles/engine");
|
|
14
13
|
const fractal_noise_1 = require("@tsparticles/fractal-noise");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
increment: 0.004,
|
|
18
|
-
columns: 0,
|
|
19
|
-
rows: 0,
|
|
20
|
-
layers: 0,
|
|
21
|
-
width: 0,
|
|
22
|
-
height: 0,
|
|
23
|
-
offset: {
|
|
24
|
-
x: 40000,
|
|
25
|
-
y: 40000,
|
|
26
|
-
z: 40000,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
class FractalNoiseGenerator {
|
|
14
|
+
const noise_field_1 = require("@tsparticles/noise-field");
|
|
15
|
+
class FractalNoiseGenerator extends noise_field_1.NoiseFieldGenerator {
|
|
30
16
|
constructor() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
x: Math.max(Math.floor(pos.x / this.options.size), 0),
|
|
39
|
-
y: Math.max(Math.floor(pos.y / this.options.size), 0),
|
|
40
|
-
z: Math.max(Math.floor(pos.z / this.options.size), 0),
|
|
41
|
-
}, v = engine_1.Vector.origin;
|
|
42
|
-
if (!this.field?.[point.x]?.[point.y]?.[point.z]) {
|
|
43
|
-
return v;
|
|
44
|
-
}
|
|
45
|
-
v.setTo(this.field[point.x][point.y][point.z]);
|
|
46
|
-
return v;
|
|
47
|
-
}
|
|
48
|
-
init(container) {
|
|
49
|
-
this.container = container;
|
|
50
|
-
this._setup();
|
|
51
|
-
}
|
|
52
|
-
reset() {
|
|
53
|
-
}
|
|
54
|
-
update() {
|
|
55
|
-
if (!this.container) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this._calculateField();
|
|
59
|
-
this.noiseW += this.options.increment;
|
|
60
|
-
}
|
|
61
|
-
_calculateField() {
|
|
62
|
-
const options = this.options;
|
|
63
|
-
for (let x = 0; x < options.columns; x++) {
|
|
64
|
-
for (let y = 0; y < options.rows; y++) {
|
|
65
|
-
for (let z = 0; z < options.layers; z++) {
|
|
66
|
-
this.field[x][y][z].angle =
|
|
67
|
-
this._fractal.noise4d(x / 50, y / 50, z / 50, this.noiseW) * Math.PI * 2;
|
|
68
|
-
this.field[x][y][z].length = this._fractal.noise4d(x / 100 + options.offset.x, y / 100 + options.offset.y, z / 100 + options.offset.z, this.noiseW);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
_initField() {
|
|
74
|
-
this.field = new Array(this.options.columns);
|
|
75
|
-
for (let x = 0; x < this.options.columns; x++) {
|
|
76
|
-
this.field[x] = new Array(this.options.rows);
|
|
77
|
-
for (let y = 0; y < this.options.rows; y++) {
|
|
78
|
-
this.field[x][y] = new Array(this.options.layers);
|
|
79
|
-
for (let z = 0; z < this.options.layers; z++) {
|
|
80
|
-
this.field[x][y][z] = engine_1.Vector.origin;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
_resetField() {
|
|
86
|
-
const container = this.container;
|
|
87
|
-
if (!container) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
const sourceOptions = container.actualOptions.particles.move.path.options;
|
|
91
|
-
this.options.size = sourceOptions.size > 0 ? sourceOptions.size : defaultOptions.size;
|
|
92
|
-
this.options.increment =
|
|
93
|
-
sourceOptions.increment > 0 ? sourceOptions.increment : defaultOptions.increment;
|
|
94
|
-
this.options.width = container.canvas.size.width;
|
|
95
|
-
this.options.height = container.canvas.size.height;
|
|
96
|
-
const offset = sourceOptions.offset;
|
|
97
|
-
this.options.offset.x = offset?.x ?? defaultOptions.offset.x;
|
|
98
|
-
this.options.offset.y = offset?.y ?? defaultOptions.offset.y;
|
|
99
|
-
this.options.offset.z = offset?.z ?? defaultOptions.offset.z;
|
|
100
|
-
this.options.seed = sourceOptions.seed;
|
|
101
|
-
this._fractal.seed(this.options.seed ?? (0, engine_1.getRandom)());
|
|
102
|
-
this.options.columns = Math.floor(this.options.width / this.options.size) + 1;
|
|
103
|
-
this.options.rows = Math.floor(this.options.height / this.options.size) + 1;
|
|
104
|
-
this.options.layers = Math.floor(container.zLayers / this.options.size) + 1;
|
|
105
|
-
this._initField();
|
|
106
|
-
}
|
|
107
|
-
_setup() {
|
|
108
|
-
this.noiseW = 0;
|
|
109
|
-
this._resetField();
|
|
110
|
-
addEventListener("resize", () => this._resetField());
|
|
17
|
+
const fractalNoise = new fractal_noise_1.FractalNoise();
|
|
18
|
+
super({
|
|
19
|
+
noise4d: (x, y, z, w) => fractalNoise.noise4d(x, y, z, w),
|
|
20
|
+
seed: seed => {
|
|
21
|
+
fractalNoise.seed(seed);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
111
24
|
}
|
|
112
25
|
}
|
|
113
26
|
exports.FractalNoiseGenerator = FractalNoiseGenerator;
|
package/umd/index.js
CHANGED
|
@@ -1,20 +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.fractalNoisePathName = void 0;
|
|
13
47
|
exports.loadFractalNoisePath = loadFractalNoisePath;
|
|
14
|
-
const FractalNoiseGenerator_js_1 = require("./FractalNoiseGenerator.js");
|
|
15
48
|
exports.fractalNoisePathName = "fractalNoise";
|
|
16
|
-
|
|
17
|
-
engine.checkVersion("
|
|
18
|
-
|
|
49
|
+
function loadFractalNoisePath(engine) {
|
|
50
|
+
engine.checkVersion("4.0.0-alpha.0");
|
|
51
|
+
engine.register(async (e) => {
|
|
52
|
+
const { FractalNoiseGenerator } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./FractalNoiseGenerator.js"))) : new Promise((resolve_1, reject_1) => { require(["./FractalNoiseGenerator.js"], resolve_1, reject_1); }).then(__importStar));
|
|
53
|
+
e.addPathGenerator(exports.fractalNoisePathName, new FractalNoiseGenerator());
|
|
54
|
+
});
|
|
19
55
|
}
|
|
20
56
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/browser/IOffsetValues.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/cjs/IFractalOptions.js
DELETED
package/cjs/IOffsetValues.js
DELETED
package/esm/IFractalOptions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/esm/IOffsetValues.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IOffsetValues } from "./IOffsetValues.js";
|
|
2
|
-
export interface IFractalOptions {
|
|
3
|
-
columns: number;
|
|
4
|
-
height: number;
|
|
5
|
-
increment: number;
|
|
6
|
-
layers: number;
|
|
7
|
-
offset: IOffsetValues;
|
|
8
|
-
rows: number;
|
|
9
|
-
seed?: number;
|
|
10
|
-
size: number;
|
|
11
|
-
width: number;
|
|
12
|
-
}
|