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.
82 lines (81 loc) • 1.83 kB
TypeScript
import Animation from "../Animation";
import Position from "../../position/Position";
import Viewer from "../../viewer/Viewer";
/**
* 点位环绕构造函数选项
*/
declare namespace AroundPoint {
type ConstructorOptions = {
/**
* 偏移角度
*/
heading: number;
/**
* 翻转角度
*/
pitch: number;
/**
* 距离
*/
range: number;
/**
* 间隔,单位:秒,当此值大于0时,callback才会生效
*/
duration: number;
/**
* 完成回调函数
*/
callback: Function;
/**
* 回调函数执行上下文
*/
context: any;
};
}
/**
* 点位环绕
* ```ts
* let aroundPoint = new BC.AroundPoint(viewer, '120.121, 31.12')
* aroundPoint.start()
* ```
*/
declare class AroundPoint extends Animation {
private _position;
private _heading;
private _aroundAmount;
/**
*
* @param viewer 3D 场景
* @param position 点位
* @param options 选项
*/
constructor(viewer: Viewer, position: Position | string | string[] | number[], options?: AroundPoint.ConstructorOptions);
/**
* 类型
* @internal
*/
get type(): any;
/**
* 位置
*/
set position(position: Position | string | string[] | number[]);
/**
* 环绕量,控制环绕速度
*/
set aroundAmount(aroundAmount: number);
/**
* 绑定事件
*/
protected _bindEvent(): void;
/**
* 解绑事件
*/
protected _unbindEvent(): void;
/**
*
* @param scene
* @param time
*/
private _onAround;
}
export default AroundPoint;