Navigation
- class cee.Navigation()
Class for controlling interactive navigation in a view
You can specify the navigation scheme for the left mouse button, set the rotation point and control the minimum walk target distance (for Walk navigation).
You can access the navigation object with the
View.navigation
property.
Constructors
Accessors
config
minWalkTargetDistance
mouseWheelZoomAndWalkBehavior
rotationPoint
rotationSensitivity
Constructors
- Navigation.constructor()
- Return type:
Navigation
Accessors
- cee.config()
The navigation configuration.
Specify what should happen on mouse and touch input
- Return type:
NavigationConfig
- cee.minWalkTargetDistance()
The minimum walk target minTargetDistance
For walk navigation, this is used to control how much the navigation should slow down when getting close to the rotation point. The walk speed is dynamic so you can interact with large models. Depending on your model size, you might want to adjust this parameter.
The default is undefined (automatic), which will be interpreted as 1/10 of the current view bounding box.
- Return type:
number
- cee.minWalkTargetDistance(minTargetDistance)
- Arguments:
minTargetDistance (
number
) – None
- Return type:
void
- cee.mouseWheelZoomAndWalkBehavior()
Determine mouse wheel zoom and walk behavior
This setting will only have effect if mouse wheel is configured to perform zoom or walk navigation.
- Return type:
MouseWheelZoomAndWalkBehavior
- cee.mouseWheelZoomAndWalkBehavior(behavior)
- Arguments:
behavior (
MouseWheelZoomAndWalkBehavior
) – None
- Return type:
void
- cee.rotationPoint()
The current rotation point
- Return type:
Vec3Like
- cee.rotationPoint(rotationPoint)
- Arguments:
rotationPoint (
Vec3Like
) – None
- Return type:
void
- cee.rotationSensitivity()
Rotation sensitivity
Sensitivity factor controlling how sensitive the mouse is when doing rotations.
Default 1.0
- Return type:
number
- cee.rotationSensitivity(sensitivity)
- Arguments:
sensitivity (
number
) – None
- Return type:
void