UNPKG

kd-api-project-21building

Version:

KD-API-PROJECT

112 lines (111 loc) 3.31 kB
import { ResponseMessageInfo, ResponseData } from '../model/ResponseMessage'; declare class InitClientSocket { static ws: any; static remoteClient: any; static removeStream: any; static removePlayDom: any; static unityListeners: any; static receiveChannel: any; static promisePool: any; static setTimeoutWs: any; static unityUrl: any; static replaceUrl: any; /** * 初始化引擎 * @param renderId 渲染3D场景的 Dom节点id * @param url 引擎底座地址 * @param resolution 分辨率 */ static init(renderId: string, url: string, resolution: string, unityUrl: string, replaceUrl: string): Promise<string>; /** * webRtc关闭 */ static close(): Promise<string>; /** * stream加载进度 */ static progress(cb: any): void; static polytion(cb: any): void; static getpos(cb: any): void; static getPosXY(cb: any): void; /** * 招商系统点击建筑学校,健身中心,中芬,公交综合体,向钱都发送点击建筑的名称,消息编号“222” * @param cb 回调函数 */ static getInvestSys(cb: any): void; /** * IDC智慧楼宇接收城市单击是否已进入 * @param cb 回调函数 */ static getCityIn(cb: any): void; /** * IDC智慧楼宇全局俯视图通知 * @param cb 回调函数 */ static getChangeAll(cb: any): void; /** * IDC智慧楼宇依次高亮模型 * @param cb 回调函数 */ static getkHeightModel(cb: any): void; /** * 南部新城点击管线 * @param cb 回调函数 */ static getClickModel(cb: any): void; /** * 南部新城是否有管线307 * @param cb 回调函数 */ static getOrModel(cb: any): void; /** * 南部新城滑过管线 * @param cb 回调函数 */ static getFocusModel(cb: any): void; /** * 南部新城摄像头距离 * @param cb 回调函数 */ static getCameraModel(cb: any): void; /** * 龙德 点击管道返回信息 * @param cb 回调函数 */ static getPosion(cb: any): void; /** * 苏州航道 船舶消失,返回poi名字 * @param cb 回调函数 */ static getshopHideNews(cb: any): void; /** * 苏州航道 船舶消失,返回poi名字 * @param cb 回调函数 */ static GetShipAreaName(cb: any): void; /** * 台州路桥 * @param cb 回调函数 */ static MouseClick3DPoi(cb: any): void; /** * 秦淮河 修改poiName * @param cb 回调函数 */ static changePoiName(cb: any): void; static GetBackPoiName(cb: any): void; static GetBackAreaUserInfo(cb: any): void; } /** * 事件请求发送 * @param packageName 事件场景 * @param action 事件编码 * @param data 请求消息 */ declare const sendEvent: (packageName: string, action: string, data: string | number) => Promise<ResponseMessageInfo>; /** * 事件消息 * @param response 返回实例 */ declare const responseMessage: (order: ResponseData) => Promise<void>; export { InitClientSocket, sendEvent, responseMessage };