#
vincentlu
6 天以前 c65a357fc8b907af755e1ef6a2c201e31eb71e94
zy-acs-flow/src/map/constants.js
@@ -1,11 +1,24 @@
export const MAP_DEFAULT_ROTATION = 180;
export const MAP_DEFAULT_ROTATION = 0;
export const AGV_ANGLE_OFFSET_VAL = 90;
export const ANIMATE_DURING_TIME = 300;
export const MAP_MIRROR = true;
export let AGV_ANGLE_OFFSET_VAL = 0;
export const ANIMATE_DURING_TIME = 60;
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",
@@ -80,6 +93,8 @@
    AGV: 0x74b9ff,
    POINT: 0xC9E6DA,
    AREA: 0x2c7ac3,
})
export const AGV_STATUS_MODE = Object.freeze({
@@ -95,4 +110,4 @@
    OUT_OF_ORDER: 0,
    ORDER: 1,
    REVERSE_ORDER: 2,
})
})