Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbollar committed Apr 24, 2018
1 parent 884b3ac commit 091558a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Apps/Sandcastle/gallery/Particle System Weather.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
emitter : new Cesium.SphereEmitter(snowRadius),
startScale : 0.5,
endScale : 1.0,
image : "../../SampleData/snowflake_particle.png",
image : '../../SampleData/snowflake_particle.png',
emissionRate : 7000.0,
startColor : Cesium.Color.WHITE.withAlpha(0.0),
endColor : Cesium.Color.WHITE.withAlpha(1.0),
Expand Down Expand Up @@ -114,7 +114,7 @@
emitter : new Cesium.SphereEmitter(rainRadius),
startScale : 1.0,
endScale : 0.0,
image : "../../SampleData/circular_particle.png",
image : '../../SampleData/circular_particle.png',
emissionRate : 9000.0,
startColor :new Cesium.Color(0.27, 0.5, 0.70, 0.0),
endColor : new Cesium.Color(0.27, 0.5, 0.70, 0.98),
Expand All @@ -124,11 +124,11 @@
scene.primitives.add(rainSystem);

// button
Sandcastle.addToolbarButton("Reset Camera", resetCameraFunction);
Sandcastle.addToolbarButton('Reset Camera', resetCameraFunction);

// drop down
var options = [{
text : "Snow",
text : 'Snow',
onselect : function() {
rainSystem.show = false;
snowSystem.show = true;
Expand All @@ -141,7 +141,7 @@
scene.fog.minimumBrightness = 0.8;
}
}, {
text : "Rain",
text : 'Rain',
onselect : function() {
rainSystem.show = true;
snowSystem.show = false;
Expand Down
6 changes: 4 additions & 2 deletions Apps/Sandcastle/gallery/Particle System.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@
Cesium.knockout.getObservable(viewModel, 'particleSize').subscribe(
function(newValue) {
var particleSize = parseFloat(newValue);
particleSystem.imageSize.x = particleSize;
particleSystem.imageSize.y = particleSize;
particleSystem.minimumImageSize.x = particleSize;
particleSystem.minimumImageSize.y = particleSize;
particleSystem.maximumImageSize.x = particleSize;
particleSystem.maximumImageSize.y = particleSize;
}
);

Expand Down
5 changes: 0 additions & 5 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ Change Log
* Fixed crash bug in PolylineCollection when a polyline was updated and removed at the same time. [#6455](https://github.com/AnalyticalGraphicsInc/cesium/pull/6455)
* Fixed Imagery Layers Texture Filters Sandcastle example. [#6472](https://github.com/AnalyticalGraphicsInc/cesium/pull/6472).

##### Deprecated :hourglass_flowing_sand:
* `Particle.size`, `ParticleSystem.rate`, `ParticleSystem.lifeTime`, `ParticleSystem.life`, `ParticleSystem.minimumLife`, and `ParticleSystem.maximumLife` have been renamed to `Particle.imageSize`, `ParticleSystem.emissionRate`, `ParticleSystem.lifetime`, `ParticleSystem.particleLife`, `ParticleSystem.minimumParticleLife`, and `ParticleSystem.maximumParticleLife`. Use of the `size`, `rate`, `lifeTime`, `life`, `minimumLife`, and `maximumLife` parameters is deprecated and will be removed in Cesium 1.46.
* `ParticleSystem.forces` array has been switched out for singular function `ParticleSystems.updateCallback`. Use of the `forces` parameter is deprecated and will be removed in Cesium 1.46.
* Any width and height variables in `ParticleSystem` will no longer be individual components. `ParticleSystem.minimumWidth` and `ParticleSystem.minimumHeight` will now be `ParticleSystem.minimumImageSize`, `ParticleSystem.maximumWidth` and `ParticleSystem.maximumHeight` will now be `ParticleSystem.maximumImageSize`, and `ParticleSystem.width` and `ParticleSystem.height` will now be `ParticleSystem.imageSize`. Use of the `minimumWidth`, `minimumHeight`, `maximumWidth`, `maximumHeight`, `width`, and `height` parameters is deprecated and will be removed in Cesium 1.46.

### 1.44 - 2018-04-02

##### Highlights :sparkler:
Expand Down

0 comments on commit 091558a

Please sign in to comment.