-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
…ronmentControls, CameraTransitionManager)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { OrthographicCamera, PerspectiveCamera } from 'three'; | ||
Check failure on line 1 in src/three/controls/CameraTransitionManager.d.ts GitHub Actions / build (18.x)
|
||
|
||
export class CameraTransitionManager extends EventDispatcher { | ||
|
||
get animating(): boolean; | ||
get camera(): PerspectiveCamera | OrthographicCamera; | ||
|
||
get mode(): 'perspective' | 'orthographic'; | ||
set mode( v: 'perspective' | 'orthographic' ); | ||
|
||
constructor( perspectiveCamera?: PerspectiveCamera, orthographicCamera?: OrthographicCamera ); | ||
|
||
toggle(): void; | ||
update(): void; | ||
|
||
syncCameras(): void; | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Camera, EventDispatcher, Object3D, Vector3 } from 'three'; | ||
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (18.x)
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (18.x)
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (18.x)
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (18.x)
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (20.x)
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (20.x)
Check failure on line 1 in src/three/controls/EnvironmentControls.d.ts GitHub Actions / build (20.x)
|
||
import { TilesRenderer } from '../TilesRenderer'; | ||
|
||
export class EnvironmentControls extends EventDispatcher { | ||
|
||
readonly isEnvironmentControls: true; | ||
|
||
get enabled(): boolean; | ||
set enabled( v: boolean ); | ||
|
||
constructor( | ||
scene: Object3D = null, | ||
camera: Camera = null, | ||
domElement: HTMLElement = null, | ||
tilesRenderer: TilesRenderer = null | ||
); | ||
|
||
setScene ( scene: Object3D ): void; | ||
setCamera ( camera: Camera ): void; | ||
setTilesRenderer( tilesRenderer: TilesRenderer ): void; | ||
|
||
attach( domElement: HTMLElement ): void; | ||
detach(): void; | ||
|
||
setState( state?: number, fireEvent?: boolean ): void; | ||
resetState(): void; | ||
|
||
update( deltaTime?: number ): void; | ||
|
||
adjustCamera( camera: Camera ): void; | ||
|
||
getUpDirection( point: Vector3, target: Vector3 ): void; | ||
getCameraUpDirection( target: Vector3 ): void; | ||
getPivotPoint ( target: Vector3 ): void; | ||
|
||
dispose(): void; | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Group, Vector3 } from 'three'; | ||
import { Ellipsoid } from '../math/Ellipsoid'; | ||
import { EnvironmentControls } from './EnvironmentControls'; | ||
|
||
export class GlobeControls extends EnvironmentControls { | ||
|
||
readonly isGlobeControls: true; | ||
|
||
get ellipsoid(): Ellipsoid; | ||
get tilesGroup(): Group; | ||
|
||
getVectorToCenter( target: Vector3 ): Vector3; | ||
getDistanceToCenter(): number; | ||
|
||
} |