Cesium v1.56 Release Notes

Release Date: 2019-04-01 // about 5 years ago
  • ๐Ÿ’ฅ Breaking Changes :mega:
    • ๐Ÿ‘ Resource.fetchImage now returns an ImageBitmap instead of Image when supported. This allows for decoding images while fetching using createImageBitmap to greatly speed up texture upload and decrease frame drops when loading models with large textures. #7579
    • ๐Ÿ’… Cesium3DTileStyle.style now has an empty Object as its default value, instead of undefined. #7567
    • Scene.clampToHeight now takes an optional width argument before the result argument. #7693
    • ๐Ÿšš In the Resource class, addQueryParameters and addTemplateValues have been removed. Please use setQueryParameters and setTemplateValues instead. #7695
    Deprecated :hourglass_flowing_sand:
    • Resource.fetchImage now takes an options object. Use resource.fetchImage({ preferBlob: true }) instead of resource.fetchImage(true). The previous function definition will no longer work in 1.57. #7579
    โž• Additions :tada:
    • โž• Added support for touch and hold gesture. The touch and hold delay can be customized by updating ScreenSpaceEventHandler.touchHoldDelayMilliseconds. #7286
    • ๐Ÿ’ป Resource.fetchImage now has a flipY option to vertically flip an image during fetch & decode. It is only valid when ImageBitmapOptions is supported by the browser. #7579
    • โž• Added backFaceCulling and normalShading options to PointCloudShading. Both options are only applicable for point clouds containing normals. #7399
    • ๐Ÿ’… Cesium3DTileStyle.style reacts to updates and represents the current state of the style. #7567
    ๐Ÿ›  Fixes :wrench:
    • Fixed the value for BlendFunction.ONE_MINUS_CONSTANT_COLOR. #7624
    • ๐Ÿ›  Fixed HeadingPitchRoll.pitch being NaN when using .fromQuaternion due to a rounding error for pitches close to +/- 90ยฐ. #7654
    • ๐Ÿ›  Fixed a type of crash caused by the camera being rotated through terrain. #6783
    • ๐Ÿ›  Fixed an error in Resource when used with template replacements using numeric keys. #7668
    • ๐Ÿ›  Fixed an error in Cesium3DTilePointFeature where anchorLineColor used the same color instance instead of cloning the color #7686