TrackballControls class

TrackballControls is similar to OrbitControls. However, it does not maintain a constant camera up vector. That means if the camera orbits over the “north” and “south” poles, it does not flip to stay "right side up".

Mixed-in types
  • EventDispatcher

Constructors

TrackballControls.new(Camera object, GlobalKey<PeripheralsState> listenableKey)
object - The camera to be controlled.

Properties

axis → Vector3
final
domElement → PeripheralsState
no setter
dynamicDampingFactor double
getter/setter pair
enabled bool
getter/setter pair
eps double
final
eyeDirection → Vector3
final
hashCode int
The hash code for this object.
no setterinherited
keys List<String>
getter/setter pair
lastPosition → Vector3
final
lastZoom double
getter/setter pair
listenableKey GlobalKey<PeripheralsState>
getter/setter pair
maxDistance double
getter/setter pair
minDistance double
getter/setter pair
mouseButtons Map
getter/setter pair
mouseChange → Vector2
final
moveDirection → Vector3
final
noPan bool
getter/setter pair
noRotate bool
getter/setter pair
noZoom bool
getter/setter pair
object ↔ Camera
getter/setter pair
objectSidewaysDirection → Vector3
final
objectUp → Vector3
final
objectUpDirection → Vector3
final
pan → Vector3
final
panSpeed double
getter/setter pair
position0 ↔ Vector3
getter/setter pair
quaternion → Quaternion
final
rotateSpeed double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope TrackballControls
getter/setter pair
screen Map
getter/setter pair
staticMoving bool
getter/setter pair
target ↔ Vector3
getter/setter pair
target0 ↔ Vector3
getter/setter pair
up0 ↔ Vector3
getter/setter pair
vector → Vector2
final
zoom0 double
getter/setter pair
zoomSpeed double
getter/setter pair

Methods

addEventListener(String type, Function listener) → void
type - The type of event to listen to.
inherited
addPointer(dynamic event) → void
checkDistances() → void
clearListeners() → void
Remove all Listeners.
inherited
contextmenu(dynamic event) → void
disconnect() → void
dispatchEvent(Event event) → void
event - The event that gets fired.
inherited
dispose() → void
override
getMouseOnCircle(num pageX, num pageY) → Vector2
getMouseOnScreen(num pageX, num pageY) → Vector2
getSecondPointerPosition(dynamic event) → Vector2
handleResize() → void
hasEventListener(String type, Function listener) bool
type - The type of event to listen to.
inherited
keydown(dynamic event) → void
keyup() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMouseDown(dynamic event) → void
onMouseMove(dynamic event) → void
onMouseUp() → void
onMouseWheel(dynamic event) → void
onPointerCancel(dynamic event) → void
onPointerDown(dynamic event) → void
onPointerMove(dynamic event) → void
onPointerUp(dynamic event) → void
onTouchEnd(dynamic event) → void
onTouchMove(dynamic event) → void
onTouchStart(dynamic event) → void
panCamera() → void
removeEventListener(String type, Function listener) → void
type - The type of the listener that gets removed.
inherited
removePointer(dynamic event) → void
reset() → void
rotateCamera() → void
toString() String
A string representation of this object.
inherited
trackPointer(dynamic event) → void
update() → void
zoomCamera() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited