Cesium v1.56 Release Notes
Release Date: 2019-04-01 // about 5 years ago-
๐ฅ Breaking Changes :mega:
- ๐
Resource.fetchImage
now returns anImageBitmap
instead ofImage
when supported. This allows for decoding images while fetching usingcreateImageBitmap
to greatly speed up texture upload and decrease frame drops when loading models with large textures. #7579 - ๐
Cesium3DTileStyle.style
now has an emptyObject
as its default value, instead ofundefined
. #7567 Scene.clampToHeight
now takes an optionalwidth
argument before theresult
argument. #7693- ๐ In the
Resource
class,addQueryParameters
andaddTemplateValues
have been removed. Please usesetQueryParameters
andsetTemplateValues
instead. #7695
Deprecated :hourglass_flowing_sand:
Resource.fetchImage
now takes an options object. Useresource.fetchImage({ preferBlob: true })
instead ofresource.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 aflipY
option to vertically flip an image during fetch & decode. It is only valid whenImageBitmapOptions
is supported by the browser. #7579 - โ Added
backFaceCulling
andnormalShading
options toPointCloudShading
. 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
beingNaN
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
whereanchorLineColor
used the same color instance instead of cloning the color #7686
- ๐