API Docs for: 1.3.0
Show:

JsonLoader Class

The json file loader is used to load in JSON data and parsing it When loaded this class will dispatch a "loaded" event If load failed this class will dispatch a "error" event

Constructor

JsonLoader

(
  • url
  • crossorigin
)

Parameters:

  • url String

    The url of the JSON file

  • crossorigin Boolean

    Whether requests should be treated as crossorigin

Item Index

Methods

load

()

Loads the JSON data

onError

() private

Invoke when error occured

onJSONLoaded

() private

Invoke when JSON file is loaded

onLoaded

() private

Invoke when json file loaded

Properties

baseUrl

String

[read-only] The base url of the bitmap font data

crossorigin

Boolean

Whether the requests should be treated as cross origin

loaded

Boolean

[read-only] Whether the data has loaded yet

url

String

The url of the bitmap font data