Skip to content

Commit

Permalink
Update types for MapViewProps (#7519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpeck10x authored and Pessimistress committed Dec 28, 2022
1 parent 8bf7767 commit 124f092
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/views/globe-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type GlobeViewProps = {
/** The resolution at which to turn flat features into 3D meshes, in degrees. Smaller numbers will generate more detailed mesh. Default `10`. */
resolution?: number;
/** Scaler for the near plane, 1 unit equals to the height of the viewport. Default to `0.1`. Overwrites the `near` parameter. */
nearZMultiplier?: boolean;
nearZMultiplier?: number;
/** Scaler for the far plane, 1 unit equals to the distance from the camera to the top edge of the screen. Default to `1.01`. Overwrites the `far` parameter. */
farZMultiplier?: boolean;
farZMultiplier?: number;
/** Distance of the camera relative to viewport height. Default `1.5`. */
altitude?: number;
};
Expand Down
4 changes: 2 additions & 2 deletions modules/core/src/views/map-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ type MapViewProps = {
/** Whether to render multiple copies of the map at low zoom levels. Default `false`. */
repeat?: boolean;
/** Scaler for the near plane, 1 unit equals to the height of the viewport. Default to `0.1`. Overwrites the `near` parameter. */
nearZMultiplier?: boolean;
nearZMultiplier?: number;
/** Scaler for the far plane, 1 unit equals to the distance from the camera to the top edge of the screen. Default to `1.01`. Overwrites the `far` parameter. */
farZMultiplier?: boolean;
farZMultiplier?: number;
/** Custom projection matrix */
projectionMatrix?: NumericArray;
/** Field of view covered by the camera, in the perspective case. In degrees. If not supplied, will be calculated from `altitude`. */
Expand Down

0 comments on commit 124f092

Please sign in to comment.