From eed6e52aed587531444c5b51fc55b4f5c6d31b2e Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 09 一月 2024 16:56:32 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console4.html |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/console4.html b/src/main/webapp/views/console4.html
index cb3dc96..baceb7d 100644
--- a/src/main/webapp/views/console4.html
+++ b/src/main/webapp/views/console4.html
@@ -184,7 +184,7 @@
         deep: true,
         handler(val) {
           if (!val) {
-            var sprite = pixiStageList[this.drawerLocNoData.x][this.drawerLocNoData.y];
+            var sprite = pixiStageList[this.drawerLocNoData.x - 1][this.drawerLocNoData.y];
             updateColor(sprite, 0xFFFFFF);//鎭㈠棰滆壊
           }
         }
@@ -512,6 +512,11 @@
               pixiStageList[index][idx] = sprite
             }
           });
+
+          //瑙嗚灞呬腑
+          let containerWidth = (pixiApp.view.width - objectsContainer.width) / 2;
+          let containerHeight = (pixiApp.view.height - objectsContainer.height) / 2;
+          pixiApp.stage.position.set(containerWidth, containerHeight);
         }else {
           let diff = this.findDiffList(this.map, map);
           diff.forEach((item, index) => {

--
Gitblit v1.9.1