Browse Source

移除抛物线点位认证

tags/1.14.0
Caven Chen 4 years ago
parent
commit
c1eafe0fca
6 changed files with 10 additions and 9 deletions
  1. 6
    0
      CHANGES.md
  2. 1
    1
      dist/dc.base.min.js
  3. 1
    1
      dist/dc.core.min.css
  4. 1
    1
      dist/dc.core.min.js
  5. 0
    5
      src/core/math/parabola.js
  6. 1
    1
      src/themes/compass.scss

+ 6
- 0
CHANGES.md View File

# Change Log # Change Log


### 1.14.0 - 2021-01-09

> 1. 升级 Cesium 到 1.77
> 2. 完善罗盘组件的样式
> 3. 去除抛物线的点位认证

### 1.13.3 - 2020-12-26 ### 1.13.3 - 2020-12-26


> 1. 添加鼠标事件中的WGS84坐标参数 > 1. 添加鼠标事件中的WGS84坐标参数

+ 1
- 1
dist/dc.base.min.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/dc.core.min.css
File diff suppressed because it is too large
View File


+ 1
- 1
dist/dc.core.min.js
File diff suppressed because it is too large
View File


+ 0
- 5
src/core/math/parabola.js View File

* @Date: 2020-05-28 10:24:38 * @Date: 2020-05-28 10:24:38
*/ */


import { Util } from '../utils'

export default function parabola( export default function parabola(
startPosition, startPosition,
endPosition, endPosition,
) { ) {
//方程 y=-(4h/L^2)*x^2+h h:顶点高度 L:横纵间距较大者 //方程 y=-(4h/L^2)*x^2+h h:顶点高度 L:横纵间距较大者
let result = [] let result = []
if (!Util.checkPosition(startPosition) || !Util.checkPosition(endPosition)) {
return result
}
height = Math.max(+height, 100) height = Math.max(+height, 100)
count = Math.max(+count, 50) count = Math.max(+count, 50)
let diffLng = Math.abs(startPosition.lng - endPosition.lng) let diffLng = Math.abs(startPosition.lng - endPosition.lng)

+ 1
- 1
src/themes/compass.scss View File

position: absolute; position: absolute;
top: 20px; top: 20px;
right: 20px; right: 20px;
cursor: default;
cursor: pointer;
pointer-events: auto; pointer-events: auto;
user-select: none; user-select: none;
width: 55px; width: 55px;

Loading…
Cancel
Save