From b87b2befa85bd085f40dc5aa7ea9bfbc17d807e5 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 10 一月 2025 17:15:02 +0800
Subject: [PATCH] 1. 调整了网格内文本的展示方式和样式; 2. 省去了单个网格4个顶点坐标的计算逻辑,交由后端完成;

---
 src/components/animation/SatelliteAnimation.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/components/animation/SatelliteAnimation.vue b/src/components/animation/SatelliteAnimation.vue
index b3cfaaf..bc0845f 100644
--- a/src/components/animation/SatelliteAnimation.vue
+++ b/src/components/animation/SatelliteAnimation.vue
@@ -100,11 +100,15 @@
           const d = data[index];
           // SatelliteProxy.clearText(mapViews);
           // eslint-disable-next-line vue/no-mutating-props
-          that.mapViews.textViews = SatelliteProxy.drawDataText(
+          const { textViews, labelsLayer } = SatelliteProxy.drawDataText(
             that.mapViews.points,
             d,
             that.mapViews.textViews
           );
+          // eslint-disable-next-line vue/no-mutating-props
+          that.mapViews.textViews = textViews;
+          // eslint-disable-next-line vue/no-mutating-props
+          that.mapViews.labelsLayer = labelsLayer;
           SatelliteProxy.drawColor(that.mapViews.gridViews, d);
         }
       );

--
Gitblit v1.9.3