| | |
| | | import { FormattedMessage, useIntl, useModel } from '@umijs/max'; |
| | | import * as PIXI from 'pixi.js'; |
| | | import { createStyles } from 'antd-style'; |
| | | import './index.css' |
| | | import * as Utils from '../utils' |
| | | |
| | | const useStyles = createStyles(({ token, css }) => { |
| | | let dark = token.colorBgBase === '#000'; |
| | |
| | | transition: all 0.3s ease !important; |
| | | } |
| | | `, |
| | | color: dark ? '#303030' : '#f0f0f0' |
| | | color: dark ? '#303030' : '#f0f0f0', |
| | | title: { |
| | | color: dark ? '#f0f0f0' : '#303030' |
| | | } |
| | | }; |
| | | }); |
| | | |
| | | import agv from '/public/img/map/agv.svg' |
| | | import shelf from '/public/img/map/shelf.png' |
| | | import { Util } from '@antv/g6'; |
| | | |
| | | const Device = (props) => { |
| | | const { styles } = useStyles(); |
| | |
| | | width='50px' |
| | | preview={false} |
| | | draggable="true" |
| | | onDragStart={(e) => onDragStart(e, 'AGV')} |
| | | onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.AGV)} |
| | | /> |
| | | <div>AGV</div> |
| | | <div className={styles.title}>AGV</div> |
| | | </Col> |
| | | <Col className={styles.mapCol} span={8} > |
| | | <Image |
| | |
| | | width='35px' |
| | | preview={false} |
| | | draggable="true" |
| | | onDragStart={(e) => onDragStart(e, 'SHELF')} |
| | | onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.SHELF)} |
| | | /> |
| | | <div>SHELF</div> |
| | | <div className={styles.title}>SHELF</div> |
| | | </Col> |
| | | <Col className={styles.mapCol} span={8} > |
| | | <Image |