@tsparticles/path-curves
Version:
tsParticles curves path
13 lines (12 loc) • 557 B
JavaScript
export const curvesPathName = "curvesPathGenerator";
export async function loadCurvesPath(engine) {
engine.checkVersion("4.1.0");
await engine.pluginManager.register(async (e) => {
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
ensureBaseMoverLoaded(e);
e.pluginManager.addPathGenerator?.(curvesPathName, async (container) => {
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
return new CurvesPathGenerator(container);
});
});
}