Skip to main content

createPixiApp

Callable

  • createPixiApp(options: IPixiAppOptions): { add: (x: PixiFunctionComponent) => void; app: Application; context: IComponentContext; destroy: () => void; domElement: HTMLCanvasElement; pause: () => void; play: () => void; resize: (width: number, height: number) => void; stage: Container; type: PIXI_APP; wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U }

  • Parameters

    Returns { add: (x: PixiFunctionComponent) => void; app: Application; context: IComponentContext; destroy: () => void; domElement: HTMLCanvasElement; pause: () => void; play: () => void; resize: (width: number, height: number) => void; stage: Container; type: PIXI_APP; wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U }

    • add: (x: PixiFunctionComponent) => void
    • app: Application
    • context: IComponentContext
    • destroy: () => void
        • (): void
        • Returns void

    • domElement: HTMLCanvasElement
    • pause: () => void
        • (): void
        • Returns void

    • play: () => void
        • (): void
        • Returns void

    • resize: (width: number, height: number) => void
        • (width: number, height: number): void
        • Parameters

          • width: number
          • height: number

          Returns void

    • stage: Container
    • type: PIXI_APP
    • wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U
        • <T, U>(x: (...args: T) => U): (...args: T) => U
        • @deprecated

          use pixiApp.context.wrap instead.


          Type parameters

          • T: unknown[]
          • U

          Parameters

          • x: (...args: T) => U

          Returns (...args: T) => U

            • (...args: T): U
            • Parameters

              • rest...args: T

              Returns U