getApp

Returns the context of the parent Application component

Application creates a Renderer, Ticker and Container, so you can consume their contexts as well.

import { getApp } from 'svelte-pixi'

const { app } = getApp()
Name Type Description
app PIXI.Application The PIXI.Application instance