Readonly
colorReadonly
easingReadonly
effectThe drawers (additional effects) array
Readonly
interactorsThe interaction managers array
Readonly
moversReadonly
pathThe path generators array
Readonly
pluginsThe plugins array
Readonly
presetsThe presets array
Readonly
shapeThe drawers (additional shapes) array
Readonly
updatersThe updaters array
addEffect adds effect to tsParticles, it will be available to all future instances created
the effect name
the effect drawer function or class instance that draws the effect in the canvas
should refresh the dom after adding the effect
Adds a listener to the specified event
The event to listen to
The listener of the specified event
Adds an interaction manager to the current collection
the interaction manager name
the interaction manager initializer
if true the engine will refresh all the containers
Adds a particle updater to the collection
the particle updater name used as a key
the particle updater initializer
if true the engine will refresh all the containers
addPathGenerator adds a named path generator to tsParticles, this can be called by options
the path generator name
the path generator object
should refresh the dom after adding the path generator
addPreset adds preset to tsParticles, it will be available to all future instances created
the preset name
the options to add to the preset
if true, the preset will override any existing with the same name
should refresh the dom after adding the preset
addShape adds shape to tsParticles, it will be available to all future instances created
the shape drawer function or class instance that draws the shape in the canvas
should refresh the dom after adding the shape
Dispatches an event that will be listened from listeners
The event to dispatch
The event parameters
Gets all the available plugins, for the specified container
the container used to check which are the valid plugins
a map containing all enabled plugins, with the id as a key
the easing function
Searches the given effect drawer type with the given type name
the effect drawer type name
the effect drawer if found, or undefined
Returns all the container interaction managers
the container used to check which interaction managers are compatible
if true reloads the interaction managers collection for the given container
the array of interaction managers for the given container
Searches the path generator with the given type name
the path generator type to search
the path generator if found, or undefined
Searches the preset with the given name
the preset name to search
the preset if found, or undefined
Searches the given shape drawer type with the given type name
the shape drawer type name
the shape drawer if found, or undefined
Returns all the container particle updaters
the container used to check which particle updaters are enabled
if true reloads the updater collection for the given container
the array of updaters for the given container
Loads the provided options to create a Container object.
The particles container params ILoadParams object
A Promise with the Container object created
Load the given options for all the plugins
the actual options to set
the source options to read
Load the given particles options for all the updaters
the container of the updaters
the actual options to set
Rest
...sourceOptions: (undefined | RecursivePartial<IParticlesOptions>)[]the source options to read
Removes a listener from the specified event
The event to stop listening to
The listener of the specified event
Adds another click handler to all the loaded Container objects.
Engine class for creating the singleton on window. It's a singleton class for initializing Container instances, and for Plugins class responsible for every external feature