| *.njsproj | *.njsproj | ||||
| package-lock.json | package-lock.json | ||||
| .DS_Store | .DS_Store | ||||
| /examples |
| { | { | ||||
| test: /\.js$/, | test: /\.js$/, | ||||
| include: [ | include: [ | ||||
| path.resolve(__dirname, '../node_modules/cesium'), | |||||
| path.resolve(__dirname, '../node_modules/@cesium'), | |||||
| path.resolve(__dirname, '../libs'), | path.resolve(__dirname, '../libs'), | ||||
| path.resolve(__dirname, '../modules'), | path.resolve(__dirname, '../modules'), | ||||
| path.resolve(__dirname, '../packages') | path.resolve(__dirname, '../packages') |
| const path = require('path') | const path = require('path') | ||||
| const webpack = require('webpack') | const webpack = require('webpack') | ||||
| const CopyWebpackPlugin = require('copy-webpack-plugin') | const CopyWebpackPlugin = require('copy-webpack-plugin') | ||||
| const cesiumBuild = '../node_modules/cesium/Build/Cesium' | |||||
| const common = require('./common') | const common = require('./common') | ||||
| let cesiumCopyPlugin = [ | let cesiumCopyPlugin = [ | ||||
| new CopyWebpackPlugin([ | new CopyWebpackPlugin([ | ||||
| { | { | ||||
| from: path.resolve(__dirname, cesiumBuild, 'Assets'), | |||||
| from: path.resolve( | |||||
| __dirname, | |||||
| '../node_modules/@cesium/engine/Source', | |||||
| 'Assets' | |||||
| ), | |||||
| to: 'resources/Assets' | to: 'resources/Assets' | ||||
| }, | }, | ||||
| { | { | ||||
| from: path.resolve(__dirname, cesiumBuild, 'Workers'), | |||||
| from: path.resolve( | |||||
| __dirname, | |||||
| '../node_modules/@cesium/engine/Build', | |||||
| 'Workers' | |||||
| ), | |||||
| to: 'resources/Workers' | to: 'resources/Workers' | ||||
| }, | |||||
| { | |||||
| from: path.resolve(__dirname, cesiumBuild, 'ThirdParty'), | |||||
| to: 'resources/ThirdParty' | |||||
| } | } | ||||
| ]) | ]) | ||||
| ] | ] | ||||
| umdNamedDefine: true | umdNamedDefine: true | ||||
| }, | }, | ||||
| module: { | module: { | ||||
| // unknownContextCritical: false, | |||||
| unknownContextCritical: false, | |||||
| rules: common.rules | rules: common.rules | ||||
| }, | }, | ||||
| resolve: { | resolve: { |
| /** | |||||
| * @Author: Caven | |||||
| * @Date: 2023-01-07 15:49:26 | |||||
| */ | |||||
| class BaseLayerPicker {} | |||||
| export default BaseLayerPicker |
| */ | */ | ||||
| export { default as GroundSkyBox } from './GroundSkyBox' | export { default as GroundSkyBox } from './GroundSkyBox' | ||||
| export { default as CesiumViewer } from './CesiumViewer' |
| * @Date: 2020-01-21 10:48:50 | * @Date: 2020-01-21 10:48:50 | ||||
| */ | */ | ||||
| import 'cesium/Widgets/widgets.css' | |||||
| import './index.scss' | import './index.scss' | ||||
| import './popup.scss' | import './popup.scss' | ||||
| import './tooltip.scss' | import './tooltip.scss' |
| "@babel/plugin-transform-runtime": "^7.4.0", | "@babel/plugin-transform-runtime": "^7.4.0", | ||||
| "@babel/polyfill": "^7.4.0", | "@babel/polyfill": "^7.4.0", | ||||
| "@babel/preset-env": "^7.4.2", | "@babel/preset-env": "^7.4.2", | ||||
| "@turf/turf": "^6.3.0", | |||||
| "babel-eslint": "^10.0.1", | "babel-eslint": "^10.0.1", | ||||
| "babel-loader": "^8.0.5", | "babel-loader": "^8.0.5", | ||||
| "cesium": "^1.98.1", | |||||
| "chalk": "^4.1.0", | "chalk": "^4.1.0", | ||||
| "copy-webpack-plugin": "^5.0.2", | "copy-webpack-plugin": "^5.0.2", | ||||
| "css-loader": "^2.1.1", | "css-loader": "^2.1.1", | ||||
| "webpack-cli": "^3.3.0", | "webpack-cli": "^3.3.0", | ||||
| "webpack-glsl-loader": "^1.0.1", | "webpack-glsl-loader": "^1.0.1", | ||||
| "webpack-obfuscator": "^1.8.0" | "webpack-obfuscator": "^1.8.0" | ||||
| }, | |||||
| "dependencies": { | |||||
| "@cesium/engine": "^1.1.0", | |||||
| "@turf/turf": "^6.3.0" | |||||
| } | } | ||||
| } | } |
| * @Date: 2021-03-12 16:45:45 | * @Date: 2021-03-12 16:45:45 | ||||
| */ | */ | ||||
| import * as Cesium from 'cesium' | |||||
| import * as turf from '@turf/turf' | import * as turf from '@turf/turf' | ||||
| import { initMixin, initUse } from '@dc-modules/global-api' | import { initMixin, initUse } from '@dc-modules/global-api' | ||||
| import { CesiumViewer, GroundSkyBox } from '@dc-modules/exts' | |||||
| const Cesium = require('@cesium/engine') | |||||
| Cesium['Viewer'] = CesiumViewer | |||||
| Cesium['GroundSkyBox'] = GroundSkyBox | |||||
| let DC = { | let DC = { | ||||
| version: __VERSION__, | version: __VERSION__, |