import './App.css';
import { SampleAppViewer } from 'bjksj-sdk';

import Element from './element';
import Gis from './gis';
import Model from './model';
import SceneView from './sceneView';

const configProps = {
    uriPrefix: 'http://localhost:3001', // 模型后台服务地址
    bingMapsKey: '',
    mapBoxKey: '',
    cesiumIonKey: ''
}
// 模型文件路径
const bimFile = 'e:/模型/教学楼项目.rvt.bim';
// 模型文件是否可编辑
const isEditable = true; 

function App() {
    const onInitFinisheds = () => {
        console.log('onInitFinished');
    }

    return <div className="app-content">
        {/* 左侧模型区 */}
        <div className="model-content">
            <SampleAppViewer props={configProps} bimFile={bimFile} onInitFinished={onInitFinisheds} bEditable={isEditable} />
        </div>
        {/* 右侧功能区 */}
        <div className="tool-content">
            <Model></Model>
            <Element></Element>
            <SceneView></SceneView>
            <Gis></Gis>
        </div>
    </div>
}

export default App;
