Parcourir la source

add turf lib

tags/2.0.0
Caven Chen il y a 4 ans
Parent
révision
93b8eb9f90
3 fichiers modifiés avec 1348 ajouts et 7 suppressions
  1. 1
    0
      package.json
  2. 3
    0
      packages/core/index.js
  3. 1344
    7
      yarn.lock

+ 1
- 0
package.json Voir le fichier

@@ -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
- 0
packages/core/index.js Voir le fichier

@@ -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()

+ 1344
- 7
yarn.lock
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


Chargement…
Annuler
Enregistrer