PieView
Show camera direction/fov indicator.
class PieView extends ControlBarItem
Extends
Properties
Element of the item.
Order within the same position.
The lowest one will be shown first.
Position to display item.
Set rotation to reset camera to when PieView is clicked.
false
will disable this value, and true
will enable with default options.
Constructor
new PieView(options: Partial<PieViewOptions>): PieView
Parameters
Options
Properties
element
elementHTMLElement
Element of the item.
order
ordernumber
Order within the same position.
The lowest one will be shown first.
position
position"top-left" | "top-right" | "main-top" | "main-bottom" | "main-left" | "main-right"
Position to display item.
resetCamera
resetCameraboolean | Partial<{ duration: number; easing: ((x: number) => number); pitch: number; yaw: number; zoom: number }>
Set rotation to reset camera to when PieView is clicked.
false
will disable this value, and true
will enable with default options.
Methods
destroy
destroyvoid
destroy(viewer: View360): void
Destroy item and release all resources & event handlers.
Parameters
A instance of viewer to detach item
init
initvoid
init(viewer: View360, controlBar: ControlBar): void
Initialize item.
Parameters
A instance of viewer to attach item
A instance of control bar to attach item