Class: ScrollableCameraViewPreviewPlugin
Plugins.ScrollableCameraViewPreviewPlugin
Integrates with the viewer container in the editor to allow preview of ScrollableCameraViewPlugin
Hierarchy
↳
ScrollableCameraViewPreviewPlugin
Properties
PluginType
▪ Static
Readonly
PluginType: "ScrollableCameraViewPlugin"
Inherited from
ScrollableCameraViewPlugin.PluginType
Defined in
webgi/src/plugins/ScrollableCameraViewPlugin.ts:7
enabled
• enabled: boolean
= true
Inherited from
ScrollableCameraViewPlugin.enabled
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'
Inherited from
ScrollableCameraViewPlugin.animEase
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:21
interpolateMode
• interpolateMode: "linear"
| "spherical"
= 'spherical'
Inherited from
ScrollableCameraViewPlugin.interpolateMode
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:46
enableDamping
• enableDamping: boolean
= true
Inherited from
ScrollableCameraViewPlugin.enableDamping
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:50
damping
• damping: number
= 0.04
Inherited from
ScrollableCameraViewPlugin.damping
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:54
initAnimationTime
• initAnimationTime: number
= 1
Inherited from
ScrollableCameraViewPlugin.initAnimationTime
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:58
dependencies
• dependencies: typeof CameraViewPlugin
[]
Inherited from
ScrollableCameraViewPlugin.dependencies
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:60
wrapper
• wrapper: HTMLDivElement
Inherited from
ScrollableCameraViewPlugin.wrapper
Defined in
webgi/src/plugins/ScrollableCameraViewPlugin.ts:9
parent
• parent: HTMLElement
Inherited from
ScrollableCameraViewPlugin.parent
Defined in
webgi/src/plugins/ScrollableCameraViewPlugin.ts:10
toJSON
• toJSON: any
= undefined
Inherited from
ScrollableCameraViewPlugin.toJSON
Defined in
webgi/src/plugins/ScrollableCameraViewPlugin.ts:12
uiConfig
• uiConfig: UiObjectConfig
<any
, string
>
Inherited from
ScrollableCameraViewPlugin.uiConfig
Defined in
webgi/src/plugins/ScrollableCameraViewPlugin.ts:74
canvasUp
• canvasUp: boolean
= false
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:110
_dirty
• Protected
_dirty: boolean
= false
Inherited from
ScrollableCameraViewPlugin._dirty
Defined in
webgi/src/core/AViewerPlugin.ts:23
_viewer
• Protected
Optional
_viewer: ViewerApp
Inherited from
ScrollableCameraViewPlugin._viewer
Defined in
webgi/src/core/AViewerPlugin.ts:27
Accessors
dirty
• get
dirty(): boolean
Returns
boolean
Inherited from
ScrollableCameraViewPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:16
• set
dirty(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
ScrollableCameraViewPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:20
viewer
• get
viewer(): undefined
| TViewer
Returns
undefined
| TViewer
Inherited from
ScrollableCameraViewPlugin.viewer
Defined in
webgi/src/core/AViewerPlugin.ts:29
_cameraViews
• Protected
get
_cameraViews(): CameraView
[]
Returns
Inherited from
ScrollableCameraViewPlugin._cameraViews
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:40
Methods
onDispose
▸ onDispose(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
ScrollableCameraViewPlugin.onDispose
Defined in
webgi/src/core/AViewerPlugin.ts:40
fromJSON
▸ fromJSON(data
, meta?
): null
| ScrollableCameraViewPreviewPlugin
| Promise
<null
| ScrollableCameraViewPreviewPlugin
>
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| ScrollableCameraViewPreviewPlugin
| Promise
<null
| ScrollableCameraViewPreviewPlugin
>
Inherited from
ScrollableCameraViewPlugin.fromJSON
Defined in
webgi/src/core/AViewerPlugin.ts:56
exportState
▸ exportState(): any
Returns
any
Inherited from
ScrollableCameraViewPlugin.exportState
Defined in
webgi/src/core/AViewerPlugin.ts:68
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
Inherited from
ScrollableCameraViewPlugin.importState
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
ScrollableCameraViewPlugin.storeState
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
ScrollableCameraViewPlugin.loadState
Defined in
webgi/src/core/AViewerPlugin.ts:88
setState
▸ setState(state
): void
Parameters
Name | Type |
---|---|
state | number |
Returns
void
Inherited from
ScrollableCameraViewPlugin.setState
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:62
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
ScrollableCameraViewPlugin.onRemove
Defined in
webgi/src/plugins/CameraViewControlPlugin.ts:72
generateCode
▸ generateCode(): void
Returns
void
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:14
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Overrides
ScrollableCameraViewPlugin.onAdded
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:132
deserialize
▸ deserialize(ev
): void
Parameters
Name | Type |
---|---|
ev | IEvent <any > |
Returns
void
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:147
addView
▸ addView(ev
): void
Parameters
Name | Type |
---|---|
ev | IEvent <any > |
Returns
void
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:188
deleteView
▸ deleteView(ev
): void
Parameters
Name | Type |
---|---|
ev | IEvent <any > |
Returns
void
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:209
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string
Inherited from
ScrollableCameraViewPlugin._storeKey
Defined in
webgi/src/core/AViewerPlugin.ts:64
_preFrame
▸ Protected
_preFrame(ev
): void
Parameters
Name | Type |
---|---|
ev | any |
Returns
void
Inherited from
ScrollableCameraViewPlugin._preFrame
Defined in
webgi/src/plugins/ScrollableCameraViewPlugin.ts:29
_onEnabledChanged
▸ Protected
_onEnabledChanged(): void
Returns
void
Overrides
ScrollableCameraViewPlugin._onEnabledChanged
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:113
_createSection
▸ Protected
_createSection(name
): void
Parameters
Name | Type |
---|---|
name | string |
Returns
void
Defined in
webgi/src/plugins/ScrollableCameraViewPreviewPlugin.ts:167
Constructors
constructor
• new ScrollableCameraViewPreviewPlugin(parent?
, enabled?
)
Parameters
Name | Type | Default value |
---|---|---|
parent | string | HTMLElement | document.body |
enabled | boolean | false |
Overrides
ScrollableCameraViewPlugin.constructor