| | |
| | | |
| | | export const MAP_DEFAULT_ROTATION = 180; |
| | | |
| | | export const AGV_ANGLE_OFFSET_VAL = 90; |
| | | |
| | | export const MAP_MIRROR = true; |
| | | export const MAP_DEFAULT_ROTATION = 0; |
| | | |
| | | export const ANIMATE_DURING_TIME = 300; |
| | | |
| | | export let AGV_ANGLE_OFFSET_VAL = 0; |
| | | |
| | | 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", |
| | | MOVABLE_MODE: "2", |