#
luxiaotao1123
2024-10-10 09261811fd480a3528ba254ed5d30a064f29f501
#
5个文件已修改
1个文件已添加
30 ■■■■■ 已修改文件
zy-acs-flow/public/map/station.svg 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/en.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/zh.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/Device.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/constants.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/tool.js 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/public/map/station.svg
New file
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="_图层_2" data-name="图层 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.25 25.48">
  <defs>
    <style>
      .cls-1 {
        fill: #e0e3e2;
      }
    </style>
  </defs>
  <g id="_图层_1-2" data-name="图层 1">
    <rect class="cls-1" width="70.25" height="25.48"/>
  </g>
</svg>
zy-acs-flow/src/i18n/en.js
@@ -624,6 +624,7 @@
                title: 'Icons',
                shelf: 'SHELF',
                charge: 'CHARGE',
                station: 'STATION',
                direction: 'DIRECTION',
            },
        },
zy-acs-flow/src/i18n/zh.js
@@ -623,6 +623,7 @@
                title: '图标库',
                shelf: '货架',
                charge: '充电桩',
                station: '输送线',
                direction: '方向',
            },
        },
zy-acs-flow/src/map/Device.jsx
@@ -8,11 +8,13 @@
import shelf from '/map/shelf.svg';
import charge from '/map/charge.svg';
import station from '/map/station.svg';
import direction from '/map/direction.svg';
const items = [
    { src: shelf, label: 'page.map.devices.shelf', type: 'SHELF', scale: 1 },
    { src: charge, label: 'page.map.devices.charge', type: 'CHARGE', scale: .7 },
    { src: station, label: 'page.map.devices.station', type: 'STATION', scale: 1 },
    { src: direction, label: 'page.map.devices.direction', type: 'DIRECTION', scale: 1 },
];
zy-acs-flow/src/map/constants.js
@@ -4,6 +4,7 @@
    SHELF: "SHELF",
    AGV: "AGV",
    CHARGE: 'CHARGE',
    STATION: 'STATION',
    DIRECTION: 'DIRECTION',
    POINT: "POINT",
})
@@ -12,6 +13,7 @@
    SHELF: 1,
    AGV: 1,
    CHARGE: 1,
    STATION: 1,
    DIRECTION: 1,
    POINT: 1
})
zy-acs-flow/src/map/tool.js
@@ -7,6 +7,7 @@
import shelf from '/map/shelf.svg';
import charge from '/map/charge.svg';
import station from '/map/station.svg';
import direction from '/map/direction.svg';
let app, mapContainer;
@@ -50,10 +51,16 @@
            // sprite.height = 60;
            sprite.zIndex = DEVICE_Z_INDEX.CHARGE;
            break;
        case DEVICE_TYPE.STATION:
            sprite = new PIXI.Sprite(PIXI.Texture.from(station, { resourceOptions: { scale: 1 } }));
            // sprite.width = 112;
            // sprite.height = 63;
            sprite.zIndex = DEVICE_Z_INDEX.STATION;
            break;
        case DEVICE_TYPE.DIRECTION:
            sprite = new PIXI.Sprite(PIXI.Texture.from(direction, { resourceOptions: { scale: 1 } }));
            sprite.width = 112;
            sprite.height = 63;
            // sprite.width = 112;
            // sprite.height = 63;
            sprite.zIndex = DEVICE_Z_INDEX.DIRECTION;
            break;
        default: