UNPKG

@tsparticles/path-curves

Version:
13 lines (12 loc) 515 B
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)); }); }); }