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.

111 lines (110 loc) 2.08 kB
declare class EditTool { _viewer: any; _anchorLayer: any; _options: any; _plotEvent: any; _tooltipMess: any; _pickedAnchor: any; _isMoving: boolean; _anchors: any[]; constructor(); set tooltipMess(tooltipMess: any); /** * * @param e * @returns {boolean} * @private */ _onClick(e: any): boolean; /** * * @param e * @private */ _onMouseMove(e: any): boolean; /** * * @param e * @private */ _onRightClick(e: any): void; /** * * @param position * @param index * @param isCenter * @param isMid * @private */ _onCreateAnchor({ position, index, isCenter, isMid }: { position: any; index: any; isCenter?: boolean; isMid?: boolean; }): void; /** * * @param index * @param position * @private */ _onUpdateAnchor({ index, position }: { index: any; position: any; }): void; /** * * @private */ _onClearAnchor(): void; /** * * @private */ _bindEvent(): void; /** * * @private */ _unbindEvent(): void; /** * * @param type * @param callback * @param context * @returns {EditTool} */ on(type: any, callback: any, context: any): this; /** * * @param type * @param callback * @param context * @returns {EditTool} */ off(type: any, callback: any, context: any): this; /** * * @param type * @param parmas * @returns {EditTool} */ fire(type: any, parmas: any): this; /** * * @param options * @returns {EditTool} */ activate(options?: {}): this; /** * * @returns {EditTool} */ deactivate(): this; /** * * @param viewer */ install(viewer: any): void; } export default EditTool;