| # 更新 | # 更新 | ||||
| ## 1.10.0 | |||||
| ### 2020-9-5 | |||||
| > 1. 升级 Cesium 到 1.73 | |||||
| > 2. 添加百度路况地图 | |||||
| > 3. 修复鼠标滚轮事件无法监听的问题 | |||||
| > 4. 完善Dom工具类 | |||||
| ## 1.9.4 | ## 1.9.4 | ||||
| ### 2020-8-30 | ### 2020-8-30 |
| { | { | ||||
| "name": "@dvgis/dc-sdk", | "name": "@dvgis/dc-sdk", | ||||
| "version": "1.9.4", | |||||
| "version": "1.10.0", | |||||
| "description": " The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.", | "description": " The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.", | ||||
| "main": "index.js", | "main": "index.js", | ||||
| "repository": "https://github.com/dvgis/dc-sdk.git", | "repository": "https://github.com/dvgis/dc-sdk.git", |
| this.on(MouseEventType.DB_CLICK, this._dbClickHandler, this) | this.on(MouseEventType.DB_CLICK, this._dbClickHandler, this) | ||||
| this.on(MouseEventType.RIGHT_CLICK, this._rightClickHandler, this) | this.on(MouseEventType.RIGHT_CLICK, this._rightClickHandler, this) | ||||
| this.on(MouseEventType.MOUSE_MOVE, this._mouseMoveHandler, this) | this.on(MouseEventType.MOUSE_MOVE, this._mouseMoveHandler, this) | ||||
| this.on(MouseEventType.WHEEL, this._mouseWheelHandler, this) | |||||
| } | } | ||||
| /** | /** | ||||
| _raiseEvent(type, mouseInfo = {}) { | _raiseEvent(type, mouseInfo = {}) { | ||||
| let event = undefined | let event = undefined | ||||
| let targetInfo = this._getTargetInfo(mouseInfo.target) | let targetInfo = this._getTargetInfo(mouseInfo.target) | ||||
| let overlay = targetInfo.overlay | |||||
| let overlay = targetInfo?.overlay | |||||
| // get Overlay Event | // get Overlay Event | ||||
| if (overlay && overlay.overlayEvent) { | if (overlay && overlay.overlayEvent) { | ||||
| event = overlay.overlayEvent.getEvent(type) | event = overlay.overlayEvent.getEvent(type) | ||||
| this._selected = mouseInfo | this._selected = mouseInfo | ||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * Default mouse wheel event handler | |||||
| * @param movement | |||||
| * @private | |||||
| */ | |||||
| _mouseWheelHandler(movement) { | |||||
| this._raiseEvent(MouseEventType.WHEEL, { movement }) | |||||
| } | |||||
| } | } | ||||
| export default MouseEvent | export default MouseEvent |
| * | * | ||||
| * @param el | * @param el | ||||
| */ | */ | ||||
| static fullScreen(el) { | |||||
| static fullscreen(el) { | |||||
| if (!el) { | if (!el) { | ||||
| return | return | ||||
| } | } |
| 授权信息:授权-永久使用此软件当前版本。 \n | 授权信息:授权-永久使用此软件当前版本。 \n | ||||
| 版权声明: | 版权声明: | ||||
| 1.框架是一个基础平台,完全开源,任何个人和机构可以修改、重构,无需经过我方授权。 | |||||
| 2.后期会添加一些针对性的插件和工具,源码会适量的开源。 | |||||
| 1.框架作为一个基础平台,完全开源,任何个人和机构可以修改、重构,无需经过我方授权。 | |||||
| 2.后期会添加一些行业性的插件和工具,代码会适量的开源。 | |||||
| 3.任何个人和机构在遵守下列条件的前提下可以永久免费使用: | 3.任何个人和机构在遵守下列条件的前提下可以永久免费使用: | ||||
| 1)程序包完整引用 | 1)程序包完整引用 | ||||
| 2)保留此版权信息在控制台输出 | 2)保留此版权信息在控制台输出 |