#
luxiaotao1123
2024-10-19 7cec4983a3a1881dd8c0b4a4366441ce828d37be
#
2个文件已修改
19 ■■■■ 已修改文件
zy-acs-flow/src/map/constants.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/tool.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
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);