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