You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CircleBlurMaterialProperty.js 1011B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @Author : Caven Chen
  3. */
  4. import { Cesium } from '../../../../namespace'
  5. import MaterialProperty from '../../MaterialProperty'
  6. class CircleBlurMaterialProperty extends MaterialProperty {
  7. constructor(options = {}) {
  8. super(options)
  9. }
  10. getType(time) {
  11. return Cesium.Material.CircleBlurType
  12. }
  13. getValue(time, result) {
  14. result = Cesium.defaultValue(result, {})
  15. result.color = Cesium.Property.getValueOrUndefined(this._color, time)
  16. result.speed = Cesium.Property.getValueOrUndefined(this._speed, time)
  17. return result
  18. }
  19. equals(other) {
  20. return (
  21. this === other ||
  22. (other instanceof CircleBlurMaterialProperty &&
  23. Cesium.Property.equals(this._color, other._color) &&
  24. Cesium.Property.equals(this._speed, other._speed))
  25. )
  26. }
  27. }
  28. Object.defineProperties(CircleBlurMaterialProperty.prototype, {
  29. color: Cesium.createPropertyDescriptor('color'),
  30. speed: Cesium.createPropertyDescriptor('speed'),
  31. })
  32. export default CircleBlurMaterialProperty