@tsparticles/path-branches 4.0.0-beta.9 → 4.0.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.
@@ -0,0 +1,5 @@
1
+ import { loadBranchesPath } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadBranchesPath = loadBranchesPath;
5
+ export * from "./index.js";
package/browser/index.js CHANGED
@@ -1,12 +1,12 @@
1
+ import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
2
+ import { BranchesPathGenerator } from "./BranchesPathGenerator.js";
1
3
  export const branchingPathName = "branchesPathGenerator";
2
4
  export async function loadBranchesPath(engine) {
3
- engine.checkVersion("4.0.0-beta.9");
4
- await engine.pluginManager.register(async (e) => {
5
- const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
5
+ engine.checkVersion("4.0.1");
6
+ await engine.pluginManager.register((e) => {
6
7
  ensureBaseMoverLoaded(e);
7
- e.pluginManager.addPathGenerator?.(branchingPathName, async (container) => {
8
- const { BranchesPathGenerator } = await import("./BranchesPathGenerator.js");
9
- return new BranchesPathGenerator(container);
8
+ e.pluginManager.addPathGenerator?.(branchingPathName, container => {
9
+ return Promise.resolve(new BranchesPathGenerator(container));
10
10
  });
11
11
  });
12
12
  }
@@ -0,0 +1,12 @@
1
+ export const branchingPathName = "branchesPathGenerator";
2
+ export async function loadBranchesPath(engine) {
3
+ engine.checkVersion("4.0.1");
4
+ await engine.pluginManager.register(async (e) => {
5
+ const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
6
+ ensureBaseMoverLoaded(e);
7
+ e.pluginManager.addPathGenerator?.(branchingPathName, async (container) => {
8
+ const { BranchesPathGenerator } = await import("./BranchesPathGenerator.js");
9
+ return new BranchesPathGenerator(container);
10
+ });
11
+ });
12
+ }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadBranchesPath } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadBranchesPath = loadBranchesPath;
5
+ export * from "./index.js";
package/cjs/index.js CHANGED
@@ -1,12 +1,12 @@
1
+ import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
2
+ import { BranchesPathGenerator } from "./BranchesPathGenerator.js";
1
3
  export const branchingPathName = "branchesPathGenerator";
2
4
  export async function loadBranchesPath(engine) {
3
- engine.checkVersion("4.0.0-beta.9");
4
- await engine.pluginManager.register(async (e) => {
5
- const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
5
+ engine.checkVersion("4.0.1");
6
+ await engine.pluginManager.register((e) => {
6
7
  ensureBaseMoverLoaded(e);
7
- e.pluginManager.addPathGenerator?.(branchingPathName, async (container) => {
8
- const { BranchesPathGenerator } = await import("./BranchesPathGenerator.js");
9
- return new BranchesPathGenerator(container);
8
+ e.pluginManager.addPathGenerator?.(branchingPathName, container => {
9
+ return Promise.resolve(new BranchesPathGenerator(container));
10
10
  });
11
11
  });
12
12
  }
@@ -0,0 +1,12 @@
1
+ export const branchingPathName = "branchesPathGenerator";
2
+ export async function loadBranchesPath(engine) {
3
+ engine.checkVersion("4.0.1");
4
+ await engine.pluginManager.register(async (e) => {
5
+ const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
6
+ ensureBaseMoverLoaded(e);
7
+ e.pluginManager.addPathGenerator?.(branchingPathName, async (container) => {
8
+ const { BranchesPathGenerator } = await import("./BranchesPathGenerator.js");
9
+ return new BranchesPathGenerator(container);
10
+ });
11
+ });
12
+ }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadBranchesPath } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadBranchesPath = loadBranchesPath;
5
+ export * from "./index.js";
package/esm/index.js CHANGED
@@ -1,12 +1,12 @@
1
+ import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
2
+ import { BranchesPathGenerator } from "./BranchesPathGenerator.js";
1
3
  export const branchingPathName = "branchesPathGenerator";
2
4
  export async function loadBranchesPath(engine) {
3
- engine.checkVersion("4.0.0-beta.9");
4
- await engine.pluginManager.register(async (e) => {
5
- const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
5
+ engine.checkVersion("4.0.1");
6
+ await engine.pluginManager.register((e) => {
6
7
  ensureBaseMoverLoaded(e);
7
- e.pluginManager.addPathGenerator?.(branchingPathName, async (container) => {
8
- const { BranchesPathGenerator } = await import("./BranchesPathGenerator.js");
9
- return new BranchesPathGenerator(container);
8
+ e.pluginManager.addPathGenerator?.(branchingPathName, container => {
9
+ return Promise.resolve(new BranchesPathGenerator(container));
10
10
  });
11
11
  });
12
12
  }
@@ -0,0 +1,12 @@
1
+ export const branchingPathName = "branchesPathGenerator";
2
+ export async function loadBranchesPath(engine) {
3
+ engine.checkVersion("4.0.1");
4
+ await engine.pluginManager.register(async (e) => {
5
+ const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
6
+ ensureBaseMoverLoaded(e);
7
+ e.pluginManager.addPathGenerator?.(branchingPathName, async (container) => {
8
+ const { BranchesPathGenerator } = await import("./BranchesPathGenerator.js");
9
+ return new BranchesPathGenerator(container);
10
+ });
11
+ });
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/path-branches",
3
- "version": "4.0.0-beta.9",
3
+ "version": "4.0.1",
4
4
  "description": "tsParticles branches path",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -100,11 +100,18 @@
100
100
  "require": "./cjs/index.js",
101
101
  "default": "./esm/index.js"
102
102
  },
103
+ "./lazy": {
104
+ "types": "./types/index.lazy.d.ts",
105
+ "browser": "./browser/index.lazy.js",
106
+ "import": "./esm/index.lazy.js",
107
+ "require": "./cjs/index.lazy.js",
108
+ "default": "./esm/index.lazy.js"
109
+ },
103
110
  "./package.json": "./package.json"
104
111
  },
105
112
  "peerDependencies": {
106
- "@tsparticles/engine": "4.0.0-beta.9",
107
- "@tsparticles/plugin-move": "4.0.0-beta.9"
113
+ "@tsparticles/engine": "4.0.1",
114
+ "@tsparticles/plugin-move": "4.0.1"
108
115
  },
109
116
  "type": "module"
110
117
  }