| | |
| | | 'map.sensor.type.shelf': 'Shelf', |
| | | 'map.sensor.type.agv': 'Agv', |
| | | 'map.sensor.type.point': 'Point', |
| | | 'map.sensor.type.conveyor': 'Conveyor', |
| | | '': '', |
| | | '': '', |
| | | '': '', |
| | |
| | | import shuttle from '/public/img/map/shuttle.svg' |
| | | import agv from '/public/img/map/agv.svg' |
| | | import shelf from '/public/img/map/shelf.png' |
| | | import conveyor from '/public/img/map/conveyor.png' |
| | | import point from '/public/img/map/point.svg' |
| | | |
| | | const Device = (props) => { |
| | |
| | | </Col> |
| | | <Col className={styles.mapCol} span={8} > |
| | | <Image |
| | | src={shelf} |
| | | src={conveyor} |
| | | width='35px' |
| | | preview={false} |
| | | draggable="true" |
| | | onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.SHELF)} |
| | | onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.CONVEYOR)} |
| | | /> |
| | | <div className={styles.title}> |
| | | <FormattedMessage id='map.sensor.type.shelf' defaultMessage='货架' /> |
| | | <FormattedMessage id='map.sensor.type.conveyor' defaultMessage='输送线' /> |
| | | </div> |
| | | </Col> |
| | | <Col className={styles.mapCol} span={8} > |
| | |
| | | |
| | | import agv from '/public/img/map/agv.svg' |
| | | import shelf from '/public/img/map/shelf.png' |
| | | import conveyor from '/public/img/map/conveyor.png' |
| | | import point from '/public/img/map/point.svg' |
| | | import shuttle from '/public/img/map/shuttle.svg' |
| | | |
| | |
| | | |
| | | export const SENSOR_TYPE = Object.freeze({ |
| | | SHELF: "SHELF", |
| | | CONVEYOR: "CONVEYOR", |
| | | SHUTTLE: "SHUTTLE", |
| | | POINT: "POINT", |
| | | AGV: "AGV", |
| | |
| | | |
| | | export const SENSOR_ZINDEX = Object.freeze({ |
| | | SHELF: 1, |
| | | CONVEYOR: 1, |
| | | POINT: 1, |
| | | TRAVEL_PATH: 80, |
| | | SHUTTLE: 100, |
| | |
| | | sprite.height = 60; |
| | | sprite.zIndex = SENSOR_ZINDEX.SHELF; |
| | | break; |
| | | case SENSOR_TYPE.CONVEYOR: |
| | | sprite = new PIXI.Sprite(PIXI.Texture.from(conveyor, { resourceOptions: { scale: 5 } })); |
| | | sprite.width = 112; |
| | | sprite.height = 63; |
| | | sprite.zIndex = SENSOR_ZINDEX.CONVEYOR; |
| | | break; |
| | | case SENSOR_TYPE.POINT: |
| | | sprite = new PIXI.Sprite(PIXI.Texture.from(point, { resourceOptions: { scale: 5 } })); |
| | | sprite.width = 10; |