智慧水务管理系统 - 精河县供水工程综合管理平台

BufferPolygonMaterial.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // @ts-check
  2. import Frozen from "../Core/Frozen.js";
  3. import BufferPrimitiveMaterial from "./BufferPrimitiveMaterial.js";
  4. /** @import Color from "../Core/Color.js"; */
  5. /** @import BufferPolygon from "./BufferPolygon.js"; */
  6. /**
  7. * @typedef {object} BufferPolygonMaterialOptions
  8. * @property {Color} [color=Color.WHITE] Color of fill.
  9. * @property {Color} [outlineColor=Color.WHITE] Color of outline.
  10. * @property {number} [outlineWidth=0.0] Width of outline, 0-255px.
  11. */
  12. /**
  13. * Material description for a {@link BufferPolygon}.
  14. *
  15. * <p>BufferPolygonMaterial objects are {@link Packable|packable}, stored
  16. * when calling {@link BufferPolygon#setMaterial}. Subsequent changes to the
  17. * material will not affect the polygon until setMaterial() is called again.</p>
  18. *
  19. * @experimental This feature is not final and is subject to change without Cesium's standard deprecation policy.
  20. * @extends BufferPrimitiveMaterial
  21. */
  22. class BufferPolygonMaterial extends BufferPrimitiveMaterial {
  23. /**
  24. * @type {BufferPolygonMaterial}
  25. * @ignore
  26. */
  27. static DEFAULT_MATERIAL = Object.freeze(new BufferPolygonMaterial());
  28. /**
  29. * @param {BufferPolygonMaterialOptions} [options]
  30. */
  31. constructor(options = Frozen.EMPTY_OBJECT) {
  32. super(options);
  33. }
  34. }
  35. export default BufferPolygonMaterial;