Constructors
constructor
- new Particles(engine, container): Particles
Properties
Private
Readonly
_addToPool
_addToPool: any
Private
Readonly
_applyDensity
_applyDensity: any
Private
_array
_array: any
Private
Readonly
_container
_container: any
Private
Readonly
_engine
_engine: any
Private
Readonly
_groupLimits
_groupLimits: any
Private
Readonly
_initDensityFactor
_initDensityFactor: any
Private
Readonly
_interactionManager
_interactionManager: any
Private
_lastZIndex
_lastZIndex: any
Private
_limit
_limit: any
Private
_needsSort
_needsSort: any
Private
_nextId
_nextId: any
Private
_pluginsInitialized
_pluginsInitialized: any
Private
Readonly
_pool
_pool: any
Private
Readonly
_pushParticle
_pushParticle: any
Private
Readonly
_removeParticle
_removeParticle: any
Private
Optional
_resizeFactor
_resizeFactor?: any
Private
_zArray
_zArray: any
movers
quadTree
updaters
Accessors
count
- get count(): number
Returns number
Methods
addManualParticles
- addManualParticles(): void
Returns void
addParticle
- addParticle(position?, overrideOptions?, group?, initializer?): undefined | Particle
Returns undefined | Particle
clear
- clear(): void
Returns void
destroy
- destroy(): void
Returns void
draw
- draw(delta): void
Returns void
filter
- filter(condition): Particle[]
Parameters
- condition: ((particle) => boolean)
- (particle): boolean
Returns boolean
find
- find(condition): undefined | Particle
Parameters
- condition: ((particle) => boolean)
- (particle): boolean
Returns boolean
Returns undefined | Particle
get
- get(index): undefined | Particle
Returns undefined | Particle
handleClickMode
- handleClickMode(mode): void
Returns void
init
- init(): Promise<void>
Returns Promise<void>
initPlugins
- initPlugins(): Promise<void>
Returns Promise<void>
push
- push(nb, mouse?, overrideOptions?, group?): void
Returns void
redraw
- redraw(): Promise<void>
Returns Promise<void>
remove
- remove(particle, group?, override?): void
Parameters
- particle: Particle
Optional
group: stringOptional
override: boolean
Returns void
removeAt
- removeAt(index, quantity?, group?, override?): void
Parameters
- index: number
Optional
quantity: numberOptional
group: stringOptional
override: boolean
Returns void
removeQuantity
- removeQuantity(quantity, group?): void
Parameters
- quantity: number
Optional
group: string
Returns void
setDensity
- setDensity(): void
Returns void
setLastZIndex
- setLastZIndex(zIndex): void
Returns void
setResizeFactor
- setResizeFactor(factor): void
Returns void
update
- update(delta): void
Returns void