Skip to content

Commit

Permalink
Cesium. Update suspend adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed May 13, 2024
1 parent 1ff0d83 commit 47a9f4f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private constructor() :
* @return This provider does not support loading availability.
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/ArcGISTiledElevationTerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
override fun loadTileDataAvailability(
override fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private constructor() :
* @return Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/CesiumTerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
override fun loadTileDataAvailability(
override fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ external class CustomHeightmapTerrainProvider(options: ConstructorOptions) : Ter
* @return Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/CustomHeightmapTerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
override fun loadTileDataAvailability(
override fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ external class EllipsoidTerrainProvider(options: ConstructorOptions? = definedEx
* @return This provider does not support loading availability.
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/EllipsoidTerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
override fun loadTileDataAvailability(
override fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private constructor() :
* @param [level] The level of the tile for which to request geometry.
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/GoogleEarthEnterpriseTerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
override fun loadTileDataAvailability(
override fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ abstract external class TerrainProvider {
* @return Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/TerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
abstract fun loadTileDataAvailability(
@JsAsync(optional = true)
suspend fun loadTileDataAvailability(
x: Double,
y: Double,
level: Int,
)

@JsName("loadTileDataAvailability")
abstract fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private constructor() :
* @return Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/VRTheWorldTerrainProvider.html#loadTileDataAvailability">Online Documentation</a>
*/
override fun loadTileDataAvailability(
override fun loadTileDataAvailabilityAsync(
x: Double,
y: Double,
level: Int,
Expand Down

0 comments on commit 47a9f4f

Please sign in to comment.