core

AwayJS Core

Build Status

The root dependency for all AwayJS modules: contains basic data structures, loading mechanisms, event objects and utility functions useful for all types of rich media interface and interaction.

Documentation

Official AwayJS Documentation

Internal Structure

  • attributes
    Data structures for interleaved or isolated binary data streams.

  • audio
    Data structures for audio (to be moved to its own audio module).

  • errors
    Error types.

  • events
    Event objects for core classes.

  • geom
    Geometric data structures.

  • image
    Deprecated.

  • library
    Asset loading and management APIs.

  • managers
    Managers for audio (to be moved to own audio module).

  • net
    URL Request APIs.

  • parsers
    Base classes for parsers API, possibly merge with library.

  • projections
    Projection APIs for general 2D / 3D projection.

  • ui
    Helper classes for interface interaction.

  • utils
    Binary data wrappers, helper classes for RAF and timers, Color and debug utils.


version: @awayjs/core@0.6.87

Index

Events

LoaderInfo

LoaderInfo:

constructor

  • Parameters

    • Default value target: any = null

    Returns LoaderInfo

addEventListener

  • addEventListener(type: string, listener: function): void
  • Parameters

    • type: string
    • listener: function

    Returns void

dispatchEvent

hasEventListener

  • hasEventListener(type: string, listener?: function): boolean
  • Parameters

    • type: string
    • Optional listener: function

    Returns boolean

removeEventListener

  • removeEventListener(type: string, listener: function): void
  • Parameters

    • type: string
    • listener: function

    Returns void

bytes

bytesLoaded

  • get (): number
  • Returns number

bytesTotal

  • get (): number
  • Returns number

content

contentType

  • get (): string
  • Returns string

loader

url

  • get (): string
  • Returns string

Functions

getTimer

  • getTimer(): number
  • Returns number