Skip to content

Commit

Permalink
Merge branch 'master' into fix-wmts-sandcastle
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Shehata committed Dec 15, 2019
2 parents 13c7809 + 59110b8 commit 6c3fbeb
Show file tree
Hide file tree
Showing 34 changed files with 455 additions and 184 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
language: node_js
node_js:
- "8"
sudo: false
- "10"
addons:
chrome: stable
firefox: latest
services:
- xvfb
before_script:
- export DISPLAY=:99.0
script:
- npm --silent run deploy-set-version -- --buildVersion $TRAVIS_BRANCH.$TRAVIS_BUILD_NUMBER
- npm --silent run deploy-status -- --status pending --message 'Waiting for build'
Expand Down
27 changes: 27 additions & 0 deletions Apps/Sandcastle/CesiumSandcastle.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ require({
'dojo/promise/all',
'dojo/query',
'dojo/when',
'dojo/Deferred',
'dojo/request/script',
'Sandcastle/LinkButton',
'ThirdParty/clipboard.min',
Expand Down Expand Up @@ -87,6 +88,7 @@ require({
all,
query,
when,
Deferred,
dojoscript,
LinkButton,
ClipboardJS,
Expand Down Expand Up @@ -739,6 +741,10 @@ require({
var parser = new DOMParser();
var doc = parser.parseFromString(demo.code, 'text/html');

return waitForDoc(doc, function(){
return doc.querySelector('script[id="cesium_sandcastle_script"]');
}).then(function(){

var script = doc.querySelector('script[id="cesium_sandcastle_script"]');
if (!script) {
appendConsole('consoleError', 'Error reading source file: ' + demo.name, true);
Expand All @@ -763,6 +769,7 @@ require({
htmlText = htmlText.replace(/^\s+/, '');

applyLoadedDemo(scriptCode, htmlText);
});
}
});
}
Expand Down Expand Up @@ -1050,6 +1057,22 @@ require({
});
}

// Work around Chrome 79 bug: https://github.com/AnalyticalGraphicsInc/cesium/issues/8460
function waitForDoc(doc, test) {
var deferred = new Deferred();
if (test()) {
deferred.resolve(doc);
} else {
var counter = 1;
setTimeout(function() {
if (test() || counter++ > 10) {
deferred.resolve(doc);
}
}, 100 * counter);
}
return deferred.promise;
}

var newInLabel = 'New in ' + VERSION;
function loadDemoFromFile(demo) {
return requestDemo(demo.name).then(function(value) {
Expand All @@ -1058,6 +1081,10 @@ require({

var parser = new DOMParser();
var doc = parser.parseFromString(value, 'text/html');
return waitForDoc(doc, function(){
return doc.body.getAttribute('data-sandcastle-bucket');
});
}).then(function(doc) {

var bucket = doc.body.getAttribute('data-sandcastle-bucket');
demo.bucket = bucket ? bucket : 'bucket-requirejs.html';
Expand Down
4 changes: 2 additions & 2 deletions Apps/Sandcastle/gallery/Particle System Weather.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
resetCameraFunction();

// snow
var snowParticleSize = scene.drawingBufferWidth / 100.0;
var snowParticleSize = 12.0;
var snowRadius = 100000.0;
var minimumSnowImageSize = new Cesium.Cartesian2(snowParticleSize, snowParticleSize);
var maximumSnowImageSize = new Cesium.Cartesian2(snowParticleSize * 2.0, snowParticleSize * 2.0);
Expand Down Expand Up @@ -81,7 +81,7 @@
scene.primitives.add(snowSystem);

// rain
var rainParticleSize = scene.drawingBufferWidth / 80.0;
var rainParticleSize = 15.0;
var rainRadius = 100000.0;
var rainImageSize = new Cesium.Cartesian2(rainParticleSize, rainParticleSize * 2.0);

Expand Down
2 changes: 1 addition & 1 deletion Apps/Sandcastle/gallery/Shadows.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
});

var shadowMap = viewer.shadowMap;
shadowMap.maxmimumDistance = 10000.0;
shadowMap.maximumDistance = 10000.0;

var cesiumAir = viewer.entities.add({
name : 'Cesium Air',
Expand Down
19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
Change Log
==========

### 1.65.0 - 2019-01-02

##### Fixes :wrench:
* Fixed Geocoder auto-complete suggestions when hosted inside Web Components. [#8425](https://github.com/AnalyticalGraphicsInc/cesium/pull/8425)
* Fixed terrain tile culling problems when under ellipsoid. [#8397](https://github.com/AnalyticalGraphicsInc/cesium/pull/8397)
* Fixed primitive culling when below the ellipsoid but above terrain. [#8398](https://github.com/AnalyticalGraphicsInc/cesium/pull/8398)

### 1.64.0 - 2019-12-02

##### Fixes :wrench:
* Fixed an issue in image based lighting where an invalid environment map would silently fail. [#8303](https://github.com/AnalyticalGraphicsInc/cesium/pull/8303)
* Various small internal improvements

### 1.63.1 - 2019-11-06

##### Fixes :wrench:
* Fixed regression in 1.63 where ground atmosphere and labels rendered incorrectly on displays with `window.devicePixelRatio` greater than 1.0. [#8351](https://github.com/AnalyticalGraphicsInc/cesium/pull/8351)
* Fixed regression in 1.63 where some primitives would show through the globe when log depth is disabled. [#8368](https://github.com/AnalyticalGraphicsInc/cesium/pull/8368)

### 1.63 - 2019-11-01

##### Major Announcements :loudspeaker:
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [Evax Software](https://github.com/evax)
* [Aviture](http://aviture.us.com)
* [Mike Macaulay](https://github.com/mmacaula)
* [Nathan Schulte](https://github.com/nmschulte)
* [Nathan Schulte](https://github.com/nmschulte-aviture)
* [Jed Fong](https://github.com/jedfong)
* [Brandon McAllister](https://github.com/bmcallis)
* [Eric Strabala](https://github.com/emstrabala)
Expand Down Expand Up @@ -238,3 +238,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [Chris Wingler](https://github.com/chriswingler)
* [Tinco Andringa](https://github.com/tinco)
* [André Borud](https://github.com/andreborud)
* [Nathan Schulte](https://github.com/nmschulte)
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ Copyright 2011-2019 CesiumJS Contributors
See the License for the specific language governing permissions and
limitations under the License.

Patents 9153063 9865085
Patents US9153063B2 US9865085B1

Patents pending 15/829,786 62/701,099 62/837,358 62/837,381
Patents pending US15/829,786 US16/516,997 US62/837,358 US62/837,381

Third-Party Code
================
Expand Down
Loading

0 comments on commit 6c3fbeb

Please sign in to comment.