From f43a65438cbfb5c11675bea8b643de8e0770f52b Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 13 一月 2026 13:50:45 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/constants.js |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/zy-acs-flow/src/map/constants.js b/zy-acs-flow/src/map/constants.js
index 6875e15..0af14fe 100644
--- a/zy-acs-flow/src/map/constants.js
+++ b/zy-acs-flow/src/map/constants.js
@@ -1,12 +1,25 @@
 
-export const MAP_DEFAULT_ROTATION = 180;
-
-export const AGV_ANGLE_OFFSET_VAL = 90;
-
-export const MAP_MIRROR = true;
+export const MAP_DEFAULT_ROTATION = 0;
 
 export const ANIMATE_DURING_TIME = 300;
 
+export let AGV_ANGLE_OFFSET_VAL = 0;
+
+export let MAP_MIRROR = false;;
+
+export const setMapPreferences = (preferences = {}) => {
+    if (preferences == null || typeof preferences !== 'object') {
+        return;
+    }
+    const { agvAngleOffsetVal, mapMirror } = preferences;
+    if (typeof agvAngleOffsetVal === 'number' && !isNaN(agvAngleOffsetVal)) {
+        AGV_ANGLE_OFFSET_VAL = agvAngleOffsetVal;
+    }
+    if (typeof mapMirror === 'boolean') {
+        MAP_MIRROR = mapMirror;
+    }
+};
+
 export const MAP_MODE = Object.freeze({
     OBSERVER_MODE: "1",
     MOVABLE_MODE: "2",

--
Gitblit v1.9.1