Skip to content

Commit

Permalink
Merge pull request #12400 from NickCrews/patch-1
Browse files Browse the repository at this point in the history
types: mark `options` param of ImageryLayer.fromProviderAsync as optional
  • Loading branch information
ggetz authored Jan 7, 2025
2 parents a21c02e + 8c69091 commit 268232a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
##### Fixes :wrench:

- Fixed error when resetting `Cesium3DTileset.modelMatrix` to its initial value. [#12409](https://github.com/CesiumGS/cesium/pull/12409)
- Fixed type of `ImageryLayer.fromProviderAsync`, to correctly show that the param `options` is optional. [#12400](https://github.com/CesiumGS/cesium/pull/12400)

### 1.125 - 2025-01-02

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,5 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
- [Kirn Kim](https://github.com/squrki)
- [Emanuele Mastaglia](https://github.com/Masty88)
- [Connor Manning](https://github.com/connormanning)
- [Nick Crews](https://github.com/NickCrews)
- [胡文康](https://github.com/XiaoHu1994)
2 changes: 1 addition & 1 deletion packages/engine/Source/Scene/ImageryLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ ImageryLayer.DEFAULT_APPLY_COLOR_TO_ALPHA_THRESHOLD = 0.004;
* Create a new imagery layer from an asynchronous imagery provider. The layer will handle any asynchronous loads or errors, and begin rendering the imagery layer once ready.
*
* @param {Promise<ImageryProvider>} imageryProviderPromise A promise which resolves to a imagery provider
* @param {ImageryLayer.ConstructorOptions} options An object describing initialization options
* @param {ImageryLayer.ConstructorOptions} [options] An object describing initialization options
* @returns {ImageryLayer} The created imagery layer.
*
* @example
Expand Down

0 comments on commit 268232a

Please sign in to comment.