| @@ -43,6 +43,7 @@ | |||
| "@babel/plugin-transform-runtime": "^7.4.0", | |||
| "@babel/polyfill": "^7.4.0", | |||
| "@babel/preset-env": "^7.4.2", | |||
| "@turf/turf": "^6.3.0", | |||
| "babel-eslint": "^10.0.1", | |||
| "babel-loader": "^8.0.5", | |||
| "cesium": "^1.79.1", | |||
| @@ -3,6 +3,8 @@ | |||
| * @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') | |||
| @@ -16,6 +18,7 @@ const install = function(DC) { | |||
| if (!DC.Initialized) { | |||
| DC.init(() => { | |||
| try { | |||
| DC.Namespace['turf'] = turf | |||
| DC.mixin(require('./src/components.js').default) | |||
| DC.Initialized = true | |||
| callback && callback() | |||