tsParticles - v4.0.0-beta.12
    Preparing search index...

    Engine class for creating the singleton on globalThis. It's a singleton class for initializing Container instances, and for Plugins class responsible for every external feature

    Index

    Constructors

    Properties

    pluginManager: PluginManager = ...

    The plugin manager

    Accessors

    Methods

    • Checks if a plugin version matches the engine version

      Parameters

      • pluginVersion: string

      Returns void

    • Dispatches an event that will be listened from listeners

      Parameters

      • type: string

        The event to dispatch

      • Optionalargs: CustomEventArgs

        The event parameters

      Returns void

    • Retrieves a Container from all the objects loaded

      Parameters

      • index: number

        The object index

      Returns Container | undefined

      The Container object at specified index, if present or not destroyed, otherwise undefined

    • Reloads all existing tsParticles loaded instances

      Parameters

      • refresh: boolean = true

        should refresh the dom after reloading

      Returns Promise<void>