From 7cec4983a3a1881dd8c0b4a4366441ce828d37be Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 19 十月 2024 10:53:17 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/constants.js | 10 ++++++++++
zy-acs-flow/src/map/tool.js | 9 +++++----
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/zy-acs-flow/src/map/constants.js b/zy-acs-flow/src/map/constants.js
index 00b8c0e..ca72c8a 100644
--- a/zy-acs-flow/src/map/constants.js
+++ b/zy-acs-flow/src/map/constants.js
@@ -26,6 +26,16 @@
POINT: 2,
})
+export const DEVICE_SELECTED_EFFECT_PADDING = Object.freeze({
+ SHELF: 10,
+ STATION: 10,
+ CHARGE: 10,
+ DIRECTION: 10,
+
+ AGV: 10,
+ POINT: 100,
+})
+
export const AGV_STATUS_MODE = Object.freeze({
EMPTY_NO_BATTERY: 1,
EMPTY_HALF_BATTERY: 2,
diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js
index ca422a7..bac077c 100644
--- a/zy-acs-flow/src/map/tool.js
+++ b/zy-acs-flow/src/map/tool.js
@@ -4,6 +4,7 @@
DEVICE_TYPE,
DEVICE_Z_INDEX,
AGV_STATUS_MODE,
+ DEVICE_SELECTED_EFFECT_PADDING,
} from './constants';
import shelf from '/map/shelf.svg';
@@ -102,7 +103,7 @@
break;
}
if (sprite && deviceType !== DEVICE_TYPE.AGV) {
- sprite.blendMode = PIXI.BLEND_MODES.MULTIPLY;
+ // sprite.blendMode = PIXI.BLEND_MODES.MULTIPLY;
}
return sprite;
}
@@ -337,10 +338,10 @@
const { width, height } = sprite;
const maxDimension = Math.max(width, height);
- const radius = (maxDimension / 2) + maxDimension / 5;
+ const radius = (maxDimension / 2) + (DEVICE_SELECTED_EFFECT_PADDING[sprite.data?.type] || 10);
- const color = themeMode === 'light' ? 0x2f68ac : 0xffffff;
- const alpha = .5;
+ const color = themeMode === 'light' ? '#40739e' : '#718093';
+ const alpha = 1;
effectCircle = new PIXI.Graphics();
effectCircle.beginFill(color, alpha);
--
Gitblit v1.9.1