Skip to main content

Class: SceneLoopPlugin

Plugins.SceneLoopPlugin

Hierarchy

Properties

PluginType

Static Readonly PluginType: "SceneLoopPlugin"

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:18


enabled

enabled: boolean = true

Overrides

AViewerPlugin.enabled

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:19


dependencies

dependencies: typeof AssetManagerPlugin[]

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:21


scenes

scenes: Zippable & Record<string, Uint8Array>[] = []

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:23


assets

assets: Record<string, IAsset> = {}

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:25


toJSON

toJSON: any = undefined

Overrides

AViewerPlugin.toJSON

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:27


minSceneTime

minSceneTime: number = 2000

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:70


_dirty

Protected _dirty: boolean = false

Inherited from

AViewerPlugin._dirty

Defined in

webgi/src/core/AViewerPlugin.ts:23


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

AViewerPlugin._viewer

Defined in

webgi/src/core/AViewerPlugin.ts:27

Accessors

dirty

get dirty(): boolean

Returns

boolean

Inherited from

AViewerPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:16

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

AViewerPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:20


loadedScenes

get loadedScenes(): number

Returns

number

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:39

Methods

onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

AViewerPlugin.onDispose

Defined in

webgi/src/core/AViewerPlugin.ts:36


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

AViewerPlugin.onRemove

Defined in

webgi/src/core/AViewerPlugin.ts:40


fromJSON

fromJSON(data, meta?): null | SceneLoopPlugin | Promise<null | SceneLoopPlugin>

Parameters

NameType
dataany
meta?any

Returns

null | SceneLoopPlugin | Promise<null | SceneLoopPlugin>

Inherited from

AViewerPlugin.fromJSON

Defined in

webgi/src/core/AViewerPlugin.ts:52


exportState

exportState(): any

Returns

any

Inherited from

AViewerPlugin.exportState

Defined in

webgi/src/core/AViewerPlugin.ts:64


importState

importState(state): Promise<void>

Parameters

NameType
stateany

Returns

Promise<void>

Inherited from

AViewerPlugin.importState

Defined in

webgi/src/core/AViewerPlugin.ts:67


storeState

storeState(prefix?, storage?, data?): void

Parameters

NameType
prefix?string
storage?Storage
data?any

Returns

void

Inherited from

AViewerPlugin.storeState

Defined in

webgi/src/core/AViewerPlugin.ts:74


loadState

loadState(prefix?, storage?): Promise<void>

Parameters

NameType
prefix?string
storage?Storage

Returns

Promise<void>

Inherited from

AViewerPlugin.loadState

Defined in

webgi/src/core/AViewerPlugin.ts:84


promptLoadScenes

promptLoadScenes(): Promise<void>

Returns

Promise<void>

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:44


loadScenes

loadScenes(files): Promise<void>

Parameters

NameType
filesFile[]

Returns

Promise<void>

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:48


play

play(): Promise<void>

Returns

Promise<void>

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:73


stop

stop(): void

Returns

void

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:140


downloadScenes

downloadScenes(): Promise<void>

Returns

Promise<void>

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:145


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Overrides

AViewerPlugin.onAdded

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:159


_storeKey

Protected _storeKey(prefix?): string

Parameters

NameType
prefix?string

Returns

string

Inherited from

AViewerPlugin._storeKey

Defined in

webgi/src/core/AViewerPlugin.ts:60

Constructors

constructor

new SceneLoopPlugin()

Overrides

AViewerPlugin.constructor

Defined in

webgi/src/plugins/SceneLoopPlugin.ts:29