import ContrastView from '@/components/contrast/ContrastView.vue';
import RollerBlindView from '@/components/roller/CRollerBlindView.vue';
import '@/assets/css/main.css';
import * as OpenLayersAPI from './modules/supermap/openlayers/OpenLayersAPI';
import * as SuperMapUtils from './modules/supermap/SuperMapUtils';
import * as OpenLayersUtils from './modules/supermap/openlayers/OpenLayersUtils';
import * as OpenLayersManager from './modules/supermap/openlayers/OpenLayersManager';
import * as CesiumUtils from './modules/supermap/cesium/CesiumUtils';
import * as CesiumManager from './modules/supermap/cesium/CesiumManager';
const components = [
    { name: 'xmgis-contrast-view', component: ContrastView },
    { name: 'xmgis-rollerblind-view', component: RollerBlindView }
];
const modules = {
    // 通过install来安装组件
    install(vue) {
        components.forEach(({ name, component }) => {
            vue.component(name, component);
        });
    }
};
// 注意这里的判断，很重要
if (typeof window !== 'undefined' && window.Vue) {
    modules.install(window.Vue);
}
// 导出组件库
export default modules;
export { OpenLayersAPI, SuperMapUtils, OpenLayersUtils, CesiumUtils, OpenLayersManager, CesiumManager };
