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/tool.js | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) 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