@tsparticles/shape-cards 3.0.3 → 3.2.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/103.min.js +2 -0
- package/103.min.js.LICENSE.txt +1 -0
- package/370.min.js +2 -0
- package/370.min.js.LICENSE.txt +1 -0
- package/48.min.js +2 -0
- package/48.min.js.LICENSE.txt +1 -0
- package/895.min.js +2 -0
- package/895.min.js.LICENSE.txt +1 -0
- package/951.min.js +2 -0
- package/951.min.js.LICENSE.txt +1 -0
- package/browser/ClubDrawer.js +6 -0
- package/browser/DiamondDrawer.js +6 -0
- package/browser/HeartDrawer.js +6 -0
- package/browser/SpadeDrawer.js +6 -0
- package/browser/Utils.js +1 -2
- package/browser/index.js +1 -1
- package/cjs/ClubDrawer.js +33 -0
- package/cjs/DiamondDrawer.js +33 -0
- package/cjs/HeartDrawer.js +33 -0
- package/cjs/SpadeDrawer.js +33 -0
- package/cjs/Utils.js +1 -2
- package/cjs/index.js +28 -5
- package/dist_browser_ClubDrawer_js.js +30 -0
- package/dist_browser_DiamondDrawer_js.js +30 -0
- package/dist_browser_HeartDrawer_js.js +30 -0
- package/dist_browser_SpadeDrawer_js.js +30 -0
- package/dist_browser_Utils_js.js +30 -0
- package/esm/ClubDrawer.js +6 -0
- package/esm/DiamondDrawer.js +6 -0
- package/esm/HeartDrawer.js +6 -0
- package/esm/SpadeDrawer.js +6 -0
- package/esm/Utils.js +1 -2
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.shape.cards.js +250 -300
- package/tsparticles.shape.cards.min.js +1 -1
- package/tsparticles.shape.cards.min.js.LICENSE.txt +1 -1
- package/types/ClubDrawer.d.ts +4 -0
- package/types/DiamondDrawer.d.ts +4 -0
- package/types/HeartDrawer.d.ts +4 -0
- package/types/SpadeDrawer.d.ts +4 -0
- package/umd/ClubDrawer.js +44 -0
- package/umd/DiamondDrawer.js +44 -0
- package/umd/HeartDrawer.js +44 -0
- package/umd/SpadeDrawer.js +44 -0
- package/umd/Utils.js +1 -2
- package/umd/index.js +30 -6
- package/browser/CardsSuitsDrawers.js +0 -21
- package/cjs/CardsSuitsDrawers.js +0 -28
- package/esm/CardsSuitsDrawers.js +0 -21
- package/types/CardsSuitsDrawers.d.ts +0 -13
- package/umd/CardsSuitsDrawers.js +0 -38
|
@@ -4,7 +4,15 @@
|
|
|
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.0
|
|
7
|
+
* v3.2.0
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
11
|
+
* This devtool is neither made for production nor for readable output files.
|
|
12
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
13
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
14
|
+
* or disable the default devtool with "devtool: false".
|
|
15
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
16
|
*/
|
|
9
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -18,8 +26,46 @@
|
|
|
18
26
|
})(this, () => {
|
|
19
27
|
return /******/ (() => { // webpackBootstrap
|
|
20
28
|
/******/ "use strict";
|
|
21
|
-
/******/
|
|
22
|
-
|
|
29
|
+
/******/ var __webpack_modules__ = ({
|
|
30
|
+
|
|
31
|
+
/***/ "./dist/browser/index.js":
|
|
32
|
+
/*!*******************************!*\
|
|
33
|
+
!*** ./dist/browser/index.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 */ loadCardsShape: () => (/* binding */ loadCardsShape)\n/* harmony export */ });\nasync function loadCardsShape(engine, refresh = true) {\n const {\n SpadeDrawer\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_SpadeDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./SpadeDrawer.js */ \"./dist/browser/SpadeDrawer.js\")),\n {\n HeartDrawer\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_HeartDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./HeartDrawer.js */ \"./dist/browser/HeartDrawer.js\")),\n {\n DiamondDrawer\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_DiamondDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DiamondDrawer.js */ \"./dist/browser/DiamondDrawer.js\")),\n {\n ClubDrawer\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_ClubDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ClubDrawer.js */ \"./dist/browser/ClubDrawer.js\"));\n await engine.addShape([\"spade\", \"spades\"], new SpadeDrawer(), refresh);\n await engine.addShape([\"heart\", \"hearts\"], new HeartDrawer(), refresh);\n await engine.addShape([\"diamond\", \"diamonds\"], new DiamondDrawer(), refresh);\n await engine.addShape([\"club\", \"clubs\"], new ClubDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/shape-cards/./dist/browser/index.js?");
|
|
38
|
+
|
|
39
|
+
/***/ })
|
|
40
|
+
|
|
41
|
+
/******/ });
|
|
42
|
+
/************************************************************************/
|
|
43
|
+
/******/ // The module cache
|
|
44
|
+
/******/ var __webpack_module_cache__ = {};
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // The require function
|
|
47
|
+
/******/ function __webpack_require__(moduleId) {
|
|
48
|
+
/******/ // Check if module is in cache
|
|
49
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
50
|
+
/******/ if (cachedModule !== undefined) {
|
|
51
|
+
/******/ return cachedModule.exports;
|
|
52
|
+
/******/ }
|
|
53
|
+
/******/ // Create a new module (and put it into the cache)
|
|
54
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
55
|
+
/******/ // no module.id needed
|
|
56
|
+
/******/ // no module.loaded needed
|
|
57
|
+
/******/ exports: {}
|
|
58
|
+
/******/ };
|
|
59
|
+
/******/
|
|
60
|
+
/******/ // Execute the module function
|
|
61
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
62
|
+
/******/
|
|
63
|
+
/******/ // Return the exports of the module
|
|
64
|
+
/******/ return module.exports;
|
|
65
|
+
/******/ }
|
|
66
|
+
/******/
|
|
67
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
68
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
23
69
|
/******/
|
|
24
70
|
/************************************************************************/
|
|
25
71
|
/******/ /* webpack/runtime/define property getters */
|
|
@@ -34,11 +80,91 @@ return /******/ (() => { // webpackBootstrap
|
|
|
34
80
|
/******/ };
|
|
35
81
|
/******/ })();
|
|
36
82
|
/******/
|
|
83
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
84
|
+
/******/ (() => {
|
|
85
|
+
/******/ __webpack_require__.f = {};
|
|
86
|
+
/******/ // This file contains only the entry chunk.
|
|
87
|
+
/******/ // The chunk loading function for additional chunks
|
|
88
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
89
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
90
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
91
|
+
/******/ return promises;
|
|
92
|
+
/******/ }, []));
|
|
93
|
+
/******/ };
|
|
94
|
+
/******/ })();
|
|
95
|
+
/******/
|
|
96
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
97
|
+
/******/ (() => {
|
|
98
|
+
/******/ // This function allow to reference async chunks
|
|
99
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
100
|
+
/******/ // return url for filenames based on template
|
|
101
|
+
/******/ return "" + chunkId + ".js";
|
|
102
|
+
/******/ };
|
|
103
|
+
/******/ })();
|
|
104
|
+
/******/
|
|
105
|
+
/******/ /* webpack/runtime/global */
|
|
106
|
+
/******/ (() => {
|
|
107
|
+
/******/ __webpack_require__.g = (function() {
|
|
108
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
109
|
+
/******/ try {
|
|
110
|
+
/******/ return this || new Function('return this')();
|
|
111
|
+
/******/ } catch (e) {
|
|
112
|
+
/******/ if (typeof window === 'object') return window;
|
|
113
|
+
/******/ }
|
|
114
|
+
/******/ })();
|
|
115
|
+
/******/ })();
|
|
116
|
+
/******/
|
|
37
117
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
38
118
|
/******/ (() => {
|
|
39
119
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
40
120
|
/******/ })();
|
|
41
121
|
/******/
|
|
122
|
+
/******/ /* webpack/runtime/load script */
|
|
123
|
+
/******/ (() => {
|
|
124
|
+
/******/ var inProgress = {};
|
|
125
|
+
/******/ var dataWebpackPrefix = "@tsparticles/shape-cards:";
|
|
126
|
+
/******/ // loadScript function to load a script via script tag
|
|
127
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
128
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
129
|
+
/******/ var script, needAttach;
|
|
130
|
+
/******/ if(key !== undefined) {
|
|
131
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
132
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
133
|
+
/******/ var s = scripts[i];
|
|
134
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
135
|
+
/******/ }
|
|
136
|
+
/******/ }
|
|
137
|
+
/******/ if(!script) {
|
|
138
|
+
/******/ needAttach = true;
|
|
139
|
+
/******/ script = document.createElement('script');
|
|
140
|
+
/******/
|
|
141
|
+
/******/ script.charset = 'utf-8';
|
|
142
|
+
/******/ script.timeout = 120;
|
|
143
|
+
/******/ if (__webpack_require__.nc) {
|
|
144
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
145
|
+
/******/ }
|
|
146
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
147
|
+
/******/
|
|
148
|
+
/******/ script.src = url;
|
|
149
|
+
/******/ }
|
|
150
|
+
/******/ inProgress[url] = [done];
|
|
151
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
152
|
+
/******/ // avoid mem leaks in IE.
|
|
153
|
+
/******/ script.onerror = script.onload = null;
|
|
154
|
+
/******/ clearTimeout(timeout);
|
|
155
|
+
/******/ var doneFns = inProgress[url];
|
|
156
|
+
/******/ delete inProgress[url];
|
|
157
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
158
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
159
|
+
/******/ if(prev) return prev(event);
|
|
160
|
+
/******/ }
|
|
161
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
162
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
163
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
164
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
165
|
+
/******/ };
|
|
166
|
+
/******/ })();
|
|
167
|
+
/******/
|
|
42
168
|
/******/ /* webpack/runtime/make namespace object */
|
|
43
169
|
/******/ (() => {
|
|
44
170
|
/******/ // define __esModule on exports
|
|
@@ -50,304 +176,128 @@ return /******/ (() => { // webpackBootstrap
|
|
|
50
176
|
/******/ };
|
|
51
177
|
/******/ })();
|
|
52
178
|
/******/
|
|
179
|
+
/******/ /* webpack/runtime/publicPath */
|
|
180
|
+
/******/ (() => {
|
|
181
|
+
/******/ var scriptUrl;
|
|
182
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
183
|
+
/******/ var document = __webpack_require__.g.document;
|
|
184
|
+
/******/ if (!scriptUrl && document) {
|
|
185
|
+
/******/ if (document.currentScript)
|
|
186
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
187
|
+
/******/ if (!scriptUrl) {
|
|
188
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
189
|
+
/******/ if(scripts.length) {
|
|
190
|
+
/******/ var i = scripts.length - 1;
|
|
191
|
+
/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;
|
|
192
|
+
/******/ }
|
|
193
|
+
/******/ }
|
|
194
|
+
/******/ }
|
|
195
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
196
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
197
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
198
|
+
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
199
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
200
|
+
/******/ })();
|
|
201
|
+
/******/
|
|
202
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
203
|
+
/******/ (() => {
|
|
204
|
+
/******/ // no baseURI
|
|
205
|
+
/******/
|
|
206
|
+
/******/ // object to store loaded and loading chunks
|
|
207
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
208
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
209
|
+
/******/ var installedChunks = {
|
|
210
|
+
/******/ "tsparticles.shape.cards": 0
|
|
211
|
+
/******/ };
|
|
212
|
+
/******/
|
|
213
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
214
|
+
/******/ // JSONP chunk loading for javascript
|
|
215
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
216
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
217
|
+
/******/
|
|
218
|
+
/******/ // a Promise means "currently loading".
|
|
219
|
+
/******/ if(installedChunkData) {
|
|
220
|
+
/******/ promises.push(installedChunkData[2]);
|
|
221
|
+
/******/ } else {
|
|
222
|
+
/******/ if(true) { // all chunks have JS
|
|
223
|
+
/******/ // setup Promise in chunk cache
|
|
224
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
225
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
226
|
+
/******/
|
|
227
|
+
/******/ // start chunk loading
|
|
228
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
229
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
230
|
+
/******/ var error = new Error();
|
|
231
|
+
/******/ var loadingEnded = (event) => {
|
|
232
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
233
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
234
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
235
|
+
/******/ if(installedChunkData) {
|
|
236
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
237
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
238
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
239
|
+
/******/ error.name = 'ChunkLoadError';
|
|
240
|
+
/******/ error.type = errorType;
|
|
241
|
+
/******/ error.request = realSrc;
|
|
242
|
+
/******/ installedChunkData[1](error);
|
|
243
|
+
/******/ }
|
|
244
|
+
/******/ }
|
|
245
|
+
/******/ };
|
|
246
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
247
|
+
/******/ }
|
|
248
|
+
/******/ }
|
|
249
|
+
/******/ }
|
|
250
|
+
/******/ };
|
|
251
|
+
/******/
|
|
252
|
+
/******/ // no prefetching
|
|
253
|
+
/******/
|
|
254
|
+
/******/ // no preloaded
|
|
255
|
+
/******/
|
|
256
|
+
/******/ // no HMR
|
|
257
|
+
/******/
|
|
258
|
+
/******/ // no HMR manifest
|
|
259
|
+
/******/
|
|
260
|
+
/******/ // no on chunks loaded
|
|
261
|
+
/******/
|
|
262
|
+
/******/ // install a JSONP callback for chunk loading
|
|
263
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
264
|
+
/******/ var chunkIds = data[0];
|
|
265
|
+
/******/ var moreModules = data[1];
|
|
266
|
+
/******/ var runtime = data[2];
|
|
267
|
+
/******/ // add "moreModules" to the modules object,
|
|
268
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
269
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
270
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
271
|
+
/******/ for(moduleId in moreModules) {
|
|
272
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
273
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
274
|
+
/******/ }
|
|
275
|
+
/******/ }
|
|
276
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
277
|
+
/******/ }
|
|
278
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
279
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
280
|
+
/******/ chunkId = chunkIds[i];
|
|
281
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
282
|
+
/******/ installedChunks[chunkId][0]();
|
|
283
|
+
/******/ }
|
|
284
|
+
/******/ installedChunks[chunkId] = 0;
|
|
285
|
+
/******/ }
|
|
286
|
+
/******/
|
|
287
|
+
/******/ }
|
|
288
|
+
/******/
|
|
289
|
+
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_shape_cards"] = this["webpackChunk_tsparticles_shape_cards"] || [];
|
|
290
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
291
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
292
|
+
/******/ })();
|
|
293
|
+
/******/
|
|
53
294
|
/************************************************************************/
|
|
54
|
-
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
loadCardsShape: () => (/* binding */ loadCardsShape)
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
;// CONCATENATED MODULE: ./dist/browser/Utils.js
|
|
64
|
-
function drawPath(data, path) {
|
|
65
|
-
if (!path.segments.length || !path.segments[0].values.length) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const {
|
|
69
|
-
context,
|
|
70
|
-
radius
|
|
71
|
-
} = data;
|
|
72
|
-
context.moveTo(path.segments[0].values[0].x * radius, path.segments[0].values[0].y * radius);
|
|
73
|
-
for (let i = 0; i < path.segments.length; i++) {
|
|
74
|
-
const segment = path.segments[i];
|
|
75
|
-
context.bezierCurveTo(segment.values[1].x * radius, segment.values[1].y * radius, segment.values[2].x * radius, segment.values[2].y * radius, segment.values[3].x * radius, segment.values[3].y * radius);
|
|
76
|
-
}
|
|
77
|
-
for (let i = path.segments.length - 1; i >= 0; i--) {
|
|
78
|
-
const segment = path.segments[i];
|
|
79
|
-
context.bezierCurveTo(-segment.values[2].x * radius, segment.values[2].y * radius, -segment.values[1].x * radius, segment.values[1].y * radius, -segment.values[0].x * radius, segment.values[0].y * radius);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const n = 1.0 / 2;
|
|
83
|
-
const paths = {
|
|
84
|
-
heart: {
|
|
85
|
-
segments: [{
|
|
86
|
-
values: [{
|
|
87
|
-
x: 0,
|
|
88
|
-
y: n
|
|
89
|
-
}, {
|
|
90
|
-
x: 0,
|
|
91
|
-
y: n
|
|
92
|
-
}, {
|
|
93
|
-
x: n,
|
|
94
|
-
y: 0
|
|
95
|
-
}, {
|
|
96
|
-
x: n,
|
|
97
|
-
y: -n / 2
|
|
98
|
-
}]
|
|
99
|
-
}, {
|
|
100
|
-
values: [{
|
|
101
|
-
x: n,
|
|
102
|
-
y: -n / 2
|
|
103
|
-
}, {
|
|
104
|
-
x: n,
|
|
105
|
-
y: -n / 2
|
|
106
|
-
}, {
|
|
107
|
-
x: n,
|
|
108
|
-
y: -n
|
|
109
|
-
}, {
|
|
110
|
-
x: n / 2,
|
|
111
|
-
y: -n
|
|
112
|
-
}]
|
|
113
|
-
}, {
|
|
114
|
-
values: [{
|
|
115
|
-
x: n / 2,
|
|
116
|
-
y: -n
|
|
117
|
-
}, {
|
|
118
|
-
x: n / 2,
|
|
119
|
-
y: -n
|
|
120
|
-
}, {
|
|
121
|
-
x: 0,
|
|
122
|
-
y: -n
|
|
123
|
-
}, {
|
|
124
|
-
x: 0,
|
|
125
|
-
y: -n / 2
|
|
126
|
-
}]
|
|
127
|
-
}]
|
|
128
|
-
},
|
|
129
|
-
diamond: {
|
|
130
|
-
segments: [{
|
|
131
|
-
values: [{
|
|
132
|
-
x: 0,
|
|
133
|
-
y: n
|
|
134
|
-
}, {
|
|
135
|
-
x: 0,
|
|
136
|
-
y: n
|
|
137
|
-
}, {
|
|
138
|
-
x: 3 * n / 4,
|
|
139
|
-
y: 0
|
|
140
|
-
}, {
|
|
141
|
-
x: 3 * n / 4,
|
|
142
|
-
y: 0
|
|
143
|
-
}]
|
|
144
|
-
}, {
|
|
145
|
-
values: [{
|
|
146
|
-
x: 3 * n / 4,
|
|
147
|
-
y: 0
|
|
148
|
-
}, {
|
|
149
|
-
x: 3 * n / 4,
|
|
150
|
-
y: 0
|
|
151
|
-
}, {
|
|
152
|
-
x: 0,
|
|
153
|
-
y: -n
|
|
154
|
-
}, {
|
|
155
|
-
x: 0,
|
|
156
|
-
y: -n
|
|
157
|
-
}]
|
|
158
|
-
}]
|
|
159
|
-
},
|
|
160
|
-
club: {
|
|
161
|
-
segments: [{
|
|
162
|
-
values: [{
|
|
163
|
-
x: 0,
|
|
164
|
-
y: -n
|
|
165
|
-
}, {
|
|
166
|
-
x: 0,
|
|
167
|
-
y: -n
|
|
168
|
-
}, {
|
|
169
|
-
x: n / 2,
|
|
170
|
-
y: -n
|
|
171
|
-
}, {
|
|
172
|
-
x: n / 2,
|
|
173
|
-
y: -n / 2
|
|
174
|
-
}]
|
|
175
|
-
}, {
|
|
176
|
-
values: [{
|
|
177
|
-
x: n / 2,
|
|
178
|
-
y: -n / 2
|
|
179
|
-
}, {
|
|
180
|
-
x: n / 2,
|
|
181
|
-
y: -n / 2
|
|
182
|
-
}, {
|
|
183
|
-
x: n,
|
|
184
|
-
y: -n / 2
|
|
185
|
-
}, {
|
|
186
|
-
x: n,
|
|
187
|
-
y: 0
|
|
188
|
-
}]
|
|
189
|
-
}, {
|
|
190
|
-
values: [{
|
|
191
|
-
x: n,
|
|
192
|
-
y: 0
|
|
193
|
-
}, {
|
|
194
|
-
x: n,
|
|
195
|
-
y: 0
|
|
196
|
-
}, {
|
|
197
|
-
x: n,
|
|
198
|
-
y: n / 2
|
|
199
|
-
}, {
|
|
200
|
-
x: n / 2,
|
|
201
|
-
y: n / 2
|
|
202
|
-
}]
|
|
203
|
-
}, {
|
|
204
|
-
values: [{
|
|
205
|
-
x: n / 2,
|
|
206
|
-
y: n / 2
|
|
207
|
-
}, {
|
|
208
|
-
x: n / 2,
|
|
209
|
-
y: n / 2
|
|
210
|
-
}, {
|
|
211
|
-
x: n / 8,
|
|
212
|
-
y: n / 2
|
|
213
|
-
}, {
|
|
214
|
-
x: n / 8,
|
|
215
|
-
y: n / 8
|
|
216
|
-
}]
|
|
217
|
-
}, {
|
|
218
|
-
values: [{
|
|
219
|
-
x: n / 8,
|
|
220
|
-
y: n / 8
|
|
221
|
-
}, {
|
|
222
|
-
x: n / 8,
|
|
223
|
-
y: n / 2
|
|
224
|
-
}, {
|
|
225
|
-
x: n / 2,
|
|
226
|
-
y: n
|
|
227
|
-
}, {
|
|
228
|
-
x: n / 2,
|
|
229
|
-
y: n
|
|
230
|
-
}]
|
|
231
|
-
}, {
|
|
232
|
-
values: [{
|
|
233
|
-
x: n / 2,
|
|
234
|
-
y: n
|
|
235
|
-
}, {
|
|
236
|
-
x: n / 2,
|
|
237
|
-
y: n
|
|
238
|
-
}, {
|
|
239
|
-
x: 0,
|
|
240
|
-
y: n
|
|
241
|
-
}, {
|
|
242
|
-
x: 0,
|
|
243
|
-
y: n
|
|
244
|
-
}]
|
|
245
|
-
}]
|
|
246
|
-
},
|
|
247
|
-
spade: {
|
|
248
|
-
segments: [{
|
|
249
|
-
values: [{
|
|
250
|
-
x: 0,
|
|
251
|
-
y: -n
|
|
252
|
-
}, {
|
|
253
|
-
x: 0,
|
|
254
|
-
y: -n
|
|
255
|
-
}, {
|
|
256
|
-
x: n,
|
|
257
|
-
y: -n / 2
|
|
258
|
-
}, {
|
|
259
|
-
x: n,
|
|
260
|
-
y: 0
|
|
261
|
-
}]
|
|
262
|
-
}, {
|
|
263
|
-
values: [{
|
|
264
|
-
x: n,
|
|
265
|
-
y: 0
|
|
266
|
-
}, {
|
|
267
|
-
x: n,
|
|
268
|
-
y: 0
|
|
269
|
-
}, {
|
|
270
|
-
x: n,
|
|
271
|
-
y: n / 2
|
|
272
|
-
}, {
|
|
273
|
-
x: n / 2,
|
|
274
|
-
y: n / 2
|
|
275
|
-
}]
|
|
276
|
-
}, {
|
|
277
|
-
values: [{
|
|
278
|
-
x: n / 2,
|
|
279
|
-
y: n / 2
|
|
280
|
-
}, {
|
|
281
|
-
x: n / 2,
|
|
282
|
-
y: n / 2
|
|
283
|
-
}, {
|
|
284
|
-
x: n / 8,
|
|
285
|
-
y: n / 2
|
|
286
|
-
}, {
|
|
287
|
-
x: n / 8,
|
|
288
|
-
y: n / 8
|
|
289
|
-
}]
|
|
290
|
-
}, {
|
|
291
|
-
values: [{
|
|
292
|
-
x: n / 8,
|
|
293
|
-
y: n / 8
|
|
294
|
-
}, {
|
|
295
|
-
x: n / 8,
|
|
296
|
-
y: n / 2
|
|
297
|
-
}, {
|
|
298
|
-
x: n / 2,
|
|
299
|
-
y: n
|
|
300
|
-
}, {
|
|
301
|
-
x: n / 2,
|
|
302
|
-
y: n
|
|
303
|
-
}]
|
|
304
|
-
}, {
|
|
305
|
-
values: [{
|
|
306
|
-
x: n / 2,
|
|
307
|
-
y: n
|
|
308
|
-
}, {
|
|
309
|
-
x: n / 2,
|
|
310
|
-
y: n
|
|
311
|
-
}, {
|
|
312
|
-
x: 0,
|
|
313
|
-
y: n
|
|
314
|
-
}, {
|
|
315
|
-
x: 0,
|
|
316
|
-
y: n
|
|
317
|
-
}]
|
|
318
|
-
}]
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
;// CONCATENATED MODULE: ./dist/browser/CardsSuitsDrawers.js
|
|
322
|
-
|
|
323
|
-
class SpadeDrawer {
|
|
324
|
-
draw(data) {
|
|
325
|
-
drawPath(data, paths.spade);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
class HeartDrawer {
|
|
329
|
-
draw(data) {
|
|
330
|
-
drawPath(data, paths.heart);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
class DiamondDrawer {
|
|
334
|
-
draw(data) {
|
|
335
|
-
drawPath(data, paths.diamond);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
class ClubDrawer {
|
|
339
|
-
draw(data) {
|
|
340
|
-
drawPath(data, paths.club);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
;// CONCATENATED MODULE: ./dist/browser/index.js
|
|
344
|
-
|
|
345
|
-
async function loadCardsShape(engine, refresh = true) {
|
|
346
|
-
await engine.addShape(["spade", "spades"], new SpadeDrawer(), refresh);
|
|
347
|
-
await engine.addShape(["heart", "hearts"], new HeartDrawer(), refresh);
|
|
348
|
-
await engine.addShape(["diamond", "diamonds"], new DiamondDrawer(), refresh);
|
|
349
|
-
await engine.addShape(["club", "clubs"], new ClubDrawer(), refresh);
|
|
350
|
-
}
|
|
295
|
+
/******/
|
|
296
|
+
/******/ // startup
|
|
297
|
+
/******/ // Load entry module and return exports
|
|
298
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
299
|
+
/******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
|
|
300
|
+
/******/
|
|
351
301
|
/******/ return __webpack_exports__;
|
|
352
302
|
/******/ })()
|
|
353
303
|
;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.shape.cards.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(this,(()=>(()=>{var e,t,r={},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,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.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@tsparticles/shape-cards:",o.l=(r,a,n,i)=>{if(e[r])e[r].push(a);else{var s,d;if(void 0!==n)for(var c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var l=c[p];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==t+n){s=l;break}}s||(d=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+n),s.src=r),e[r]=[a];var u=(t,a)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),d&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&!e;)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={866:0};o.f.j=(t,r)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,o)=>a=e[t]=[r,o]));r.push(a[2]=n);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",s.name="ChunkLoadError",s.type=n,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,i=r[0],s=r[1],d=r[2],c=0;if(i.some((t=>0!==e[t]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(d)d(o)}for(t&&t(r);c<i.length;c++)n=i[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=this.webpackChunk_tsparticles_shape_cards=this.webpackChunk_tsparticles_shape_cards||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n={};async function i(e,t=!0){const{SpadeDrawer:r}=await o.e(951).then(o.bind(o,951)),{HeartDrawer:a}=await o.e(895).then(o.bind(o,895)),{DiamondDrawer:n}=await o.e(370).then(o.bind(o,370)),{ClubDrawer:i}=await o.e(48).then(o.bind(o,48));await e.addShape(["spade","spades"],new r,t),await e.addShape(["heart","hearts"],new a,t),await e.addShape(["diamond","diamonds"],new n,t),await e.addShape(["club","clubs"],new i,t)}return o.r(n),o.d(n,{loadCardsShape:()=>i}),n})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Cards Shape v3.0
|
|
1
|
+
/*! tsParticles Cards Shape v3.2.0 by Matteo Bruni */
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
18
|
+
if (mod && mod.__esModule) return mod;
|
|
19
|
+
var result = {};
|
|
20
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
+
__setModuleDefault(result, mod);
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
(function (factory) {
|
|
25
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
26
|
+
var v = factory(require, exports);
|
|
27
|
+
if (v !== undefined) module.exports = v;
|
|
28
|
+
}
|
|
29
|
+
else if (typeof define === "function" && define.amd) {
|
|
30
|
+
define(["require", "exports"], factory);
|
|
31
|
+
}
|
|
32
|
+
})(function (require, exports) {
|
|
33
|
+
"use strict";
|
|
34
|
+
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ClubDrawer = void 0;
|
|
37
|
+
class ClubDrawer {
|
|
38
|
+
async draw(data) {
|
|
39
|
+
const { drawPath, paths } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./Utils.js"))) : new Promise((resolve_1, reject_1) => { require(["./Utils.js"], resolve_1, reject_1); }).then(__importStar));
|
|
40
|
+
drawPath(data, paths.club);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ClubDrawer = ClubDrawer;
|
|
44
|
+
});
|