UNPKG

@tsparticles/interaction-external-bounce

Version:

tsParticles bounce external interaction

13 lines (12 loc) 556 B
export async function loadExternalBounceInteraction(engine) { engine.checkVersion("4.3.2"); await engine.pluginManager.register(async (e) => { const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy"); ensureInteractivityPluginLoaded(e); e.pluginManager.addInteractor?.("externalBounce", async (container) => { const { Bouncer } = await import("./Bouncer.js"); return new Bouncer(container); }); }); } export * from "./Options/Classes/Bounce.js";