| 1234567891011121314151617181920212223242526272829303132 |
- /**
- * @Author: Caven
- * @Date: 2021-03-12 16:45:45
- */
-
- import { registerLib } from '@dc-modules/global-api'
-
- const install = function(DC) {
- if (!DC) {
- throw new Error('Mapv: Missing DC Base')
- }
-
- registerLib('Cesium', DC.Namespace.Cesium)
- try {
- DC.mixin(require('./src/components.js').default)
- } catch (e) {
- // eslint-disable-next-line no-console
- console.error(e)
- }
- }
-
- /* istanbul ignore if */
- if (typeof window !== 'undefined' && window.DC) {
- install(window.DC)
- }
-
- export default {
- name: 'dc-s3m',
- version: __VERSION__,
- compile_time: __TIME__,
- install
- }
|