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.

70 lines (69 loc) 1.51 kB
import Viewer from "../../viewer/Viewer"; import Animation from "../Animation"; /** * 相机环绕构造函数选项 */ declare namespace AroundView { type ConstructorOptions = { /** * 偏移角度 */ heading: number; /** * 翻转角度 */ pitch: number; /** * 距离 */ range: number; /** * 间隔,单位:秒,当此值大于0时,callback才会生效 */ duration: number; /** * 完成回调函数 */ callback: Function; /** * 回调函数执行上下文 */ context: any; }; } /** * 相机环绕 * @example * ```ts * let aroundPoint = new BC.AroundPoint(viewer, '120.121, 31.12') * aroundPoint.start() * ``` */ declare class AroundView extends Animation { private _heading; private _aroundAmount; /** * @param viewer 3D 场景 * @param options */ constructor(viewer: Viewer, options?: AroundView.ConstructorOptions); /** * 类型 * @internal */ get type(): any; /** * 环绕量,控制环绕速度 */ set aroundAmount(aroundAmount: any); protected _bindEvent(): void; protected _unbindEvent(): void; /** * * @param scene * @param time * @private */ private _onAround; } export default AroundView;