From bcaa1de4805147e8d0962d0bf5465bb0abcd9a99 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 21 三月 2024 09:52:58 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/player.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index ec4d923..fe71ddf 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/zy-asrs-flow/src/pages/map/player.js
@@ -179,7 +179,7 @@
 
     showCoordinates = () => {
         const coordinatesText = new PIXI.Text('{ x: 0, y: 0 }', {
-            fill: 0x000000,
+            fill: this.darkModel ? 0xffffff : 0x000000,
             fontSize: 13,
             fontFamily: 'MicrosoftYaHei',
             fontWeight: 'bold',
@@ -197,6 +197,7 @@
     }
 
     showGridlines = () => {
+        this.hideGridlines();
         if (!this.gridLineContainer) {
             this.gridLineContainer = generatePixiContainer('gridLineContainer');
             this.app.stage.addChild(this.gridLineContainer);
@@ -328,7 +329,7 @@
         if (!this.mapContainer || !this.app) {
             return;
         }
-        
+
         this.mapContainer.scale.set(1);
         this.mapContainer.position.set(0, 0);
         if (this.mapContainer.children.length === 0) {
@@ -383,7 +384,7 @@
 
 function generatePixiApp(dark) {
     const app = new PIXI.Application({
-        background: dark ? '#f1f2f6' : '#f1f2f6',
+        background: dark ? '#2f3542' : '#f1f2f6',
         antialias: true,
     })
     app.stage.eventMode = 'static';

--
Gitblit v1.9.1