|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export const SENSOR_TYPE = Object.freeze({ | 
|---|
|  |  |  | SHELF: "SHELF", | 
|---|
|  |  |  | CONVEYOR: "CONVEYOR", | 
|---|
|  |  |  | SHUTTLE: "SHUTTLE", | 
|---|
|  |  |  | LIFT: "LIFT", | 
|---|
|  |  |  | CONVEYOR: "CONVEYOR", | 
|---|
|  |  |  | POINT: "POINT", | 
|---|
|  |  |  | AGV: "AGV", | 
|---|
|  |  |  | LIFT: "LIFT", | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export const SENSOR_ZINDEX = Object.freeze({ | 
|---|
|  |  |  | 
|---|
|  |  |  | TRACK: 3, | 
|---|
|  |  |  | LIFT: 67, | 
|---|
|  |  |  | CHARGE: 5, | 
|---|
|  |  |  | DISABLE: 1, | 
|---|
|  |  |  | DISABLE: -1, | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export const NOTIFY_TYPE = Object.freeze({ | 
|---|
|  |  |  | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const { width, height } = sprite; | 
|---|
|  |  |  | const scale = sprite.scale.x; | 
|---|
|  |  |  | const scale = sprite?.scale.x; | 
|---|
|  |  |  | const sideLen = (Math.max(width, height) + 10) * scale; | 
|---|
|  |  |  | const scaledWidth = sideLen * (1 / scale); | 
|---|
|  |  |  | const scaledHeight = sideLen * (1 / scale); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | pathLine = new PIXI.Graphics(); | 
|---|
|  |  |  | pathLine.name = pathLineName; | 
|---|
|  |  |  | pathLine.lineStyle(2 * (1 / mapContainer.scale.x), 0x3498db, 0.8); | 
|---|
|  |  |  | pathLine.lineStyle(3 * (1 / mapContainer.scale.x), 0x3498db, 0.8); | 
|---|
|  |  |  | pathLine.zIndex = SENSOR_ZINDEX.TRAVEL_PATH; | 
|---|
|  |  |  | let firstNode = true; | 
|---|
|  |  |  | for (let i = Math.max(0, path.indexOf(curLocNo) - 1); i < path.length; i++) { | 
|---|
|  |  |  | for (let i = Math.max(0, path.indexOf(curLocNo)); i < path.length; i++) { | 
|---|
|  |  |  | const { row, bay, lev } = parseLocNo(path[i]); | 
|---|
|  |  |  | if (Number(lev) !== curFloor) { continue } | 
|---|
|  |  |  | const shelf = querySprite(SENSOR_TYPE.SHELF, row + '-' + bay); | 
|---|