deeptwins-engine-3d 0.1.76 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/assets/Build/DeepTwins/Image/noise.png +0 -0
  2. package/dist/assets/Build/DeepTwins/Workers/CustomRasterClip.worker.js +1 -2
  3. package/dist/assets/Build/DeepTwins/Workers/MvtVector.worker.js +1 -1
  4. package/dist/assets/Build/Map3d/ThirdParty/Workers/zip-web-worker.js +640 -0
  5. package/dist/assets/Build/Map3d/ThirdParty/wasm_splats_bg.wasm +0 -0
  6. package/dist/assets/Build/Map3d/ThirdParty/zip-module.wasm +0 -0
  7. package/dist/assets/Build/Map3d/Workers/chunk-27NG6PQR.js +456 -0
  8. package/dist/assets/Build/Map3d/Workers/chunk-2JVMMMWT.js +353 -0
  9. package/dist/assets/Build/Map3d/Workers/chunk-2Y2XYQCS.js +1481 -0
  10. package/dist/assets/Build/Map3d/Workers/chunk-34RF3V5G.js +220 -0
  11. package/dist/assets/Build/Map3d/Workers/chunk-35H7BYLJ.js +1800 -0
  12. package/dist/assets/Build/Map3d/Workers/chunk-57OGEF5V.js +435 -0
  13. package/dist/assets/Build/Map3d/Workers/chunk-5PX3DYJA.js +196 -0
  14. package/dist/assets/Build/Map3d/Workers/chunk-7B5XGQRN.js +171 -0
  15. package/dist/assets/Build/Map3d/Workers/chunk-ATLWOZFF.js +39 -0
  16. package/dist/assets/Build/Map3d/Workers/chunk-BMSUECTA.js +1055 -0
  17. package/dist/assets/Build/Map3d/Workers/chunk-C6IA4TKW.js +476 -0
  18. package/dist/assets/Build/Map3d/Workers/chunk-CZ44I32U.js +157 -0
  19. package/dist/assets/Build/Map3d/Workers/chunk-DE6UV44R.js +122 -0
  20. package/dist/assets/Build/Map3d/Workers/chunk-DUCCKVOG.js +834 -0
  21. package/dist/assets/Build/Map3d/Workers/chunk-EBJBPIYX.js +239 -0
  22. package/dist/assets/Build/Map3d/Workers/chunk-EYSYQ2R6.js +138 -0
  23. package/dist/assets/Build/Map3d/Workers/chunk-FMCAAUQI.js +368 -0
  24. package/dist/assets/Build/Map3d/Workers/chunk-GMYZNRRQ.js +2717 -0
  25. package/dist/assets/Build/Map3d/Workers/chunk-GWPNZZV4.js +781 -0
  26. package/dist/assets/Build/Map3d/Workers/chunk-HLP2U4KW.js +758 -0
  27. package/dist/assets/Build/Map3d/Workers/chunk-HSJSUPQV.js +500 -0
  28. package/dist/assets/Build/Map3d/Workers/chunk-I73Q3AG7.js +58 -0
  29. package/dist/assets/Build/Map3d/Workers/chunk-IMZ4YIMV.js +511 -0
  30. package/dist/assets/Build/Map3d/Workers/chunk-IZSK4DVF.js +421 -0
  31. package/dist/assets/Build/Map3d/Workers/chunk-JKLMRPKK.js +75 -0
  32. package/dist/assets/Build/Map3d/Workers/chunk-KGM345JM.js +691 -0
  33. package/dist/assets/Build/Map3d/Workers/chunk-L4IR5U4G.js +102 -0
  34. package/dist/assets/Build/Map3d/Workers/chunk-MG4EVQH2.js +44 -0
  35. package/dist/assets/Build/Map3d/Workers/chunk-NXWEFAZJ.js +300 -0
  36. package/dist/assets/Build/Map3d/Workers/chunk-PDFAJISJ.js +59 -0
  37. package/dist/assets/Build/Map3d/Workers/chunk-PHWZFJR5.js +100 -0
  38. package/dist/assets/Build/Map3d/Workers/chunk-PLE7CHBE.js +101 -0
  39. package/dist/assets/Build/Map3d/Workers/chunk-PN3GIZ5Q.js +163 -0
  40. package/dist/assets/Build/Map3d/Workers/chunk-PXL5XLHV.js +1073 -0
  41. package/dist/assets/Build/Map3d/Workers/chunk-QYXOF5JC.js +959 -0
  42. package/dist/assets/Build/Map3d/Workers/chunk-R2LIFXV3.js +115 -0
  43. package/dist/assets/Build/Map3d/Workers/chunk-R4W6IRJZ.js +10357 -0
  44. package/dist/assets/Build/Map3d/Workers/chunk-R5PZXG56.js +1258 -0
  45. package/dist/assets/Build/Map3d/Workers/chunk-RZQLZIUI.js +629 -0
  46. package/dist/assets/Build/Map3d/Workers/chunk-SIBDD6Y4.js +390 -0
  47. package/dist/assets/Build/Map3d/Workers/chunk-U5NN6JTQ.js +398 -0
  48. package/dist/assets/Build/Map3d/Workers/chunk-UA5RPPP3.js +73 -0
  49. package/dist/assets/Build/Map3d/Workers/chunk-UXLKFS3C.js +305 -0
  50. package/dist/assets/Build/Map3d/Workers/chunk-VUX4BQIM.js +37 -0
  51. package/dist/assets/Build/Map3d/Workers/chunk-WJDUUUJS.js +684 -0
  52. package/dist/assets/Build/Map3d/Workers/chunk-XBJOJHWX.js +139 -0
  53. package/dist/assets/Build/Map3d/Workers/chunk-XJDMTNKD.js +634 -0
  54. package/dist/assets/Build/Map3d/Workers/chunk-XUCXZZE5.js +963 -0
  55. package/dist/assets/Build/Map3d/Workers/chunk-YIKGVMJ5.js +287 -0
  56. package/dist/assets/Build/Map3d/Workers/chunk-YTNCIBPQ.js +262 -0
  57. package/dist/assets/Build/Map3d/Workers/chunk-ZMDUYETO.js +55 -0
  58. package/dist/assets/Build/Map3d/Workers/chunk-ZW52HXFN.js +2857 -0
  59. package/dist/esm/analyze/LineOfSightAnalysis.js +1 -326
  60. package/dist/esm/analyze/SubmergenceAnalysis.js +1 -137
  61. package/dist/esm/analyze/SunLightAnalysis.js +1 -91
  62. package/dist/esm/analyze/TerrainExcavationAnalysis.js +1 -612
  63. package/dist/esm/analyze/ViewshedAnalysis.js +1 -292
  64. package/dist/esm/cameraControl/ModelRoamHistory.js +1 -639
  65. package/dist/esm/cameraControl/ModelRoamRealTime.js +1 -874
  66. package/dist/esm/cameraControl/Roam.js +1 -418
  67. package/dist/esm/cameraControl/Rotate.js +1 -134
  68. package/dist/esm/cameraControl/RotateInPlace.js +1 -99
  69. package/dist/esm/constant.d.ts +90 -0
  70. package/dist/esm/constant.js +1 -1287
  71. package/dist/esm/deepTwins/index.js +1 -121
  72. package/dist/esm/drawCommand/index.js +1 -3
  73. package/dist/esm/drawCommand/viewShed/Event.js +1 -142
  74. package/dist/esm/drawCommand/viewShed/RectangularSensorPrimitive.js +1 -1306
  75. package/dist/esm/drawCommand/viewShed/ViewShadowPrimitive.js +1 -66
  76. package/dist/esm/drawCommand/viewShed/ViewShedAnalyserLayer.js +1 -466
  77. package/dist/esm/drawCommand/viewShed/ViewShedMap.js +1 -1238
  78. package/dist/esm/drawCommand/viewShed/config.js +1 -21
  79. package/dist/esm/drawCommand/volumeCloud/GeometryPrimitive.js +1 -89
  80. package/dist/esm/drawCommand/volumeCloud/ImprovedNoise.js +1 -112
  81. package/dist/esm/drawCommand/volumeCloud/VolumeClouds.js +1 -91
  82. package/dist/esm/drawer/algorithm.js +1 -314
  83. package/dist/esm/drawer/common.js +1 -965
  84. package/dist/esm/drawer/coordinate.js +1 -184
  85. package/dist/esm/drawer/index.js +1 -688
  86. package/dist/esm/drawer/plotUtil.js +1 -266
  87. package/dist/esm/drawer/shape/Assemble.js +1 -415
  88. package/dist/esm/drawer/shape/AttackArrow.js +1 -442
  89. package/dist/esm/drawer/shape/BaseShape.js +1 -383
  90. package/dist/esm/drawer/shape/Bow.js +1 -375
  91. package/dist/esm/drawer/shape/Circle.js +1 -461
  92. package/dist/esm/drawer/shape/Curve.js +1 -386
  93. package/dist/esm/drawer/shape/DragPoint.js +1 -211
  94. package/dist/esm/drawer/shape/Elliptic.js +1 -491
  95. package/dist/esm/drawer/shape/Formation.js +1 -395
  96. package/dist/esm/drawer/shape/PincerArrow.js +1 -445
  97. package/dist/esm/drawer/shape/Point.js +1 -131
  98. package/dist/esm/drawer/shape/Polygon.js +1 -368
  99. package/dist/esm/drawer/shape/Polyline.js +1 -325
  100. package/dist/esm/drawer/shape/RegularPolygon.js +1 -468
  101. package/dist/esm/drawer/shape/RightAngleArrow.js +1 -423
  102. package/dist/esm/drawer/shape/Sector.js +1 -568
  103. package/dist/esm/drawer/shape/StraightArrow.js +1 -422
  104. package/dist/esm/drawer/shape/SwallowtailArrow.js +1 -438
  105. package/dist/esm/drawer/types.js +1 -11
  106. package/dist/esm/drawer/utils.js +1 -381
  107. package/dist/esm/global.css +22 -1
  108. package/dist/esm/graphicLayer/BaseEntity.js +1 -51
  109. package/dist/esm/graphicLayer/BaseLayer.js +1 -730
  110. package/dist/esm/graphicLayer/BasePointPrimitive.js +1 -45
  111. package/dist/esm/graphicLayer/BasePrimitive.js +1 -36
  112. package/dist/esm/graphicLayer/BasePrimitiveInstance.js +1 -37
  113. package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
  114. package/dist/esm/graphicLayer/BaseSource.js +1 -630
  115. package/dist/esm/graphicLayer/BillboardEntity.js +1 -106
  116. package/dist/esm/graphicLayer/BillboardPrimitive.js +1 -119
  117. package/dist/esm/graphicLayer/BoxEntity.js +1 -99
  118. package/dist/esm/graphicLayer/BoxPrimitive.js +1 -48
  119. package/dist/esm/graphicLayer/BoxPrimitiveInstance.js +1 -91
  120. package/dist/esm/graphicLayer/EllipseEntity.js +1 -110
  121. package/dist/esm/graphicLayer/EllipsePrimitive.js +1 -47
  122. package/dist/esm/graphicLayer/EllipsePrimitiveInstance.js +1 -98
  123. package/dist/esm/graphicLayer/EllipsoidEntity.js +1 -118
  124. package/dist/esm/graphicLayer/EllipsoidPrimitive.js +1 -48
  125. package/dist/esm/graphicLayer/EllipsoidPrimitiveInstance.js +1 -113
  126. package/dist/esm/graphicLayer/GraphicLayerCollection.js +1 -491
  127. package/dist/esm/graphicLayer/HtmlEntity.d.ts +4 -0
  128. package/dist/esm/graphicLayer/HtmlEntity.js +1 -189
  129. package/dist/esm/graphicLayer/LabelEntity.js +1 -110
  130. package/dist/esm/graphicLayer/LabelPrimitive.js +1 -127
  131. package/dist/esm/graphicLayer/ModelEntity.js +1 -122
  132. package/dist/esm/graphicLayer/ModelPrimitive.js +1 -59
  133. package/dist/esm/graphicLayer/ModelPrimitiveInstance.js +1 -86
  134. package/dist/esm/graphicLayer/PointEntity.js +1 -94
  135. package/dist/esm/graphicLayer/PointPrimitive.js +1 -107
  136. package/dist/esm/graphicLayer/PolygonEntity.js +1 -103
  137. package/dist/esm/graphicLayer/PolygonGroundPrimitive.js +1 -49
  138. package/dist/esm/graphicLayer/PolygonGroundPrimitiveImageMaterialInstance.js +1 -87
  139. package/dist/esm/graphicLayer/PolygonPrimitive.js +1 -60
  140. package/dist/esm/graphicLayer/PolygonPrimitiveImageMaterialInstance.js +1 -84
  141. package/dist/esm/graphicLayer/PolygonPrimitiveInstance.js +1 -101
  142. package/dist/esm/graphicLayer/PolylineEntity.js +1 -96
  143. package/dist/esm/graphicLayer/PolylineGroundPrimitive.js +1 -55
  144. package/dist/esm/graphicLayer/PolylineGroundPrimitiveInstance.js +1 -85
  145. package/dist/esm/graphicLayer/PolylinePrimitive.js +1 -53
  146. package/dist/esm/graphicLayer/PolylinePrimitiveInstance.js +1 -85
  147. package/dist/esm/graphicLayer/PolylineVolumeEntity.js +1 -105
  148. package/dist/esm/graphicLayer/PolylineVolumePrimitive.js +1 -47
  149. package/dist/esm/graphicLayer/PolylineVolumePrimitiveInstance.js +1 -94
  150. package/dist/esm/graphicLayer/WallEntity.js +1 -96
  151. package/dist/esm/graphicLayer/WallPrimitive.js +1 -47
  152. package/dist/esm/graphicLayer/WallPrimitiveInstance.js +1 -88
  153. package/dist/esm/index.d.ts +4 -0
  154. package/dist/esm/index.js +1 -175
  155. package/dist/esm/lowAltitude/BarrierLayer.js +1 -172
  156. package/dist/esm/lowAltitude/BaseGridMvtLayer.js +1 -122
  157. package/dist/esm/lowAltitude/FactorLayer.js +1 -199
  158. package/dist/esm/lowAltitude/FlightPlanning.js +1 -411
  159. package/dist/esm/lowAltitude/FlightRiskEvaluation.js +1 -543
  160. package/dist/esm/lowAltitude/GridDraw.js +1 -137
  161. package/dist/esm/lowAltitude/PoiLayer.js +1 -74
  162. package/dist/esm/lowAltitude/RoutePlanning.js +1 -318
  163. package/dist/esm/lowAltitude/VisitLayer.js +1 -180
  164. package/dist/esm/map/Event.js +1 -377
  165. package/dist/esm/map/GroundSkyBox.js +1 -166
  166. package/dist/esm/map/Map.js +1 -881
  167. package/dist/esm/map/Property.js +1 -35
  168. package/dist/esm/material/AtmosphericDispersion.js +1 -569
  169. package/dist/esm/material/GlobalVolumetricCloud.js +1 -377
  170. package/dist/esm/material/VolumeCloud.js +1 -115
  171. package/dist/esm/material/WeatherEffects.js +1 -351
  172. package/dist/esm/material/entity/BaseMaterialProperty.js +1 -51
  173. package/dist/esm/material/entity/CircleWaveMaterialProperty.js +1 -101
  174. package/dist/esm/material/entity/DynamicWallMaterialProperty.js +1 -101
  175. package/dist/esm/material/entity/ImageGlowingMaterialProperty.js +1 -89
  176. package/dist/esm/material/entity/ImageMaterialProperty.js +1 -34
  177. package/dist/esm/material/entity/PolylineTrailLinkMaterialProperty.js +1 -132
  178. package/dist/esm/material/primitive/BaseMaterialAppearance.js +1 -28
  179. package/dist/esm/material/primitive/ImageGlowingMaterialAppearance.js +1 -77
  180. package/dist/esm/material/primitive/ImageMaterialAppearance.js +1 -77
  181. package/dist/esm/measure/Area.js +1 -220
  182. package/dist/esm/measure/BaseDraw.js +1 -105
  183. package/dist/esm/measure/Distance.js +1 -223
  184. package/dist/esm/measure/index.js +1 -266
  185. package/dist/esm/measure/types.js +1 -17
  186. package/dist/esm/measure/utils.js +1 -319
  187. package/dist/esm/particle/BaseParticle.js +1 -196
  188. package/dist/esm/particle/FireParticle.js +1 -65
  189. package/dist/esm/particle/FountainParticle.js +1 -80
  190. package/dist/esm/particle/SmokeParticle.js +1 -65
  191. package/dist/esm/particle/common.js +1 -23
  192. package/dist/esm/particle/index.js +1 -5
  193. package/dist/esm/property/PositionProperty.js +1 -56
  194. package/dist/esm/tileLayer/ArcGisLayer.js +1 -41
  195. package/dist/esm/tileLayer/CustomRasterClipWorkerClient.js +1 -147
  196. package/dist/esm/tileLayer/CustomRasterLayer.js +1 -1136
  197. package/dist/esm/tileLayer/ImageryLayer.js +1 -44
  198. package/dist/esm/tileLayer/MvtVectorLoad.js +1 -1549
  199. package/dist/esm/tileLayer/MvtVectorWorkerClient.js +1 -126
  200. package/dist/esm/tileLayer/RasterLayer.js +1 -23
  201. package/dist/esm/tileLayer/WmsLayer.js +1 -26
  202. package/dist/esm/tileLayer/WmtsLayer.js +1 -23
  203. package/dist/esm/tool/BuildClampedPolygonGrid.js +1 -278
  204. package/dist/esm/tool/Compass.js +1 -282
  205. package/dist/esm/tool/PrimitiveCluster.js +1 -706
  206. package/dist/esm/tool/TimerInterval.js +1 -58
  207. package/dist/esm/tool/common.js +1 -405
  208. package/dist/esm/tool/fetch.js +1 -222
  209. package/dist/esm/tool/heatmap.js +1 -631
  210. package/dist/esm/tool/utils.d.ts +1 -0
  211. package/dist/esm/tool/utils.js +1 -501
  212. package/dist/esm/toolTip/index.js +1 -79
  213. package/dist/esm/videoFusion/BaseVideo.d.ts +7 -0
  214. package/dist/esm/videoFusion/BaseVideo.js +1 -330
  215. package/dist/esm/videoFusion/VideoProject.js +1 -230
  216. package/dist/esm/videoFusion/VideoTexture.js +1 -163
  217. package/dist/esm/visualization/BaseHeatmap.js +1 -271
  218. package/dist/esm/visualization/BoundaryHighlight.d.ts +135 -0
  219. package/dist/esm/visualization/BoundaryHighlight.js +1 -0
  220. package/dist/esm/visualization/DynamicWater.js +1 -289
  221. package/dist/esm/visualization/Frustum.js +1 -248
  222. package/dist/esm/visualization/Heatmap2d.js +1 -97
  223. package/dist/esm/visualization/Heatmap3d.js +1 -281
  224. package/dist/esm/visualization/MigrationEffect.js +1 -397
  225. package/dist/esm/visualization/PointCluster.js +1 -220
  226. package/dist/esm/visualization/RadarScan.js +1 -333
  227. package/dist/esm/visualization/SampledTerrainRiver.d.ts +180 -0
  228. package/dist/esm/visualization/SampledTerrainRiver.js +1 -0
  229. package/dist/esm/visualization/SampledTerrainWater.d.ts +170 -0
  230. package/dist/esm/visualization/SampledTerrainWater.js +1 -0
  231. package/dist/esm/visualization/WindField.d.ts +72 -0
  232. package/dist/esm/visualization/WindField.js +1 -0
  233. package/dist/esm/visualization/windCore.d.ts +161 -0
  234. package/dist/esm/visualization/windCore.js +8 -0
  235. package/dist/umd/deeptwins-engine-3d.min.css +1 -1
  236. package/dist/umd/deeptwins-engine-3d.min.js +1 -1
  237. package/package.json +6 -4
@@ -1,134 +1 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- import * as Cesium from 'deeptwins-cesium';
9
- import { lngLatAltToCartesian3 } from "../tool/utils";
10
-
11
- // 绕点旋转
12
- var Rotate = /*#__PURE__*/function () {
13
- function Rotate(map, options) {
14
- _classCallCheck(this, Rotate);
15
- _defineProperty(this, "_mapContext", void 0);
16
- _defineProperty(this, "_timer", void 0);
17
- _defineProperty(this, "_eventComplete", void 0);
18
- _defineProperty(this, "_eventCancel", void 0);
19
- _defineProperty(this, "_restAngle", void 0);
20
- var _ref = options || {},
21
- complete = _ref.complete,
22
- cancel = _ref.cancel;
23
- complete && (this._eventComplete = complete);
24
- cancel && (this._eventCancel = cancel);
25
- this._mapContext = map._mapContext;
26
- }
27
- _createClass(Rotate, [{
28
- key: "getMap",
29
- value: function getMap() {
30
- return this._mapContext && this._mapContext.getMap();
31
- }
32
- }, {
33
- key: "start",
34
- value: function start(options) {
35
- var _this = this;
36
- var _ref2 = options || {},
37
- _ref2$duration = _ref2.duration,
38
- duration = _ref2$duration === void 0 ? 10 : _ref2$duration,
39
- _ref2$angle = _ref2.angle,
40
- angle = _ref2$angle === void 0 ? 360 : _ref2$angle;
41
- var _this$getMap$getMapCe = this.getMap().getMapCenter(),
42
- lng = _this$getMap$getMapCe.lng,
43
- lat = _this$getMap$getMapCe.lat,
44
- alt = _this$getMap$getMapCe.alt;
45
- var position = lngLatAltToCartesian3(lng, lat, alt);
46
- var cameraPosition = this.getMap().camera.position;
47
- // 根据屏幕中心像素的坐标获取中心点笛卡尔坐标
48
- var centerCartesian = this.getMap().camera.pickEllipsoid(new Cesium.Cartesian2(this.getMap().canvas.clientWidth / 2, this.getMap().canvas.clientHeight / 2), this.getMap().scene.globe.ellipsoid);
49
- // 相机距离中心点的位置
50
- var distance = Cesium.Cartesian3.distance(cameraPosition, centerCartesian);
51
- // 倾斜角
52
- var pitch = this.getMap().camera.pitch;
53
-
54
- // 如果duration为0,立即飞行到目标位置
55
- if (duration === 0) {
56
- var finalHeading = this.getMap().camera.heading + Cesium.Math.toRadians(angle);
57
- this.getMap().scene.camera.setView({
58
- destination: position,
59
- // 点的坐标
60
- orientation: {
61
- heading: finalHeading,
62
- pitch: pitch
63
- }
64
- });
65
- this.getMap().scene.camera.moveBackward(distance);
66
- // 立即触发完成事件
67
- if (this._eventComplete) {
68
- this._eventComplete();
69
- }
70
- return;
71
- }
72
-
73
- // 每秒飞行的角度
74
- var angleOneSecond = 360 / (360 / angle * duration);
75
-
76
- // 开始时间
77
- var startTime = Cesium.JulianDate.fromDate(new Date());
78
- // 结束时间
79
- var stopTime = Cesium.JulianDate.addSeconds(startTime, duration, new Cesium.JulianDate());
80
- this.getMap().clock.startTime = startTime.clone(); // 开始时间
81
- this.getMap().clock.stopTime = stopTime.clone(); // 结速时间
82
- this.getMap().clock.currentTime = startTime.clone(); // 当前时间
83
- this.getMap().clock.clockRange = Cesium.ClockRange.CLAMPED; // 行为方式
84
- this.getMap().clock.clockStep = Cesium.ClockStep.SYSTEM_CLOCK; // 时钟设置为当前系统时间; 忽略所有其他设置。
85
- // 相机的当前heading
86
- var initialHeading = this.getMap().camera.heading;
87
- this._timer = function () {
88
- // 当前已经过去的时间,单位s
89
- var delTime = Cesium.JulianDate.secondsDifference(_this.getMap().clock.currentTime, _this.getMap().clock.startTime);
90
- // 修改heading
91
- var heading = Cesium.Math.toRadians(delTime * angleOneSecond) + initialHeading;
92
- _this._restAngle = angle - Cesium.Math.toDegrees(Cesium.Math.toRadians(delTime * angleOneSecond));
93
- _this.getMap().scene.camera.setView({
94
- destination: position,
95
- // 点的坐标
96
- orientation: {
97
- heading: heading,
98
- pitch: pitch
99
- }
100
- });
101
- _this.getMap().scene.camera.moveBackward(distance);
102
- if (Cesium.JulianDate.compare(_this.getMap().clock.currentTime, _this.getMap().clock.stopTime) >= 0) {
103
- _this.getMap().clock.onTick.removeEventListener(_this._timer);
104
- _this._timer = null;
105
- if (_this._eventComplete) {
106
- _this._eventComplete();
107
- }
108
- }
109
- };
110
- this.getMap().clock.onTick.addEventListener(this._timer);
111
- }
112
- }, {
113
- key: "stop",
114
- value: function stop() {
115
- this._timer && this.getMap().clock.onTick.removeEventListener(this._timer);
116
- this._timer = null;
117
- if (this._eventCancel) {
118
- var time = Cesium.JulianDate.compare(this.getMap().clock.currentTime, this.getMap().clock.stopTime);
119
- this._eventCancel({
120
- restTime: time >= 0 ? 0 : time * -1,
121
- restAngle: this._restAngle <= 0 ? 0 : this._restAngle
122
- });
123
- }
124
- }
125
- }, {
126
- key: "destroy",
127
- value: function destroy() {
128
- this._timer && this.getMap().clock.onTick.removeEventListener(this._timer);
129
- this._timer = null;
130
- }
131
- }]);
132
- return Rotate;
133
- }();
134
- export { Rotate as default };
1
+ (function(_0x59f676,_0x380100){var _0x1a3727=_0x45bf,_0x5a9871=_0x59f676();while(!![]){try{var _0x4688a5=parseInt(_0x1a3727(0x128))/0x1+parseInt(_0x1a3727(0x130))/0x2+-parseInt(_0x1a3727(0x11a))/0x3+parseInt(_0x1a3727(0x144))/0x4*(parseInt(_0x1a3727(0x142))/0x5)+parseInt(_0x1a3727(0x137))/0x6+-parseInt(_0x1a3727(0x150))/0x7+-parseInt(_0x1a3727(0x11c))/0x8;if(_0x4688a5===_0x380100)break;else _0x5a9871['push'](_0x5a9871['shift']());}catch(_0x4a76a9){_0x5a9871['push'](_0x5a9871['shift']());}}}(_0x20d4,0xeb683));function _typeof(_0x57c781){'@babel/helpers - typeof';var _0x4d8782=_0x45bf;return _typeof=_0x4d8782(0x126)==typeof Symbol&&'symbol'==typeof Symbol['iterator']?function(_0x283c2c){return typeof _0x283c2c;}:function(_0x2eb4a6){var _0x1eba8d=_0x4d8782;return _0x2eb4a6&&_0x1eba8d(0x126)==typeof Symbol&&_0x2eb4a6['constructor']===Symbol&&_0x2eb4a6!==Symbol['prototype']?'symbol':typeof _0x2eb4a6;},_typeof(_0x57c781);}function _classCallCheck(_0x2ca360,_0x1a574b){var _0x5625b0=_0x45bf;if(!(_0x2ca360 instanceof _0x1a574b))throw new TypeError(_0x5625b0(0x152));}function _defineProperties(_0x88b189,_0x83d9e7){var _0x96c007=_0x45bf;for(var _0x39c210=0x0;_0x39c210<_0x83d9e7[_0x96c007(0x14a)];_0x39c210++){var _0x251a94=_0x83d9e7[_0x39c210];_0x251a94['enumerable']=_0x251a94[_0x96c007(0x12e)]||![],_0x251a94[_0x96c007(0x145)]=!![];if('value'in _0x251a94)_0x251a94['writable']=!![];Object[_0x96c007(0x12d)](_0x88b189,_toPropertyKey(_0x251a94[_0x96c007(0x13f)]),_0x251a94);}}function _0x45bf(_0x3efa91,_0x579cf3){_0x3efa91=_0x3efa91-0x119;var _0x20d43a=_0x20d4();var _0x45bf42=_0x20d43a[_0x3efa91];if(_0x45bf['GxJJWW']===undefined){var _0x2f07f2=function(_0x53d333){var _0x1a904d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x404007='',_0x57c781='';for(var _0x283c2c=0x0,_0x2eb4a6,_0x2ca360,_0x1a574b=0x0;_0x2ca360=_0x53d333['charAt'](_0x1a574b++);~_0x2ca360&&(_0x2eb4a6=_0x283c2c%0x4?_0x2eb4a6*0x40+_0x2ca360:_0x2ca360,_0x283c2c++%0x4)?_0x404007+=String['fromCharCode'](0xff&_0x2eb4a6>>(-0x2*_0x283c2c&0x6)):0x0){_0x2ca360=_0x1a904d['indexOf'](_0x2ca360);}for(var _0x88b189=0x0,_0x83d9e7=_0x404007['length'];_0x88b189<_0x83d9e7;_0x88b189++){_0x57c781+='%'+('00'+_0x404007['charCodeAt'](_0x88b189)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57c781);};_0x45bf['fUKRKD']=_0x2f07f2,_0x45bf['QXvIey']={},_0x45bf['GxJJWW']=!![];}var _0x58feaa=_0x20d43a[0x0],_0x55d391=_0x3efa91+_0x58feaa,_0x4d56a8=_0x45bf['QXvIey'][_0x55d391];return!_0x4d56a8?(_0x45bf42=_0x45bf['fUKRKD'](_0x45bf42),_0x45bf['QXvIey'][_0x55d391]=_0x45bf42):_0x45bf42=_0x4d56a8,_0x45bf42;}function _createClass(_0x46b93f,_0x1a1571,_0x3d5557){var _0x2051b1=_0x45bf;if(_0x1a1571)_defineProperties(_0x46b93f['prototype'],_0x1a1571);if(_0x3d5557)_defineProperties(_0x46b93f,_0x3d5557);return Object[_0x2051b1(0x12d)](_0x46b93f,_0x2051b1(0x11d),{'writable':![]}),_0x46b93f;}function _defineProperty(_0x42c914,_0x3bb0b6,_0x4926a2){return _0x3bb0b6=_toPropertyKey(_0x3bb0b6),_0x3bb0b6 in _0x42c914?Object['defineProperty'](_0x42c914,_0x3bb0b6,{'value':_0x4926a2,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x42c914[_0x3bb0b6]=_0x4926a2,_0x42c914;}function _toPropertyKey(_0x1c7699){var _0xe538e1=_0x45bf,_0x1eb779=_toPrimitive(_0x1c7699,_0xe538e1(0x153));return _0xe538e1(0x121)==_typeof(_0x1eb779)?_0x1eb779:String(_0x1eb779);}function _0x20d4(){var _0x227ced=['B2jQzwn0','zgvMAw5LuhjVCgvYDhK','zw51BwvYywjSzq','zgvZDhjVEq','mJu1mZmYmeDotg9gBq','x2v2zw50q29TCgXLDgu','z2v0twfWq2vUDgvY','u1Ltvevnx0nmt0nl','zwXSAxbZB2LK','q2fYDgvZAwfUmW','twf0Aa','mteYoda3ndrZvMvSsg0','C2v0vMLLDW','y2XVBMu','zhvYyxrPB24','Dg9sywrPyw5Z','y2fUy2vS','y2fSBa','z2v0twfW','A2v5','Dg9qCMLTAxrPDMu','Dg9ezwDYzwvZ','mtbnsfzeB0W','AgvHzgLUzW','mtqXnJyWneXsANbIEa','y29UzMLNDxjHyMXL','ywX0','B25uAwnR','C2nLBMu','x21HCenVBNrLEhq','BgvUz3rO','ywrKrxzLBNrmAxn0zw5LCG','C2vJB25KC0rPzMzLCMvUy2u','C3rVCa','y3vYCMvUDfrPBwu','y2fTzxjH','odqWntGXwxPTr3PA','Bw92zujHy2T3yxjK','q2fUBM90ignHBgWGysbJBgfZCYbHCYbHigz1BMn0Aw9U','C3rYAw5N','C3rVCfrPBwu','sNvSAwfUrgf0zq','y2XPzw50v2LKDgG','nteZntu4mffADungyG','x3rPBwvY','mteWmJG1nJHKvK1mu2u','ChjVDg90ExbL','Cg9ZAxrPB24','q0Xbtvbfra','CgLJA0vSBgLWC29Pza','C3LTyM9S','zgvMyxvSDa','x2v2zw50q2fUy2vS','C3rHCNruAw1L','Bg5N','zNvUy3rPB24','y2XVy2Tsyw5Nzq','mZa5nJu1t1bKvhfY','y2XVy2S','x3jLC3rbBMDSzq','ywrKu2vJB25KCW'];_0x20d4=function(){return _0x227ced;};return _0x20d4();}function _toPrimitive(_0x413f24,_0x148a39){var _0x48e5a4=_0x45bf;if('object'!=_typeof(_0x413f24)||!_0x413f24)return _0x413f24;var _0x38ce09=_0x413f24[Symbol[_0x48e5a4(0x140)]];if(void 0x0!==_0x38ce09){var _0x15327e=_0x38ce09[_0x48e5a4(0x13d)](_0x413f24,_0x148a39||_0x48e5a4(0x122));if(_0x48e5a4(0x12c)!=_typeof(_0x15327e))return _0x15327e;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return('string'===_0x148a39?String:Number)(_0x413f24);}import*as _0x404007 from'deeptwins-cesium';import{lngLatAltToCartesian3}from'../tool/utils';var Rotate=(function(){var _0x18f163=_0x45bf;function _0x419d68(_0x2ef857,_0x5302b3){var _0x4a86b1=_0x45bf;_classCallCheck(this,_0x419d68),_defineProperty(this,'_mapContext',void 0x0),_defineProperty(this,_0x4a86b1(0x11b),void 0x0),_defineProperty(this,_0x4a86b1(0x131),void 0x0),_defineProperty(this,'_eventCancel',void 0x0),_defineProperty(this,'_restAngle',void 0x0);var _0x247a9c=_0x5302b3||{},_0x3bcc84=_0x247a9c['complete'],_0x256432=_0x247a9c[_0x4a86b1(0x13c)];_0x3bcc84&&(this[_0x4a86b1(0x131)]=_0x3bcc84),_0x256432&&(this[_0x4a86b1(0x123)]=_0x256432),this[_0x4a86b1(0x149)]=_0x2ef857[_0x4a86b1(0x149)];}return _createClass(_0x419d68,[{'key':'getMap','value':function _0xe81470(){var _0x1a3205=_0x45bf;return this['_mapContext']&&this[_0x1a3205(0x149)]['getMap']();}},{'key':'start','value':function _0x408765(_0x3c5e7a){var _0x4ca1a0=_0x45bf,_0x1d7a02=this,_0x455263=_0x3c5e7a||{},_0x255625=_0x455263[_0x4ca1a0(0x13a)],_0x4e6c6c=_0x255625===void 0x0?0xa:_0x255625,_0x517216=_0x455263['angle'],_0x584b36=_0x517216===void 0x0?0x168:_0x517216,_0x11f1eb=this[_0x4ca1a0(0x13e)]()[_0x4ca1a0(0x132)](),_0x3a7b38=_0x11f1eb[_0x4ca1a0(0x125)],_0x41cc1c=_0x11f1eb['lat'],_0x39da14=_0x11f1eb[_0x4ca1a0(0x146)],_0x496580=lngLatAltToCartesian3(_0x3a7b38,_0x41cc1c,_0x39da14),_0x4e8f2b=this['getMap']()['camera'][_0x4ca1a0(0x11e)],_0x4693f3=this['getMap']()[_0x4ca1a0(0x14f)][_0x4ca1a0(0x120)](new _0x404007['Cartesian2'](this[_0x4ca1a0(0x13e)]()['canvas'][_0x4ca1a0(0x119)]/0x2,this['getMap']()['canvas']['clientHeight']/0x2),this['getMap']()['scene']['globe'][_0x4ca1a0(0x134)]),_0x4247c9=_0x404007[_0x4ca1a0(0x135)]['distance'](_0x4e8f2b,_0x4693f3),_0x37706e=this['getMap']()[_0x4ca1a0(0x14f)]['pitch'];if(_0x4e6c6c===0x0){var _0xf901d0=this[_0x4ca1a0(0x13e)]()[_0x4ca1a0(0x14f)][_0x4ca1a0(0x143)]+_0x404007[_0x4ca1a0(0x136)]['toRadians'](_0x584b36);this['getMap']()[_0x4ca1a0(0x148)]['camera'][_0x4ca1a0(0x138)]({'destination':_0x496580,'orientation':{'heading':_0xf901d0,'pitch':_0x37706e}}),this['getMap']()['scene'][_0x4ca1a0(0x14f)][_0x4ca1a0(0x151)](_0x4247c9);this[_0x4ca1a0(0x131)]&&this[_0x4ca1a0(0x131)]();return;}var _0x49a4f7=0x168/(0x168/_0x584b36*_0x4e6c6c),_0xcf544b=_0x404007[_0x4ca1a0(0x155)]['fromDate'](new Date()),_0x124589=_0x404007[_0x4ca1a0(0x155)][_0x4ca1a0(0x12b)](_0xcf544b,_0x4e6c6c,new _0x404007[(_0x4ca1a0(0x155))]());this['getMap']()[_0x4ca1a0(0x129)][_0x4ca1a0(0x124)]=_0xcf544b[_0x4ca1a0(0x139)](),this[_0x4ca1a0(0x13e)]()[_0x4ca1a0(0x129)]['stopTime']=_0x124589[_0x4ca1a0(0x139)](),this['getMap']()[_0x4ca1a0(0x129)]['currentTime']=_0xcf544b[_0x4ca1a0(0x139)](),this['getMap']()[_0x4ca1a0(0x129)][_0x4ca1a0(0x127)]=_0x404007['ClockRange'][_0x4ca1a0(0x11f)],this['getMap']()[_0x4ca1a0(0x129)]['clockStep']=_0x404007['ClockStep'][_0x4ca1a0(0x133)];var _0x433734=this[_0x4ca1a0(0x13e)]()['camera'][_0x4ca1a0(0x143)];this['_timer']=function(){var _0x343f3d=_0x4ca1a0,_0x3eed88=_0x404007['JulianDate'][_0x343f3d(0x14c)](_0x1d7a02['getMap']()[_0x343f3d(0x129)][_0x343f3d(0x14e)],_0x1d7a02[_0x343f3d(0x13e)]()[_0x343f3d(0x129)][_0x343f3d(0x124)]),_0x159bdf=_0x404007[_0x343f3d(0x136)][_0x343f3d(0x13b)](_0x3eed88*_0x49a4f7)+_0x433734;_0x1d7a02[_0x343f3d(0x12a)]=_0x584b36-_0x404007[_0x343f3d(0x136)][_0x343f3d(0x141)](_0x404007['Math']['toRadians'](_0x3eed88*_0x49a4f7)),_0x1d7a02[_0x343f3d(0x13e)]()[_0x343f3d(0x148)][_0x343f3d(0x14f)]['setView']({'destination':_0x496580,'orientation':{'heading':_0x159bdf,'pitch':_0x37706e}}),_0x1d7a02['getMap']()[_0x343f3d(0x148)][_0x343f3d(0x14f)][_0x343f3d(0x151)](_0x4247c9),_0x404007[_0x343f3d(0x155)]['compare'](_0x1d7a02[_0x343f3d(0x13e)]()[_0x343f3d(0x129)]['currentTime'],_0x1d7a02['getMap']()['clock'][_0x343f3d(0x154)])>=0x0&&(_0x1d7a02[_0x343f3d(0x13e)]()['clock'][_0x343f3d(0x147)]['removeEventListener'](_0x1d7a02['_timer']),_0x1d7a02['_timer']=null,_0x1d7a02['_eventComplete']&&_0x1d7a02[_0x343f3d(0x131)]());},this[_0x4ca1a0(0x13e)]()['clock'][_0x4ca1a0(0x147)][_0x4ca1a0(0x14b)](this[_0x4ca1a0(0x11b)]);}},{'key':_0x18f163(0x14d),'value':function _0x2bf70b(){var _0x1c40bb=_0x18f163;this[_0x1c40bb(0x11b)]&&this['getMap']()[_0x1c40bb(0x129)]['onTick']['removeEventListener'](this['_timer']),this['_timer']=null;if(this[_0x1c40bb(0x123)]){var _0xce14bb=_0x404007[_0x1c40bb(0x155)]['compare'](this[_0x1c40bb(0x13e)]()[_0x1c40bb(0x129)]['currentTime'],this['getMap']()['clock']['stopTime']);this['_eventCancel']({'restTime':_0xce14bb>=0x0?0x0:_0xce14bb*-0x1,'restAngle':this['_restAngle']<=0x0?0x0:this['_restAngle']});}}},{'key':_0x18f163(0x12f),'value':function _0xb6a546(){var _0x58f704=_0x18f163;this['_timer']&&this['getMap']()[_0x58f704(0x129)][_0x58f704(0x147)]['removeEventListener'](this['_timer']),this[_0x58f704(0x11b)]=null;}}]),_0x419d68;}());export{Rotate as default};
@@ -1,99 +1 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- import * as Cesium from 'deeptwins-cesium';
9
- // 镜头原地旋转
10
- var RotateInPlace = /*#__PURE__*/function () {
11
- function RotateInPlace(map, options) {
12
- _classCallCheck(this, RotateInPlace);
13
- _defineProperty(this, "_mapContext", void 0);
14
- _defineProperty(this, "_timer", void 0);
15
- _defineProperty(this, "_eventComplete", void 0);
16
- _defineProperty(this, "_eventCancel", void 0);
17
- _defineProperty(this, "_restAngle", void 0);
18
- var _ref = options || {},
19
- complete = _ref.complete,
20
- cancel = _ref.cancel;
21
- complete && (this._eventComplete = complete);
22
- cancel && (this._eventCancel = cancel);
23
- this._mapContext = map._mapContext;
24
- }
25
- _createClass(RotateInPlace, [{
26
- key: "getMap",
27
- value: function getMap() {
28
- return this._mapContext && this._mapContext.getMap();
29
- }
30
- }, {
31
- key: "start",
32
- value: function start(options) {
33
- var _this = this;
34
- var _ref2 = options || {},
35
- _ref2$duration = _ref2.duration,
36
- duration = _ref2$duration === void 0 ? 10 : _ref2$duration,
37
- _ref2$angle = _ref2.angle,
38
- angle = _ref2$angle === void 0 ? 360 : _ref2$angle;
39
- // 每秒飞行的角度
40
- var angleOneSecond = 360 / (360 / angle * duration);
41
- // 倾斜角
42
- var pitch = this.getMap().camera.pitch;
43
-
44
- // 开始时间
45
- var startTime = Cesium.JulianDate.fromDate(new Date());
46
- // 结束时间
47
- var stopTime = Cesium.JulianDate.addSeconds(startTime, duration, new Cesium.JulianDate());
48
- this.getMap().clock.startTime = startTime.clone(); // 开始时间
49
- this.getMap().clock.stopTime = stopTime.clone(); // 结速时间
50
- this.getMap().clock.currentTime = startTime.clone(); // 当前时间
51
- this.getMap().clock.clockRange = Cesium.ClockRange.CLAMPED; // 行为方式
52
- this.getMap().clock.clockStep = Cesium.ClockStep.SYSTEM_CLOCK; // 时钟设置为当前系统时间; 忽略所有其他设置。
53
- // 相机的当前heading
54
- var initialHeading = this.getMap().camera.heading;
55
- this._timer = function () {
56
- // 当前已经过去的时间,单位s
57
- var delTime = Cesium.JulianDate.secondsDifference(_this.getMap().clock.currentTime, _this.getMap().clock.startTime);
58
- // 修改heading
59
- var heading = Cesium.Math.toRadians(delTime * angleOneSecond) + initialHeading;
60
- _this._restAngle = angle - Cesium.Math.toDegrees(Cesium.Math.toRadians(delTime * angleOneSecond));
61
- _this.getMap().scene.camera.setView({
62
- orientation: {
63
- heading: heading,
64
- pitch: pitch
65
- }
66
- });
67
- if (Cesium.JulianDate.compare(_this.getMap().clock.currentTime, _this.getMap().clock.stopTime) >= 0) {
68
- _this.getMap().clock.onTick.removeEventListener(_this._timer);
69
- _this._timer = null;
70
- if (_this._eventComplete) {
71
- _this._eventComplete();
72
- }
73
- }
74
- };
75
- this.getMap().clock.onTick.addEventListener(this._timer);
76
- }
77
- }, {
78
- key: "stop",
79
- value: function stop() {
80
- this._timer && this.getMap().clock.onTick.removeEventListener(this._timer);
81
- this._timer = null;
82
- if (this._eventCancel) {
83
- var time = Cesium.JulianDate.compare(this.getMap().clock.currentTime, this.getMap().clock.stopTime);
84
- this._eventCancel({
85
- restTime: time >= 0 ? 0 : time * -1,
86
- restAngle: this._restAngle <= 0 ? 0 : this._restAngle
87
- });
88
- }
89
- }
90
- }, {
91
- key: "destroy",
92
- value: function destroy() {
93
- this._timer && this.getMap().clock.onTick.removeEventListener(this._timer);
94
- this._timer = null;
95
- }
96
- }]);
97
- return RotateInPlace;
98
- }();
99
- export { RotateInPlace as default };
1
+ function _0x3a09(){var _0x1f6127=['z2v0twfW','mJyZmdCYohbzrxbABW','u1Ltvevnx0nmt0nl','zw51BwvYywjSzq','zNvUy3rPB24','A2v5','y3vYCMvUDfrPBwu','nZiZmZu2nuXqAwLlCa','q0Xbtvbfra','y2XVy2S','Dg9sywrPyw5Z','Dg9ezwDYzwvZ','mJf0BxDZv3y','q2XVy2TtDgvW','ChjVDg90ExbL','y2XVBMu','nJu1ndi2mLzzENzXrq','y29UC3rYDwn0B3i','mti4mda2oxLLs1HlCG','mZK1meLXBuHtuG','y2fTzxjH','mZGZnhvrwM9ZAq','x3rPBwvY','qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4','B2jQzwn0','x2v2zw50q2fUy2vS','mta1quz6u2zX','DMfSDwu','nNHwtKLutG','C3rHCNq','C3rHCNruAw1L','zgvMyxvSDa','x2v2zw50q29TCgXLDgu','zgvMAw5LuhjVCgvYDhK','AxrLCMf0B3i','mJm0ntGYogfOs2LtyG','C3LTyM9S','x21HCenVBNrLEhq','y2XVy2Tsyw5Nzq','B25uAwnR','mZG1nZrPt1LRs2O','C2nLBMu','y2fSBa','CMvTB3zLrxzLBNrmAxn0zw5LCG','q2fUBM90ignHBgWGysbJBgfZCYbHCYbHigz1BMn0Aw9U','x3jLC3rbBMDSzq','C3rVCfrPBwu','sNvSAwfUrgf0zq','q2XVy2Tsyw5Nzq'];_0x3a09=function(){return _0x1f6127;};return _0x3a09();}(function(_0x17f2c4,_0x46e921){var _0x1d2364=_0x5c03,_0x7e97a4=_0x17f2c4();while(!![]){try{var _0x33f428=-parseInt(_0x1d2364(0x159))/0x1+parseInt(_0x1d2364(0x13e))/0x2*(parseInt(_0x1d2364(0x130))/0x3)+-parseInt(_0x1d2364(0x139))/0x4+-parseInt(_0x1d2364(0x14e))/0x5*(-parseInt(_0x1d2364(0x132))/0x6)+-parseInt(_0x1d2364(0x153))/0x7*(-parseInt(_0x1d2364(0x148))/0x8)+parseInt(_0x1d2364(0x15c))/0x9*(parseInt(_0x1d2364(0x15a))/0xa)+-parseInt(_0x1d2364(0x157))/0xb;if(_0x33f428===_0x46e921)break;else _0x7e97a4['push'](_0x7e97a4['shift']());}catch(_0xbefbc5){_0x7e97a4['push'](_0x7e97a4['shift']());}}}(_0x3a09,0xc6c67));function _typeof(_0x3591c7){'@babel/helpers - typeof';var _0x4b3dbf=_0x5c03;return _typeof=_0x4b3dbf(0x14b)==typeof Symbol&&'symbol'==typeof Symbol[_0x4b3dbf(0x138)]?function(_0x5a5303){return typeof _0x5a5303;}:function(_0x50936d){var _0x5e08c8=_0x4b3dbf;return _0x50936d&&'function'==typeof Symbol&&_0x50936d[_0x5e08c8(0x158)]===Symbol&&_0x50936d!==Symbol['prototype']?_0x5e08c8(0x13a):typeof _0x50936d;},_typeof(_0x3591c7);}function _classCallCheck(_0x57a4d7,_0x1489f9){var _0xd1e446=_0x5c03;if(!(_0x57a4d7 instanceof _0x1489f9))throw new TypeError(_0xd1e446(0x142));}function _0x5c03(_0x13e52b,_0x5f399f){_0x13e52b=_0x13e52b-0x12f;var _0x3a0956=_0x3a09();var _0x5c03bf=_0x3a0956[_0x13e52b];if(_0x5c03['TDhqot']===undefined){var _0x13ee80=function(_0x1ca755){var _0x12cf21='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5a49a4='',_0x3591c7='';for(var _0x5a5303=0x0,_0x50936d,_0x57a4d7,_0x1489f9=0x0;_0x57a4d7=_0x1ca755['charAt'](_0x1489f9++);~_0x57a4d7&&(_0x50936d=_0x5a5303%0x4?_0x50936d*0x40+_0x57a4d7:_0x57a4d7,_0x5a5303++%0x4)?_0x5a49a4+=String['fromCharCode'](0xff&_0x50936d>>(-0x2*_0x5a5303&0x6)):0x0){_0x57a4d7=_0x12cf21['indexOf'](_0x57a4d7);}for(var _0x382517=0x0,_0xb7ba15=_0x5a49a4['length'];_0x382517<_0xb7ba15;_0x382517++){_0x3591c7+='%'+('00'+_0x5a49a4['charCodeAt'](_0x382517)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3591c7);};_0x5c03['tHmJYN']=_0x13ee80,_0x5c03['wpIECH']={},_0x5c03['TDhqot']=!![];}var _0x42a37f=_0x3a0956[0x0],_0x1e4570=_0x13e52b+_0x42a37f,_0x57eb6e=_0x5c03['wpIECH'][_0x1e4570];return!_0x57eb6e?(_0x5c03bf=_0x5c03['tHmJYN'](_0x5c03bf),_0x5c03['wpIECH'][_0x1e4570]=_0x5c03bf):_0x5c03bf=_0x57eb6e,_0x5c03bf;}function _defineProperties(_0x382517,_0xb7ba15){var _0x11f1c1=_0x5c03;for(var _0x5c8f71=0x0;_0x5c8f71<_0xb7ba15['length'];_0x5c8f71++){var _0x5a4176=_0xb7ba15[_0x5c8f71];_0x5a4176['enumerable']=_0x5a4176[_0x11f1c1(0x14a)]||![],_0x5a4176['configurable']=!![];if(_0x11f1c1(0x131)in _0x5a4176)_0x5a4176['writable']=!![];Object['defineProperty'](_0x382517,_toPropertyKey(_0x5a4176[_0x11f1c1(0x14c)]),_0x5a4176);}}function _createClass(_0x55090a,_0x5f0c0a,_0x1e28b0){var _0x4e0955=_0x5c03;if(_0x5f0c0a)_defineProperties(_0x55090a[_0x4e0955(0x155)],_0x5f0c0a);if(_0x1e28b0)_defineProperties(_0x55090a,_0x1e28b0);return Object[_0x4e0955(0x137)](_0x55090a,_0x4e0955(0x155),{'writable':![]}),_0x55090a;}function _defineProperty(_0x39d31e,_0x37124b,_0x541b13){return _0x37124b=_toPropertyKey(_0x37124b),_0x37124b in _0x39d31e?Object['defineProperty'](_0x39d31e,_0x37124b,{'value':_0x541b13,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x39d31e[_0x37124b]=_0x541b13,_0x39d31e;}function _toPropertyKey(_0xd00530){var _0x461697=_0x5c03,_0x291f38=_toPrimitive(_0xd00530,'string');return _0x461697(0x13a)==_typeof(_0x291f38)?_0x291f38:String(_0x291f38);}function _toPrimitive(_0x472d72,_0x16724a){var _0x2142e8=_0x5c03;if('object'!=_typeof(_0x472d72)||!_0x472d72)return _0x472d72;var _0x4e512d=_0x472d72[Symbol['toPrimitive']];if(void 0x0!==_0x4e512d){var _0x5b38ac=_0x4e512d[_0x2142e8(0x140)](_0x472d72,_0x16724a||_0x2142e8(0x135));if(_0x2142e8(0x15f)!=_typeof(_0x5b38ac))return _0x5b38ac;throw new TypeError(_0x2142e8(0x15e));}return('string'===_0x16724a?String:Number)(_0x472d72);}import*as _0x5a49a4 from'deeptwins-cesium';var RotateInPlace=(function(){var _0x5b1856=_0x5c03;function _0x920795(_0x328f56,_0x1c9cf8){var _0x38d582=_0x5c03;_classCallCheck(this,_0x920795),_defineProperty(this,_0x38d582(0x13b),void 0x0),_defineProperty(this,'_timer',void 0x0),_defineProperty(this,'_eventComplete',void 0x0),_defineProperty(this,_0x38d582(0x12f),void 0x0),_defineProperty(this,'_restAngle',void 0x0);var _0x88a762=_0x1c9cf8||{},_0x3d1ac3=_0x88a762['complete'],_0x27acff=_0x88a762['cancel'];_0x3d1ac3&&(this[_0x38d582(0x136)]=_0x3d1ac3),_0x27acff&&(this[_0x38d582(0x12f)]=_0x27acff),this[_0x38d582(0x13b)]=_0x328f56[_0x38d582(0x13b)];}return _createClass(_0x920795,[{'key':'getMap','value':function _0x27c99d(){var _0x488f4a=_0x5c03;return this[_0x488f4a(0x13b)]&&this[_0x488f4a(0x13b)][_0x488f4a(0x147)]();}},{'key':_0x5b1856(0x133),'value':function _0x1a7f34(_0x48c2a3){var _0x3b61f9=_0x5b1856,_0x4c08fb=this,_0x5c75ba=_0x48c2a3||{},_0x4fbe39=_0x5c75ba['duration'],_0x47407f=_0x4fbe39===void 0x0?0xa:_0x4fbe39,_0x258f3e=_0x5c75ba['angle'],_0x30c08d=_0x258f3e===void 0x0?0x168:_0x258f3e,_0x5dbc20=0x168/(0x168/_0x30c08d*_0x47407f),_0x5e43c8=this['getMap']()['camera']['pitch'],_0x5ce0ca=_0x5a49a4['JulianDate']['fromDate'](new Date()),_0xdeb20b=_0x5a49a4['JulianDate']['addSeconds'](_0x5ce0ca,_0x47407f,new _0x5a49a4['JulianDate']());this['getMap']()['clock'][_0x3b61f9(0x134)]=_0x5ce0ca[_0x3b61f9(0x156)](),this[_0x3b61f9(0x147)]()[_0x3b61f9(0x150)][_0x3b61f9(0x144)]=_0xdeb20b[_0x3b61f9(0x156)](),this[_0x3b61f9(0x147)]()['clock'][_0x3b61f9(0x14d)]=_0x5ce0ca['clone'](),this[_0x3b61f9(0x147)]()['clock'][_0x3b61f9(0x13c)]=_0x5a49a4[_0x3b61f9(0x146)][_0x3b61f9(0x14f)],this['getMap']()[_0x3b61f9(0x150)]['clockStep']=_0x5a49a4[_0x3b61f9(0x154)][_0x3b61f9(0x149)];var _0x300d32=this[_0x3b61f9(0x147)]()[_0x3b61f9(0x15b)]['heading'];this[_0x3b61f9(0x15d)]=function(){var _0x4bed44=_0x3b61f9,_0x1595aa=_0x5a49a4['JulianDate']['secondsDifference'](_0x4c08fb['getMap']()['clock'][_0x4bed44(0x14d)],_0x4c08fb[_0x4bed44(0x147)]()['clock'][_0x4bed44(0x134)]),_0x59136e=_0x5a49a4['Math'][_0x4bed44(0x151)](_0x1595aa*_0x5dbc20)+_0x300d32;_0x4c08fb['_restAngle']=_0x30c08d-_0x5a49a4['Math'][_0x4bed44(0x152)](_0x5a49a4['Math'][_0x4bed44(0x151)](_0x1595aa*_0x5dbc20)),_0x4c08fb['getMap']()[_0x4bed44(0x13f)]['camera']['setView']({'orientation':{'heading':_0x59136e,'pitch':_0x5e43c8}}),_0x5a49a4[_0x4bed44(0x145)]['compare'](_0x4c08fb[_0x4bed44(0x147)]()['clock']['currentTime'],_0x4c08fb[_0x4bed44(0x147)]()[_0x4bed44(0x150)]['stopTime'])>=0x0&&(_0x4c08fb[_0x4bed44(0x147)]()[_0x4bed44(0x150)][_0x4bed44(0x13d)]['removeEventListener'](_0x4c08fb[_0x4bed44(0x15d)]),_0x4c08fb[_0x4bed44(0x15d)]=null,_0x4c08fb[_0x4bed44(0x136)]&&_0x4c08fb[_0x4bed44(0x136)]());},this['getMap']()['clock'][_0x3b61f9(0x13d)]['addEventListener'](this[_0x3b61f9(0x15d)]);}},{'key':'stop','value':function _0x400bda(){var _0x5f2291=_0x5b1856;this['_timer']&&this['getMap']()['clock'][_0x5f2291(0x13d)][_0x5f2291(0x141)](this['_timer']),this['_timer']=null;if(this[_0x5f2291(0x12f)]){var _0x3cdc39=_0x5a49a4[_0x5f2291(0x145)]['compare'](this['getMap']()['clock']['currentTime'],this['getMap']()[_0x5f2291(0x150)][_0x5f2291(0x144)]);this['_eventCancel']({'restTime':_0x3cdc39>=0x0?0x0:_0x3cdc39*-0x1,'restAngle':this['_restAngle']<=0x0?0x0:this[_0x5f2291(0x143)]});}}},{'key':'destroy','value':function _0x22b97f(){var _0x7e84c8=_0x5b1856;this[_0x7e84c8(0x15d)]&&this[_0x7e84c8(0x147)]()[_0x7e84c8(0x150)][_0x7e84c8(0x13d)][_0x7e84c8(0x141)](this[_0x7e84c8(0x15d)]),this[_0x7e84c8(0x15d)]=null;}}]),_0x920795;}());export{RotateInPlace as default};
@@ -122,6 +122,51 @@ export declare const DEFAULT_DYNAMIC_WATER_STYLE: () => {
122
122
  specularIntensity: number;
123
123
  fadeFactor: number;
124
124
  };
125
+ export declare const DEFAULT_SAMPLED_TERRAIN_WATER_STYLE: () => {
126
+ show: boolean;
127
+ showLines: boolean;
128
+ timeScale: number;
129
+ coastFadeDepth: number;
130
+ largeWaveHeight: number;
131
+ largeWaveSize: number;
132
+ smallWaveHeight: number;
133
+ smallWaveSize: number;
134
+ waterSoftLightFactor: number;
135
+ waterGlossyLightFactor: number;
136
+ particleAmount: number;
137
+ shoreFadeDistance: number;
138
+ edgeFadeWidth: number;
139
+ depthColorRange: number;
140
+ minAlpha: number;
141
+ maxAlpha: number;
142
+ waterColor: string;
143
+ deepWaterColor: string;
144
+ specularColor: string;
145
+ };
146
+ export declare const DEFAULT_SAMPLED_TERRAIN_RIVER_STYLE: () => {
147
+ show: boolean;
148
+ showLines: boolean;
149
+ timeScale: number;
150
+ coastFadeDepth: number;
151
+ largeWaveHeight: number;
152
+ largeWaveSize: number;
153
+ smallWaveHeight: number;
154
+ smallWaveSize: number;
155
+ waterSoftLightFactor: number;
156
+ waterGlossyLightFactor: number;
157
+ particleAmount: number;
158
+ waterColor: string;
159
+ deepWaterColor: string;
160
+ specularColor: string;
161
+ alpha: number;
162
+ flowSpeed: number;
163
+ flowStrength: number;
164
+ flowWaveScale: number;
165
+ flowWaveStrength: number;
166
+ foamAmount: number;
167
+ foamContrast: number;
168
+ foamCoverage: number;
169
+ };
125
170
  export declare const DEFAULT_MIGRATION_EFFECT_STYLE: () => {
126
171
  show: boolean;
127
172
  arcHeight: number;
@@ -144,6 +189,36 @@ export declare const DEFAULT_MIGRATION_EFFECT_STYLE: () => {
144
189
  outlineWidth: number;
145
190
  };
146
191
  };
192
+ export declare const DEFAULT_BOUNDARY_HIGHLIGHT_STYLE: () => {
193
+ show: boolean;
194
+ height: number;
195
+ showLine: boolean;
196
+ width: number;
197
+ lineColor: string;
198
+ lineGlow: boolean;
199
+ lineGlowColor: string;
200
+ lineGlowWidth: number;
201
+ lineGlowPower: number;
202
+ lineRenderMode: string;
203
+ innerGlowColor: string;
204
+ innerGlowHighlightColor: string;
205
+ innerGlowHighlightMix: number;
206
+ innerGlowHighlightOpacity: number;
207
+ innerGlowWidth: number;
208
+ innerGlowSteps: number;
209
+ innerGlowOpacity: number;
210
+ animation: boolean;
211
+ animationDuration: number;
212
+ animationTrail: number;
213
+ minGlowOpacity: number;
214
+ label: boolean;
215
+ labelField: string;
216
+ labelClassName: string;
217
+ hover: boolean;
218
+ hoverColor: string;
219
+ hoverPickColor: string;
220
+ zIndex: number;
221
+ };
147
222
  export declare const DEFAULT_RADAR_SCAN_STYLE: () => {
148
223
  show: boolean;
149
224
  radius: number;
@@ -166,6 +241,20 @@ export declare const DEFAULT_RADAR_SCAN_STYLE: () => {
166
241
  showScanPlane: boolean;
167
242
  showThroughEllipsoid: boolean;
168
243
  };
244
+ export declare const DEFAULT_WIND_FIELD_STYLE: () => {
245
+ show: boolean;
246
+ height: number;
247
+ zIndex: number;
248
+ colorScale: string[];
249
+ frameRate: number;
250
+ maxAge: number;
251
+ globalAlpha: number;
252
+ velocityScale: number;
253
+ verticalVelocityScale: number;
254
+ paths: number;
255
+ lineWidth: number;
256
+ useCoordsDraw: boolean;
257
+ };
169
258
  export declare const DEFAULT_POINT_CLUSTER_STYLE: () => {
170
259
  pixelRange: number;
171
260
  enabled: boolean;
@@ -472,6 +561,7 @@ export declare const DEFAULT_HTML_OPTIONS: () => {
472
561
  verticalOrigin: Cesium.VerticalOrigin;
473
562
  pointerEvents: boolean;
474
563
  clampToGround: string;
564
+ scrollProxy: boolean;
475
565
  };
476
566
  export declare const DEFAULT_MODEL_OPTIONS: () => {
477
567
  show: boolean;