Skip to content

Commit

Permalink
refactor(controls): add missing properties in declaration files (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguimmara authored Jan 15, 2025
1 parent aabbaaa commit 3a9fcb5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/three/controls/EnvironmentControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,22 @@ export class EnvironmentControls extends EventDispatcher<EnvironmentControlsEven

readonly isEnvironmentControls: true;

get enabled(): boolean;
set enabled( v: boolean );
enabled: boolean;
cameraRadius: number;
rotationSpeed: number;
minAltitude: number;
maxAltitude: number;
minDistance: number;
maxDistance: number;
minZoom: number;
maxZoom: number;
zoomSpeed: number;
adjustHeight: boolean;
enableDamping: boolean;
dampingFactor: number;
useFallbackPlane: boolean;

pivotPoint: Vector3;

constructor(
scene?: Object3D,
Expand Down
3 changes: 3 additions & 0 deletions src/three/controls/GlobeControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export class GlobeControls extends EnvironmentControls {

readonly isGlobeControls: true;

nearMargin: number;
farMargin: number;

get ellipsoid(): Ellipsoid;
get tilesGroup(): Group;

Expand Down

0 comments on commit 3a9fcb5

Please sign in to comment.