Skip to content

Commit

Permalink
Merge pull request #12042 from Tim-S/fix-ts-Property-availability-is-…
Browse files Browse the repository at this point in the history
…missing-in-type-CustomHeightmapTerrainProvider-but-required-in-type-TerrainProvider

fix Property 'availability' is missing in type 'CustomHeightmapTerrai…
  • Loading branch information
ggetz authored Jun 24, 2024
2 parents fe572e3 + 5e19cf1 commit 555ff0e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
##### Fixes :wrench:

- Fixed issue where Entities would not use a custom ellipsoid. [#3543](https://github.com/CesiumGS/cesium/issues/3543)
- Fixed issue where Property 'availability' is missing in type 'CustomHeightmapTerrainProvider' but required in type 'TerrainProvider' when using with typescript

##### Breaking Changes :mega:

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,3 +390,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
- [dslming](https://github.com/dslming)
- [Peter A. Jonsson](https://github.com/pjonsson)
- [Zhongxiang Wang](https://github.com/plainheart)
- [Tim Schneider](https://github.com/Tim-S)
14 changes: 14 additions & 0 deletions packages/engine/Source/Core/CustomHeightmapTerrainProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,20 @@ Object.defineProperties(CustomHeightmapTerrainProvider.prototype, {
},
},

/**
* Gets an object that can be used to determine availability of terrain from this provider, such as
* at points and in rectangles. This property may be undefined if availability
* information is not available.
* @memberof CustomHeightmapTerrainProvider.prototype
* @type {TileAvailability}
* @readonly
*/
availability: {
get: function () {
return undefined;
},
},

/**
* Gets the number of columns per heightmap tile.
* @memberof CustomHeightmapTerrainProvider.prototype
Expand Down

0 comments on commit 555ff0e

Please sign in to comment.