-
-
Notifications
You must be signed in to change notification settings - Fork 36.4k
Expand file tree
/
Copy pathOrbitControls.html
More file actions
550 lines (550 loc) · 24.4 KB
/
OrbitControls.html
File metadata and controls
550 lines (550 loc) · 24.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OrbitControls - Three.js Docs</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="../scripts/highlight.min.js"></script>
<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
<p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Controls.html">Controls</a> → </p>
<h1 translate="no">OrbitControls</h1>
<section>
<header>
<div class="class-description"><p>Orbit controls allow the camera to orbit around a target.</p>
<p>OrbitControls performs orbiting, dollying (zooming), and panning. Unlike <a href="TrackballControls.html">TrackballControls</a>,
it maintains the "up" direction <code>object.up</code> (+Y by default).</p>
<ul>
<li>Orbit: Left mouse / touch: one-finger move.</li>
<li>Zoom: Middle mouse, or mousewheel / touch: two-finger spread or squish.</li>
<li>Pan: Right mouse, or left mouse + ctrl/meta/shiftKey, or arrow keys / touch: two-finger move.</li>
</ul></div>
<h2>Code Example</h2>
<div translate="no"><pre><code class="language-js">const controls = new OrbitControls( camera, renderer.domElement );
// controls.update() must be called after any manual changes to the camera's transform
camera.position.set( 0, 20, 100 );
controls.update();
function animate() {
// required if controls.enableDamping or controls.autoRotate are set to true
controls.update();
renderer.render( scene, camera );
}
</code></pre></div>
</header>
<article>
<h2 class="subsection-title">Import</h2>
<p><span translate="no">OrbitControls</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
<pre><code class="language-js">import { OrbitControls } from 'three/addons/controls/OrbitControls.js';</code></pre>
<div class="container-overview">
<h2>Constructor</h2>
<h3 class="name name-method" id="OrbitControls" translate="no">new <a href="#OrbitControls">OrbitControls</a><span class="signature">( object : <span class="param-type"><a href="Object3D.html">Object3D</a></span>, domElement : <span class="param-type">HTMLElement</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Constructs a new controls instance.</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">object</strong>
</td>
<td class="description last">
<p>The object that is managed by the controls.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">domElement</strong>
</td>
<td class="description last">
<p>The HTML element used for event listeners.</p>
<p>Default is <code>null</code>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 class="subsection-title">Properties</h2>
<div class="member">
<h3 class="name" id="autoRotate" translate="no">.<a href="#autoRotate">autoRotate</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Set to true to automatically rotate around the target</p>
<p>Note that if this is enabled, you must call <code>update()</code> in your animation loop.
If you want the auto-rotate speed to be independent of the frame rate (the refresh
rate of the display), you must pass the time <code>deltaTime</code>, in seconds, to <code>update()</code>.</p>
<p>Default is <code>false</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="autoRotateSpeed" translate="no">.<a href="#autoRotateSpeed">autoRotateSpeed</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How fast to rotate around the target if <code>autoRotate</code> is <code>true</code>. The default equates to 30 seconds
per orbit at 60fps.</p>
<p>Note that if <code>autoRotate</code> is enabled, you must call <code>update()</code> in your animation loop.</p>
<p>Default is <code>2</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="cursor" translate="no">.<a href="#cursor">cursor</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
<div class="description">
<p>The focus point of the <code>minTargetRadius</code> and <code>maxTargetRadius</code> limits.
It can be updated manually at any point to change the center of interest
for the <code>target</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="cursorStyle" translate="no">.<a href="#cursorStyle">cursorStyle</a><span class="type-signature"> : 'auto' | 'grab'</span> </h3>
<div class="description">
<p>Defines the visual representation of the cursor.</p>
<p>Default is <code>'auto'</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="dampingFactor" translate="no">.<a href="#dampingFactor">dampingFactor</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>The damping inertia used if <code>enableDamping</code> is set to <code>true</code>.</p>
<p>Note that for this to work, you must call <code>update()</code> in your animation loop.</p>
<p>Default is <code>0.05</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="enableDamping" translate="no">.<a href="#enableDamping">enableDamping</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Set to <code>true</code> to enable damping (inertia), which can be used to give a sense of weight
to the controls. Note that if this is enabled, you must call <code>update()</code> in your animation
loop.</p>
<p>Default is <code>false</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="enablePan" translate="no">.<a href="#enablePan">enablePan</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Enable or disable camera panning.</p>
<p>Default is <code>true</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="enableRotate" translate="no">.<a href="#enableRotate">enableRotate</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Enable or disable horizontal and vertical rotation of the camera.</p>
<p>Note that it is possible to disable a single axis by setting the min and max of the
<code>minPolarAngle</code> or <code>minAzimuthAngle</code> to the same value, which will cause the vertical
or horizontal rotation to be fixed at that value.</p>
<p>Default is <code>true</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="enableZoom" translate="no">.<a href="#enableZoom">enableZoom</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Enable or disable zooming (dollying) of the camera.</p>
<p>Default is <code>true</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="keyPanSpeed" translate="no">.<a href="#keyPanSpeed">keyPanSpeed</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How fast to pan the camera when the keyboard is used in
pixels per keypress.</p>
<p>Default is <code>7</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="keyRotateSpeed" translate="no">.<a href="#keyRotateSpeed">keyRotateSpeed</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How fast to rotate the camera when the keyboard is used.</p>
<p>Default is <code>1</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="keys" translate="no">.<a href="#keys">keys</a><span class="type-signature"> : Object</span> </h3>
<div class="description">
<p>This object contains references to the keycodes for controlling camera panning.</p>
<pre><code class="language-js">controls.keys = {
LEFT: 'ArrowLeft', //left arrow
UP: 'ArrowUp', // up arrow
RIGHT: 'ArrowRight', // right arrow
BOTTOM: 'ArrowDown' // down arrow
}
</code></pre>
</div>
<dl class="details">
<dt class="tag-overrides"><strong>Overrides:</strong> <a href="Controls.html#keys">Controls#keys</a></dt>
</dl>
</div>
<div class="member">
<h3 class="name" id="maxAzimuthAngle" translate="no">.<a href="#maxAzimuthAngle">maxAzimuthAngle</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can orbit horizontally, upper limit. If set, the interval <code>[ min, max ]</code>
must be a sub-interval of <code>[ - 2 PI, 2 PI ]</code>, with <code>( max - min < 2 PI )</code>.</p>
<p>Default is <code>-Infinity</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="maxDistance" translate="no">.<a href="#maxDistance">maxDistance</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can dolly out (perspective camera only).</p>
<p>Default is <code>Infinity</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="maxPolarAngle" translate="no">.<a href="#maxPolarAngle">maxPolarAngle</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can orbit vertically, upper limit. Range is <code>[0, Math.PI]</code> radians.</p>
<p>Default is <code>Math.PI</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="maxTargetRadius" translate="no">.<a href="#maxTargetRadius">maxTargetRadius</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can move the target from the 3D <code>cursor</code>.</p>
<p>Default is <code>Infinity</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="maxZoom" translate="no">.<a href="#maxZoom">maxZoom</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can zoom out (orthographic camera only).</p>
<p>Default is <code>Infinity</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="minAzimuthAngle" translate="no">.<a href="#minAzimuthAngle">minAzimuthAngle</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can orbit horizontally, lower limit. If set, the interval <code>[ min, max ]</code>
must be a sub-interval of <code>[ - 2 PI, 2 PI ]</code>, with <code>( max - min < 2 PI )</code>.</p>
<p>Default is <code>-Infinity</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="minDistance" translate="no">.<a href="#minDistance">minDistance</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can dolly in (perspective camera only).</p>
<p>Default is <code>0</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="minPolarAngle" translate="no">.<a href="#minPolarAngle">minPolarAngle</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can orbit vertically, lower limit. Range is <code>[0, Math.PI]</code> radians.</p>
<p>Default is <code>0</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="minTargetRadius" translate="no">.<a href="#minTargetRadius">minTargetRadius</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How close you can get the target to the 3D <code>cursor</code>.</p>
<p>Default is <code>0</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="minZoom" translate="no">.<a href="#minZoom">minZoom</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>How far you can zoom in (orthographic camera only).</p>
<p>Default is <code>0</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="mouseButtons" translate="no">.<a href="#mouseButtons">mouseButtons</a><span class="type-signature"> : Object</span> </h3>
<div class="description">
<p>This object contains references to the mouse actions used by the controls.</p>
<pre><code class="language-js">controls.mouseButtons = {
LEFT: THREE.MOUSE.ROTATE,
MIDDLE: THREE.MOUSE.DOLLY,
RIGHT: THREE.MOUSE.PAN
}
</code></pre>
</div>
<dl class="details">
<dt class="tag-overrides"><strong>Overrides:</strong> <a href="Controls.html#mouseButtons">Controls#mouseButtons</a></dt>
</dl>
</div>
<div class="member">
<h3 class="name" id="panSpeed" translate="no">.<a href="#panSpeed">panSpeed</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>Speed of panning.</p>
<p>Default is <code>1</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="position0" translate="no">.<a href="#position0">position0</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
<div class="description">
<p>Used internally by <code>saveState()</code> and <code>reset()</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="rotateSpeed" translate="no">.<a href="#rotateSpeed">rotateSpeed</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>Speed of rotation.</p>
<p>Default is <code>1</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="screenSpacePanning" translate="no">.<a href="#screenSpacePanning">screenSpacePanning</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Defines how the camera's position is translated when panning. If <code>true</code>, the camera pans
in screen space. Otherwise, the camera pans in the plane orthogonal to the camera's up
direction.</p>
<p>Default is <code>true</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="target" translate="no">.<a href="#target">target</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
<div class="description">
<p>The focus point of the controls, the <code>object</code> orbits around this.
It can be updated manually at any point to change the focus of the controls.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="target0" translate="no">.<a href="#target0">target0</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
<div class="description">
<p>Used internally by <code>saveState()</code> and <code>reset()</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="touches" translate="no">.<a href="#touches">touches</a><span class="type-signature"> : Object</span> </h3>
<div class="description">
<p>This object contains references to the touch actions used by the controls.</p>
<pre><code class="language-js">controls.mouseButtons = {
ONE: THREE.TOUCH.ROTATE,
TWO: THREE.TOUCH.DOLLY_PAN
}
</code></pre>
</div>
<dl class="details">
<dt class="tag-overrides"><strong>Overrides:</strong> <a href="Controls.html#touches">Controls#touches</a></dt>
</dl>
</div>
<div class="member">
<h3 class="name" id="zoom0" translate="no">.<a href="#zoom0">zoom0</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>Used internally by <code>saveState()</code> and <code>reset()</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="zoomSpeed" translate="no">.<a href="#zoomSpeed">zoomSpeed</a><span class="type-signature"> : number</span> </h3>
<div class="description">
<p>Speed of zooming / dollying.</p>
<p>Default is <code>1</code>.</p>
</div>
</div>
<div class="member">
<h3 class="name" id="zoomToCursor" translate="no">.<a href="#zoomToCursor">zoomToCursor</a><span class="type-signature"> : boolean</span> </h3>
<div class="description">
<p>Setting this property to <code>true</code> allows to zoom to the cursor's position.</p>
<p>Default is <code>false</code>.</p>
</div>
</div>
<h2 class="subsection-title">Methods</h2>
<h3 class="name name-method" id="dollyIn" translate="no">.<a href="#dollyIn">dollyIn</a><span class="signature">( dollyScale : <span class="param-type">number</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Programmatically dolly in (zoom in for perspective camera).</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">dollyScale</strong>
</td>
<td class="description last">
<p>The dolly scale factor.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="dollyOut" translate="no">.<a href="#dollyOut">dollyOut</a><span class="signature">( dollyScale : <span class="param-type">number</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Programmatically dolly out (zoom out for perspective camera).</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">dollyScale</strong>
</td>
<td class="description last">
<p>The dolly scale factor.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="getAzimuthalAngle" translate="no">.<a href="#getAzimuthalAngle">getAzimuthalAngle</a><span class="signature">()</span><span class="type-signature"> : number</span> </h3>
<div class="method">
<div class="description">
<p>Get the current horizontal rotation, in radians.</p>
</div>
<dl class="details">
<dt class="tag-returns"><strong>Returns:</strong> The current horizontal rotation, in radians.</dt>
</dl>
</div>
<h3 class="name name-method" id="getDistance" translate="no">.<a href="#getDistance">getDistance</a><span class="signature">()</span><span class="type-signature"> : number</span> </h3>
<div class="method">
<div class="description">
<p>Returns the distance from the camera to the target.</p>
</div>
<dl class="details">
<dt class="tag-returns"><strong>Returns:</strong> The distance from the camera to the target.</dt>
</dl>
</div>
<h3 class="name name-method" id="getPolarAngle" translate="no">.<a href="#getPolarAngle">getPolarAngle</a><span class="signature">()</span><span class="type-signature"> : number</span> </h3>
<div class="method">
<div class="description">
<p>Get the current vertical rotation, in radians.</p>
</div>
<dl class="details">
<dt class="tag-returns"><strong>Returns:</strong> The current vertical rotation, in radians.</dt>
</dl>
</div>
<h3 class="name name-method" id="listenToKeyEvents" translate="no">.<a href="#listenToKeyEvents">listenToKeyEvents</a><span class="signature">( domElement : <span class="param-type">HTMLElement</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Adds key event listeners to the given DOM element.
<code>window</code> is a recommended argument for using this method.</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">domElement</strong>
</td>
<td class="description last">
<p>The DOM element</p>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="pan" translate="no">.<a href="#pan">pan</a><span class="signature">( deltaX : <span class="param-type">number</span>, deltaY : <span class="param-type">number</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Programmatically pan the camera.</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">deltaX</strong>
</td>
<td class="description last">
<p>The horizontal pan amount in pixels.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">deltaY</strong>
</td>
<td class="description last">
<p>The vertical pan amount in pixels.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="reset" translate="no">.<a href="#reset">reset</a><span class="signature">()</span> </h3>
<div class="method">
<div class="description">
<p>Reset the controls to their state from either the last time the <code>saveState()</code>
was called, or the initial state.</p>
</div>
</div>
<h3 class="name name-method" id="rotateLeft" translate="no">.<a href="#rotateLeft">rotateLeft</a><span class="signature">( angle : <span class="param-type">number</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Programmatically rotate the camera left (around the vertical axis).</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">angle</strong>
</td>
<td class="description last">
<p>The rotation angle in radians.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="rotateUp" translate="no">.<a href="#rotateUp">rotateUp</a><span class="signature">( angle : <span class="param-type">number</span> )</span> </h3>
<div class="method">
<div class="description">
<p>Programmatically rotate the camera up (around the horizontal axis).</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">angle</strong>
</td>
<td class="description last">
<p>The rotation angle in radians.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="saveState" translate="no">.<a href="#saveState">saveState</a><span class="signature">()</span> </h3>
<div class="method">
<div class="description">
<p>Save the current state of the controls. This can later be recovered with <code>reset()</code>.</p>
</div>
</div>
<h3 class="name name-method" id="stopListenToKeyEvents" translate="no">.<a href="#stopListenToKeyEvents">stopListenToKeyEvents</a><span class="signature">()</span> </h3>
<div class="method">
<div class="description">
<p>Removes the key event listener previously defined with <code>listenToKeyEvents()</code>.</p>
</div>
</div>
<h2 class="subsection-title">Events</h2>
<h3 class="name name-method" id="event:change" translate="no">.<a href="#event:change">change</a> </h3>
<div class="method">
<div class="description">
<p>Fires when the camera has been transformed by the controls.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
</div>
<h3 class="name name-method" id="event:end" translate="no">.<a href="#event:end">end</a> </h3>
<div class="method">
<div class="description">
<p>Fires when an interaction has finished.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
</div>
<h3 class="name name-method" id="event:start" translate="no">.<a href="#event:start">start</a> </h3>
<div class="method">
<div class="description">
<p>Fires when an interaction was initiated.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
</div>
<h2 class="subsection-title">Source</h2>
<p>
<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/controls/OrbitControls.js" translate="no" target="_blank" rel="noopener">examples/jsm/controls/OrbitControls.js</a>
</p>
</article>
</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>