| | |
| | | export const SENSOR_ZINDEX = Object.freeze({ |
| | | SHELF: 1, |
| | | POINT: 1, |
| | | TRAVEL_PATH: 80, |
| | | SHUTTLE: 100, |
| | | AGV: 100, |
| | | }) |
| | |
| | | // 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; |
| | | } |
| | |
| | | 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]); |
| | |
| | | |
| | | private String curLocNo; |
| | | |
| | | private List<String> preTravelPath = new ArrayList<>(); |
| | | private List<String> travelPath = new ArrayList<>(); |
| | | |
| | | } |
| | |
| | | |
| | | shuttleVo.setCurLocNo(Utils.getLocNo(row, bay, lev)); |
| | | List<String> preTravelPath = generateFullTravelPath(10, 30, lev); |
| | | shuttleVo.setPreTravelPath(preTravelPath); |
| | | shuttleVo.setTravelPath(preTravelPath); |
| | | |
| | | |
| | | wsVo.getShuttleVos().add(shuttleVo); |