@tsparticles/plugin-emitters-shape-square 4.0.0-alpha.2 → 4.0.0-alpha.4
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/{815.min.js → 711.min.js} +2 -2
- package/711.min.js.LICENSE.txt +1 -0
- package/browser/index.js +6 -3
- package/cjs/index.js +6 -3
- package/dist_browser_EmittersSquareShapeGenerator_js.js +1 -1
- package/esm/index.js +6 -3
- package/package.json +3 -3
- package/report.html +1 -1
- package/tsparticles.plugin.emitters.shape.square.js +4 -16
- package/tsparticles.plugin.emitters.shape.square.min.js +1 -1
- package/tsparticles.plugin.emitters.shape.square.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/index.js +6 -3
- package/815.min.js.LICENSE.txt +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(this.webpackChunk_tsparticles_plugin_emitters_shape_square=this.webpackChunk_tsparticles_plugin_emitters_shape_square||[]).push([[
|
|
1
|
+
/*! For license information please see 711.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_plugin_emitters_shape_square=this.webpackChunk_tsparticles_plugin_emitters_shape_square||[]).push([[711],{711(t,e,o){o.d(e,{EmittersSquareShapeGenerator:()=>h});var i=o(526),s=o(303);var n;function a(t,e){return t+e*((0,s.getRandom)()-s.half)}!function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomRight=2]="BottomRight",t[t.BottomLeft=3]="BottomLeft"}(n||(n={}));class r extends i.EmitterShapeBase{constructor(t,e,o,i){super(t,e,o,i)}async init(){}randomPosition(){const t=this.fill,e=this.position,o=this.size;if(t)return{position:{x:a(e.x,o.width),y:a(e.y,o.height)}};{const t=o.width*s.half,i=o.height*s.half,a=Math.floor(4*(0,s.getRandom)()),r=((0,s.getRandom)()-s.half)*s.double;switch(a){case n.TopLeft:return{position:{x:e.x+r*t,y:e.y-i}};case n.TopRight:return{position:{x:e.x-t,y:e.y+r*i}};case n.BottomRight:return{position:{x:e.x+r*t,y:e.y+i}};case n.BottomLeft:default:return{position:{x:e.x+t,y:e.y+r*i}}}}}}class h{generate(t,e,o,i){return new r(t,e,o,i)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Emitters Shape Square Plugin v4.0.0-alpha.4 by Matteo Bruni */
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export function loadEmittersShapeSquare(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
3
|
+
engine.register(async (e) => {
|
|
4
|
+
if (!e.addEmitterShapeGenerator) {
|
|
5
|
+
throw new Error("tsParticles emitters plugin missing or initialized after shapes");
|
|
6
|
+
}
|
|
4
7
|
const { EmittersSquareShapeGenerator } = await import("./EmittersSquareShapeGenerator.js");
|
|
5
|
-
|
|
8
|
+
e.addEmitterShapeGenerator("square", new EmittersSquareShapeGenerator());
|
|
6
9
|
});
|
|
7
10
|
}
|
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export function loadEmittersShapeSquare(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
3
|
+
engine.register(async (e) => {
|
|
4
|
+
if (!e.addEmitterShapeGenerator) {
|
|
5
|
+
throw new Error("tsParticles emitters plugin missing or initialized after shapes");
|
|
6
|
+
}
|
|
4
7
|
const { EmittersSquareShapeGenerator } = await import("./EmittersSquareShapeGenerator.js");
|
|
5
|
-
|
|
8
|
+
e.addEmitterShapeGenerator("square", new EmittersSquareShapeGenerator());
|
|
6
9
|
});
|
|
7
10
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export function loadEmittersShapeSquare(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
3
|
+
engine.register(async (e) => {
|
|
4
|
+
if (!e.addEmitterShapeGenerator) {
|
|
5
|
+
throw new Error("tsParticles emitters plugin missing or initialized after shapes");
|
|
6
|
+
}
|
|
4
7
|
const { EmittersSquareShapeGenerator } = await import("./EmittersSquareShapeGenerator.js");
|
|
5
|
-
|
|
8
|
+
e.addEmitterShapeGenerator("square", new EmittersSquareShapeGenerator());
|
|
6
9
|
});
|
|
7
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-emitters-shape-square",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.4",
|
|
4
4
|
"description": "tsParticles emitters shape square plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"./package.json": "./package.json"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
104
|
-
"@tsparticles/plugin-emitters": "4.0.0-alpha.
|
|
103
|
+
"@tsparticles/engine": "4.0.0-alpha.4",
|
|
104
|
+
"@tsparticles/plugin-emitters": "4.0.0-alpha.4"
|
|
105
105
|
},
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
package/report.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>@tsparticles/plugin-emitters-shape-square [
|
|
6
|
+
<title>@tsparticles/plugin-emitters-shape-square [21 Jan 2026 at 14:48]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTK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t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -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
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.4
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -34,7 +34,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
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 */ loadEmittersShapeSquare: () => (/* binding */ loadEmittersShapeSquare)\n/* harmony export */ });\nfunction loadEmittersShapeSquare(engine) {\n engine.checkVersion(\"4.0.0-alpha.
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadEmittersShapeSquare: () => (/* binding */ loadEmittersShapeSquare)\n/* harmony export */ });\nfunction loadEmittersShapeSquare(engine) {\n engine.checkVersion(\"4.0.0-alpha.4\");\n engine.register(async e => {\n if (!e.addEmitterShapeGenerator) {\n throw new Error(\"tsParticles emitters plugin missing or initialized after shapes\");\n }\n const {\n EmittersSquareShapeGenerator\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_EmittersSquareShapeGenerator_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersSquareShapeGenerator.js */ \"./dist/browser/EmittersSquareShapeGenerator.js\"));\n e.addEmitterShapeGenerator(\"square\", new EmittersSquareShapeGenerator());\n });\n}\n\n//# sourceURL=webpack://@tsparticles/plugin-emitters-shape-square/./dist/browser/index.js?\n}");
|
|
38
38
|
|
|
39
39
|
/***/ },
|
|
40
40
|
|
|
@@ -128,18 +128,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
|
128
128
|
/******/ };
|
|
129
129
|
/******/ })();
|
|
130
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
|
-
/******/
|
|
143
131
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
144
132
|
/******/ (() => {
|
|
145
133
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
@@ -204,8 +192,8 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
|
204
192
|
/******/ /* webpack/runtime/publicPath */
|
|
205
193
|
/******/ (() => {
|
|
206
194
|
/******/ var scriptUrl;
|
|
207
|
-
/******/ if (
|
|
208
|
-
/******/ var document =
|
|
195
|
+
/******/ if (globalThis.importScripts) scriptUrl = globalThis.location + "";
|
|
196
|
+
/******/ var document = globalThis.document;
|
|
209
197
|
/******/ if (!scriptUrl && document) {
|
|
210
198
|
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
211
199
|
/******/ scriptUrl = document.currentScript.src;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.plugin.emitters.shape.square.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,
|
|
2
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@tsparticles/plugin-emitters"),require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/plugin-emitters","@tsparticles/engine"],r);else{var t="object"==typeof exports?r(require("@tsparticles/plugin-emitters"),require("@tsparticles/engine")):r(e.window,e.window);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(this,((e,r)=>(()=>{var t,i,a={303(e){e.exports=r},526(r){r.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return a[e](t,t.exports,n),t.exports}n.m=a,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.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+".min.js",n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},i="@tsparticles/plugin-emitters-shape-square:",n.l=(e,r,a,o)=>{if(t[e])t[e].push(r);else{var s,p;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==i+a){s=c;break}}s||(p=!0,(s=document.createElement("script")).charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",i+a),s.src=e),t[e]=[r];var d=(r,i)=>{s.onerror=s.onload=null,clearTimeout(f);var a=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(i))),r)return r(i)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),p&&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;globalThis.importScripts&&(e=globalThis.location+"");var r=globalThis.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var i=t.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=t[i--].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={827:0};n.f.j=(r,t)=>{var i=n.o(e,r)?e[r]:void 0;if(0!==i)if(i)t.push(i[2]);else{var a=new Promise(((t,a)=>i=e[r]=[t,a]));t.push(i[2]=a);var o=n.p+n.u(r),s=new Error;n.l(o,(t=>{if(n.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i)){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}}),"chunk-"+r,r)}};var r=(r,t)=>{var i,a,[o,s,p]=t,l=0;if(o.some((r=>0!==e[r]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(p)p(n)}for(r&&r(t);l<o.length;l++)a=o[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=this.webpackChunk_tsparticles_plugin_emitters_shape_square=this.webpackChunk_tsparticles_plugin_emitters_shape_square||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var s={};function p(e){e.checkVersion("4.0.0-alpha.4"),e.register((async e=>{if(!e.addEmitterShapeGenerator)throw new Error("tsParticles emitters plugin missing or initialized after shapes");const{EmittersSquareShapeGenerator:r}=await n.e(711).then(n.bind(n,711));e.addEmitterShapeGenerator("square",new r)}))}return n.r(s),n.d(s,{loadEmittersShapeSquare:()=>p}),s})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Emitters Shape Square Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Emitters Shape Square Plugin v4.0.0-alpha.4 by Matteo Bruni */
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Engine } from "@tsparticles/engine";
|
|
2
2
|
export declare function loadEmittersShapeSquare(engine: Engine): void;
|
package/umd/index.js
CHANGED
|
@@ -45,10 +45,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.loadEmittersShapeSquare = loadEmittersShapeSquare;
|
|
47
47
|
function loadEmittersShapeSquare(engine) {
|
|
48
|
-
engine.checkVersion("4.0.0-alpha.
|
|
49
|
-
engine.register(async (
|
|
48
|
+
engine.checkVersion("4.0.0-alpha.4");
|
|
49
|
+
engine.register(async (e) => {
|
|
50
|
+
if (!e.addEmitterShapeGenerator) {
|
|
51
|
+
throw new Error("tsParticles emitters plugin missing or initialized after shapes");
|
|
52
|
+
}
|
|
50
53
|
const { EmittersSquareShapeGenerator } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./EmittersSquareShapeGenerator.js"))) : new Promise((resolve_1, reject_1) => { require(["./EmittersSquareShapeGenerator.js"], resolve_1, reject_1); }).then(__importStar));
|
|
51
|
-
|
|
54
|
+
e.addEmitterShapeGenerator("square", new EmittersSquareShapeGenerator());
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
57
|
});
|
package/815.min.js.LICENSE.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tsParticles Emitters Shape Square Plugin v4.0.0-alpha.2 by Matteo Bruni */
|