| | |
| | | :where(.css-dev-only-do-not-override-o082dn).ant-pro-layout .ant-pro-layout-content { |
| | | .ant-pro-layout .ant-pro-layout-content { |
| | | padding-block: 15px; |
| | | padding-inline: 20px; |
| | | padding-inline: 15px; |
| | | } |
| | |
| | | const [activeMap, setActiveMap] = React.useState('zone') |
| | | |
| | | React.useEffect(() => { |
| | | console.log(map.current); |
| | | const app = new PIXI.Application({ |
| | | width: window.innerWidth, |
| | | height: window.innerHeight, |
| | | // width: window.innerWidth, |
| | | // height: window.innerHeight, |
| | | background: '#1099bb', |
| | | antialias: true, |
| | | }) |
| | |
| | | globalThis.__PIXI_APP__ = app; |
| | | |
| | | map.current.appendChild(app.view); |
| | | |
| | | |
| | | return () => { |
| | | app.destroy(true, true); |
| | | } |
| | | }, []); |
| | | |
| | | console.log(1); |
| | | |
| | | return ( |
| | | <> |
| | | <Card |
| | | style={{ width: '100%', height: '100%' }} |
| | | style={{ width: '100%', height: 'calc(100vh - 100px)' }} |
| | | tabList={[ |
| | | { |
| | | key: 'zone', |
| | |
| | | }} |
| | | > |
| | | <div |
| | | style={{ width: '100%', height: '100%' }} |
| | | ref={map} |
| | | > |
| | | </div> |
| | | </Card> |
| | | |
| | | </> |
| | | ) |
| | | } |