CLASSES
TagsA - Z

Database

Database

Description

class Database

Constructor

new Database(urlToScene, callbackManifestChecked)

Parameters

Name Type Description
urlToScene string
callbackManifestChecked (checked: boolean) => any

Members

static IsUASupportingBlobStorage : boolean

static IDBStorageEnabled : boolean

enableSceneOffline : boolean

enableTexturesOffline : boolean

static parseURL : string) => string

static ReturnFullUrlLocation : string) => string

Methods

checkManifestFile() void

openAsync(successCallback, errorCallback) void

Parameters

Name Type Description
successCallback () => void
errorCallback () => void

loadImageFromDB(url, image) void

Parameters

Name Type Description
url string
image HTMLImageElement

loadFileFromDB(url, sceneLoaded, progressCallBack, errorCallback, useArrayBuffer) void

Parameters

Name Type Description
url string
sceneLoaded (data: any) => void
optional progressCallBack (data: any) => void
optional errorCallback () => void