#
luxiaotao1123
2024-04-08 fa9329c3a9aa5c57c66cb3906d2418bdf2a393a7
zy-asrs-flow/src/pages/map/utils.js
@@ -44,6 +44,7 @@
export const SENSOR_ZINDEX = Object.freeze({
    SHELF: 1,
    POINT: 1,
    TRAVEL_PATH: 80,
    SHUTTLE: 100,
    AGV: 100,
})
@@ -630,13 +631,13 @@
    // shuttleVo
    for (const shuttleVo of mapVo.shuttleVos) {
        // path
        drawPreTravelPath(shuttleVo.preTravelPath, shuttleVo.shuttleNo, curFloor);
        drawTravelPath(shuttleVo.travelPath, shuttleVo.shuttleNo, curFloor);
        // shuttle
        showShuttle(shuttleVo.shuttleNo, shuttleVo.curLocNo, curFloor, setCurSPrite);
    }
}
export const drawPreTravelPath = (path, shuttleNo, curFloor) => {
export const drawTravelPath = (path, shuttleNo, curFloor) => {
    if (!mapContainer) {
        return;
    }
@@ -647,7 +648,7 @@
    pathLine = new PIXI.Graphics();
    pathLine.name = pathLineName;
    pathLine.lineStyle(3 * (1 / mapContainer.scale.x), 0x3498db, 1);
    pathLine.zIndex = 9999;
    pathLine.zIndex = SENSOR_ZINDEX.TRAVEL_PATH;
    let firstNode = true;
    for (let i = 0; i < path.length; i++) {
        const { row, bay, lev } = parseLocNo(path[i]);