| 
                        12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | 
                        - /**
 -  * @Author: Caven
 -  * @Date: 2021-03-13 13:15:38
 -  */
 - 
 - import * as turf from '@turf/turf'
 - 
 - const install = function(DC) {
 -   if (!DC) {
 -     throw new Error('Missing DC Base Package')
 -   }
 - 
 -   /**
 -    * start
 -    */
 -   DC.ready = callback => {
 -     try {
 -       if (!DC.Initialized) {
 -         DC.init(() => {
 -           try {
 -             DC.Namespace['turf'] = turf
 -             DC.mixin(require('./src/components.js').default)
 -             DC.Initialized = true
 -             callback && callback()
 -           } catch (e) {
 -             // eslint-disable-next-line no-console
 -             console.error(e)
 -             DC.Initialized = false
 -           }
 -         })
 -       } else {
 -         callback && callback()
 -       }
 -     } catch (e) {
 -       // eslint-disable-next-line no-console
 -       console.error(e)
 -       DC.Initialized = false
 -       throw e
 -     }
 -   }
 - }
 - 
 - /* istanbul ignore if */
 - if (typeof window !== 'undefined' && window.DC) {
 -   install(window.DC)
 - }
 - 
 - export default {
 -   version: __VERSION__,
 -   compile_time: __TIME__,
 -   install
 - }
 
 
  |