EqModelLoader class

Index

Constructors

Protected Properties

Public Methods

Protected Methods

Constructors


constructor

⊕ new EqModelLoader(context: EqContext): EqModelLoader

Parameters:


Protected Properties


context

● context: EqContext


modelLoadingRejectFunc

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


modelLoadingResolveFunc

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


modelPromise

● modelPromise: Promise<ModelPlainData> | null = null


Public Methods


getContext

▸ getContext(): EqContext

Returns EqContext


getModelPromise

Returns the Promise of the model loading process

▸ getModelPromise(): Promise<ModelPlainData>

Returns Promise<ModelPlainData>


init

▸ init(options: any): void

Parameters:

  • options: any

Returns void


startModelLoading

▸ startModelLoading(options: ModelLoadOptions): Promise<ModelPlainData>

Parameters:

Returns Promise<ModelPlainData>


Protected Methods


createModelLoadingPromise

▸ createModelLoadingPromise(): void

Returns void


sendLoadModelRequest

▸ sendLoadModelRequest(options: any): any

Parameters:

  • options: any

Returns any