EqModelLoader class

Index

Constructors

Protected Properties

Public Methods

Protected Methods

Constructors


constructor

⊕ new EqModelLoader(context: EqContext): EqModelLoader

Parameters:


Protected Properties


modelLoadingRejectFunc

● modelLoadingRejectFunc: (reason?: any) => void


modelLoadingResolveFunc

● modelLoadingResolveFunc: (value?: DataModel | PromiseLike<DataModel>) => void


modelNeverLoaded

● modelNeverLoaded: boolean = true


modelPromise

● modelPromise: Promise<DataModel> | null = null


Public Methods


getContext

▸ getContext(): EqContext

Returns EqContext


getModelPromise

Returns the Promise of the model loading process

▸ getModelPromise(): Promise<DataModel>

Returns Promise<DataModel>


init

▸ init(options: any): void

Parameters:

  • options: any

Returns void


startModelLoading

▸ startModelLoading(options: any): Promise<DataModel>

Parameters:

  • options: any

Returns Promise<DataModel>


Protected Methods


createModelLoadingPromise

▸ createModelLoadingPromise(): void

Returns void


sendLoadModelRequest

▸ sendLoadModelRequest(options: any): any

Parameters:

  • options: any

Returns any