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