Skip to content

Commit 11ff9db

Browse files
author
hanbollar
committed
updates
1 parent 884b3ac commit 11ff9db

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Apps/Sandcastle/gallery/Particle System Weather.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
emitter : new Cesium.SphereEmitter(snowRadius),
7676
startScale : 0.5,
7777
endScale : 1.0,
78-
image : "../../SampleData/snowflake_particle.png",
78+
image : '../../SampleData/snowflake_particle.png',
7979
emissionRate : 7000.0,
8080
startColor : Cesium.Color.WHITE.withAlpha(0.0),
8181
endColor : Cesium.Color.WHITE.withAlpha(1.0),
@@ -114,7 +114,7 @@
114114
emitter : new Cesium.SphereEmitter(rainRadius),
115115
startScale : 1.0,
116116
endScale : 0.0,
117-
image : "../../SampleData/circular_particle.png",
117+
image : '../../SampleData/circular_particle.png',
118118
emissionRate : 9000.0,
119119
startColor :new Cesium.Color(0.27, 0.5, 0.70, 0.0),
120120
endColor : new Cesium.Color(0.27, 0.5, 0.70, 0.98),

Apps/Sandcastle/gallery/Particle System.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,12 @@
325325
Cesium.knockout.getObservable(viewModel, 'particleSize').subscribe(
326326
function(newValue) {
327327
var particleSize = parseFloat(newValue);
328-
particleSystem.imageSize.x = particleSize;
329-
particleSystem.imageSize.y = particleSize;
328+
if (particleSystem.imageSize) {
329+
particleSystem.imageSize.x = particleSize;
330+
particleSystem.imageSize.y = particleSize;
331+
} else {
332+
particleSystem.imageSize = new Cesium.Cartesian2(particleSize, particleSize);
333+
}
330334
}
331335
);
332336

CHANGES.md

-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ Change Log
3636
* Fixed crash bug in PolylineCollection when a polyline was updated and removed at the same time. [#6455](https://github.com/AnalyticalGraphicsInc/cesium/pull/6455)
3737
* Fixed Imagery Layers Texture Filters Sandcastle example. [#6472](https://github.com/AnalyticalGraphicsInc/cesium/pull/6472).
3838

39-
##### Deprecated :hourglass_flowing_sand:
40-
* `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.
41-
* `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.
42-
* 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.
43-
4439
### 1.44 - 2018-04-02
4540

4641
##### Highlights :sparkler:

0 commit comments

Comments
 (0)