Skip to content

Commit 63a88e9

Browse files
authored
OrbitControls: Derive from Controls. (#29142)
* OrbitControls: Derive from `Controls`. * OrbitControls: Add missing `this`.
1 parent 8be7c0f commit 63a88e9

File tree

2 files changed

+783
-807
lines changed

2 files changed

+783
-807
lines changed

docs/examples/en/controls/OrbitControls.html

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<link type="text/css" rel="stylesheet" href="page.css" />
88
</head>
99
<body>
10+
[page:Controls] &rarr;
11+
1012
<h1>[name]</h1>
1113

1214
<p class="desc">
@@ -66,7 +68,7 @@ <h3>[name]( [param:Camera object], [param:HTMLDOMElement domElement] )</h3>
6668
<p>
6769
[page:Camera object]: (required) The camera to be controlled. The camera must not be a child of another object, unless that object is the scene itself.<br><br>
6870

69-
[page:HTMLDOMElement domElement]: The HTML element used for event listeners.
71+
[page:HTMLDOMElement domElement]: The HTML element used for event listeners. (optional)
7072
</p>
7173

7274
<h2>Events</h2>
@@ -88,6 +90,8 @@ <h3>end</h3>
8890

8991
<h2>Properties</h2>
9092

93+
<p>See the base [page:Controls] class for common properties.</p>
94+
9195
<h3>[property:Boolean autoRotate]</h3>
9296
<p>
9397
Set to true to automatically rotate around the target.<br> Note that if this is enabled, you must call [page:.update]
@@ -108,17 +112,6 @@ <h3>
108112
call [page:.update] () in your animation loop.
109113
</p>
110114

111-
<h3>[property:HTMLDOMElement domElement]</h3>
112-
<p>
113-
The HTMLDOMElement used to listen for mouse / touch events. This must be passed in the constructor; changing it here will
114-
not set up new event listeners.
115-
</p>
116-
117-
<h3>[property:Boolean enabled]</h3>
118-
<p>
119-
When set to `false`, the controls will not respond to user input. Default is `true`.
120-
</p>
121-
122115
<h3>[property:Boolean enableDamping]</h3>
123116
<p>
124117
Set to true to enable damping (inertia), which can be used to give a sense of weight to the controls. Default is false.<br>
@@ -224,11 +217,6 @@ <h3>
224217
</code>
225218
</p>
226219

227-
<h3>[property:Camera object]</h3>
228-
<p>
229-
The camera being controlled.
230-
</p>
231-
232220
<h3>[property:Float panSpeed]</h3>
233221
<p>
234222
Speed of panning. Default is 1.
@@ -295,10 +283,7 @@ <h3>[property:Boolean zoomToCursor]</h3>
295283

296284
<h2>Methods</h2>
297285

298-
<h3>[method:undefined dispose] ()</h3>
299-
<p>
300-
Remove all the event listeners.
301-
</p>
286+
<p>See the base [page:Controls] class for common methods.</p>
302287

303288
<h3>[method:radians getAzimuthalAngle] ()</h3>
304289
<p>

0 commit comments

Comments
 (0)