Browse Source

update gulp

tags/3.0.0
Caven Chen 2 years ago
parent
commit
a75229c510
5 changed files with 13 additions and 4 deletions
  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 View File



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



+ 2
- 1
libs/index.js View File

**/ **/


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


export { Cesium }
export { Cesium, Supercluster }

+ 6
- 0
src/index.js View File

registerLib('echarts', options['echarts']) registerLib('echarts', options['echarts'])
} }


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

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


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

+ 1
- 2
src/modules/layer/type/ClusterLayer.js View File

* @Author : Caven Chen * @Author : Caven Chen
*/ */


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

+ 2
- 0
src/namespace/index.js View File

export const turf = getLib('turf') export const turf = getLib('turf')


export const echarts = getLib('echarts') export const echarts = getLib('echarts')

export const Supercluster = getLib('Supercluster')

Loading…
Cancel
Save