From cd67e854d4715bc92a16dc7bffdbde7be1da9957 Mon Sep 17 00:00:00 2001 From: vincentlu <t1341870251@gmail.com> Date: 星期四, 27 三月 2025 13:02:37 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/tool.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js index 740fff6..c490f07 100644 --- a/zy-acs-flow/src/map/tool.js +++ b/zy-acs-flow/src/map/tool.js @@ -11,6 +11,7 @@ DEVICE_SELECTED_EFFECT_COLOR, POINT_ROUTE_DIRECTION, ANIMATE_DURING_TIME, + AGV_ANGLE_OFFSET_VAL, } from './constants'; import { getRouteList } from './http'; import PointRoute from "./PointRoute"; @@ -500,7 +501,7 @@ const pointRoute = new PointRoute(POINT_ROUTE_DIRECTION[route.direction]); pointRoute.setPoint(startPoint, endPoint); pointRoute.clear(); - pointRoute.lineStyle(Math.max(7, 2 * (1 / mapContainer.scale.x)), themeMode === 'light' ? '#ced6e0' : '#535c68'); + pointRoute.lineStyle(Math.max(7, 2 * (1 / Math.abs(mapContainer.scale.x))), themeMode === 'light' ? '#ced6e0' : '#535c68'); pointRoute.moveTo(startPoint.position.x, startPoint.position.y); pointRoute.lineTo(endPoint.position.x, endPoint.position.y); pointRoute.alpha = 1; @@ -712,8 +713,7 @@ } } -const agvRotationOffsetDegrees = 90; -const agvRotationOffset = rotationParseNum(agvRotationOffsetDegrees); +const agvRotationOffset = rotationParseNum(AGV_ANGLE_OFFSET_VAL); const showAgvSprite = (curZone, agvVo, setCurSprite) => { const { agvNo, code, direction, battery, jobType, backpack: backpackCount, slots, error } = agvVo; -- Gitblit v1.9.1