| | |
| | | const deviceTypeSelectOptionsFn = (translate) => { |
| | | const deviceTypes = [ |
| | | { key: DEVICE_TYPE.SHELF, id: 'page.map.devices.shelf' }, |
| | | { key: DEVICE_TYPE.STATION, id: 'page.map.devices.station' }, |
| | | { key: DEVICE_TYPE.AGV, id: 'page.map.devices.agv' }, |
| | | { key: DEVICE_TYPE.STATION, id: 'page.map.devices.station' }, |
| | | { key: DEVICE_TYPE.POINT, id: 'page.map.devices.point' }, |
| | | // 添加其他设备类型 |
| | | ]; |
| | |
| | | }; |
| | | |
| | | let targetPos = { |
| | | x: app.renderer.width / 3 - focusPoint.x * mapContainer.scale.x, |
| | | y: app.renderer.height / 3 - focusPoint.y * mapContainer.scale.y |
| | | x: app.renderer.width / 4 - focusPoint.x * mapContainer.scale.x, |
| | | y: app.renderer.height / 2 - focusPoint.y * mapContainer.scale.y |
| | | }; |
| | | |
| | | new TWEEDLE.Tween(mapContainer.position).easing(TWEEDLE.Easing.Quadratic.Out) |
| | | .to(targetPos, 500).start(); |
| | | new TWEEDLE.Tween(mapContainer.position) |
| | | .easing(TWEEDLE.Easing.Quadratic.Out) |
| | | .to(targetPos, 500) |
| | | .onComplete(() => { |
| | | // mapContainer.scale.set(.3); |
| | | }) |
| | | .start(); |
| | | } |
| | | |
| | | export const clearMapData = () => { |