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.
85 lines (84 loc) • 1.67 kB
TypeScript
import Widget from "../Widget";
/**
* 气泡窗口
* @noInheritDoc
* @example
* ```ts
* let popup = viewer.popup
* popup.setContent('<div></div>')
* ```
*/
declare class Popup extends Widget {
/**
* 配置
* @example
* ```json
* // 配置(可选)
* // 配置后会影响全局的popup的显示样式,请慎重。
* {
* "position": "center", // popup的位于鼠标的点击位置的方向,有:center,left ,right
* "customClass": "custom" // 添加自定义的Css 类名到popup中,多个用空格隔开
* }
* ```
*/
private _config;
private _position;
/**
* @hidden
*/
constructor();
/**
* @hidden
*/
get type(): any;
/**
* @hidden
*/
set config(config: any);
/**
* binds event
* @private
*/
_bindEvent(): void;
/**
*
* @private
*/
_mountContent(): void;
/**
*
* @private
*/
_installHook(): void;
/**
*
* @param windowCoord
* @private
*/
_updateWindowCoord(windowCoord: any): void;
/**
*
* @private
*/
_setCustomClass(): void;
/**
* Setting wrapper
* @param wrapper
* @returns {Widget}
*/
setWrapper(wrapper: any): this;
/**
*
* Setting widget position
* @param {*} position
*
*/
setPosition(position: any): this;
/**
*
* @param {*} position
* @param {*} content
*/
showAt(position: any, content: any): this;
}
export default Popup;