Constructors
constructor
- new Container(engine, id, sourceOptions?): Container
Properties
actualOptions
Readonly
canvas
destroyed
destroyed: boolean
Readonly
effectDrawers
fpsLimit
fpsLimit: number
Readonly
id
id: symbol
interactivity
pageHidden
pageHidden: boolean
Readonly
particles
Readonly
pathGenerators
Readonly
plugins
Readonly
retina
Readonly
shapeDrawers
started
started: boolean
zLayers
zLayers: number
Accessors
animationStatus
- get animationStatus(): boolean
Returns boolean
options
- get options(): Options
Methods
addClickHandler
- addClickHandler(callback): void
Parameters
- callback: ((evt: Event, particles?: Particle[]) => void)
- (evt, particles?): void
Returns void
Returns void
addLifeTime
- addLifeTime(value): void
Returns void
addPath
- addPath(key, generator, override?): boolean
Returns boolean
alive
- alive(): boolean
Returns boolean
clearClickHandlers
- clearClickHandlers(): void
Returns void
destroy
- destroy(remove?): void
Returns void
draw
- draw(force): void
Returns void
export
- export(type, options?): Promise<undefined | Blob>
Parameters
- type: string
Optional
options: Record<string, unknown>
Returns Promise<undefined | Blob>
handleClickMode
- handleClickMode(mode): void
Returns void
init
- init(): Promise<void>
Returns Promise<void>
loadTheme
- loadTheme(name?): Promise<void>
Returns Promise<void>
pause
- pause(): void
Returns void
play
- play(force?): void
Returns void
refresh
- refresh(): Promise<void>
Returns Promise<void>
reset
- reset(sourceOptions?): Promise<void>
Returns Promise<void>
start
- start(): Promise<void>
Returns Promise<void>
stop
- stop(): void
Returns void
updateActualOptions
- updateActualOptions(): boolean
Returns boolean