@tsparticles/path-svg 4.0.0-beta.15 → 4.0.0-beta.16

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
@@ -2,7 +2,7 @@ import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
2
2
  import { SVGPathGenerator } from "./SVGPathGenerator.js";
3
3
  export const svgPathName = "svgPathGenerator";
4
4
  export async function loadSVGPath(engine) {
5
- engine.checkVersion("4.0.0-beta.15");
5
+ engine.checkVersion("4.0.0-beta.16");
6
6
  await engine.pluginManager.register((e) => {
7
7
  ensureBaseMoverLoaded(e);
8
8
  e.pluginManager.addPathGenerator?.(svgPathName, container => {
@@ -1,6 +1,6 @@
1
1
  export const svgPathName = "svgPathGenerator";
2
2
  export async function loadSVGPath(engine) {
3
- engine.checkVersion("4.0.0-beta.15");
3
+ engine.checkVersion("4.0.0-beta.16");
4
4
  await engine.pluginManager.register(async (e) => {
5
5
  const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
6
6
  ensureBaseMoverLoaded(e);
package/cjs/index.js CHANGED
@@ -2,7 +2,7 @@ import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
2
2
  import { SVGPathGenerator } from "./SVGPathGenerator.js";
3
3
  export const svgPathName = "svgPathGenerator";
4
4
  export async function loadSVGPath(engine) {
5
- engine.checkVersion("4.0.0-beta.15");
5
+ engine.checkVersion("4.0.0-beta.16");
6
6
  await engine.pluginManager.register((e) => {
7
7
  ensureBaseMoverLoaded(e);
8
8
  e.pluginManager.addPathGenerator?.(svgPathName, container => {
package/cjs/index.lazy.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const svgPathName = "svgPathGenerator";
2
2
  export async function loadSVGPath(engine) {
3
- engine.checkVersion("4.0.0-beta.15");
3
+ engine.checkVersion("4.0.0-beta.16");
4
4
  await engine.pluginManager.register(async (e) => {
5
5
  const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
6
6
  ensureBaseMoverLoaded(e);
package/esm/index.js CHANGED
@@ -2,7 +2,7 @@ import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
2
2
  import { SVGPathGenerator } from "./SVGPathGenerator.js";
3
3
  export const svgPathName = "svgPathGenerator";
4
4
  export async function loadSVGPath(engine) {
5
- engine.checkVersion("4.0.0-beta.15");
5
+ engine.checkVersion("4.0.0-beta.16");
6
6
  await engine.pluginManager.register((e) => {
7
7
  ensureBaseMoverLoaded(e);
8
8
  e.pluginManager.addPathGenerator?.(svgPathName, container => {
package/esm/index.lazy.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const svgPathName = "svgPathGenerator";
2
2
  export async function loadSVGPath(engine) {
3
- engine.checkVersion("4.0.0-beta.15");
3
+ engine.checkVersion("4.0.0-beta.16");
4
4
  await engine.pluginManager.register(async (e) => {
5
5
  const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
6
6
  ensureBaseMoverLoaded(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/path-svg",
3
- "version": "4.0.0-beta.15",
3
+ "version": "4.0.0-beta.16",
4
4
  "description": "tsParticles svg path",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -107,8 +107,8 @@
107
107
  "./package.json": "./package.json"
108
108
  },
109
109
  "peerDependencies": {
110
- "@tsparticles/engine": "4.0.0-beta.15",
111
- "@tsparticles/plugin-move": "4.0.0-beta.15"
110
+ "@tsparticles/engine": "4.0.0-beta.16",
111
+ "@tsparticles/plugin-move": "4.0.0-beta.16"
112
112
  },
113
113
  "publishConfig": {
114
114
  "access": "public"
@@ -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
- /* Path v4.0.0-beta.15 */
2
+ /* Path v4.0.0-beta.16 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/plugin-move'), require('@tsparticles/engine')) :
5
5
  typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/plugin-move', '@tsparticles/engine'], factory) :
@@ -158,7 +158,7 @@
158
158
 
159
159
  const svgPathName = "svgPathGenerator";
160
160
  async function loadSVGPath(engine) {
161
- engine.checkVersion("4.0.0-beta.15");
161
+ engine.checkVersion("4.0.0-beta.16");
162
162
  await engine.pluginManager.register((e) => {
163
163
  pluginMove.ensureBaseMoverLoaded(e);
164
164
  e.pluginManager.addPathGenerator?.(svgPathName, container => {
@@ -1 +1 @@
1
- !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/plugin-move"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/plugin-move","@tsparticles/engine"],s):s(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.paths.svg=t.__tsParticlesInternals.paths.svg||{}),t.__tsParticlesInternals.plugins.move,t.__tsParticlesInternals.engine)}(this,function(t,s,e){"use strict";var n;!function(t){t[t.normal=0]="normal",t[t.reverse=1]="reverse"}(n||(n={}));class a{_container;_offset;_paths;_res;_reverse;_scale;_size;_width;constructor(t){this._container=t,this._paths=[],this._reverse=!1,this._size={width:0,height:0},this._scale=1,this._offset={x:0,y:0,mode:e.PixelMode.percent},this._width=0,this._res=e.Vector.origin}generate(t,s){const a=this._container.retina.pixelRatio;t.svgDirection??=e.getRandom()>e.half?n.normal:n.reverse,t.svgPathIndex??=Math.floor(e.getRandom()*this._paths.length),t.svgSpeed??=t.velocity.mult(t.retina.moveSpeed*e.half).length,t.svgStep??=e.randomInRangeValue({min:0,max:this._paths[t.svgPathIndex].length})*a,t.svgOffset??={width:e.randomInRangeValue({min:-this._width*e.half,max:this._width*e.half})*a,height:e.randomInRangeValue({min:-this._width*e.half,max:this._width*e.half})*a},t.svgInitialPosition??=t.position.copy(),t.velocity.x=0,t.velocity.y=0,t.svgDirection===n.normal?t.svgStep+=t.svgSpeed*s.factor:t.svgStep-=t.svgSpeed*s.factor;let i=this._paths[t.svgPathIndex];const r=i.length;t.svgStep>=r?(t.svgPathIndex=t.svgPathIndex+1,t.svgPathIndex>=this._paths.length&&(this._reverse?(t.svgPathIndex=this._paths.length-1,t.svgDirection=n.reverse):(t.svgPathIndex=0,t.svgStep=0))):t.svgStep<=0&&(t.svgPathIndex=t.svgPathIndex-1,t.svgPathIndex<0&&(this._reverse?(t.svgPathIndex=0,t.svgDirection=n.normal):(t.svgPathIndex=this._paths.length-1,i=this._paths[t.svgPathIndex],t.svgStep=i.length))),i=this._paths[t.svgPathIndex];const l=i.element.getPointAtLength(t.svgStep),_=this._container.canvas.size,h=e.getPosition(this._offset,_),c=this._scale*a;return t.position.x=(l.x-this._size.width*e.half)*c+t.svgInitialPosition.x+h.x+t.svgOffset.width,t.position.y=(l.y-this._size.height*e.half)*c+t.svgInitialPosition.y+h.y+t.svgOffset.height,this._res.x=0,this._res.y=0,this._res}init(){const t=this._container.actualOptions.particles.move.path.options,s=t.position??this._offset;if(this._reverse=t.reverse??this._reverse,this._scale=t.scale??1,this._offset.x=s.x,this._offset.y=s.y,this._offset.mode=s.mode,this._width=t.width??0,t.url&&!t.path){const s=t.url;(async()=>{const t=await fetch(s),e=await t.text(),{paths:n,size:a}=function(t){const s=(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg");if(!s)return{paths:[],size:{width:0,height:0}};const e=s.querySelectorAll("path"),n=[];for(const t of e)t instanceof SVGPathElement&&n.push({element:t,length:t.getTotalLength()});return{paths:n,size:{width:Number.parseFloat(s.getAttribute("width")??"0"),height:Number.parseFloat(s.getAttribute("height")??"0")}}}(e);this._paths=n,this._size.width=a.width,this._size.height=a.height})()}else if(t.path){const s=t.path;this._paths=function(t){const s=e.safeDocument();return t.map(t=>{const e=s.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),{element:e,length:e.getTotalLength()}})}(t.path.data),this._size.height=s.size.height,this._size.width=s.size.width}}reset(){}update(){}}const i="svgPathGenerator";async function r(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{s.ensureBaseMoverLoaded(t),t.pluginManager.addPathGenerator?.(i,t=>Promise.resolve(new a(t)))})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadSVGPath=r,t.loadSVGPath=r,t.svgPathName=i}),Object.assign(globalThis.window||globalThis,{loadSVGPath:(globalThis.__tsParticlesInternals.paths.svg||{}).loadSVGPath}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/plugin-move"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/plugin-move","@tsparticles/engine"],s):s(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.paths.svg=t.__tsParticlesInternals.paths.svg||{}),t.__tsParticlesInternals.plugins.move,t.__tsParticlesInternals.engine)}(this,function(t,s,e){"use strict";var n;!function(t){t[t.normal=0]="normal",t[t.reverse=1]="reverse"}(n||(n={}));class a{_container;_offset;_paths;_res;_reverse;_scale;_size;_width;constructor(t){this._container=t,this._paths=[],this._reverse=!1,this._size={width:0,height:0},this._scale=1,this._offset={x:0,y:0,mode:e.PixelMode.percent},this._width=0,this._res=e.Vector.origin}generate(t,s){const a=this._container.retina.pixelRatio;t.svgDirection??=e.getRandom()>e.half?n.normal:n.reverse,t.svgPathIndex??=Math.floor(e.getRandom()*this._paths.length),t.svgSpeed??=t.velocity.mult(t.retina.moveSpeed*e.half).length,t.svgStep??=e.randomInRangeValue({min:0,max:this._paths[t.svgPathIndex].length})*a,t.svgOffset??={width:e.randomInRangeValue({min:-this._width*e.half,max:this._width*e.half})*a,height:e.randomInRangeValue({min:-this._width*e.half,max:this._width*e.half})*a},t.svgInitialPosition??=t.position.copy(),t.velocity.x=0,t.velocity.y=0,t.svgDirection===n.normal?t.svgStep+=t.svgSpeed*s.factor:t.svgStep-=t.svgSpeed*s.factor;let i=this._paths[t.svgPathIndex];const r=i.length;t.svgStep>=r?(t.svgPathIndex=t.svgPathIndex+1,t.svgPathIndex>=this._paths.length&&(this._reverse?(t.svgPathIndex=this._paths.length-1,t.svgDirection=n.reverse):(t.svgPathIndex=0,t.svgStep=0))):t.svgStep<=0&&(t.svgPathIndex=t.svgPathIndex-1,t.svgPathIndex<0&&(this._reverse?(t.svgPathIndex=0,t.svgDirection=n.normal):(t.svgPathIndex=this._paths.length-1,i=this._paths[t.svgPathIndex],t.svgStep=i.length))),i=this._paths[t.svgPathIndex];const l=i.element.getPointAtLength(t.svgStep),_=this._container.canvas.size,h=e.getPosition(this._offset,_),c=this._scale*a;return t.position.x=(l.x-this._size.width*e.half)*c+t.svgInitialPosition.x+h.x+t.svgOffset.width,t.position.y=(l.y-this._size.height*e.half)*c+t.svgInitialPosition.y+h.y+t.svgOffset.height,this._res.x=0,this._res.y=0,this._res}init(){const t=this._container.actualOptions.particles.move.path.options,s=t.position??this._offset;if(this._reverse=t.reverse??this._reverse,this._scale=t.scale??1,this._offset.x=s.x,this._offset.y=s.y,this._offset.mode=s.mode,this._width=t.width??0,t.url&&!t.path){const s=t.url;(async()=>{const t=await fetch(s),e=await t.text(),{paths:n,size:a}=function(t){const s=(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg");if(!s)return{paths:[],size:{width:0,height:0}};const e=s.querySelectorAll("path"),n=[];for(const t of e)t instanceof SVGPathElement&&n.push({element:t,length:t.getTotalLength()});return{paths:n,size:{width:Number.parseFloat(s.getAttribute("width")??"0"),height:Number.parseFloat(s.getAttribute("height")??"0")}}}(e);this._paths=n,this._size.width=a.width,this._size.height=a.height})()}else if(t.path){const s=t.path;this._paths=function(t){const s=e.safeDocument();return t.map(t=>{const e=s.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),{element:e,length:e.getTotalLength()}})}(t.path.data),this._size.height=s.size.height,this._size.width=s.size.width}}reset(){}update(){}}const i="svgPathGenerator";async function r(t){t.checkVersion("4.0.0-beta.16"),await t.pluginManager.register(t=>{s.ensureBaseMoverLoaded(t),t.pluginManager.addPathGenerator?.(i,t=>Promise.resolve(new a(t)))})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadSVGPath=r,t.loadSVGPath=r,t.svgPathName=i}),Object.assign(globalThis.window||globalThis,{loadSVGPath:(globalThis.__tsParticlesInternals.paths.svg||{}).loadSVGPath}),delete(globalThis.window||globalThis).tsparticlesInternalExports;