Skip to content

Commit

Permalink
Controls: Move into core. (#1192)
Browse files Browse the repository at this point in the history
* Controls: Move into core.

* Update three.js
  • Loading branch information
Methuselah96 authored Aug 25, 2024
1 parent 7f03b0f commit 1d9fa7a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 15 deletions.
3 changes: 1 addition & 2 deletions types/three/examples/jsm/controls/ArcballControls.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Camera, Raycaster, Scene } from "three";
import { Controls } from "./Controls.js";
import { Camera, Controls, Raycaster, Scene } from "three";

export type ArcballControlsMouseActionOperation = "PAN" | "ROTATE" | "ZOOM" | "FOV";

Expand Down
3 changes: 1 addition & 2 deletions types/three/examples/jsm/controls/DragControls.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Camera, MOUSE, Object3D, Raycaster, TOUCH } from "three";
import { Controls } from "./Controls.js";
import { Camera, Controls, MOUSE, Object3D, Raycaster, TOUCH } from "three";

export interface DragControlsEventMap {
/**
Expand Down
3 changes: 1 addition & 2 deletions types/three/examples/jsm/controls/FirstPersonControls.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Camera, Vector3 } from "three";
import { Controls } from "./Controls.js";
import { Camera, Controls, Vector3 } from "three";

/**
* This class is an alternative implementation of {@link FlyControls}.
Expand Down
3 changes: 1 addition & 2 deletions types/three/examples/jsm/controls/FlyControls.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Camera } from "three";
import { Controls } from "./Controls.js";
import { Camera, Controls } from "three";

export interface FlyControlsEventMap {
/**
Expand Down
3 changes: 1 addition & 2 deletions types/three/examples/jsm/controls/PointerLockControls.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Camera, Vector3 } from "three";
import { Controls } from "./Controls.js";
import { Camera, Controls, Vector3 } from "three";

export interface PointerLockControlsEventMap {
/**
Expand Down
3 changes: 1 addition & 2 deletions types/three/examples/jsm/controls/TrackballControls.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Camera, MOUSE, Vector3 } from "three";
import { Controls } from "./Controls.js";
import { Camera, Controls, MOUSE, Vector3 } from "three";

export interface TrackballControlsEventMap {
/**
Expand Down
1 change: 1 addition & 0 deletions types/three/src/Three.WebGPU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export * from "./core/Raycaster.js";
export * from "./core/RenderTarget.js";
export * from "./core/Uniform.js";
export * from "./core/UniformsGroup.js";
export * from "./extras/Controls.js";
export * from "./extras/core/Curve.js";
export * from "./extras/core/CurvePath.js";
export * from "./extras/core/Path.js";
Expand Down
1 change: 1 addition & 0 deletions types/three/src/Three.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export * from "./core/Raycaster.js";
export * from "./core/RenderTarget.js";
export * from "./core/Uniform.js";
export * from "./core/UniformsGroup.js";
export * from "./extras/Controls.js";
export * from "./extras/core/Curve.js";
export * from "./extras/core/CurvePath.js";
export * from "./extras/core/Path.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Camera } from "../../../src/cameras/Camera.js";
import { EventDispatcher } from "../../../src/core/EventDispatcher.js";
import { Camera } from "../cameras/Camera.js";
import { EventDispatcher } from "../core/EventDispatcher.js";

/**
* Abstract base class for controls.
Expand Down

0 comments on commit 1d9fa7a

Please sign in to comment.