Appearance
Interface: EditStyle
编辑时点和线样式,包含
- point: 点的样式,和 DrawEditablePlane.pointStyle 一样的设置,不过是默认下 color: Cesium.Color.ORANGE
- centerPoint: 中心点的样式,主要用于面编辑。和 DrawEditablePlane.pointStyle 一样的设置,不过是默认下 color: Cesium.Color.RED
- line: 线的样式,和 DrawEditablePlane.lineStyle 一样的设置,不过是默认 color: Cesium.Color.YELLOW
- polygon: 面的样式,和 DrawEditablePlane.polygonStyle 一样的设置,不过是默认color: Cesium.Color.fromAlpha(Cesium.Color.YELLOW, 0.5)
Example
Default Value:- js
{ point: new Cesium.PointPrimitive(...), centerPoint: new Cesium.PointPrimitive(...), line: { ...this.lineStyle } polygon: { ...this.polygonStyle } }
Table of contents
Properties
Properties
point
• point: PointPrimitive
Defined in
src/interaction/DrawEditablePlane/index.ts:73
centerPoint
• centerPoint: PointPrimitive
Defined in
src/interaction/DrawEditablePlane/index.ts:74
line
• line: { id: string ; geometry: { width: number ; vertexFormat: VertexFormat } ; attributes: { color: ColorGeometryInstanceAttribute } ; appearance: PolylineColorAppearance ; depthFailAppearance: undefined } & { attributes: { color: ColorGeometryInstanceAttribute } }
Defined in
src/interaction/DrawEditablePlane/index.ts:75
polygon
• polygon: PolygonStyle & { attributes: { color: ColorGeometryInstanceAttribute } }
Defined in
src/interaction/DrawEditablePlane/index.ts:82

