|
@@ -104,7 +104,7 @@
|
|
|
|
|
|
<h3>[property:Boolean enabled]</h3>
|
|
|
<p>
|
|
|
- When set to *false*, the controls will not respond to user input. Default is *true*.
|
|
|
+ 当设置为false时,控制器将不会响应用户的操作。默认值为true。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Boolean enableDamping]</h3>
|
|
@@ -151,7 +151,7 @@ controls.keys = {
|
|
|
|
|
|
<h3>[property:Float maxAzimuthAngle]</h3>
|
|
|
<p>
|
|
|
- How far you can orbit horizontally, upper limit. If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ], with ( max - min < 2 PI ). Default is Infinity.
|
|
|
+ 你能够水平旋转的角度上限。如果设置,其有效值范围为[-2 * Math.PI,2 * Math.PI],且旋转角度的上限和下限差值小于2 * Math.PI。默认值为无穷大。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Float maxDistance]</h3>
|
|
@@ -171,7 +171,7 @@ controls.keys = {
|
|
|
|
|
|
<h3>[property:Float minAzimuthAngle]</h3>
|
|
|
<p>
|
|
|
- How far you can orbit horizontally, lower limit. If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ], with ( max - min < 2 PI ). Default is Infinity.
|
|
|
+ 你能够水平旋转的角度下限。如果设置,其有效值范围为[-2 * Math.PI,2 * Math.PI],且旋转角度的上限和下限差值小于2 * Math.PI。默认值为无穷大。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Float minDistance]</h3>
|
|
@@ -225,10 +225,8 @@ controls.mouseButtons = {
|
|
|
<h3>[property:Boolean screenSpacePanning]</h3>
|
|
|
<p>
|
|
|
定义当平移的时候摄像机的位置将如何移动。如果为true,摄像机将在屏幕空间内平移。
|
|
|
- 否则,摄像机将在与摄像机向上方向垂直的平面中平移。
|
|
|
- Defines how the camera's position is translated when panning. If true, the camera pans in screen space.
|
|
|
- Otherwise, the camera pans in the plane orthogonal to the camera's up direction.
|
|
|
- Default is true for OrbitControls; false for MapControls.
|
|
|
+ 否则,摄像机将在与摄像机向上方向垂直的平面中平移。当使用 OrbitControls 时,
|
|
|
+ 默认值为true;当使用 MapControls 时,默认值为false。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Vector3 target0]</h3>
|
|
@@ -244,7 +242,7 @@ controls.mouseButtons = {
|
|
|
|
|
|
<h3>[property:Object touches]</h3>
|
|
|
<p>
|
|
|
- This object contains references to the touch actions used by the controls.
|
|
|
+ 该对象包含由控件所使用的触摸操作的引用。
|
|
|
<code>
|
|
|
controls.touches = {
|
|
|
ONE: THREE.TOUCH.ROTATE,
|
|
@@ -261,7 +259,6 @@ controls.touches = {
|
|
|
<h3>[property:Float zoomSpeed]</h3>
|
|
|
<p>
|
|
|
摄像机缩放的速度,其默认值为1。
|
|
|
- Speed of zooming / dollying. Default is 1.
|
|
|
</p>
|
|
|
|
|
|
|
|
@@ -285,7 +282,7 @@ controls.touches = {
|
|
|
|
|
|
<h3>[method:void listenToKeyEvents] ( [param:HTMLDOMElement domElement] )</h3>
|
|
|
<p>
|
|
|
- Adds key event listeners to the given DOM element. *window* is a recommended argument for using this method.
|
|
|
+ 为指定的DOM元素添加按键监听。推荐将window作为指定的DOM元素。
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null reset] ()</h3>
|