Class LoadingScreenPlugin

Loading Screen Plugin

Shows a configurable loading screen overlay over the canvas.

Hierarchy (view full)

Constructors

Properties

_contentDiv: undefined | HTMLDivElement
_dirty: boolean = false
_isHidden: boolean = false
_isPreviewing: boolean = false
_mainDiv: HTMLDivElement
_previewState: Map<string, {
    progress: number;
    state: string;
} | {
    progress?: undefined;
    state: string;
}> = ...
_temp: HTMLTemplateElement = ...
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

background: string = '#ffffff'
backgroundBlur: number = 24
backgroundOpacity: number = 0.5
constructor: typeof AViewerPluginSync & typeof AViewerPlugin
container?: HTMLElement
enabled: boolean = true
errorTextHeader: string = 'Error Loading Files'
filesElement: HTMLDivElement = ...
hideDelay: number = 500
hideOnFilesLoad: boolean = true
hideOnOnlyErrors: boolean = true
hideOnSceneObjectLoad: boolean = false
loader: number = 0
loadingElement: HTMLDivElement = ...
loadingTextHeader: string = 'Loading Files'
logoElement: HTMLDivElement = ...
logoImage: string = 'https://static.webgi.xyz/logo.svg'
minimizeOnSceneObjectLoad: boolean = true

Minimize when scene has objects Note: also checks for scene.environment and doesnt minimize when environment is null or undefined

Default

true
showFileNames: boolean = true
showOnFilesLoading: boolean = true
showOnSceneEmpty: boolean = true
showProcessStates: boolean = true
showProgress: boolean = true
spinners: {
    html: string;
    styles: string;
}[] = ...

Type declaration

  • html: string
  • styles: string
styles: string = styles
stylesheet?: HTMLStyleElement
stylesheetLoader?: HTMLStyleElement[]
textColor: string = '#222222'
uiConfig?: UiObjectConfig<any, string, any> = undefined
OldPluginType?: string
PluginType: "LoadingScreenPlugin" = 'LoadingScreenPlugin'

Accessors

Methods

Generated using TypeDoc