Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PolylineDashArrowMaterialProperty.js 945B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * PolylineDashArrow Material Property
  3. * @Author : Converted from fh2
  4. */
  5. import { Cesium } from '../../../../libs'
  6. import MaterialProperty from '../../MaterialProperty'
  7. /**
  8. * PolylineDashArrowMaterialProperty
  9. */
  10. class PolylineDashArrowMaterialProperty extends MaterialProperty {
  11. constructor(options = {}) {
  12. super(options)
  13. }
  14. getType(time) {
  15. return Cesium.Material.PolylineDashArrowType
  16. }
  17. getValue(time, result) {
  18. if (!result) {
  19. result = {}
  20. }
  21. result.color = Cesium.Property.getValueOrUndefined(this._color, time)
  22. return result
  23. }
  24. equals(other) {
  25. return (
  26. this === other ||
  27. (other instanceof PolylineDashArrowMaterialProperty &&
  28. Cesium.Property.equals(this._color, other._color))
  29. )
  30. }
  31. }
  32. Object.defineProperties(PolylineDashArrowMaterialProperty.prototype, {
  33. color: Cesium.createPropertyDescriptor('color'),
  34. })
  35. export default PolylineDashArrowMaterialProperty