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