UNPKG

bcgis-type

Version:

The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.

49 lines (48 loc) 1.6 kB
import Overlay from "../Overlay"; import { T_Position } from "../../common/type"; declare class PolylineVolumePrimitive extends Overlay { private _positions; private _shape; /** * * @param positions 坐标串 * @param holes 空心坐标串 */ constructor(positions: string | T_Position[], shape: any[]); get type(): any; set positions(positions: string | T_Position[]); get positions(): string | T_Position[]; /** * * @private */ _mountedHook(): void; /** * 设置风格 * @param style * @returns {WaterPrimitive} * @example * ```json * // 样式参数(可选) * { * "height": 1, //高度 * "extrudedHeight": 0, //拉升高度 * "stRotation": 0, //旋转角度 * "outline": false, //是否显示边框 * "closeTop": true, //顶面是否闭合 * "closeBottom": true, //底面是否闭合 * "classificationType": 2, //分类 是否影响地形,3D切片或同时影响这两者。0:地形、1:3D切片、2:两者 * "baseWaterColor": Color.WHITE, // 水体颜色 * "blendColor": Color.WHITE, // 混合颜色 * "specularMap": "", // 镜面图 * "normalMap": "", // 法线图 * "frequency": 1000, //波纹数量 * "animationSpeed": 0.03, // 动画速度 * "amplitude": 10, //水波振幅 * "specularIntensity": 10 //镜面反射强度 * } * ``` */ setStyle(style: any): this; } export default PolylineVolumePrimitive;