You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { Layout } from "antd";
|
|
|
|
import { useEffect, useRef } from "react";
|
|
|
|
import { MapStage } from "../../mapStage";
|
|
|
|
import Tools from "./Tools";
|
|
|
|
|
|
|
|
import "./index.less";
|
|
|
|
|
|
|
|
const { Header, Footer, Sider, Content } = Layout;
|
|
|
|
|
|
|
|
const Plot = () => {
|
|
|
|
const mapStageRef = useRef<HTMLDivElement>(null);
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
const map = new MapStage(mapStageRef.current!);
|
|
|
|
map.init();
|
|
|
|
});
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<div className="map-stage" ref={mapStageRef}></div>
|
|
|
|
<div className="tools-properties"></div>
|
|
|
|
<div className="tools-area">
|
|
|
|
<Tools />
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Plot;
|