Pārlūkot izejas kodu

1.修复鼠标滚轮事件无法监听的问题,2.完善Dom工具类

tags/1.10.0
Caven Chen pirms 5 gadiem
vecāks
revīzija
88d12cae42
7 mainītis faili ar 27 papildinājumiem un 8 dzēšanām
  1. 9
    0
      CHANGE.md
  2. 2
    2
      dist/dc.base.min.js
  3. 1
    1
      dist/dc.core.min.js
  4. 1
    1
      package.json
  5. 11
    1
      src/core/event/MouseEvent.js
  6. 1
    1
      src/core/utils/DomUtil.js
  7. 2
    2
      src/log.js

+ 9
- 0
CHANGE.md Parādīt failu

# 更新 # 更新


## 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

+ 2
- 2
dist/dc.base.min.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 1
dist/dc.core.min.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 1
package.json Parādīt failu

{ {
"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",

+ 11
- 1
src/core/event/MouseEvent.js Parādīt failu

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

+ 1
- 1
src/core/utils/DomUtil.js Parādīt failu

* *
* @param el * @param el
*/ */
static fullScreen(el) {
static fullscreen(el) {
if (!el) { if (!el) {
return return
} }

+ 2
- 2
src/log.js Parādīt failu

授权信息:授权-永久使用此软件当前版本。 \n 授权信息:授权-永久使用此软件当前版本。 \n


版权声明: 版权声明:
1.框架一个基础平台,完全开源,任何个人和机构可以修改、重构,无需经过我方授权。
2.后期会添加一些针对性的插件和工具,源码会适量的开源。
1.框架作为一个基础平台,完全开源,任何个人和机构可以修改、重构,无需经过我方授权。
2.后期会添加一些行业性的插件和工具,代码会适量的开源。
3.任何个人和机构在遵守下列条件的前提下可以永久免费使用: 3.任何个人和机构在遵守下列条件的前提下可以永久免费使用:
1)程序包完整引用 1)程序包完整引用
2)保留此版权信息在控制台输出 2)保留此版权信息在控制台输出

Notiek ielāde…
Atcelt
Saglabāt