Kaynağa Gözat

update gulp

tags/3.0.0
Caven Chen 2 yıl önce
ebeveyn
işleme
a75229c510

+ 2
- 1
gulpfile.js Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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

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

export { Cesium }
export { Cesium, Supercluster }

+ 6
- 0
src/index.js Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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

export const echarts = getLib('echarts')

export const Supercluster = getLib('Supercluster')

Loading…
İptal
Kaydet