| @@ -46,6 +46,7 @@ const buildConfig = { | |||
| sourcemap: false, | |||
| write: true, | |||
| logLevel: 'info', | |||
| external: [`http`, `https`, `url`, `zlib`], | |||
| plugins: [ | |||
| inlineImage({ | |||
| limit: -1, | |||
| @@ -67,7 +68,7 @@ function getTime() { | |||
| async function buildNamespace(options) { | |||
| const bundle = await rollup({ | |||
| input: 'src/namespace/libs.js', | |||
| input: 'libs/index.js', | |||
| plugins: [ | |||
| commonjs(), | |||
| resolve({ preferBuiltins: true }), | |||
| @@ -37,9 +37,9 @@ export function ready(options = {}) { | |||
| registerLib('Cesium', this['__namespace']['Cesium']) | |||
| } | |||
| // if (options['echarts']) { | |||
| // registerLib('echarts', options['echarts']) | |||
| // } | |||
| if (options['echarts']) { | |||
| registerLib('echarts', options['echarts']) | |||
| } | |||
| // if (options['turf']) { | |||
| // registerLib('turf', options['turf']) | |||
| @@ -2,7 +2,7 @@ | |||
| @Author: Caven Chen | |||
| **/ | |||
| import { Cesium } from '../../namespace/index.js' | |||
| import { Cesium } from '../../namespace' | |||
| const { EllipsoidTerrainProvider } = Cesium | |||
| @@ -2,7 +2,7 @@ | |||
| @author : Caven Chen | |||
| @date : 2023-05-23 | |||
| */ | |||
| import { Cesium } from '../../namespace/index.js' | |||
| import { Cesium } from '../../namespace' | |||
| const { | |||
| BoundingSphere, | |||
| @@ -189,7 +189,7 @@ class FeatureGridLayer extends Layer { | |||
| }).then((res) => { | |||
| let dataList = res | |||
| if (this._options.dataProperty) { | |||
| dataList = eval('res.' + this._options.dataProperty) | |||
| dataList = res[this._options.dataProperty] | |||
| } | |||
| if (dataList && dataList.length) { | |||
| for (let i = level + 3; i < this._maximumLevel; i++) { | |||
| @@ -3,7 +3,7 @@ | |||
| * @Date: 2019-12-27 17:13:24 | |||
| */ | |||
| import { Cesium } from '../../namespace/libs.js' | |||
| import { Cesium } from '../../namespace' | |||
| import Parse from '../parse/Parse' | |||
| import { | |||
| LayerGroupEventType, | |||