Class: CameraViewControlPlugin
Plugins.CameraViewControlPlugin
Hierarchy
AViewerPlugin
<"enableChanged"
>↳
CameraViewControlPlugin
Properties
PluginType
▪ Static
Readonly
PluginType: string
= 'CameraViewControlPlugin'
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:11
enabled
• enabled: boolean
= true
Overrides
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:16
animEase
• animEase: "linear"
| "easeIn"
| "easeOut"
| "easeInOut"
| "circIn"
| "circOut"
| "circInOut"
| "backIn"
| "backOut"
| "backInOut"
| "anticipate"
| "bounceOut"
| "bounceIn"
| "bounceInOut"
| "easeInOutSine"
= 'easeInOutSine'
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:21
interpolateMode
• interpolateMode: "linear"
| "spherical"
= 'spherical'
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:46
enableDamping
• enableDamping: boolean
= true
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:50
damping
• damping: number
= 0.04
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:54
initAnimationTime
• initAnimationTime: number
= 1
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:58
dependencies
• dependencies: typeof CameraViewPlugin
[]
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:60
_dirty
• Protected
_dirty: boolean
= false
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:23
_viewer
• Protected
Optional
_viewer: ViewerApp
Inherited from
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
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
AViewerPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:20
viewer
• get
viewer(): undefined
| TViewer
Returns
undefined
| TViewer
Inherited from
AViewerPlugin.viewer
Defined in
webgi/src/core/AViewerPlugin.ts:29
_cameraViews
• Protected
get
_cameraViews(): CameraView
[]
Returns
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:40
Methods
onDispose
▸ onDispose(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:40
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:49
fromJSON
▸ fromJSON(data
, meta?
): null
| CameraViewControlPlugin
| Promise
<null
| CameraViewControlPlugin
>
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| CameraViewControlPlugin
| Promise
<null
| CameraViewControlPlugin
>
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:56
exportState
▸ exportState(): any
Returns
any
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:68
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:71
storeState
▸ storeState(prefix?
, storage?
, data?
): void
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:78
loadState
▸ loadState(prefix?
, storage?
): Promise
<void
>
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
Returns
Promise
<void
>
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:88
setState
▸ setState(state
): void
Parameters
Name | Type |
---|---|
state | number |
Returns
void
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:62
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Overrides
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:66
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Overrides
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:72
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:64
_onEnabledChanged
▸ Protected
_onEnabledChanged(): void
Returns
void
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:26
_preFrame
▸ Protected
_preFrame(ev
): void
Parameters
Name | Type |
---|---|
ev | any |
Returns
void
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:87
Constructors
constructor
• new CameraViewControlPlugin(enabled?
)
Parameters
Name | Type | Default value |
---|---|---|
enabled | boolean | true |