Class: AViewerPlugin<T>
Core-API.AViewerPlugin
Type parameters
Name | Type |
---|---|
T | extends string |
Hierarchy
SimpleEventDispatcher
<T
|"serialize"
|"deserialize"
>↳
AViewerPlugin
↳↳
AAssetManagerProcessStatePlugin
↳↳
PosePlugin
↳↳
ARPlugin
↳↳
MaterialConfiguratorBasePlugin
↳↳
FragmentClippingExtensionPlugin
↳↳
RandomizedDirectionalLightPlugin
↳↳
CustomAnimationHelperPlugin
↳↳
XAtlasPlugin
↳↳
VariationConfiguratorPlugin
↳↳
ParallaxCameraControllerPlugin
↳↳
GLTFSpecGlossinessConverterPlugin
↳↳
GLTFKHRMaterialVariantsPlugin
Implements
Constructors
constructor
• new AViewerPlugin<T
>()
Type parameters
Name | Type |
---|---|
T | extends string |
Inherited from
SimpleEventDispatcher<T|'serialize'|'deserialize'>.constructor
Accessors
dirty
• get
dirty(): boolean
Returns
boolean
Implementation of
• set
dirty(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Implementation of
viewer
• get
viewer(): undefined
| ViewerApp
Returns
undefined
| ViewerApp
Properties
enabled
• Abstract
enabled: boolean
_dirty
• Protected
_dirty: boolean
= false
_viewer
• Protected
Optional
_viewer: ViewerApp
Methods
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
onDispose
▸ onDispose(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
IViewerPluginAsync.toJSON
fromJSON
▸ fromJSON(data
, meta?
): null
| AViewerPlugin
<T
> | Promise
<null
| AViewerPlugin
<T
>>
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| AViewerPlugin
<T
> | Promise
<null
| AViewerPlugin
<T
>>
Implementation of
IViewerPluginAsync.fromJSON
exportState
▸ exportState(): any
Returns
any
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
storeState
▸ storeState(prefix?
, storage?
, data?
): void
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Implementation of
loadState
▸ loadState(prefix?
, storage?
): Promise
<void
>
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
Returns
Promise
<void
>
Implementation of
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string