Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls: Move into core. #1192

Merged
merged 2 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading