| 
                        1234567891011121314151617181920212223242526272829303132333435363738394041 | 
                        - /**
 -  * @Author : Caven Chen
 -  */
 - 
 - import { Cesium } from '../../../../libs'
 - import MaterialProperty from '../../MaterialProperty'
 - 
 - class PolylineTrailMaterialProperty extends MaterialProperty {
 -   constructor(options = {}) {
 -     super(options)
 -   }
 - 
 -   getType(time) {
 -     return Cesium.Material.PolylineTrailType
 -   }
 - 
 -   getValue(time, result) {
 -     if (!result) {
 -       result = {}
 -     }
 -     result.color = Cesium.Property.getValueOrUndefined(this._color, time)
 -     result.speed = this._speed
 -     return result
 -   }
 - 
 -   equals(other) {
 -     return (
 -       this === other ||
 -       (other instanceof PolylineTrailMaterialProperty &&
 -         Cesium.Property.equals(this._color, other._color) &&
 -         Cesium.Property.equals(this._speed, other._speed))
 -     )
 -   }
 - }
 - 
 - Object.defineProperties(PolylineTrailMaterialProperty.prototype, {
 -   color: Cesium.createPropertyDescriptor('color'),
 -   speed: Cesium.createPropertyDescriptor('speed'),
 - })
 - 
 - export default PolylineTrailMaterialProperty
 
 
  |