From ec01d0046af7f954f0962709ee81190e133829e3 Mon Sep 17 00:00:00 2001
From: mayisheng <admin>
Date: Fri, 05 Aug 2022 15:15:17 +0800
Subject: [PATCH] 高度调整

---
 src/divForms/divForms.js |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/divForms/divForms.js b/src/divForms/divForms.js
index bd31275..a72b9e9 100644
--- a/src/divForms/divForms.js
+++ b/src/divForms/divForms.js
@@ -20,19 +20,19 @@
         this.appendPopup()
     }
 
-    get viewer () {
+    get viewer() {
         return this._viewer
     }
 
-    get popup () {
+    get popup() {
         return this._popup
     }
 
-    get position () {
+    get position() {
         return this._position
     }
 
-    appendPopup () {
+    appendPopup() {
         /**
          * @domId 存放 dom 的id, 多个数组,单个字符串
          */
@@ -41,15 +41,15 @@
     }
 
     // 创建元素并追加
-    createVideoWindowAll (id) {
+    createVideoWindowAll(id) {
         this.clearMove(id)
 
         this._viewer.scene.postRender.addEventListener(this.movePopup(id))
     }
 
-    movePopup (id) {
+    movePopup(id) {
         var self = this
-        return function () {
+        return function() {
             var position = global.DC.Transform.transformCartesianToWGS84(self._position[0])
             var positionChange = null
             if (store.state.viewer.twoOrThree == '三 维') {
@@ -65,7 +65,7 @@
                     new global.DC.Position(
                         Number(position.lng),
                         Number(position.lat),
-                        Number(150)
+                        Number(50)
                     )
                 )
             }
@@ -79,11 +79,11 @@
         }
     }
 
-    clearMove (id) {
+    clearMove(id) {
         this._viewer.scene.postRender.removeEventListener(this.movePopup(id))
     }
 
-    positionPopUp (windowCoord, id) {
+    positionPopUp(windowCoord, id) {
         if (document.getElementById(id) == null || document.getElementById(id) == undefined) {
             this._viewer.scene.postRender.removeEventListener(this.movePopup(id))
             return
@@ -92,7 +92,7 @@
             windowCoord.y && windowCoord.y != undefined && !Number.isNaN(windowCoord.y)) {
             const x = windowCoord.x
             const y = windowCoord.y - document.getElementById(id).offsetHeight
-            // x = windowCoord.x - document.getElementById(id).offsetWidth
+                // x = windowCoord.x - document.getElementById(id).offsetWidth
 
             document.getElementById(id).style.cssText = `
             visibility:visible;
@@ -102,4 +102,4 @@
     }
 }
 
-export default DivForms
+export default DivForms
\ No newline at end of file

--
Gitblit v1.9.3