@tsparticles/shape-path 4.5.0 → 4.5.2

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 { PathDrawer } from "./PathDrawer.js";
2
2
  export async function loadPathShape(engine) {
3
- engine.checkVersion("4.5.0");
3
+ engine.checkVersion("4.5.2");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
6
6
  });
@@ -1,5 +1,5 @@
1
1
  export async function loadPathShape(engine) {
2
- engine.checkVersion("4.5.0");
2
+ engine.checkVersion("4.5.2");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { PathDrawer } = await import("./PathDrawer.js");
5
5
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
package/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PathDrawer } from "./PathDrawer.js";
2
2
  export async function loadPathShape(engine) {
3
- engine.checkVersion("4.5.0");
3
+ engine.checkVersion("4.5.2");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
6
6
  });
package/cjs/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadPathShape(engine) {
2
- engine.checkVersion("4.5.0");
2
+ engine.checkVersion("4.5.2");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { PathDrawer } = await import("./PathDrawer.js");
5
5
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PathDrawer } from "./PathDrawer.js";
2
2
  export async function loadPathShape(engine) {
3
- engine.checkVersion("4.5.0");
3
+ engine.checkVersion("4.5.2");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
6
6
  });
package/esm/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadPathShape(engine) {
2
- engine.checkVersion("4.5.0");
2
+ engine.checkVersion("4.5.2");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { PathDrawer } = await import("./PathDrawer.js");
5
5
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-path",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "tsParticles path shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -106,13 +106,13 @@
106
106
  "./package.json": "./package.json"
107
107
  },
108
108
  "peerDependencies": {
109
- "@tsparticles/engine": "4.5.0"
109
+ "@tsparticles/engine": "4.5.2"
110
110
  },
111
111
  "publishConfig": {
112
112
  "access": "public"
113
113
  },
114
114
  "type": "module",
115
115
  "dependencies": {
116
- "@tsparticles/path-utils": "4.5.0"
116
+ "@tsparticles/path-utils": "4.5.2"
117
117
  }
118
118
  }
package/report.html CHANGED
@@ -5285,7 +5285,7 @@ var drawChart = (function (exports) {
5285
5285
  </script>
5286
5286
  <script>
5287
5287
  /*<!--*/
5288
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.shape.path.js","children":[{"name":"dist/browser","children":[{"uid":"9bd19414-1","name":"PathDrawer.js"},{"uid":"9bd19414-3","name":"index.js"},{"uid":"9bd19414-5","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"9bd19414-1":{"renderedLength":486,"gzipLength":0,"brotliLength":0,"metaUid":"9bd19414-0"},"9bd19414-3":{"renderedLength":238,"gzipLength":0,"brotliLength":0,"metaUid":"9bd19414-2"},"9bd19414-5":{"renderedLength":169,"gzipLength":0,"brotliLength":0,"metaUid":"9bd19414-4"}},"nodeMetas":{"9bd19414-0":{"id":"/dist/browser/PathDrawer.js","moduleParts":{"tsparticles.shape.path.js":"9bd19414-1"},"imported":[{"uid":"9bd19414-6"},{"uid":"9bd19414-7"}],"importedBy":[{"uid":"9bd19414-2"}]},"9bd19414-2":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.shape.path.js":"9bd19414-3"},"imported":[{"uid":"9bd19414-0"}],"importedBy":[{"uid":"9bd19414-4"}]},"9bd19414-4":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.shape.path.js":"9bd19414-5"},"imported":[{"uid":"9bd19414-2"}],"importedBy":[],"isEntry":true},"9bd19414-6":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"9bd19414-0"}],"isExternal":true},"9bd19414-7":{"id":"@tsparticles/path-utils","moduleParts":{},"imported":[],"importedBy":[{"uid":"9bd19414-0"}],"isExternal":true}},"env":{"rollup":"4.63.1"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
5288
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.shape.path.js","children":[{"name":"dist/browser","children":[{"uid":"8c1495ac-1","name":"PathDrawer.js"},{"uid":"8c1495ac-3","name":"index.js"},{"uid":"8c1495ac-5","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"8c1495ac-1":{"renderedLength":486,"gzipLength":0,"brotliLength":0,"metaUid":"8c1495ac-0"},"8c1495ac-3":{"renderedLength":238,"gzipLength":0,"brotliLength":0,"metaUid":"8c1495ac-2"},"8c1495ac-5":{"renderedLength":169,"gzipLength":0,"brotliLength":0,"metaUid":"8c1495ac-4"}},"nodeMetas":{"8c1495ac-0":{"id":"/dist/browser/PathDrawer.js","moduleParts":{"tsparticles.shape.path.js":"8c1495ac-1"},"imported":[{"uid":"8c1495ac-6"},{"uid":"8c1495ac-7"}],"importedBy":[{"uid":"8c1495ac-2"}]},"8c1495ac-2":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.shape.path.js":"8c1495ac-3"},"imported":[{"uid":"8c1495ac-0"}],"importedBy":[{"uid":"8c1495ac-4"}]},"8c1495ac-4":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.shape.path.js":"8c1495ac-5"},"imported":[{"uid":"8c1495ac-2"}],"importedBy":[],"isEntry":true},"8c1495ac-6":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"8c1495ac-0"}],"isExternal":true},"8c1495ac-7":{"id":"@tsparticles/path-utils","moduleParts":{},"imported":[],"importedBy":[{"uid":"8c1495ac-0"}],"isExternal":true}},"env":{"rollup":"4.67.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
5289
5289
 
5290
5290
  const run = () => {
5291
5291
  const width = window.innerWidth;
@@ -1,6 +1,6 @@
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);})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
2
  (function (g) {
3
- /* Shape v4.5.0 */
3
+ /* Shape v4.5.2 */
4
4
  g.__tsParticlesInternals = g.__tsParticlesInternals || {};
5
5
  g.__tsParticlesInternals.shapes = g.__tsParticlesInternals.shapes || {};
6
6
  (function (exports, engine, pathUtils) {
@@ -24,7 +24,7 @@ g.__tsParticlesInternals.shapes = g.__tsParticlesInternals.shapes || {};
24
24
  }
25
25
 
26
26
  async function loadPathShape(engine) {
27
- engine.checkVersion("4.5.0");
27
+ engine.checkVersion("4.5.2");
28
28
  await engine.pluginManager.register(e => {
29
29
  e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
30
30
  });
@@ -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)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},function(s,t,a){"use strict";class e{draw(s){const{context:t,particle:e,radius:n}=s;e.pathData&&a.drawPath(t,n,e.pathData)}particleInit(s,a){const e=a.shapeData;e&&(a.pathData=t.deepExtend({},e))}}async function n(s){s.checkVersion("4.5.0"),await s.pluginManager.register(s=>{s.pluginManager.addShape(["path"],()=>Promise.resolve(new e))})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadPathShape=n,s.loadPathShape=n}(s.__tsParticlesInternals.shapes.path=s.__tsParticlesInternals.shapes.path||{},s.__tsParticlesInternals.engine,s.__tsParticlesInternals.path.utils)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:self),Object.assign(globalThis.window||globalThis,{loadPathShape:(globalThis.__tsParticlesInternals.shapes.path||{}).loadPathShape});
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)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},function(s,t,a){"use strict";class e{draw(s){const{context:t,particle:e,radius:n}=s;e.pathData&&a.drawPath(t,n,e.pathData)}particleInit(s,a){const e=a.shapeData;e&&(a.pathData=t.deepExtend({},e))}}async function n(s){s.checkVersion("4.5.2"),await s.pluginManager.register(s=>{s.pluginManager.addShape(["path"],()=>Promise.resolve(new e))})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadPathShape=n,s.loadPathShape=n}(s.__tsParticlesInternals.shapes.path=s.__tsParticlesInternals.shapes.path||{},s.__tsParticlesInternals.engine,s.__tsParticlesInternals.path.utils)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:self),Object.assign(globalThis.window||globalThis,{loadPathShape:(globalThis.__tsParticlesInternals.shapes.path||{}).loadPathShape});
package/types/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Engine } from "@tsparticles/engine";
1
+ import type { Engine } from "@tsparticles/engine";
2
2
  export declare function loadPathShape(engine: Engine): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { type Engine } from "@tsparticles/engine/lazy";
1
+ import type { Engine } from "@tsparticles/engine/lazy";
2
2
  export declare function loadPathShape(engine: Engine): Promise<void>;