Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Loader

Constructor of Loader, you can pass custom supported types.

param

Custom supported types with corresponded handler

example
let loader = new Loader({
   // This will match all url with `.scene` extension or all url with `scene` type
   'scene' : function (url, callback) {}
});

Hierarchy

  • Loader

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • newLoader(extMap?: any): Loader

Properties

async

async: boolean = true

Private extMap

extMap: object

id

id: string = ID

pipeline

pipeline: Pipeline | null = null

Static ID

ID: string = ID

Methods

addHandlers

  • addHandlers(extMap?: any): void
  • Add custom supported types handler or modify existing type handler.

    Parameters

    • Optional extMap: any

      Custom supported types with corresponded handler

    Returns void

handle

  • handle(item: any, callback: any): any

Generated using TypeDoc