You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGES.md
+27-4
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,47 @@
1
1
Change Log
2
2
==========
3
3
4
+
### 1.57 - 2019-05-01
5
+
6
+
##### Additions :tada:
7
+
* Added support for the `KHR_texture_transform` glTF extension. [#7549](https://github.com/AnalyticalGraphicsInc/cesium/pull/7549)
8
+
9
+
##### Fixes :wrench:
10
+
* Fixed an error where `clampToHeightMostDetailed` or `sampleHeightMostDetailed` would crash if entities were created when the promise resolved. [#7690](https://github.com/AnalyticalGraphicsInc/cesium/pull/7690)
11
+
12
+
### 1.56.1 - 2019-04-02
13
+
14
+
##### Additions :tada:
15
+
*`Resource.fetchImage` now takes a `preferImageBitmap` option to use `createImageBitmap` when supported to move image decode off the main thread. This option defaults to `false`.
16
+
17
+
##### Breaking Changes :mega:
18
+
* The following breaking changes are relative to 1.56. The `Resource.fetchImage` behavior is now identical to 1.55 and earlier.
19
+
* Changed `Resource.fetchImage` back to return an `Image` by default, instead of an `ImageBitmap` when supported. Note that an `ImageBitmap` cannot be flipped during texture upload. Instead, set `flipY : true` during fetch to flip it.
20
+
* Changed the default `flipY` option in `Resource.fetchImage` to false. This only has an effect when ImageBitmap is used.
21
+
4
22
### 1.56 - 2019-04-01
5
23
6
24
##### Breaking Changes :mega:
7
25
*`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](https://github.com/AnalyticalGraphicsInc/cesium/pull/7579)
26
+
*`Cesium3DTileStyle.style` now has an empty `Object` as its default value, instead of `undefined`. [#7567](https://github.com/AnalyticalGraphicsInc/cesium/issues/7567)
27
+
*`Scene.clampToHeight` now takes an optional `width` argument before the `result` argument. [#7693](https://github.com/AnalyticalGraphicsInc/cesium/pull/7693)
28
+
* In the `Resource` class, `addQueryParameters` and `addTemplateValues` have been removed. Please use `setQueryParameters` and `setTemplateValues` instead. [#7695](https://github.com/AnalyticalGraphicsInc/cesium/issues/7695)
8
29
9
30
##### Deprecated :hourglass_flowing_sand:
10
31
*`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](https://github.com/AnalyticalGraphicsInc/cesium/pull/7579)
11
32
12
33
##### Additions :tada:
34
+
* Added support for touch and hold gesture. The touch and hold delay can be customized by updating `ScreenSpaceEventHandler.touchHoldDelayMilliseconds`. [#7286](https://github.com/AnalyticalGraphicsInc/cesium/pull/7286)
13
35
*`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](https://github.com/AnalyticalGraphicsInc/cesium/pull/7579)
14
36
* Added `backFaceCulling` and `normalShading` options to `PointCloudShading`. Both options are only applicable for point clouds containing normals. [#7399](https://github.com/AnalyticalGraphicsInc/cesium/pull/7399)
15
-
* Added support for touch and hold gesture. The touch and hold delay can be customized by updating `ScreenSpaceEventHandler.touchHoldDelayMilliseconds`. [#7286](https://github.com/AnalyticalGraphicsInc/cesium/pull/7286)
16
-
* Added support for the `KHR_texture_transform` glTF extension. [#7549](https://github.com/AnalyticalGraphicsInc/cesium/pull/7549)
37
+
*`Cesium3DTileStyle.style` reacts to updates and represents the current state of the style. [#7567](https://github.com/AnalyticalGraphicsInc/cesium/issues/7567)
17
38
18
39
##### Fixes :wrench:
19
40
* Fixed the value for `BlendFunction.ONE_MINUS_CONSTANT_COLOR`. [#7624](https://github.com/AnalyticalGraphicsInc/cesium/pull/7624)
20
-
* Fixed `HeadingPitchRoll.pitch` being `NaN` when using `.fromQuaternion` do to a rounding error
21
-
for pitches close to +/- 90°. [#7654](https://github.com/AnalyticalGraphicsInc/cesium/pull/7654)
41
+
* Fixed `HeadingPitchRoll.pitch` being `NaN` when using `.fromQuaternion` due to a rounding error for pitches close to +/- 90°. [#7654](https://github.com/AnalyticalGraphicsInc/cesium/pull/7654)
42
+
* Fixed a type of crash caused by the camera being rotated through terrain. [#6783](https://github.com/AnalyticalGraphicsInc/cesium/issues/6783)
43
+
* Fixed an error in `Resource` when used with template replacements using numeric keys. [#7668](https://github.com/AnalyticalGraphicsInc/cesium/pull/7668)
44
+
* Fixed an error in `Cesium3DTilePointFeature` where `anchorLineColor` used the same color instance instead of cloning the color [#7686](https://github.com/AnalyticalGraphicsInc/cesium/pull/7686)
deprecationWarning('Resource.addQueryParameters','addQueryParameters has been deprecated and will be removed 1.45. Use setQueryParameters or appendQueryParameters instead.');
* Combines the specified object and the existing query parameters. This allows you to add many parameters at once,
619
606
* as opposed to adding them one at a time to the queryParameters property.
@@ -639,21 +626,6 @@ define([
639
626
}
640
627
};
641
628
642
-
/**
643
-
* Combines the specified object and the existing template values. This allows you to add many values at once,
644
-
* as opposed to adding them one at a time to the templateValues property. If a value is already set, it will become an array and the new value will be appended.
645
-
*
646
-
* @param {Object} template The template values
647
-
* @param {Boolean} [useAsDefault=false] If true the values will be used as the default values, so they will only be set if they are undefined.
* Returns a resource relative to the current instance. All properties remain the same as the current instance unless overridden in options.
659
631
*
@@ -870,12 +842,13 @@ define([
870
842
871
843
/**
872
844
* Asynchronously loads the given image resource. Returns a promise that will resolve to
873
-
* an {@link https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap|ImageBitmap} if the browser supports `createImageBitmap` or otherwise an
845
+
* an {@link https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap|ImageBitmap} if <code>preferImageBitmap</code> is true and the browser supports <code>createImageBitmap</code> or otherwise an
874
846
* {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement|Image} once loaded, or reject if the image failed to load.
875
847
*
876
848
* @param {Object} [options] An object with the following properties.
877
849
* @param {Boolean} [options.preferBlob=false] If true, we will load the image via a blob.
878
-
* @param {Boolean} [options.flipY=true] If true, image will be vertially flipped during decode. Only applies if the browser supports `createImageBitmap`.
850
+
* @param {Boolean} [options.preferImageBitmap=false] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
851
+
* @param {Boolean} [options.flipY=false] If true, image will be vertically flipped during decode. Only applies if the browser supports <code>createImageBitmap</code>.
879
852
* @returns {Promise.<ImageBitmap>|Promise.<Image>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
880
853
*
881
854
*
@@ -897,14 +870,15 @@ define([
897
870
*/
898
871
Resource.prototype.fetchImage=function(options){
899
872
if(typeofoptions==='boolean'){
900
-
deprecationWarning('fetchImage-parameter-change','fetchImage now takes an options object in CesiumJS 1.56. Use resource.fetchImage({ preferBlob: true }) instead of resource.fetchImage(true).');
873
+
deprecationWarning('fetchImage-parameter-change','fetchImage now takes an options object in CesiumJS 1.57. Use resource.fetchImage({ preferBlob: true }) instead of resource.fetchImage(true).');
* @param {Object} [options] An object with the following properties.
959
+
* @param {Resource} [options.resource] Resource object that points to an image to fetch.
960
+
* @param {Boolean} [options.preferImageBitmap] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
961
+
* @param {Boolean} [options.flipY] If true, image will be vertically flipped during decode. Only applies if the browser supports <code>createImageBitmap</code>.
* @param {Object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
1024
1026
* @param {Object} [options.headers={}] Additional HTTP headers that will be sent.
1025
1027
* @param {DefaultProxy} [options.proxy] A proxy to be used when loading the resource.
1026
-
* @param {Boolean} [options.flipY = true] Whether to vertically flip the image during fetch and decode. Only applies when requesting an image and the browser supports createImageBitmap.
1028
+
* @param {Boolean} [options.flipY=false] Whether to vertically flip the image during fetch and decode. Only applies when requesting an image and the browser supports <code>createImageBitmap</code>.
1027
1029
* @param {Resource~RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
1028
1030
* @param {Number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
1029
1031
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
1030
-
* @param {Boolean} [options.preferBlob = false] If true, we will load the image via a blob.
1032
+
* @param {Boolean} [options.preferBlob=false] If true, we will load the image via a blob.
1033
+
* @param {Boolean} [options.preferImageBitmap=false] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
1031
1034
* @returns {Promise.<ImageBitmap>|Promise.<Image>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
0 commit comments