| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /**
- * @Author: Caven
- * @Date: 2020-02-26 10:15:55
- */
-
- import { Cesium } from '@dc-modules/namespace'
- import MaterialProperty from '../../MaterialProperty'
-
- class PolylineEmissionMaterialProperty extends MaterialProperty {
- constructor(options = {}) {
- super(options)
- }
-
- getType(time) {
- return Cesium.Material.PolylineEmissionType
- }
-
- getValue(time, result) {
- if (!result) {
- result = {}
- }
- result.color = Cesium.Property.getValueOrUndefined(this._color, time)
- return result
- }
-
- equals(other) {
- return (
- this === other ||
- (other instanceof PolylineEmissionMaterialProperty &&
- Cesium.Property.equals(this._color, other._color))
- )
- }
- }
-
- Object.defineProperties(PolylineEmissionMaterialProperty.prototype, {
- color: Cesium.createPropertyDescriptor('color')
- })
-
- export default PolylineEmissionMaterialProperty
|