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.

60 lines (59 loc) 1.72 kB
import Overlay from "../Overlay"; import { T_Position } from "../../common/type"; /** * 平面 * @noInheritDoc * @example * ```ts * let position = new BC.Position(120, 20) * let plane = new BC.Plane(position, 20, 30, { normal: 'x' }) * ``` */ declare class Plane extends Overlay { private _position; private _width; private _height; private _normal; private _distance; /** * * @param position 坐标 * @param width 宽度 * @param height 高度 * @param plane 面板格式 */ constructor(position: T_Position, width: number, height: number, plane?: any); get type(): any; set position(position: T_Position); get position(): T_Position; set width(width: number); get width(): number; set height(height: number); get height(): number; set distance(distance: number); get distance(): number; _mountedHook(): void; /** * 设置风格 * @param style * @returns {Plane} * @example * ```json * // 样式参数(可选) * { * "fill": true, //是否用提供的材料填充多边形。 * "material": BC.Color.WHITE, //材质 * "outline": false, //是否显示边框 * "outlineColor": BC.Color.BLACK, //边框颜色 * "outlineWidth": 0, //边框宽度 * "shadows": 0, //阴影类型,0:禁用、1:启用 、2:投射、3:接受 * "distanceDisplayCondition": { * "near": 0, //最近距离 * "far": Number.MAX_VALUE //最远距离 * } //根据距离设置可见 * } * ``` */ setStyle(style: any): this; } export default Plane;