Module: player/Viewport

Classes

Viewport

Members

(inner, constant) CLIP_BORDER :number

The thickness of the rectangle where the mouse can resize the clipping rectangle.

Type:
  • number
Default Value:
  • 3
Source:

(inner, constant) DRAG_BUTTON :number

The mouse button for the drag action.

0 is the left button.

Type:
  • number
Source:

(inner, constant) DRAG_THRESHOLD_PX :number

The minimum distance to detect a drag action, in pixels.

Type:
  • number
Default Value:
  • 5
Source:

(inner, constant) ROTATE_STEP :number

The rotation step angle for user rotate action (keyboard and mouse wheel), in degrees.

Type:
  • number
Default Value:
  • 5
Source:

(inner, constant) SCALE_FACTOR :number

The zoom step factor for user zoom action (keyboard and mouse wheel).

Type:
  • number
Default Value:
  • 1.05
Source:

(inner, constant) WHEEL_TIMEOUT_MS :number

The delay after the last mouse wheel event to consider that the wheel action is terminated, in milliseconds.

Type:
  • number
Default Value:
  • 200
Source:

Events

click

Signals a mouse click in a viewport.

Source:
Listeners of This Event:

dragEnd

Signals the end of a drag gesture in a viewport.

Source:

dragStart

Signals the possible start of a drag gesture in a viewport.

Source:
Listeners of This Event:

mouseDown

Signals a mouse button press in a viewport.

Source:
Listeners of This Event:

userChangeState

Signals a user-activated change in the camera states of a viewport.

Source:
Listeners of This Event: