Explorar el Código

update gulp

tags/3.0.0
Caven Chen hace 2 años
padre
commit
a75229c510
Se han modificado 5 ficheros con 13 adiciones y 4 borrados
  1. 2
    1
      gulpfile.js
  2. 2
    1
      libs/index.js
  3. 6
    0
      src/index.js
  4. 1
    2
      src/modules/layer/type/ClusterLayer.js
  5. 2
    0
      src/namespace/index.js

+ 2
- 1
gulpfile.js Ver fichero

@@ -157,7 +157,8 @@ async function buildModules(options) {

const exportNamespace = `
export const __namespace = {
Cesium: exports.Cesium
Cesium: exports.Cesium,
Supercluster: exports.Supercluster
}
`


+ 2
- 1
libs/index.js Ver fichero

@@ -3,5 +3,6 @@
**/

import * as Cesium from '@cesium/engine'
import Supercluster from 'supercluster'

export { Cesium }
export { Cesium, Supercluster }

+ 6
- 0
src/index.js Ver fichero

@@ -36,6 +36,12 @@ export function ready(options = {}) {
registerLib('echarts', options['echarts'])
}

if (options['Supercluster']) {
registerLib('Supercluster', options['Supercluster'])
} else {
registerLib('Supercluster', this['__namespace']['Supercluster'])
}

this['__cmdOut'] && this['__cmdOut']()

return new Promise((resolve, reject) => {

+ 1
- 2
src/modules/layer/type/ClusterLayer.js Ver fichero

@@ -2,8 +2,7 @@
* @Author : Caven Chen
*/

import Supercluster from 'supercluster'
import { Cesium } from '../../../namespace'
import { Cesium, Supercluster } from '../../../namespace'
import State from '../../state/State'
import Layer from '../Layer'
import Parse from '../../parse/Parse'

+ 2
- 0
src/namespace/index.js Ver fichero

@@ -9,3 +9,5 @@ export const Cesium = getLib('Cesium')
export const turf = getLib('turf')

export const echarts = getLib('echarts')

export const Supercluster = getLib('Supercluster')

Cargando…
Cancelar
Guardar