瀏覽代碼

fix the spelling issue

tags/2.4.1
Caven Chen 4 年之前
父節點
當前提交
4480668187
共有 4 個檔案被更改,包括 5 行新增10 行删除
  1. 2
    2
      modules/plot/edit/Edit.js
  2. 1
    1
      modules/plot/edit/EditBillboard.js
  3. 1
    6
      modules/plot/edit/EditCircle.js
  4. 1
    1
      modules/plot/edit/EditPoint.js

+ 2
- 2
modules/plot/edit/Edit.js 查看文件

@@ -39,7 +39,7 @@ class Edit {
*
* @private
*/
_stopdHook() {
_stopedHook() {
this._overlay.positions = Transform.transformCartesianArrayToWGS84Array(
this._positions
)
@@ -96,7 +96,7 @@ class Edit {
this._unbindEvent()
this._viewer.editTool.deactivate()
this._layer.entities.remove(this._delegate)
this._stopdHook()
this._stopedHook()
}

/**

+ 1
- 1
modules/plot/edit/EditBillboard.js 查看文件

@@ -30,7 +30,7 @@ class EditBillboard extends Edit {
*
* @private
*/
_stopdHook() {
_stopedHook() {
this._overlay.position = Transform.transformCartesianToWGS84(this._position)
this._overlay.show = true
this._options.onEditStop && this._options.onEditStop(this._overlay)

+ 1
- 6
modules/plot/edit/EditCircle.js 查看文件

@@ -22,11 +22,6 @@ class EditCircle extends Edit {
_mountedHook() {
this._radius = this._overlay.radius
this._center = Transform.transformWGS84ToCartesian(this._overlay.center)
// this._delegate = new Cesium.Entity({
// polygon: {
// material: this._overlay.delegate?.polygon?.material
// }
// })
this._positions = [].concat([
this._center,
this._computeCirclePoints(this._center, this._radius)[0]
@@ -80,7 +75,7 @@ class EditCircle extends Edit {
*
* @private
*/
_stopdHook() {
_stopedHook() {
this._overlay.center = Transform.transformCartesianToWGS84(
this._positions[0]
)

+ 1
- 1
modules/plot/edit/EditPoint.js 查看文件

@@ -30,7 +30,7 @@ class EditPoint extends Edit {
*
* @private
*/
_stopdHook() {
_stopedHook() {
this._overlay.position = Transform.transformCartesianToWGS84(this._position)
this._overlay.show = true
this._options.onEditStop && this._options.onEditStop(this._overlay)

Loading…
取消
儲存