@tsparticles/shape-squircle 4.1.3 → 4.2.1

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/browser/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SquircleDrawer } from "./SquircleDrawer.js";
2
2
  export async function loadSquircleShape(engine) {
3
- engine.checkVersion("4.1.3");
3
+ engine.checkVersion("4.2.1");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
6
6
  });
@@ -1,5 +1,5 @@
1
1
  export async function loadSquircleShape(engine) {
2
- engine.checkVersion("4.1.3");
2
+ engine.checkVersion("4.2.1");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { SquircleDrawer } = await import("./SquircleDrawer.js");
5
5
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
package/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SquircleDrawer } from "./SquircleDrawer.js";
2
2
  export async function loadSquircleShape(engine) {
3
- engine.checkVersion("4.1.3");
3
+ engine.checkVersion("4.2.1");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
6
6
  });
package/cjs/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadSquircleShape(engine) {
2
- engine.checkVersion("4.1.3");
2
+ engine.checkVersion("4.2.1");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { SquircleDrawer } = await import("./SquircleDrawer.js");
5
5
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SquircleDrawer } from "./SquircleDrawer.js";
2
2
  export async function loadSquircleShape(engine) {
3
- engine.checkVersion("4.1.3");
3
+ engine.checkVersion("4.2.1");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
6
6
  });
package/esm/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadSquircleShape(engine) {
2
- engine.checkVersion("4.1.3");
2
+ engine.checkVersion("4.2.1");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { SquircleDrawer } = await import("./SquircleDrawer.js");
5
5
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-squircle",
3
- "version": "4.1.3",
3
+ "version": "4.2.1",
4
4
  "description": "tsParticles squircle shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -106,7 +106,7 @@
106
106
  "./package.json": "./package.json"
107
107
  },
108
108
  "peerDependencies": {
109
- "@tsparticles/engine": "4.1.3"
109
+ "@tsparticles/engine": "4.2.1"
110
110
  },
111
111
  "publishConfig": {
112
112
  "access": "public"
package/report.html CHANGED
@@ -4930,7 +4930,7 @@ var drawChart = (function (exports) {
4930
4930
  </script>
4931
4931
  <script>
4932
4932
  /*<!--*/
4933
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.shape.squircle.js","children":[{"name":"dist/browser","children":[{"uid":"111fbcb4-1","name":"Utils.js"},{"uid":"111fbcb4-3","name":"SquircleDrawer.js"},{"uid":"111fbcb4-5","name":"index.js"},{"uid":"111fbcb4-7","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"111fbcb4-1":{"renderedLength":1013,"gzipLength":0,"brotliLength":0,"metaUid":"111fbcb4-0"},"111fbcb4-3":{"renderedLength":395,"gzipLength":0,"brotliLength":0,"metaUid":"111fbcb4-2"},"111fbcb4-5":{"renderedLength":250,"gzipLength":0,"brotliLength":0,"metaUid":"111fbcb4-4"},"111fbcb4-7":{"renderedLength":177,"gzipLength":0,"brotliLength":0,"metaUid":"111fbcb4-6"}},"nodeMetas":{"111fbcb4-0":{"id":"/dist/browser/Utils.js","moduleParts":{"tsparticles.shape.squircle.js":"111fbcb4-1"},"imported":[{"uid":"111fbcb4-8"}],"importedBy":[{"uid":"111fbcb4-2"}]},"111fbcb4-2":{"id":"/dist/browser/SquircleDrawer.js","moduleParts":{"tsparticles.shape.squircle.js":"111fbcb4-3"},"imported":[{"uid":"111fbcb4-8"},{"uid":"111fbcb4-0"}],"importedBy":[{"uid":"111fbcb4-4"}]},"111fbcb4-4":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.shape.squircle.js":"111fbcb4-5"},"imported":[{"uid":"111fbcb4-2"}],"importedBy":[{"uid":"111fbcb4-6"}]},"111fbcb4-6":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.shape.squircle.js":"111fbcb4-7"},"imported":[{"uid":"111fbcb4-4"}],"importedBy":[],"isEntry":true},"111fbcb4-8":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"111fbcb4-2"},{"uid":"111fbcb4-0"}],"isExternal":true}},"env":{"rollup":"4.60.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4933
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.shape.squircle.js","children":[{"name":"dist/browser","children":[{"uid":"413ecb87-1","name":"Utils.js"},{"uid":"413ecb87-3","name":"SquircleDrawer.js"},{"uid":"413ecb87-5","name":"index.js"},{"uid":"413ecb87-7","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"413ecb87-1":{"renderedLength":1013,"gzipLength":0,"brotliLength":0,"metaUid":"413ecb87-0"},"413ecb87-3":{"renderedLength":395,"gzipLength":0,"brotliLength":0,"metaUid":"413ecb87-2"},"413ecb87-5":{"renderedLength":250,"gzipLength":0,"brotliLength":0,"metaUid":"413ecb87-4"},"413ecb87-7":{"renderedLength":177,"gzipLength":0,"brotliLength":0,"metaUid":"413ecb87-6"}},"nodeMetas":{"413ecb87-0":{"id":"/dist/browser/Utils.js","moduleParts":{"tsparticles.shape.squircle.js":"413ecb87-1"},"imported":[{"uid":"413ecb87-8"}],"importedBy":[{"uid":"413ecb87-2"}]},"413ecb87-2":{"id":"/dist/browser/SquircleDrawer.js","moduleParts":{"tsparticles.shape.squircle.js":"413ecb87-3"},"imported":[{"uid":"413ecb87-8"},{"uid":"413ecb87-0"}],"importedBy":[{"uid":"413ecb87-4"}]},"413ecb87-4":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.shape.squircle.js":"413ecb87-5"},"imported":[{"uid":"413ecb87-2"}],"importedBy":[{"uid":"413ecb87-6"}]},"413ecb87-6":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.shape.squircle.js":"413ecb87-7"},"imported":[{"uid":"413ecb87-4"}],"importedBy":[],"isEntry":true},"413ecb87-8":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"413ecb87-2"},{"uid":"413ecb87-0"}],"isExternal":true}},"env":{"rollup":"4.62.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4934
4934
 
4935
4935
  const run = () => {
4936
4936
  const width = window.innerWidth;
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Shape v4.1.3 */
2
+ /* Shape v4.2.1 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/engine')) :
5
5
  typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/engine'], factory) :
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  async function loadSquircleShape(engine) {
47
- engine.checkVersion("4.1.3");
47
+ engine.checkVersion("4.2.1");
48
48
  await engine.pluginManager.register(e => {
49
49
  e.pluginManager.addShape(["squircle"], () => Promise.resolve(new SquircleDrawer()));
50
50
  });
@@ -1 +1 @@
1
- !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.shapes.squircle=s.__tsParticlesInternals.shapes.squircle||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";function e(s){return s<t.none?-t.identity:t.identity}class n{draw(s){!function(s){const{context:n,particle:a,radius:l}=s;if(void 0===a.squircleExponent||void 0===a.squircleSteps)return;const r=a.squircleSteps,i=t.doublePI/r,_=t.double/a.squircleExponent;n.save(),n.scale(l,l),n.beginPath();for(let s=0;s<=r;s++){const t=s*i,a=Math.cos(t),l=Math.sin(t),r=e(a)*Math.pow(Math.abs(a),_),c=e(l)*Math.pow(Math.abs(l),_);s?n.lineTo(r,c):n.moveTo(r,c)}n.closePath(),n.restore()}(s)}particleInit(s,e){const n=e.shapeData;e.squircleExponent=t.getRangeValue(n?.exponent??4),e.squircleSteps=t.getRangeValue(n?.steps??64)}}async function a(s){s.checkVersion("4.1.3"),await s.pluginManager.register(s=>{s.pluginManager.addShape(["squircle"],()=>Promise.resolve(new n))})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadSquircleShape=a,s.loadSquircleShape=a}),Object.assign(globalThis.window||globalThis,{loadSquircleShape:(globalThis.__tsParticlesInternals.shapes.squircle||{}).loadSquircleShape}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.shapes.squircle=s.__tsParticlesInternals.shapes.squircle||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";function e(s){return s<t.none?-t.identity:t.identity}class n{draw(s){!function(s){const{context:n,particle:a,radius:l}=s;if(void 0===a.squircleExponent||void 0===a.squircleSteps)return;const r=a.squircleSteps,i=t.doublePI/r,_=t.double/a.squircleExponent;n.save(),n.scale(l,l),n.beginPath();for(let s=0;s<=r;s++){const t=s*i,a=Math.cos(t),l=Math.sin(t),r=e(a)*Math.pow(Math.abs(a),_),c=e(l)*Math.pow(Math.abs(l),_);s?n.lineTo(r,c):n.moveTo(r,c)}n.closePath(),n.restore()}(s)}particleInit(s,e){const n=e.shapeData;e.squircleExponent=t.getRangeValue(n?.exponent??4),e.squircleSteps=t.getRangeValue(n?.steps??64)}}async function a(s){s.checkVersion("4.2.1"),await s.pluginManager.register(s=>{s.pluginManager.addShape(["squircle"],()=>Promise.resolve(new n))})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadSquircleShape=a,s.loadSquircleShape=a}),Object.assign(globalThis.window||globalThis,{loadSquircleShape:(globalThis.__tsParticlesInternals.shapes.squircle||{}).loadSquircleShape}),delete(globalThis.window||globalThis).tsparticlesInternalExports;