Skip to main content

Class: GLTFMeshOptPlugin

Asset-Management.GLTFMeshOptPlugin

Hierarchy

  • SimpleEventDispatcher<"">

    GLTFMeshOptPlugin

Implements

Properties

PluginType

Static Readonly PluginType: "GLTFMeshOptPlugin"


DECODER_URL

Static DECODER_URL: string = 'https://unpkg.com/[email protected]/meshopt_decoder.module.js'


dependencies

dependencies: typeof AssetManagerPlugin[]

Implementation of

IViewerPluginAsync.dependencies

Constructors

constructor

new GLTFMeshOptPlugin()

Inherited from

SimpleEventDispatcher<''>.constructor

Methods

onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onAdded


onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onDispose


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onRemove