Skip to content

Commit b94e330

Browse files
committed
Merge branch 'dev'
2 parents ca12520 + 04432c6 commit b94e330

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+593
-480
lines changed

.all-contributorsrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,25 @@
714714
"contributions": [
715715
"code"
716716
]
717+
},
718+
{
719+
"login": "oetherington",
720+
"name": "Ollie Etherington",
721+
"avatar_url": "https://avatars.githubusercontent.com/u/5075628?v=4",
722+
"profile": "https://github.com/oetherington",
723+
"contributions": [
724+
"code",
725+
"bug"
726+
]
727+
},
728+
{
729+
"login": "Mik-pe",
730+
"name": "Mikael Pettersson",
731+
"avatar_url": "https://avatars.githubusercontent.com/u/5653426?v=4",
732+
"profile": "https://github.com/Mik-pe",
733+
"contributions": [
734+
"code"
735+
]
717736
}
718737
],
719738
"skipCi": true,

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
124124
<td align="center" valign="top" width="14.28%"><a href="https://github.com/HEOJUNFO"><img src="https://avatars.githubusercontent.com/u/100739943?v=4?s=100" width="100px;" alt="HEOJUNFO"/><br /><sub><b>HEOJUNFO</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=HEOJUNFO" title="Code">💻</a></td>
125125
<td align="center" valign="top" width="14.28%"><a href="http://www.oletus.fi/"><img src="https://avatars.githubusercontent.com/u/453050?v=4?s=100" width="100px;" alt="Olli Etuaho"/><br /><sub><b>Olli Etuaho</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=Oletus" title="Code">💻</a></td>
126126
<td align="center" valign="top" width="14.28%"><a href="https://github.com/k2d222"><img src="https://avatars.githubusercontent.com/u/16296136?v=4?s=100" width="100px;" alt="Mathis Brossier"/><br /><sub><b>Mathis Brossier</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=k2d222" title="Code">💻</a></td>
127+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/oetherington"><img src="https://avatars.githubusercontent.com/u/5075628?v=4?s=100" width="100px;" alt="Ollie Etherington"/><br /><sub><b>Ollie Etherington</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=oetherington" title="Code">💻</a> <a href="https://github.com/three-types/three-ts-types/issues?q=author%3Aoetherington" title="Bug reports">🐛</a></td>
128+
</tr>
129+
<tr>
130+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Mik-pe"><img src="https://avatars.githubusercontent.com/u/5653426?v=4?s=100" width="100px;" alt="Mikael Pettersson"/><br /><sub><b>Mikael Pettersson</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=Mik-pe" title="Code">💻</a></td>
127131
</tr>
128132
</tbody>
129133
</table>

types/three/OTHER_FILES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build/three.d.ts
33
build/three.module.d.ts
44
examples/jsm/animation/AnimationClipCreator.d.ts
55
examples/jsm/csm/CSMShader.d.ts
6+
examples/jsm/controls/MapControls.d.ts
67
examples/jsm/curves/NURBSCurve.d.ts
78
examples/jsm/curves/NURBSSurface.d.ts
89
examples/jsm/curves/NURBSUtils.d.ts
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { OrbitControls } from './OrbitControls';
2+
import { Camera } from '../../../src/Three';
3+
4+
/**
5+
* MapControls performs orbiting, dollying (zooming), and panning.
6+
* Unlike TrackballControls, it maintains the "up" direction
7+
* object.up (+Y by default).
8+
*
9+
* Orbit - right mouse, or left mouse + ctrl/meta/shiftKey / touch:
10+
* two-finger rotate
11+
* Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
12+
* Pan - left mouse, or arrow keys / touch: one-finger move
13+
*
14+
* @param object - The camera to be controlled. The camera must not
15+
* be a child of another object, unless that object is the scene itself.
16+
* @param domElement - The HTML element used for
17+
* event listeners.
18+
*/
19+
export class MapControls extends OrbitControls {
20+
constructor(object: Camera, domElement?: HTMLElement);
21+
}

types/three/examples/jsm/controls/OrbitControls.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,3 @@ export class OrbitControls {
276276

277277
dispatchEvent(event: { type: string; target: any }): void;
278278
}
279-
280-
export class MapControls extends OrbitControls {
281-
constructor(object: Camera, domElement?: HTMLElement);
282-
}

types/three/examples/jsm/controls/PointerLockControls.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Camera, EventDispatcher, Vector3 } from '../../../src/Three';
33
export class PointerLockControls extends EventDispatcher {
44
constructor(camera: Camera, domElement?: HTMLElement);
55

6+
camera: Camera;
67
domElement: HTMLElement;
78

89
// API
@@ -12,6 +13,8 @@ export class PointerLockControls extends EventDispatcher {
1213
minPolarAngle: number;
1314
maxPolarAngle: number;
1415

16+
pointerSpeed: number;
17+
1518
connect(): void;
1619
disconnect(): void;
1720
dispose(): void;

types/three/examples/jsm/controls/TrackballControls.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export class TrackballControls extends EventDispatcher {
2020
dynamicDampingFactor: number;
2121
minDistance: number;
2222
maxDistance: number;
23+
minZoom: number;
24+
maxZoom: number;
2325
keys: string[];
2426
mouseButtons: { LEFT: MOUSE; MIDDLE: MOUSE; RIGHT: MOUSE };
2527

0 commit comments

Comments
 (0)