| | |
| | | /> |
| | | )} |
| | | </Col> |
| | | <Col span={12} style={{ backgroundColor: styles.dark ? '#2C3A47' : '#4a69bd' }}> |
| | | <Col span={12} style={{ backgroundColor: styles.dark ? '#2f3542' : '#4a69bd' }}> |
| | | <Flex className={styles.flex} gap={'large'} justify={'flex-end'} align={'center'}> |
| | | |
| | | {model === MapModel.OBSERVER_MODEL && ( |
| | |
| | | |
| | | showCoordinates = () => { |
| | | const coordinatesText = new PIXI.Text('{ x: 0, y: 0 }', { |
| | | fill: 0x000000, |
| | | fill: this.darkModel ? 0xffffff : 0x000000, |
| | | fontSize: 13, |
| | | fontFamily: 'MicrosoftYaHei', |
| | | fontWeight: 'bold', |
| | |
| | | |
| | | function generatePixiApp(dark) { |
| | | const app = new PIXI.Application({ |
| | | background: dark ? '#2C3A47' : '#f1f2f6', |
| | | background: dark ? '#2f3542' : '#f1f2f6', |
| | | antialias: true, |
| | | }) |
| | | app.stage.eventMode = 'static'; |