Svelte Pixi
  • Getting Started
    • Introduction
    • Creating a Project
    • Usage
  • Components
    • AnimatedSprite
    • Application
    • BitmapText
    • Container
    • Graphics
    • Loader
    • Mesh
    • NineSlicePlane
    • ParticleContainer
    • Renderer
    • SimplePlane
    • SimpleRope
    • Sprite
    • Text
    • Ticker
    • TilingSprite
  • Utilities
    • getApp
    • getContainer
    • getLoader
    • getRenderer
    • getResource
    • getStage
    • getTicker
    • onTick
    • track
  • Animation
    • svelte/motion
  • Advanced
    • Binding Props
    • Optimizing Performance
    • Reducing Bundle Size

getStage

Returns the context of the root Container component

import { getStage } from 'svelte-pixi'

const { stage } = getStage()
Name Type Description
stage PIXI.Container The root PIXI.Container instance

Previous getResource
Next getTicker