瀏覽代碼

update dependencies

tags/3.0.0
Caven Chen 2 年之前
父節點
當前提交
8aea08373e

+ 2
- 1
gulpfile.js 查看文件

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 }),

src/namespace/libs.js → libs/index.js 查看文件


+ 3
- 3
src/index.js 查看文件

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'])

+ 1
- 1
src/modules/exts/BaseLayerPicker.js 查看文件

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


import { Cesium } from '../../namespace/index.js'
import { Cesium } from '../../namespace'


const { EllipsoidTerrainProvider } = Cesium const { EllipsoidTerrainProvider } = Cesium



+ 1
- 1
src/modules/exts/Viewer.js 查看文件

@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,

+ 1
- 1
src/modules/layer/type/FeatureGridLayer.js 查看文件

}).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++) {

+ 1
- 1
src/modules/viewer/Viewer.js 查看文件

* @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,

Loading…
取消
儲存