| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /**
- * @Author: Caven
- * @Date: 2021-02-27 22:33:50
- */
-
- import { Cesium } from '@dc-modules/namespace'
-
- class MaterialProperty {
- constructor(options = {}) {
- this._definitionChanged = new Cesium.Event()
- this._color = undefined
- this._colorSubscription = undefined
- this._speed = undefined
- this._speedSubscription = undefined
- this.color = options.color || Cesium.Color.fromBytes(0, 255, 255, 255)
- this.speed = options.speed || 1
- }
-
- get isConstant() {
- return false
- }
-
- get definitionChanged() {
- return this._definitionChanged
- }
-
- getType(time) {
- return null
- }
-
- getValue(time, result) {
- result = Cesium.defaultValue(result, {})
- return result
- }
-
- equals(other) {
- return this === other
- }
- }
-
- export default MaterialProperty
|