tsParticles - v0.0.0
    Preparing search index...

    The object loaded into an HTML element, it'll contain options loaded and all data to let everything working [[include:Container.md]]

    Index

    Constructors

    Properties

    actualOptions: Options

    The options loaded by the container, it's a full Options object

    canvas: Canvas

    Canvas object, in charge of the canvas element and drawing functions

    destroyed: boolean

    Check if the particles' container is destroyed, if so it's not recommended using it

    fpsLimit: number

    The container fps limit, coming from options

    hdr: boolean

    The container hdr support flag

    id: symbol
    pageHidden: boolean

    The container check if it's hidden on the web page

    particleCreatedPlugins: IContainerPlugin[]
    particleDestroyedPlugins: IContainerPlugin[]
    particlePositionPlugins: IContainerPlugin[]
    particles: Particles

    The particles manager

    plugins: IContainerPlugin[]

    All the plugins used by the container

    retina: Retina
    started: boolean

    Check if the particles container is started

    zLayers: number

    Accessors

    • get animationStatus(): boolean

      Gets the animation status

      Returns boolean

      true is playing, false is paused

    Methods

    • Destroys the current container, invalidating it

      Parameters

      • remove: boolean = true

        if true, removes the container from the engine

      Returns void

    • Draws a frame

      Parameters

      • force: boolean

      Returns void

    • Parameters

      • type: string
      • options: Record<string, unknown> = {}

      Returns Promise<Blob | undefined>

    • Starts animations and resume from pause

      Parameters

      • Optionalforce: boolean

      Returns void

    • Starts the container, initializes what are needed to create animations and event handling

      Returns Promise<void>

    • Stops the container, opposite to start. Clears some resources and stops events.

      Returns void

    • Updates the container options

      Returns boolean

      true if the options were updated, false otherwise