import Base from '../base'; import { Cartesian3 } from 'cesium'; import { PolygonStyle } from '../interface'; export default class Triangle extends Base { points: Cesium.Cartesian3[]; constructor(cesium: any, viewer: Cesium.Viewer, style?: PolygonStyle); getType(): 'polygon' | 'line'; /** * Add points only on click events */ addPoint(cartesian: Cartesian3): void; /** * Draw a shape based on mouse movement points during the initial drawing. */ updateMovingPoint(cartesian: Cartesian3): void; /** * In edit mode, drag key points to update corresponding key point data. */ updateDraggingPoint(cartesian: Cartesian3, index: number): void; getPoints(): Cesium.Cartesian3[]; }