Appearance
copper3d / Modules / Controls/Copper3dTrackballControls / Copper3dTrackballControls
Class: Copper3dTrackballControls
Controls/Copper3dTrackballControls.Copper3dTrackballControls
Hierarchy
EventDispatcher
↳
Copper3dTrackballControls
Table of contents
Constructors
Properties
- checkDistances
- dispose
- domElement
- dynamicDampingFactor
- enabled
- handleResize
- keys
- maxDistance
- maxZoom
- minDistance
- minZoom
- mouseButtons
- noPan
- noRotate
- noZoom
- object
- panCamera
- panSpeed
- position0
- reset
- rotateCamera
- rotateSpeed
- screen
- staticMoving
- target
- target0
- up0
- update
- zoom0
- zoomCamera
- zoomSpeed
Methods
Constructors
constructor
• new Copper3dTrackballControls(object
, domElement
)
Parameters
Name | Type |
---|---|
object | PerspectiveCamera | OrthographicCamera |
domElement | HTMLElement |
Overrides
EventDispatcher.constructor
Defined in
src/Controls/Copper3dTrackballControls.ts:79
Properties
checkDistances
• checkDistances: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:72
dispose
• dispose: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:77
domElement
• domElement: HTMLElement
Defined in
src/Controls/Copper3dTrackballControls.ts:29
dynamicDampingFactor
• dynamicDampingFactor: number
Defined in
src/Controls/Copper3dTrackballControls.ts:42
enabled
• enabled: boolean
Defined in
src/Controls/Copper3dTrackballControls.ts:30
handleResize
• handleResize: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:66
keys
• keys: ["KeyA"
, "KeyS"
, "KeyD"
]
Defined in
src/Controls/Copper3dTrackballControls.ts:50
maxDistance
• maxDistance: number
Defined in
src/Controls/Copper3dTrackballControls.ts:45
maxZoom
• maxZoom: number
Defined in
src/Controls/Copper3dTrackballControls.ts:48
minDistance
• minDistance: number
Defined in
src/Controls/Copper3dTrackballControls.ts:44
minZoom
• minZoom: number
Defined in
src/Controls/Copper3dTrackballControls.ts:47
mouseButtons
• mouseButtons: Object
Type declaration
Name | Type |
---|---|
LEFT | -1 | LEFT | RIGHT |
MIDDLE | -1 | LEFT | MIDDLE | RIGHT |
RIGHT | -1 | LEFT | RIGHT |
Defined in
src/Controls/Copper3dTrackballControls.ts:52
noPan
• noPan: boolean
Defined in
src/Controls/Copper3dTrackballControls.ts:39
noRotate
• noRotate: boolean
Defined in
src/Controls/Copper3dTrackballControls.ts:37
noZoom
• noZoom: boolean
Defined in
src/Controls/Copper3dTrackballControls.ts:38
object
• object: PerspectiveCamera
| OrthographicCamera
Defined in
src/Controls/Copper3dTrackballControls.ts:28
panCamera
• panCamera: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:70
panSpeed
• panSpeed: number
Defined in
src/Controls/Copper3dTrackballControls.ts:35
position0
• position0: Vector3
Defined in
src/Controls/Copper3dTrackballControls.ts:61
reset
• reset: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:75
rotateCamera
• rotateCamera: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:68
rotateSpeed
• rotateSpeed: number
Defined in
src/Controls/Copper3dTrackballControls.ts:33
screen
• screen: Object
Type declaration
Name | Type |
---|---|
height | number |
left | number |
top | number |
width | number |
Defined in
src/Controls/Copper3dTrackballControls.ts:31
staticMoving
• staticMoving: boolean
Defined in
src/Controls/Copper3dTrackballControls.ts:41
target
• target: Vector3
Defined in
src/Controls/Copper3dTrackballControls.ts:58
target0
• target0: Vector3
Defined in
src/Controls/Copper3dTrackballControls.ts:60
up0
• up0: Vector3
Defined in
src/Controls/Copper3dTrackballControls.ts:62
update
• update: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:74
zoom0
• zoom0: number
Defined in
src/Controls/Copper3dTrackballControls.ts:63
zoomCamera
• zoomCamera: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Controls/Copper3dTrackballControls.ts:69
zoomSpeed
• zoomSpeed: number
Defined in
src/Controls/Copper3dTrackballControls.ts:34
Methods
addEventListener
▸ addEventListener<T
>(type
, listener
): void
Adds a listener to an event type.
Type parameters
Name | Type |
---|---|
T | extends never |
Parameters
Name | Type | Description |
---|---|---|
type | T | The type of event to listen to. |
listener | EventListener <{}[T ], T , Copper3dTrackballControls > | The function that gets called when the event is fired. |
Returns
void
Inherited from
EventDispatcher.addEventListener
Defined in
node_modules/@types/three/src/core/EventDispatcher.d.ts:52
dispatchEvent
▸ dispatchEvent<T
>(event
): void
Fire an event type.
Type parameters
Name | Type |
---|---|
T | extends never |
Parameters
Name | Type | Description |
---|---|---|
event | BaseEvent <T > & {}[T ] | The event that gets fired. |
Returns
void
Inherited from
EventDispatcher.dispatchEvent
Defined in
node_modules/@types/three/src/core/EventDispatcher.d.ts:81
hasEventListener
▸ hasEventListener<T
>(type
, listener
): boolean
Checks if listener is added to an event type.
Type parameters
Name | Type |
---|---|
T | extends never |
Parameters
Name | Type | Description |
---|---|---|
type | T | The type of event to listen to. |
listener | EventListener <{}[T ], T , Copper3dTrackballControls > | The function that gets called when the event is fired. |
Returns
boolean
Inherited from
EventDispatcher.hasEventListener
Defined in
node_modules/@types/three/src/core/EventDispatcher.d.ts:62
removeEventListener
▸ removeEventListener<T
>(type
, listener
): void
Removes a listener from an event type.
Type parameters
Name | Type |
---|---|
T | extends never |
Parameters
Name | Type | Description |
---|---|---|
type | T | The type of the listener that gets removed. |
listener | EventListener <{}[T ], T , Copper3dTrackballControls > | The listener function that gets removed. |
Returns
void
Inherited from
EventDispatcher.removeEventListener
Defined in
node_modules/@types/three/src/core/EventDispatcher.d.ts:72