Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _piximData

_piximData: IApplicationData

Accessors

app

  • get app(): Application

autoAdjuster

container

  • get container(): HTMLElement
  • set container(container: HTMLElement): void

stage

  • get stage(): Container

view

  • get view(): HTMLCanvasElement

Methods

Private _destroyRoot

Private _getViewRect

Private _hasLayer

  • _hasLayer(name: string): boolean

addLayer

adjustHeight

adjustWidth

attachAsync

  • attachAsync(content: Content, layerName?: string): Promise<Container>

cemit

  • cemit(type: string, context: any, ...args: any[]): Application
  • Emit event with specifying a context.

    Parameters

    • type: string

      Event type to emit.

    • context: any

      Context to execute the callback.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Application

cemitAll

  • Emit all events with specifying a context.

    Parameters

    • context: any

      Context to execute the callback.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Application

clear

  • Remove events grouped event type.

    Parameters

    • Optional type: string

      Event type to remove. If it is empty, removes all events.

    Returns Application

destroy

detach

emit

  • Emit event.

    Parameters

    • type: string

      Event type to emit.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Application

emitAll

  • Emit all events.

    Parameters

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Application

fullScreen

off

  • off(type: string, callback: IEmitterDelegate): Application
  • Unregister event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Registered callback.

    Returns Application

on

  • on(type: string, callback: IEmitterDelegate): Application
  • Register event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Callback when the event fires.

    Returns Application

once

  • once(type: string, callback: IEmitterDelegate): Application
  • Register one-time event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Callback when the event fires.

    Returns Application

pause

play

preDestroy

  • preDestroy(): void

removeLayer

start

stop

toBottom

toCenter

toLeft

toMiddle

toRight

toTop

Generated using TypeDoc