Hierarchy

  • Application
    • Application

Constructors

  • Create new Application instance

    Returns Application

  • Parameters

    • Optional options: Partial<ApplicationOptions>

    Returns Application

    Deprecated

    since 8.0.0

Properties

cancelResize: (() => void)

Type declaration

    • (): void
    • Returns void

isInitialized: boolean = false
queueResize: (() => void)

Type declaration

    • (): void
    • Returns void

renderer: Renderer<HTMLCanvasElement>

WebGL renderer if available, otherwise CanvasRenderer.

Member

resizeTo: HTMLElement | Window
stage: Container<ContainerChild>

The root display container that's rendered.

ticker: Ticker
_plugins: ApplicationPlugin[]

Collection of installed plugins.

Alias

_plugins

Accessors

  • get canvas(): R["canvas"]
  • Reference to the renderer's canvas element.

    Returns R["canvas"]

    Member

  • get screen(): Rectangle
  • Reference to the renderer's screen rectangle. Its safe to use as filterArea or hitArea for the whole screen.

    Returns Rectangle

  • get view(): R["canvas"]
  • Reference to the renderer's canvas element.

    Returns R["canvas"]

    Member

    Deprecated

    since 8.0.0

Methods

  • Destroys the application and all of its resources.

    Parameters

    • Optional rendererDestroyOptions: RendererDestroyOptions

      The options for destroying the renderer.

    • Optional options: DestroyOptions

      The options for destroying the stage.

    Returns void

  • Parameters

    • Optional options: Partial<ApplicationOptions>

    Returns Promise<void>

  • Render the current stage.

    Returns void

  • Returns void

  • Returns void

  • Returns void