Events handler
| Name | Type | Description |
|---|---|---|
psv |
PSV.Viewer |
Extends
Members
-
config PSV.Options readonly inherited overrides
Configuration holder
-
-
Properties holder
-
-
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
-
Internal properties
-
Properties:
Name Type Description moveThresholdnumber computed threshold based on device pixel ratio
stepnumber mousedownboolean before moving past the threshold
startMouseXnumber start x position of the click/touch
startMouseYnumber start y position of the click/touch
mouseXnumber current x position of the cursor
mouseYnumber current y position of the cursor
mouseHistoryArray.<Array.<number>> list of latest positions of the cursor, [time, x, y]
pinchDistnumber distance between fingers when zooming
keyHandlerPressHandler ctrlKeyDownboolean when the Ctrl key is pressed
dblclickDataPSV.ClickData temporary storage of click data between two clicks
dblclickTimeoutnumber timeout id for double click
twofingersTimeoutnumber timeout id for "two fingers" overlay
ctrlZoomTimeoutnumber timeout id for "ctrol zoom" overlay
Methods
-
Handles fullscreen events
-
Name Type Description forceboolean optional force state
Fires:
-
Destroys the service
-
-
Disables the keyboard controls
-
-
Enables the keyboard controls
-
-
Initializes event handlers
-