Skip to main content

Class: TriplanarUVMappingPlugin

Plugins.TriplanarUVMappingPlugin

Hierarchy

Implements

Properties

PluginType

Static Readonly PluginType: "TriplanarUVMappingPlugin"


TRIPLANAR_GLTF_EXTENSION

Static Readonly TRIPLANAR_GLTF_EXTENSION: "WEBGI_materials_triplanar"


enabled

enabled: boolean = true

Overrides

AViewerPlugin.enabled


dependencies

dependencies: typeof AssetManagerPlugin[]

Implementation of

IViewerPluginAsync.dependencies


materialExtension

Readonly materialExtension: MaterialExtension


_dirty

Protected _dirty: boolean = false

Inherited from

AViewerPlugin._dirty


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

AViewerPlugin._viewer

Accessors

dirty

get dirty(): boolean

Returns

boolean

Implementation of

IViewerPluginAsync.dirty

Inherited from

AViewerPlugin.dirty

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Implementation of

IViewerPluginAsync.dirty

Inherited from

AViewerPlugin.dirty


viewer

get viewer(): undefined | ViewerApp

Returns

undefined | ViewerApp

Inherited from

AViewerPlugin.viewer

Methods

onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onDispose

Inherited from

AViewerPlugin.onDispose


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IViewerPluginAsync.toJSON

Inherited from

AViewerPlugin.toJSON


fromJSON

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

Parameters

NameType
dataany
meta?any

Returns

null | TriplanarUVMappingPlugin | Promise<null | TriplanarUVMappingPlugin>

Implementation of

IViewerPluginAsync.fromJSON

Inherited from

AViewerPlugin.fromJSON


exportState

exportState(): any

Returns

any

Inherited from

AViewerPlugin.exportState


importState

importState(state): Promise<void>

Parameters

NameType
stateany

Returns

Promise<void>

Inherited from

AViewerPlugin.importState


storeState

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

Parameters

NameType
prefix?string
storage?Storage
data?any

Returns

void

Implementation of

IViewerPluginAsync.storeState

Inherited from

AViewerPlugin.storeState


loadState

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

Parameters

NameType
prefix?string
storage?Storage

Returns

Promise<void>

Implementation of

IViewerPluginAsync.loadState

Inherited from

AViewerPlugin.loadState


addTriplanarMapping

addTriplanarMapping(material): boolean

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>

Returns

boolean


setDirty

setDirty(): void

Returns

void


onAdded

onAdded(v): Promise<void>

Parameters

NameType
vViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onAdded

Overrides

AViewerPlugin.onAdded


onRemove

onRemove(v): Promise<void>

Parameters

NameType
vViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onRemove

Overrides

AViewerPlugin.onRemove


_storeKey

Protected _storeKey(prefix?): string

Parameters

NameType
prefix?string

Returns

string

Inherited from

AViewerPlugin._storeKey

Constructors

constructor

new TriplanarUVMappingPlugin()

Overrides

AViewerPlugin.constructor