Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cavencj committed May 23, 2023
1 parent cbbd0ad commit 8aea083
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const buildConfig = {
sourcemap: false,
write: true,
logLevel: 'info',
external: [`http`, `https`, `url`, `zlib`],
plugins: [
inlineImage({
limit: -1,
Expand All @@ -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 }),
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion src/modules/exts/BaseLayerPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@Author: Caven Chen
**/

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

const { EllipsoidTerrainProvider } = Cesium

Expand Down
2 changes: 1 addition & 1 deletion src/modules/exts/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@author : Caven Chen
@date : 2023-05-23
*/
import { Cesium } from '../../namespace/index.js'
import { Cesium } from '../../namespace'

const {
BoundingSphere,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/layer/type/FeatureGridLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/viewer/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8aea083

Please sign in to comment.