Selaa lähdekoodia

add turf lib

tags/2.0.0
Caven Chen 4 vuotta sitten
vanhempi
commit
93b8eb9f90
3 muutettua tiedostoa jossa 1348 lisäystä ja 7 poistoa
  1. 1
    0
      package.json
  2. 3
    0
      packages/core/index.js
  3. 1344
    7
      yarn.lock

+ 1
- 0
package.json Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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
File diff suppressed because it is too large
Näytä tiedosto


Loading…
Peruuta
Tallenna