| | |
| | | import * as Tool from './tool'; |
| | | import { NotificationProvider, useNotification } from './Notification'; |
| | | import Device from "./Device"; |
| | | import * as Http from './http'; |
| | | |
| | | let player; |
| | | |
| | |
| | | setMapContainer(player.mapContainer); |
| | | Tool.setApp(player.app); |
| | | Tool.setMapContainer(player.mapContainer); |
| | | Http.setNotify(notify); |
| | | |
| | | await Http.fetchMapData(0); |
| | | |
| | | } |
| | | initialize(); |
| | |
| | | const height = contentRef.current.offsetHeight; |
| | | |
| | | player.resize(width, height); |
| | | if (mode === MapMode.MOVABLE_MODE) { |
| | | console.log('aa'); |
| | | player.showGridLines(); |
| | | } |
| | | }; |
| | | handleResize(); |
| | | window.addEventListener('resize', handleResize); |