Caven Chen 2 лет назад
Родитель
Сommit
e2a3cc18f5
100 измененных файлов: 252 добавлений и 399 удалений
  1. 6
    6
      examples/animation/around_point.html
  2. 3
    3
      examples/animation/around_view.html
  3. 1
    2
      examples/animation/flying.html
  4. 3
    4
      examples/animation/globe_rotate.html
  5. 1
    5
      examples/animation/roaming_keyboard.html
  6. 2
    3
      examples/animation/roaming_path.html
  7. 3
    4
      examples/animation/track.html
  8. 4
    5
      examples/animation/track_clamp_to_ground.html
  9. 3
    3
      examples/animation/track_clamp_to_tileset.html
  10. 5
    6
      examples/animation/track_event.html
  11. 4
    4
      examples/effect/black_and_white.html
  12. 4
    6
      examples/effect/bloom.html
  13. 3
    5
      examples/effect/brightness.html
  14. 1
    1
      examples/index.html
  15. 26
    1
      examples/list.js
  16. 1
    2
      server.js
  17. 1
    2
      src/copyright/cmdOut.js
  18. 1
    2
      src/global-api/lib-utils.js
  19. 1
    2
      src/modules/animation/Animation.js
  20. 1
    2
      src/modules/animation/AnimationType.js
  21. 1
    2
      src/modules/animation/index.js
  22. 2
    2
      src/modules/animation/type/AroundPoint.js
  23. 1
    2
      src/modules/animation/type/AroundView.js
  24. 2
    4
      src/modules/animation/type/CircleScan.js
  25. 1
    2
      src/modules/animation/type/Flying.js
  26. 1
    2
      src/modules/animation/type/GlobeRotate.js
  27. 1
    2
      src/modules/animation/type/RadarScan.js
  28. 33
    16
      src/modules/chart/ChartLayer.js
  29. 1
    2
      src/modules/chart/GLMapCoordSys.js
  30. 1
    2
      src/modules/chart/GLMapModel.js
  31. 2
    2
      src/modules/chart/GLMapView.js
  32. 2
    2
      src/modules/chart/index.js
  33. 18
    32
      src/modules/effect/Effect.js
  34. 6
    20
      src/modules/effect/type/BlackAndWhite.js
  35. 6
    20
      src/modules/effect/type/Bloom.js
  36. 6
    20
      src/modules/effect/type/Brightness.js
  37. 4
    26
      src/modules/effect/type/DepthOfField.js
  38. 6
    26
      src/modules/effect/type/LensFlare.js
  39. 6
    21
      src/modules/effect/type/NightVision.js
  40. 2
    5
      src/modules/effect/type/Silhouette.js
  41. 0
    4
      src/modules/effect/type/Sun.js
  42. 1
    2
      src/modules/event/Event.js
  43. 1
    2
      src/modules/event/EventType.js
  44. 1
    2
      src/modules/event/index.js
  45. 1
    2
      src/modules/event/type/LayerEvent.js
  46. 1
    2
      src/modules/event/type/LayerGroupEvent.js
  47. 1
    2
      src/modules/event/type/MouseEvent.js
  48. 1
    2
      src/modules/event/type/OverlayEvent.js
  49. 1
    2
      src/modules/event/type/PathEvent.js
  50. 1
    2
      src/modules/event/type/PlotEvent.js
  51. 1
    2
      src/modules/event/type/SceneEvent.js
  52. 1
    2
      src/modules/event/type/TrackEvent.js
  53. 1
    2
      src/modules/event/type/ViewerEvent.js
  54. 2
    2
      src/modules/exts/BaseLayerPicker.js
  55. 1
    2
      src/modules/exts/GroundSkyBox.js
  56. 1
    2
      src/modules/exts/Viewer.js
  57. 1
    2
      src/modules/exts/index.js
  58. 1
    2
      src/modules/history-track/Track.js
  59. 1
    2
      src/modules/history-track/TrackController.js
  60. 1
    2
      src/modules/history-track/TrackViewMode.js
  61. 1
    2
      src/modules/history-track/index.js
  62. 1
    2
      src/modules/icons/compass-inner.js
  63. 1
    2
      src/modules/icons/compass-outer.js
  64. 1
    2
      src/modules/icons/compass-rotation-marker.js
  65. 1
    2
      src/modules/icons/decrease.js
  66. 1
    2
      src/modules/icons/increase.js
  67. 1
    2
      src/modules/icons/index.js
  68. 1
    2
      src/modules/icons/logo.js
  69. 1
    2
      src/modules/icons/refresh.js
  70. 1
    2
      src/modules/icons/splitter.js
  71. 1
    2
      src/modules/imagery/ImageryLayerFactory.js
  72. 1
    2
      src/modules/imagery/ImageryType.js
  73. 1
    2
      src/modules/imagery/index.js
  74. 1
    2
      src/modules/imagery/projection/BaiduMercatorProjection.js
  75. 1
    2
      src/modules/imagery/provider/AmapImageryProvider.js
  76. 1
    2
      src/modules/imagery/provider/BaiduImageryProvider.js
  77. 1
    2
      src/modules/imagery/provider/GeoVisImageryProvider.js
  78. 1
    2
      src/modules/imagery/provider/GoogleImageryProvider.js
  79. 1
    2
      src/modules/imagery/provider/TdtImageryProvider.js
  80. 1
    2
      src/modules/imagery/provider/TencentImageryProvider.js
  81. 1
    2
      src/modules/imagery/tiling-scheme/AmapMercatorTilingScheme.js
  82. 1
    2
      src/modules/imagery/tiling-scheme/BaiduMercatorTilingScheme.js
  83. 1
    2
      src/modules/images/base64/index.js
  84. 17
    2
      src/modules/index.js
  85. 1
    2
      src/modules/layer/Layer.js
  86. 1
    2
      src/modules/layer/LayerGroup.js
  87. 1
    2
      src/modules/layer/LayerType.js
  88. 1
    2
      src/modules/layer/index.js
  89. 1
    2
      src/modules/layer/type/ClusterLayer.js
  90. 1
    2
      src/modules/layer/type/CzmlLayer.js
  91. 1
    2
      src/modules/layer/type/DynamicLayer.js
  92. 1
    2
      src/modules/layer/type/FeatureGridLayer.js
  93. 1
    2
      src/modules/layer/type/GeoJsonLayer.js
  94. 1
    2
      src/modules/layer/type/GpxLayer.js
  95. 2
    3
      src/modules/layer/type/GraticuleLayer.js
  96. 1
    2
      src/modules/layer/type/GroundPrimitiveLayer.js
  97. 1
    2
      src/modules/layer/type/HtmlLayer.js
  98. 1
    2
      src/modules/layer/type/KmlLayer.js
  99. 1
    2
      src/modules/layer/type/LabelLayer.js
  100. 0
    0
      src/modules/layer/type/PrimitiveLayer.js

+ 6
- 6
examples/animation/around_point.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -34,12 +33,13 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
style: 'img',
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
style:'img',
crs:'WGS84'
})
baseLayer.defaultBrightness = 0.1
viewer.addBaseLayer( baseLayer)
viewer.addBaseLayer( baseLayer,{
brightness : 0.1
})
aroundPoint = new DC.AroundPoint(viewer,'121.48914778697578,31.21498411014459',{pitch:-41,range:2000})
let layer = new DC.TilesetLayer('layer').addTo(viewer)
let tileset = new DC.Tileset(
@@ -64,7 +64,7 @@
layer.addOverlay(tileset)
viewer.flyTo(tileset)
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 3
- 3
examples/animation/around_view.html Просмотреть файл

@@ -34,8 +34,8 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
style: 'img',
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
style:'img',
crs:'WGS84'
})
viewer.addBaseLayer( baseLayer)
@@ -46,7 +46,7 @@
}
)
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 1
- 2
examples/animation/flying.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -81,7 +80,7 @@

viewer.flyTo(tileset)
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 3
- 4
examples/animation/globe_rotate.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -24,9 +23,9 @@
crs:'WGS84'
})
viewer.addBaseLayer( baseLayer)
viewer.use(new DC.Weather())
viewer.weather.cloud.enable = true
viewer.weather.cloud.rotateAmount=0.04
let weather = new DC.Weather(viewer)
weather.cloud.enable = true
weather.cloud.rotateAmount=0.04
let globeRotate = new DC.GlobeRotate(viewer,
{
duration:3,

+ 1
- 5
examples/animation/roaming_keyboard.html Просмотреть файл

@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="en">


<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
@@ -13,9 +12,6 @@
</head>

<body>

<body>

<div id="viewer-container" class="viewer-container"></div>
<div class="info-box">
<ul>
@@ -62,7 +58,7 @@
keyboardRoaming.enable = value
})
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 2
- 3
examples/animation/roaming_path.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -39,7 +38,7 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
style:"img",
crs:"WGS84"
})
@@ -49,7 +48,7 @@
path_two = new DC.RoamingPath("122.38105869, 31.10115627;121.38105869, 31.10115627",100)
rc.addPaths([path_one,path_two])
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 3
- 4
examples/animation/track.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -52,8 +51,8 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
crs:"WGS84"
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
crs:'WGS84'
})
viewer.addBaseLayer(baseLayer)
let positions = "120.71450195156326,31.34008410150321;120.71575718410492, 31.32906254460538;120.71755047923497, 31.319390534202;120.71992195728619, 31.31036033288049;120.72027974558881, 31.3011861708824;120.72044382952038,31.288363396025954;120.72063046005844, 31.281477152748355;120.72044354666637,31.27731493354631"
@@ -65,7 +64,7 @@
tc.addTrack(track)
viewer.flyToPosition("120.71650745697383,31.325149960836068,2817.8608257878627,0,-70")
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 4
- 5
examples/animation/track_clamp_to_ground.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -47,9 +46,9 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
style: 'img',
crs:"WGS84"
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
style:'img',
crs:'WGS84'
})
viewer.addBaseLayer( baseLayer)
let terrain = DC.TerrainFactory.createUrlTerrain({
@@ -69,7 +68,7 @@
viewer.flyToPosition("119.71042378562902,30.603208131877633,1596.161323135813,318.3023263470015,-20.968")
}

DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 3
- 3
examples/animation/track_clamp_to_tileset.html Просмотреть файл

@@ -40,9 +40,9 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
style: 'img',
crs:"WGS84"
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
style:'img',
crs:'WGS84'
})
viewer.addBaseLayer( baseLayer)
let layer = new DC.TilesetLayer('layer')

+ 5
- 6
examples/animation/track_event.html Просмотреть файл

@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>dc-example</title>
<script src='/libs/dc-sdk/dc.min.js'></script>
<script src="../dat.gui.min.js"></script>
<link href='/libs/dc-sdk/dc.min.css' type='text/css' rel='stylesheet'>
<link href='../index.css' type='text/css' rel='stylesheet'>
</head>
@@ -40,17 +39,17 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baseLayer = DC.ImageryLayerFactory.createAmapImageryLayer({
crs:"WGS84"
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
crs:'WGS84'
})
viewer.addBaseLayer(baseLayer)
let layer = new DC.VectorLayer('layer').addTo(viewer)
let positions = "120.71450195156326,31.34008410150321;120.71575718410492, 31.32906254460538;120.71755047923497, 31.319390534202;120.71992195728619, 31.31036033288049;120.72027974558881, 31.3011861708824;120.72044382952038,31.288363396025954;120.72063046005844, 31.281477152748355;120.72044354666637,31.27731493354631"
tc = new DC.TrackController(viewer)
track = new DC.Track(positions,20,(position,isLast)=>{
!isLast && layer.addOverlay(new DC.Model(position,'examples/data/model/qiche.gltf'))
!isLast && layer.addOverlay(new DC.Model(position,'../assets/data/qiche.gltf'))
})
track.setModel('examples/data/model/qiche.gltf',{
track.setModel('../assets/data/qiche.gltf',{
scale:1
})
track.setPath(true,{
@@ -59,7 +58,7 @@
tc.addTrack(track)
viewer.flyToPosition("120.71650745697383,31.325149960836068,2817.8608257878627,0,-70")
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 4
- 4
examples/effect/black_and_white.html Просмотреть файл

@@ -19,10 +19,10 @@

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baselayer_midnight = DC.ImageryLayerFactory.createBaiduImageryLayer({
style: 'midnight'
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
crs:'WGS84'
})
viewer.addBaseLayer(baselayer_midnight)
viewer.addBaseLayer(baseLayer)
viewer.use(new DC.Effect())
viewer.effect.blackAndWhite.enable= true
viewer.effect.blackAndWhite.gradations=4
@@ -42,7 +42,7 @@
viewer.effect.blackAndWhite.gradations=value
})
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 4
- 6
examples/effect/bloom.html Просмотреть файл

@@ -14,18 +14,16 @@

<body>

<body>

<div id="viewer-container" class="viewer-container"></div>
<script>
let viewer = undefined

function initViewer() {
viewer = new DC.Viewer('viewer-container')
let baselayer_midnight = DC.ImageryLayerFactory.createBaiduImageryLayer({
style: 'midnight'
let baseLayer = DC.ImageryLayerFactory.createImageryLayer(DC.ImageryType.AMAP,{
crs:'WGS84'
})
viewer.addBaseLayer(baselayer_midnight)
viewer.addBaseLayer(baseLayer)
viewer.use(new DC.Effect())
viewer.effect.bloom.enable= true
addGuiController() // add controller
@@ -60,7 +58,7 @@
viewer.effect.bloom.delta=value
})
}
DC.ready({
DC.ready({
baseUrl:'../libs/dc-sdk/resources/'
}).then(initViewer)
</script>

+ 3
- 5
examples/effect/brightness.html Просмотреть файл

@@ -14,8 +14,6 @@

<body>

<body>

<div id="viewer-container" class="viewer-container"></div>
<script>
let viewer = undefined
@@ -26,9 +24,9 @@
style: 'midnight'
})
viewer.addBaseLayer(baselayer_midnight)
viewer.use(new DC.Effect())
viewer.effect.brightness.enable= true
viewer.effect.brightness.intensity = 1.5
let effect = DC.Effect(viewer)
effect.brightness.enable= true
effect.brightness.intensity = 1.5
addGuiController() // add controller
}


+ 1
- 1
examples/index.html Просмотреть файл

@@ -5,7 +5,7 @@
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<title>DC SDK examples</title>
<script src="./jquery.min.js"></script>
<script src="./jquery.accordion.js"></script>
<style>

+ 26
- 1
examples/list.js Просмотреть файл

@@ -509,7 +509,32 @@ const EXAMPLE_LIST = [
{
name: '场景动画',
folder: 'animation',
children: [],
children: [
{
name: '地球自转',
page: 'globe_rotate.html',
},
{
name: '定点环绕',
page: 'around_point.html',
},
{
name: '相机环绕',
page: 'around_view.html',
},
{
name: '定点巡航',
page: 'flying.html',
},
{
name: '路径漫游',
page: 'roaming_path.html',
},
{
name: '键盘漫游',
page: 'roaming_keyboard.html',
},
],
},
{
name: '场景效果',

+ 1
- 2
server.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-08
* @Author : Caven Chen
*/

import express from 'express'

+ 1
- 2
src/copyright/cmdOut.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-07
* @Author : Caven Chen
*/

// eslint-disable-next-line no-console

+ 1
- 2
src/global-api/lib-utils.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-06
* @Author : Caven Chen
*/

const cache = {}

+ 1
- 2
src/modules/animation/Animation.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-12-20 16:32:22
* @Author : Caven Chen
*/

class Animation {

+ 1
- 2
src/modules/animation/AnimationType.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-08-01 00:12:06
* @Author : Caven Chen
*/

let AnimationType = {}

+ 1
- 2
src/modules/animation/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-03-05 22:15:27
* @Author : Caven Chen
*/

export { default as Animation } from './Animation'

+ 2
- 2
src/modules/animation/type/AroundPoint.js Просмотреть файл

@@ -1,7 +1,7 @@
/**
* @Author: Caven
* @Date: 2020-03-02 22:38:10
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import AnimationType from '../AnimationType'
import Animation from '../Animation'

+ 1
- 2
src/modules/animation/type/AroundView.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-03-02 23:14:20
* @Author : Caven Chen
*/

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

+ 2
- 4
src/modules/animation/type/CircleScan.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-12-01 20:26:02
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
@@ -9,8 +8,7 @@ import Animation from '../Animation'
import { Util } from '../../utils'
import { Transform } from '../../transform'
import Parse from '../../parse/Parse.js'

const CircleScanShader = require('@dc-modules/material/shader/circle/CircleScanShader.glsl')
import CircleScanShader from '../../material/shader/circle/CircleScanShader.glsl'

class CircleScan extends Animation {
constructor(viewer, position, radius, options = {}) {

+ 1
- 2
src/modules/animation/type/Flying.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-01-09 20:21:33
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/animation/type/GlobeRotate.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-30 20:47:25
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/animation/type/RadarScan.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-12-01 20:40:02
* @Author : Caven Chen
*/

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

+ 33
- 16
src/modules/chart/ChartLayer.js Просмотреть файл

@@ -1,29 +1,23 @@
/**
@author : Caven Chen
@date : 2023-05-23
* @Author : Caven Chen
*/

import { echarts } from '../../namespace'
import { Layer } from '../layer'
import State from '../state/State.js'

const { init } = echarts

class ChartLayer extends Layer {
constructor(id, viewer) {
constructor(id, option) {
super(id)
this._viewer.canvas.setAttribute('tabIndex', '0')
this._chartEl = this._createChartElement()
this._chart = init(this._chartEl)
this._show = true
Object(this._chart.getZr()).viewer = viewer
}

get id() {
return this._id
this._option = option
this._delegate = undefined
this._chart = undefined
}

set show(show) {
this._show = show
this._chartEl.style.visibility = show ? 'visible' : 'hidden'
this._delegate.style.visibility = show ? 'visible' : 'hidden'
}

get show() {
@@ -39,18 +33,41 @@ class ChartLayer extends Layer {
let canvas = this._viewer.scene.canvas
let el = document.createElement('div')
el.setAttribute('id', this._id)
el.setAttribute('data-layer-type', 'chart-layer')
el.style.cssText = `position:absolute; top:0; left:0; width: ${canvas.clientWidth}px; height: ${canvas.clientHeight}px;pointer-events:none;`
this._viewer.container.appendChild(el)
this._viewer.layerContainer.appendChild(el)
return el
}

_onAdd(viewer) {
this._viewer = viewer
this._viewer.canvas.setAttribute('tabIndex', '0')
this._delegate = this._createChartElement()
this._chart = init(this._delegate)
Object(this._chart.getZr()).viewer = viewer
this._option &&
this._chart.setOption({ ...this._option, GLMap: {}, animation: false })
this._state = State.ADDED
}

_onRemove() {
if (this._delegate && this._viewer) {
this._chart.dispose()
this._viewer.layerContainer.removeChild(this._delegate)
this._state = State.REMOVED
}
}

/**
*
* @param option
* @returns {ChartLayer}
*/
setOption(option = {}) {
this._chart.setOption({ ...option, GLMap: {}, animation: false })
this._option = option
if (this._chart) {
this._chart.setOption({ ...option, GLMap: {}, animation: false })
}
return this
}


+ 1
- 2
src/modules/chart/GLMapCoordSys.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-23
* @Author : Caven Chen
*/

import { echarts, Cesium } from '../../namespace'

+ 1
- 2
src/modules/chart/GLMapModel.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-23
* @Author : Caven Chen
*/

import { echarts } from '../../namespace'

+ 2
- 2
src/modules/chart/GLMapView.js Просмотреть файл

@@ -1,6 +1,6 @@
/**
@Author: Caven Chen
**/
* @Author : Caven Chen
*/

import { echarts } from '../../namespace'


+ 2
- 2
src/modules/chart/index.js Просмотреть файл

@@ -1,6 +1,6 @@
/**
@Author: Caven Chen
**/
* @Author : Caven Chen
*/

import { echarts } from '../../namespace'


+ 18
- 32
src/modules/effect/Effect.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:49:14
* @Author : Caven Chen
*/

import BlackAndWhite from './type/BlackAndWhite'
@@ -12,58 +11,45 @@ import NightVision from './type/NightVision'
import Silhouette from './type/Silhouette'

class Effect {
constructor() {
this._comps = {
blackAndWhite: new BlackAndWhite(),
bloom: new Bloom(),
brightness: new Brightness(),
depthOfField: new DepthOfField(),
lensFlare: new LensFlare(),
night: new NightVision(),
silhouette: new Silhouette(),
constructor(viewer) {
if (!viewer) {
throw Error('missing viewer param')
}
this._blackAndWhite = new BlackAndWhite(viewer)
this._bloom = new Bloom(viewer)
this._brightness = new Brightness(viewer)
this._depthOfField = new DepthOfField(viewer)
this._lensFlare = new LensFlare(viewer)
this._night = new NightVision(viewer)
this._silhouette = new Silhouette(viewer)
}

get blackAndWhite() {
return this._comps.blackAndWhite
return this._blackAndWhite
}

get bloom() {
return this._comps.bloom
return this._bloom
}

get brightness() {
return this._comps.brightness
return this._brightness
}

get depthOfField() {
return this._comps.depthOfField
return this._depthOfField
}

get lensFlare() {
return this._comps.lensFlare
return this._lensFlare
}

get night() {
return this._comps.night
return this._night
}

get silhouette() {
return this._comps.silhouette
}

/**
*
* @param viewer
*/
install(viewer) {
Object.keys(this._comps).forEach((key) => {
this._comps[key].addTo(viewer)
})
Object.defineProperty(viewer, 'effect', {
value: this,
writable: false,
})
return this._silhouette
}
}


+ 6
- 20
src/modules/effect/type/BlackAndWhite.js Просмотреть файл

@@ -1,14 +1,13 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:51:47
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import State from '../../state/State'

class BlackAndWhite {
constructor() {
this._viewer = undefined
constructor(viewer) {
this._viewer = viewer
this._delegate = undefined
this._enable = false
this._gradations = 1
@@ -22,10 +21,11 @@ class BlackAndWhite {

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {
if (!this._delegate) {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
this._delegate.enabled = enable
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {
@@ -61,20 +61,6 @@ class BlackAndWhite {
this._viewer.scene.postProcessStages.add(this._delegate)
}
}

/**
*
* @param viewer
* @returns {BlackAndWhite}
*/
addTo(viewer) {
if (!viewer) {
return this
}
this._viewer = viewer
this._state = State.ADDED
return this
}
}

export default BlackAndWhite

+ 6
- 20
src/modules/effect/type/Bloom.js Просмотреть файл

@@ -1,13 +1,12 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:50:27
* @Author : Caven Chen
*/

import State from '../../state/State'

class Bloom {
constructor() {
this._viewer = undefined
constructor(viewer) {
this._viewer = viewer
this._enable = false
this._contrast = 128
this._brightness = -0.3
@@ -25,10 +24,11 @@ class Bloom {

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {
if (!this._delegate) {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
this._delegate.enabled = enable
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {
@@ -111,20 +111,6 @@ class Bloom {
this._delegate.uniforms.sigma = this._sigma
this._delegate.uniforms.stepSize = this._stepSize
}

/**
*
* @param viewer
* @returns {Bloom}
*/
addTo(viewer) {
if (!viewer) {
return this
}
this._viewer = viewer
this._state = State.ADDED
return this
}
}

export default Bloom

+ 6
- 20
src/modules/effect/type/Brightness.js Просмотреть файл

@@ -1,14 +1,13 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:51:47
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import State from '../../state/State'

class Brightness {
constructor() {
this._viewer = undefined
constructor(viewer) {
this._viewer = viewer
this._delegate = undefined
this._enable = false
this._intensity = 1
@@ -22,10 +21,11 @@ class Brightness {

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {
if (!this._delegate) {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
this._delegate.enabled = enable
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {
@@ -61,20 +61,6 @@ class Brightness {
this._viewer.scene.postProcessStages.add(this._delegate)
}
}

/**
*
* @param viewer
* @returns {Brightness}
*/
addTo(viewer) {
if (!viewer) {
return this
}
this._viewer = viewer
this._state = State.ADDED
return this
}
}

export default Brightness

+ 4
- 26
src/modules/effect/type/DepthOfField.js Просмотреть файл

@@ -1,14 +1,13 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:51:47
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import State from '../../state/State'

class DepthOfField {
constructor() {
this._viewer = undefined
constructor(viewer) {
this._viewer = viewer
this._delegate = undefined
this._enable = false
this._focalDistance = 87
@@ -26,8 +25,6 @@ class DepthOfField {
set enable(enable) {
this._enable = enable
if (
enable &&
this._viewer &&
Cesium.PostProcessStageLibrary.isDepthOfFieldSupported(
this._viewer.scene
) &&
@@ -36,7 +33,7 @@ class DepthOfField {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
return this
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {
@@ -46,7 +43,6 @@ class DepthOfField {
set focalDistance(focalDistance) {
this._focalDistance = focalDistance
this._delegate && (this._delegate.uniforms.focalDistance = focalDistance)
return this
}

get focalDistance() {
@@ -56,7 +52,6 @@ class DepthOfField {
set delta(delta) {
this._delta = delta
this._delegate && (this._delegate.uniforms.delta = delta)
return this
}

get delta() {
@@ -66,7 +61,6 @@ class DepthOfField {
set sigma(sigma) {
this._sigma = sigma
this._delegate && (this._delegate.uniforms.sigma = sigma)
return this
}

get sigma() {
@@ -76,7 +70,6 @@ class DepthOfField {
set stepSize(stepSize) {
this._stepSize = stepSize
this._delegate && (this._delegate.uniforms.stepSize = stepSize)
return this
}

get stepSize() {
@@ -86,7 +79,6 @@ class DepthOfField {
set selected(selected) {
this._selected = selected
this._delegate && (this._delegate.selected = selected)
return this
}

get selected() {
@@ -107,20 +99,6 @@ class DepthOfField {
this._viewer.scene.postProcessStages.add(this._delegate)
}
}

/**
*
* @param viewer
* @returns {DepthOfField}
*/
addTo(viewer) {
if (!viewer) {
return this
}
this._viewer = viewer
this._state = State.ADDED
return this
}
}

export default DepthOfField

+ 6
- 26
src/modules/effect/type/LensFlare.js Просмотреть файл

@@ -1,14 +1,13 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:51:47
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import State from '../../state/State'

class LensFlare {
constructor() {
this._viewer = undefined
constructor(viewer) {
this._viewer = viewer
this._delegate = undefined
this._enable = false
this._intensity = 6
@@ -25,11 +24,11 @@ class LensFlare {

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {
if (!this._delegate) {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
return this
this._delegate.enabled = enable
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {
@@ -39,7 +38,6 @@ class LensFlare {
set intensity(intensity) {
this._intensity = intensity
this._delegate && (this._delegate.uniforms.intensity = intensity)
return this
}

get intensity() {
@@ -49,7 +47,6 @@ class LensFlare {
set distortion(distortion) {
this._distortion = distortion
this._delegate && (this._delegate.uniforms.distortion = distortion)
return this
}

get distortion() {
@@ -59,7 +56,6 @@ class LensFlare {
set dirtAmount(dirtAmount) {
this._dirtAmount = dirtAmount
this._delegate && (this._delegate.uniforms.dirtAmount = dirtAmount)
return this
}

get dirtAmount() {
@@ -69,7 +65,6 @@ class LensFlare {
set haloWidth(haloWidth) {
this._haloWidth = haloWidth
this._delegate && (this._delegate.uniforms.haloWidth = haloWidth)
return this
}

get haloWidth() {
@@ -79,7 +74,6 @@ class LensFlare {
set selected(selected) {
this._selected = selected
this._delegate && (this._delegate.selected = selected)
return this
}

get selected() {
@@ -100,20 +94,6 @@ class LensFlare {
this._viewer.scene.postProcessStages.add(this._delegate)
}
}

/**
*
* @param viewer
* @returns {LensFlare}
*/
addTo(viewer) {
if (!viewer) {
return this
}
this._viewer = viewer
this._state = State.ADDED
return this
}
}

export default LensFlare

+ 6
- 21
src/modules/effect/type/NightVision.js Просмотреть файл

@@ -1,13 +1,13 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:10:14
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import State from '../../state/State'

class NightVision {
constructor() {
constructor(viewer) {
this._viewer = viewer
this._enable = false
this._selected = []
this._state = State.INITIALIZED
@@ -19,11 +19,11 @@ class NightVision {

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {
if (!this._delegate) {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
return this
this._delegate.enabled = enable
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {
@@ -33,7 +33,6 @@ class NightVision {
set selected(selected) {
this._selected = selected
this._delegate && (this._delegate.selected = selected)
return this
}

get selected() {
@@ -50,20 +49,6 @@ class NightVision {
this._viewer.scene.postProcessStages.add(this._delegate)
}
}

/**
*
* @param viewer
* @returns {NightVision}
*/
addTo(viewer) {
if (!viewer) {
return this
}
this._viewer = viewer
this._state = State.ADDED
return this
}
}

export default NightVision

+ 2
- 5
src/modules/effect/type/Silhouette.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-08-14 23:51:47
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
@@ -24,8 +23,6 @@ class Silhouette {
set enable(enable) {
this._enable = enable
if (
enable &&
this._viewer &&
Cesium.PostProcessStageLibrary.isSilhouetteSupported(
this._viewer.scene
) &&
@@ -34,7 +31,7 @@ class Silhouette {
this._createPostProcessStage()
}
this._delegate && (this._delegate.enabled = enable)
return this
this._state = enable ? State.ENABLED : State.DISABLED
}

get enable() {

+ 0
- 4
src/modules/effect/type/Sun.js Просмотреть файл

@@ -1,4 +0,0 @@
/**
* @Author: Caven
* @Date: 2021-08-01 00:22:00
*/

+ 1
- 2
src/modules/event/Event.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-02 15:24:38
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/event/EventType.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-04-10 17:02:28
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/event/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-03-13 13:24:24
* @Author : Caven Chen
*/

export * from './EventType'

+ 1
- 2
src/modules/event/type/LayerEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-02 14:26:35
* @Author : Caven Chen
*/

import { LayerEventType } from '../EventType'

+ 1
- 2
src/modules/event/type/LayerGroupEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-08-28 20:18:04
* @Author : Caven Chen
*/

import { LayerGroupEventType } from '../EventType'

+ 1
- 2
src/modules/event/type/MouseEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2019-12-31 16:58:31
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/event/type/OverlayEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-02 14:26:35
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/event/type/PathEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-05-11 23:28:13
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/event/type/PlotEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-05-11 23:28:13
* @Author : Caven Chen
*/

import { PlotEventType } from '../EventType'

+ 1
- 2
src/modules/event/type/SceneEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-03-02 21:32:43
* @Author : Caven Chen
*/

import { SceneEventType } from '../EventType'

+ 1
- 2
src/modules/event/type/TrackEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-06-08 20:37:28
* @Author : Caven Chen
*/

import { TrackEventType } from '../EventType'

+ 1
- 2
src/modules/event/type/ViewerEvent.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-02 14:26:35
* @Author : Caven Chen
*/

import { ViewerEventType } from '../EventType'

+ 2
- 2
src/modules/exts/BaseLayerPicker.js Просмотреть файл

@@ -1,6 +1,6 @@
/**
@Author: Caven Chen
**/
* @Author : Caven Chen
*/

import { Cesium } from '../../namespace'
const { EllipsoidTerrainProvider, ImageryLayer } = Cesium

+ 1
- 2
src/modules/exts/GroundSkyBox.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-09
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/exts/Viewer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-26
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/exts/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-09
* @Author : Caven Chen
*/

export { default as BaseLayerPicker } from './BaseLayerPicker.js'

+ 1
- 2
src/modules/history-track/Track.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-19 11:21:48
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/history-track/TrackController.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-04-01 10:36:36
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/history-track/TrackViewMode.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-08-05 10:51:13
* @Author : Caven Chen
*/

const TrackViewMode = {

+ 1
- 2
src/modules/history-track/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-04-13 09:32:31
* @Author : Caven Chen
*/

export { default as TrackController } from './TrackController'

+ 1
- 2
src/modules/icons/compass-inner.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-06 14:05:25
* @Author : Caven Chen
*/

const compass_inner = `

+ 1
- 2
src/modules/icons/compass-outer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-05 16:01:22
* @Author : Caven Chen
*/

const compass_outer = `

+ 1
- 2
src/modules/icons/compass-rotation-marker.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-06 14:11:56
* @Author : Caven Chen
*/

const compass_rotation_marker = `

+ 1
- 2
src/modules/icons/decrease.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-06 14:18:00
* @Author : Caven Chen
*/

const decrease = `

+ 1
- 2
src/modules/icons/increase.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-06 14:18:00
* @Author : Caven Chen
*/

const increase = `

+ 1
- 2
src/modules/icons/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-05 16:35:22
* @Author : Caven Chen
*/

import logo from './logo'

+ 1
- 2
src/modules/icons/logo.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-12-02 19:59:35
* @Author : Caven Chen
*/

const logo = `

+ 1
- 2
src/modules/icons/refresh.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-06 14:18:00
* @Author : Caven Chen
*/

const refresh = `

+ 1
- 2
src/modules/icons/splitter.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-06-06 14:18:00
* @Author : Caven Chen
*/

const splitter = `

+ 1
- 2
src/modules/imagery/ImageryLayerFactory.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-21 15:54:56
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/ImageryType.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-05-10 08:15:36
* @Author : Caven Chen
*/

let ImageryType = {

+ 1
- 2
src/modules/imagery/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-03-14 00:31:46
* @Author : Caven Chen
*/

export { default as ImageryType } from './ImageryType'

+ 1
- 2
src/modules/imagery/projection/BaiduMercatorProjection.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-01-30 22:41:41
* @Author : Caven Chen
*/

const EARTH_RADIUS = 6370996.81

+ 1
- 2
src/modules/imagery/provider/AmapImageryProvider.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-15 20:31:28
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/provider/BaiduImageryProvider.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-15 20:27:27
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/provider/GeoVisImageryProvider.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-18
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/provider/GoogleImageryProvider.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-21 16:06:14
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/provider/TdtImageryProvider.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-15 20:31:46
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/provider/TencentImageryProvider.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-21 18:10:47
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/tiling-scheme/AmapMercatorTilingScheme.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-01-31 22:07:05
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/imagery/tiling-scheme/BaiduMercatorTilingScheme.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-01-31 19:22:04
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/images/base64/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2022-05-28 23:30:45
* @Author : Caven Chen
*/

const IMG_PARTICLES =

+ 17
- 2
src/modules/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
@author : Caven Chen
@date : 2023-05-08
* @Author : Caven Chen
*/

export { default as Viewer } from './viewer/Viewer'
@@ -118,3 +117,19 @@ export {
} from './material'

export { default as Plot } from './plot/Plot'

export {
AnimationType,
AroundPoint,
AroundView,
CircleScan,
Flying,
GlobeRotate,
RadarScan,
} from './animation'

export { default as Effect } from './effect/Effect'

export { default as Weather } from './weather/Weather'

export { KeyboardRoaming, RoamingController, RoamingPath } from './roaming'

+ 1
- 2
src/modules/layer/Layer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-03 09:38:21
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/LayerGroup.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-08-27 19:50:32
* @Author : Caven Chen
*/

import { Util } from '../utils'

+ 1
- 2
src/modules/layer/LayerType.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-05-10 08:21:19
* @Author : Caven Chen
*/

let LayerType = {}

+ 1
- 2
src/modules/layer/index.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-03-13 13:46:19
* @Author : Caven Chen
*/

export { default as LayerType } from './LayerType'

+ 1
- 2
src/modules/layer/type/ClusterLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-02-10 10:05:41
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/CzmlLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-19 13:38:48
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/DynamicLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-05-05 09:12:41
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/FeatureGridLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-04-15 20:00:42
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/GeoJsonLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-13 10:13:53
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/GpxLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-19 11:03:17
* @Author : Caven Chen
*/

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

+ 2
- 3
src/modules/layer/type/GraticuleLayer.js Просмотреть файл

@@ -1,7 +1,6 @@
/**
@Author: Caven Chen
@Date: 2023-01-12
**/
* @Author : Caven Chen
*/

import { Cesium } from '../../../namespace'
import State from '../../state/State'

+ 1
- 2
src/modules/layer/type/GroundPrimitiveLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2021-12-03 20:12:59
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/HtmlLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-02-12 21:43:33
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/KmlLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-01-19 11:03:17
* @Author : Caven Chen
*/

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

+ 1
- 2
src/modules/layer/type/LabelLayer.js Просмотреть файл

@@ -1,6 +1,5 @@
/**
* @Author: Caven
* @Date: 2020-03-30 17:14:00
* @Author : Caven Chen
*/

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

+ 0
- 0
src/modules/layer/type/PrimitiveLayer.js Просмотреть файл


Некоторые файлы не были показаны из-за большого количества измененных файлов

Загрузка…
Отмена
Сохранить