deeptwins-engine-3d 0.1.75 → 0.2.0

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 (239) 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.d.ts +1 -1
  86. package/dist/esm/drawer/index.js +1 -688
  87. package/dist/esm/drawer/plotUtil.js +1 -266
  88. package/dist/esm/drawer/shape/Assemble.js +1 -415
  89. package/dist/esm/drawer/shape/AttackArrow.js +1 -442
  90. package/dist/esm/drawer/shape/BaseShape.js +1 -383
  91. package/dist/esm/drawer/shape/Bow.js +1 -375
  92. package/dist/esm/drawer/shape/Circle.js +1 -461
  93. package/dist/esm/drawer/shape/Curve.js +1 -386
  94. package/dist/esm/drawer/shape/DragPoint.js +1 -211
  95. package/dist/esm/drawer/shape/Elliptic.js +1 -491
  96. package/dist/esm/drawer/shape/Formation.js +1 -395
  97. package/dist/esm/drawer/shape/PincerArrow.js +1 -445
  98. package/dist/esm/drawer/shape/Point.js +1 -131
  99. package/dist/esm/drawer/shape/Polygon.js +1 -368
  100. package/dist/esm/drawer/shape/Polyline.js +1 -325
  101. package/dist/esm/drawer/shape/RegularPolygon.js +1 -468
  102. package/dist/esm/drawer/shape/RightAngleArrow.js +1 -423
  103. package/dist/esm/drawer/shape/Sector.js +1 -568
  104. package/dist/esm/drawer/shape/StraightArrow.js +1 -422
  105. package/dist/esm/drawer/shape/SwallowtailArrow.js +1 -438
  106. package/dist/esm/drawer/types.js +1 -11
  107. package/dist/esm/drawer/utils.js +1 -381
  108. package/dist/esm/global.css +22 -1
  109. package/dist/esm/graphicLayer/BaseEntity.js +1 -51
  110. package/dist/esm/graphicLayer/BaseLayer.js +1 -730
  111. package/dist/esm/graphicLayer/BasePointPrimitive.js +1 -45
  112. package/dist/esm/graphicLayer/BasePrimitive.js +1 -36
  113. package/dist/esm/graphicLayer/BasePrimitiveInstance.js +1 -37
  114. package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
  115. package/dist/esm/graphicLayer/BaseSource.js +1 -630
  116. package/dist/esm/graphicLayer/BillboardEntity.js +1 -106
  117. package/dist/esm/graphicLayer/BillboardPrimitive.js +1 -119
  118. package/dist/esm/graphicLayer/BoxEntity.js +1 -99
  119. package/dist/esm/graphicLayer/BoxPrimitive.js +1 -48
  120. package/dist/esm/graphicLayer/BoxPrimitiveInstance.js +1 -91
  121. package/dist/esm/graphicLayer/EllipseEntity.js +1 -110
  122. package/dist/esm/graphicLayer/EllipsePrimitive.js +1 -47
  123. package/dist/esm/graphicLayer/EllipsePrimitiveInstance.js +1 -98
  124. package/dist/esm/graphicLayer/EllipsoidEntity.js +1 -118
  125. package/dist/esm/graphicLayer/EllipsoidPrimitive.js +1 -48
  126. package/dist/esm/graphicLayer/EllipsoidPrimitiveInstance.js +1 -113
  127. package/dist/esm/graphicLayer/GraphicLayerCollection.js +1 -491
  128. package/dist/esm/graphicLayer/HtmlEntity.d.ts +4 -0
  129. package/dist/esm/graphicLayer/HtmlEntity.js +1 -189
  130. package/dist/esm/graphicLayer/LabelEntity.js +1 -110
  131. package/dist/esm/graphicLayer/LabelPrimitive.js +1 -127
  132. package/dist/esm/graphicLayer/ModelEntity.js +1 -122
  133. package/dist/esm/graphicLayer/ModelPrimitive.js +1 -59
  134. package/dist/esm/graphicLayer/ModelPrimitiveInstance.js +1 -86
  135. package/dist/esm/graphicLayer/PointEntity.js +1 -94
  136. package/dist/esm/graphicLayer/PointPrimitive.js +1 -107
  137. package/dist/esm/graphicLayer/PolygonEntity.js +1 -103
  138. package/dist/esm/graphicLayer/PolygonGroundPrimitive.js +1 -49
  139. package/dist/esm/graphicLayer/PolygonGroundPrimitiveImageMaterialInstance.js +1 -87
  140. package/dist/esm/graphicLayer/PolygonPrimitive.js +1 -60
  141. package/dist/esm/graphicLayer/PolygonPrimitiveImageMaterialInstance.js +1 -84
  142. package/dist/esm/graphicLayer/PolygonPrimitiveInstance.js +1 -101
  143. package/dist/esm/graphicLayer/PolylineEntity.js +1 -96
  144. package/dist/esm/graphicLayer/PolylineGroundPrimitive.js +1 -55
  145. package/dist/esm/graphicLayer/PolylineGroundPrimitiveInstance.js +1 -85
  146. package/dist/esm/graphicLayer/PolylinePrimitive.js +1 -53
  147. package/dist/esm/graphicLayer/PolylinePrimitiveInstance.js +1 -85
  148. package/dist/esm/graphicLayer/PolylineVolumeEntity.js +1 -105
  149. package/dist/esm/graphicLayer/PolylineVolumePrimitive.js +1 -47
  150. package/dist/esm/graphicLayer/PolylineVolumePrimitiveInstance.js +1 -94
  151. package/dist/esm/graphicLayer/WallEntity.js +1 -96
  152. package/dist/esm/graphicLayer/WallPrimitive.js +1 -47
  153. package/dist/esm/graphicLayer/WallPrimitiveInstance.js +1 -88
  154. package/dist/esm/index.d.ts +5 -0
  155. package/dist/esm/index.js +1 -173
  156. package/dist/esm/lowAltitude/BarrierLayer.js +1 -172
  157. package/dist/esm/lowAltitude/BaseGridMvtLayer.js +1 -122
  158. package/dist/esm/lowAltitude/FactorLayer.js +1 -199
  159. package/dist/esm/lowAltitude/FlightPlanning.js +1 -411
  160. package/dist/esm/lowAltitude/FlightRiskEvaluation.js +1 -543
  161. package/dist/esm/lowAltitude/GridDraw.js +1 -137
  162. package/dist/esm/lowAltitude/PoiLayer.js +1 -74
  163. package/dist/esm/lowAltitude/RoutePlanning.d.ts +85 -0
  164. package/dist/esm/lowAltitude/RoutePlanning.js +1 -0
  165. package/dist/esm/lowAltitude/VisitLayer.js +1 -180
  166. package/dist/esm/map/Event.js +1 -377
  167. package/dist/esm/map/GroundSkyBox.js +1 -166
  168. package/dist/esm/map/Map.js +1 -881
  169. package/dist/esm/map/Property.js +1 -35
  170. package/dist/esm/material/AtmosphericDispersion.js +1 -569
  171. package/dist/esm/material/GlobalVolumetricCloud.js +1 -377
  172. package/dist/esm/material/VolumeCloud.js +1 -115
  173. package/dist/esm/material/WeatherEffects.js +1 -351
  174. package/dist/esm/material/entity/BaseMaterialProperty.js +1 -51
  175. package/dist/esm/material/entity/CircleWaveMaterialProperty.js +1 -101
  176. package/dist/esm/material/entity/DynamicWallMaterialProperty.js +1 -101
  177. package/dist/esm/material/entity/ImageGlowingMaterialProperty.js +1 -89
  178. package/dist/esm/material/entity/ImageMaterialProperty.js +1 -34
  179. package/dist/esm/material/entity/PolylineTrailLinkMaterialProperty.js +1 -132
  180. package/dist/esm/material/primitive/BaseMaterialAppearance.js +1 -28
  181. package/dist/esm/material/primitive/ImageGlowingMaterialAppearance.js +1 -77
  182. package/dist/esm/material/primitive/ImageMaterialAppearance.js +1 -77
  183. package/dist/esm/measure/Area.js +1 -220
  184. package/dist/esm/measure/BaseDraw.js +1 -105
  185. package/dist/esm/measure/Distance.js +1 -223
  186. package/dist/esm/measure/index.js +1 -266
  187. package/dist/esm/measure/types.js +1 -17
  188. package/dist/esm/measure/utils.js +1 -319
  189. package/dist/esm/particle/BaseParticle.js +1 -196
  190. package/dist/esm/particle/FireParticle.js +1 -65
  191. package/dist/esm/particle/FountainParticle.js +1 -80
  192. package/dist/esm/particle/SmokeParticle.js +1 -65
  193. package/dist/esm/particle/common.js +1 -23
  194. package/dist/esm/particle/index.js +1 -5
  195. package/dist/esm/property/PositionProperty.js +1 -56
  196. package/dist/esm/tileLayer/ArcGisLayer.js +1 -41
  197. package/dist/esm/tileLayer/CustomRasterClipWorkerClient.js +1 -147
  198. package/dist/esm/tileLayer/CustomRasterLayer.js +1 -1126
  199. package/dist/esm/tileLayer/ImageryLayer.js +1 -44
  200. package/dist/esm/tileLayer/MvtVectorLoad.js +1 -1549
  201. package/dist/esm/tileLayer/MvtVectorWorkerClient.js +1 -126
  202. package/dist/esm/tileLayer/RasterLayer.js +1 -23
  203. package/dist/esm/tileLayer/WmsLayer.js +1 -26
  204. package/dist/esm/tileLayer/WmtsLayer.js +1 -23
  205. package/dist/esm/tool/BuildClampedPolygonGrid.js +1 -278
  206. package/dist/esm/tool/Compass.js +1 -282
  207. package/dist/esm/tool/PrimitiveCluster.js +1 -706
  208. package/dist/esm/tool/TimerInterval.js +1 -58
  209. package/dist/esm/tool/common.js +1 -405
  210. package/dist/esm/tool/fetch.js +1 -222
  211. package/dist/esm/tool/heatmap.js +1 -631
  212. package/dist/esm/tool/utils.d.ts +1 -0
  213. package/dist/esm/tool/utils.js +1 -501
  214. package/dist/esm/toolTip/index.js +1 -79
  215. package/dist/esm/videoFusion/BaseVideo.d.ts +7 -0
  216. package/dist/esm/videoFusion/BaseVideo.js +1 -330
  217. package/dist/esm/videoFusion/VideoProject.js +1 -230
  218. package/dist/esm/videoFusion/VideoTexture.js +1 -163
  219. package/dist/esm/visualization/BaseHeatmap.js +1 -271
  220. package/dist/esm/visualization/BoundaryHighlight.d.ts +136 -0
  221. package/dist/esm/visualization/BoundaryHighlight.js +1 -0
  222. package/dist/esm/visualization/DynamicWater.js +1 -289
  223. package/dist/esm/visualization/Frustum.js +1 -248
  224. package/dist/esm/visualization/Heatmap2d.js +1 -97
  225. package/dist/esm/visualization/Heatmap3d.js +1 -281
  226. package/dist/esm/visualization/MigrationEffect.js +1 -397
  227. package/dist/esm/visualization/PointCluster.js +1 -220
  228. package/dist/esm/visualization/RadarScan.js +1 -333
  229. package/dist/esm/visualization/SampledTerrainRiver.d.ts +180 -0
  230. package/dist/esm/visualization/SampledTerrainRiver.js +1 -0
  231. package/dist/esm/visualization/SampledTerrainWater.d.ts +170 -0
  232. package/dist/esm/visualization/SampledTerrainWater.js +1 -0
  233. package/dist/esm/visualization/WindField.d.ts +72 -0
  234. package/dist/esm/visualization/WindField.js +1 -0
  235. package/dist/esm/visualization/windCore.d.ts +161 -0
  236. package/dist/esm/visualization/windCore.js +8 -0
  237. package/dist/umd/deeptwins-engine-3d.min.css +1 -1
  238. package/dist/umd/deeptwins-engine-3d.min.js +1 -1
  239. package/package.json +6 -4
@@ -0,0 +1,500 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.42
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import {
27
+ defaultValue_default
28
+ } from "./chunk-ATLWOZFF.js";
29
+ import {
30
+ Check_default,
31
+ DeveloperError_default
32
+ } from "./chunk-PN3GIZ5Q.js";
33
+ import {
34
+ __commonJS,
35
+ __toESM,
36
+ defined_default
37
+ } from "./chunk-JKLMRPKK.js";
38
+
39
+ // node_modules/mersenne-twister/src/mersenne-twister.js
40
+ var require_mersenne_twister = __commonJS({
41
+ "node_modules/mersenne-twister/src/mersenne-twister.js"(exports, module) {
42
+ var MersenneTwister2 = function(seed) {
43
+ if (seed == void 0) {
44
+ seed = (/* @__PURE__ */ new Date()).getTime();
45
+ }
46
+ this.N = 624;
47
+ this.M = 397;
48
+ this.MATRIX_A = 2567483615;
49
+ this.UPPER_MASK = 2147483648;
50
+ this.LOWER_MASK = 2147483647;
51
+ this.mt = new Array(this.N);
52
+ this.mti = this.N + 1;
53
+ if (seed.constructor == Array) {
54
+ this.init_by_array(seed, seed.length);
55
+ } else {
56
+ this.init_seed(seed);
57
+ }
58
+ };
59
+ MersenneTwister2.prototype.init_seed = function(s) {
60
+ this.mt[0] = s >>> 0;
61
+ for (this.mti = 1; this.mti < this.N; this.mti++) {
62
+ var s = this.mt[this.mti - 1] ^ this.mt[this.mti - 1] >>> 30;
63
+ this.mt[this.mti] = (((s & 4294901760) >>> 16) * 1812433253 << 16) + (s & 65535) * 1812433253 + this.mti;
64
+ this.mt[this.mti] >>>= 0;
65
+ }
66
+ };
67
+ MersenneTwister2.prototype.init_by_array = function(init_key, key_length) {
68
+ var i, j, k;
69
+ this.init_seed(19650218);
70
+ i = 1;
71
+ j = 0;
72
+ k = this.N > key_length ? this.N : key_length;
73
+ for (; k; k--) {
74
+ var s = this.mt[i - 1] ^ this.mt[i - 1] >>> 30;
75
+ this.mt[i] = (this.mt[i] ^ (((s & 4294901760) >>> 16) * 1664525 << 16) + (s & 65535) * 1664525) + init_key[j] + j;
76
+ this.mt[i] >>>= 0;
77
+ i++;
78
+ j++;
79
+ if (i >= this.N) {
80
+ this.mt[0] = this.mt[this.N - 1];
81
+ i = 1;
82
+ }
83
+ if (j >= key_length) j = 0;
84
+ }
85
+ for (k = this.N - 1; k; k--) {
86
+ var s = this.mt[i - 1] ^ this.mt[i - 1] >>> 30;
87
+ this.mt[i] = (this.mt[i] ^ (((s & 4294901760) >>> 16) * 1566083941 << 16) + (s & 65535) * 1566083941) - i;
88
+ this.mt[i] >>>= 0;
89
+ i++;
90
+ if (i >= this.N) {
91
+ this.mt[0] = this.mt[this.N - 1];
92
+ i = 1;
93
+ }
94
+ }
95
+ this.mt[0] = 2147483648;
96
+ };
97
+ MersenneTwister2.prototype.random_int = function() {
98
+ var y;
99
+ var mag01 = new Array(0, this.MATRIX_A);
100
+ if (this.mti >= this.N) {
101
+ var kk;
102
+ if (this.mti == this.N + 1)
103
+ this.init_seed(5489);
104
+ for (kk = 0; kk < this.N - this.M; kk++) {
105
+ y = this.mt[kk] & this.UPPER_MASK | this.mt[kk + 1] & this.LOWER_MASK;
106
+ this.mt[kk] = this.mt[kk + this.M] ^ y >>> 1 ^ mag01[y & 1];
107
+ }
108
+ for (; kk < this.N - 1; kk++) {
109
+ y = this.mt[kk] & this.UPPER_MASK | this.mt[kk + 1] & this.LOWER_MASK;
110
+ this.mt[kk] = this.mt[kk + (this.M - this.N)] ^ y >>> 1 ^ mag01[y & 1];
111
+ }
112
+ y = this.mt[this.N - 1] & this.UPPER_MASK | this.mt[0] & this.LOWER_MASK;
113
+ this.mt[this.N - 1] = this.mt[this.M - 1] ^ y >>> 1 ^ mag01[y & 1];
114
+ this.mti = 0;
115
+ }
116
+ y = this.mt[this.mti++];
117
+ y ^= y >>> 11;
118
+ y ^= y << 7 & 2636928640;
119
+ y ^= y << 15 & 4022730752;
120
+ y ^= y >>> 18;
121
+ return y >>> 0;
122
+ };
123
+ MersenneTwister2.prototype.random_int31 = function() {
124
+ return this.random_int() >>> 1;
125
+ };
126
+ MersenneTwister2.prototype.random_incl = function() {
127
+ return this.random_int() * (1 / 4294967295);
128
+ };
129
+ MersenneTwister2.prototype.random = function() {
130
+ return this.random_int() * (1 / 4294967296);
131
+ };
132
+ MersenneTwister2.prototype.random_excl = function() {
133
+ return (this.random_int() + 0.5) * (1 / 4294967296);
134
+ };
135
+ MersenneTwister2.prototype.random_long = function() {
136
+ var a = this.random_int() >>> 5, b = this.random_int() >>> 6;
137
+ return (a * 67108864 + b) * (1 / 9007199254740992);
138
+ };
139
+ module.exports = MersenneTwister2;
140
+ }
141
+ });
142
+
143
+ // packages/engine/Source/Core/Math.js
144
+ var import_mersenne_twister = __toESM(require_mersenne_twister(), 1);
145
+ var CesiumMath = {};
146
+ CesiumMath.EPSILON1 = 0.1;
147
+ CesiumMath.EPSILON2 = 0.01;
148
+ CesiumMath.EPSILON3 = 1e-3;
149
+ CesiumMath.EPSILON4 = 1e-4;
150
+ CesiumMath.EPSILON5 = 1e-5;
151
+ CesiumMath.EPSILON6 = 1e-6;
152
+ CesiumMath.EPSILON7 = 1e-7;
153
+ CesiumMath.EPSILON8 = 1e-8;
154
+ CesiumMath.EPSILON9 = 1e-9;
155
+ CesiumMath.EPSILON10 = 1e-10;
156
+ CesiumMath.EPSILON11 = 1e-11;
157
+ CesiumMath.EPSILON12 = 1e-12;
158
+ CesiumMath.EPSILON13 = 1e-13;
159
+ CesiumMath.EPSILON14 = 1e-14;
160
+ CesiumMath.EPSILON15 = 1e-15;
161
+ CesiumMath.EPSILON16 = 1e-16;
162
+ CesiumMath.EPSILON17 = 1e-17;
163
+ CesiumMath.EPSILON18 = 1e-18;
164
+ CesiumMath.EPSILON19 = 1e-19;
165
+ CesiumMath.EPSILON20 = 1e-20;
166
+ CesiumMath.EPSILON21 = 1e-21;
167
+ CesiumMath.GRAVITATIONALPARAMETER = 3986004418e5;
168
+ CesiumMath.SOLAR_RADIUS = 6955e5;
169
+ CesiumMath.LUNAR_RADIUS = 1737400;
170
+ CesiumMath.SIXTY_FOUR_KILOBYTES = 64 * 1024;
171
+ CesiumMath.FOUR_GIGABYTES = 4 * 1024 * 1024 * 1024;
172
+ CesiumMath.sign = defaultValue_default(Math.sign, function sign(value) {
173
+ value = +value;
174
+ if (value === 0 || value !== value) {
175
+ return value;
176
+ }
177
+ return value > 0 ? 1 : -1;
178
+ });
179
+ CesiumMath.signNotZero = function(value) {
180
+ return value < 0 ? -1 : 1;
181
+ };
182
+ CesiumMath.toSNorm = function(value, rangeMaximum) {
183
+ rangeMaximum = defaultValue_default(rangeMaximum, 255);
184
+ return Math.round(
185
+ (CesiumMath.clamp(value, -1, 1) * 0.5 + 0.5) * rangeMaximum
186
+ );
187
+ };
188
+ CesiumMath.fromSNorm = function(value, rangeMaximum) {
189
+ rangeMaximum = defaultValue_default(rangeMaximum, 255);
190
+ return CesiumMath.clamp(value, 0, rangeMaximum) / rangeMaximum * 2 - 1;
191
+ };
192
+ CesiumMath.normalize = function(value, rangeMinimum, rangeMaximum) {
193
+ rangeMaximum = Math.max(rangeMaximum - rangeMinimum, 0);
194
+ return rangeMaximum === 0 ? 0 : CesiumMath.clamp((value - rangeMinimum) / rangeMaximum, 0, 1);
195
+ };
196
+ CesiumMath.sinh = defaultValue_default(Math.sinh, function sinh(value) {
197
+ return (Math.exp(value) - Math.exp(-value)) / 2;
198
+ });
199
+ CesiumMath.cosh = defaultValue_default(Math.cosh, function cosh(value) {
200
+ return (Math.exp(value) + Math.exp(-value)) / 2;
201
+ });
202
+ CesiumMath.lerp = function(p, q, time) {
203
+ return (1 - time) * p + time * q;
204
+ };
205
+ CesiumMath.PI = Math.PI;
206
+ CesiumMath.ONE_OVER_PI = 1 / Math.PI;
207
+ CesiumMath.PI_OVER_TWO = Math.PI / 2;
208
+ CesiumMath.PI_OVER_THREE = Math.PI / 3;
209
+ CesiumMath.PI_OVER_FOUR = Math.PI / 4;
210
+ CesiumMath.PI_OVER_SIX = Math.PI / 6;
211
+ CesiumMath.THREE_PI_OVER_TWO = 3 * Math.PI / 2;
212
+ CesiumMath.TWO_PI = 2 * Math.PI;
213
+ CesiumMath.ONE_OVER_TWO_PI = 1 / (2 * Math.PI);
214
+ CesiumMath.RADIANS_PER_DEGREE = Math.PI / 180;
215
+ CesiumMath.DEGREES_PER_RADIAN = 180 / Math.PI;
216
+ CesiumMath.RADIANS_PER_ARCSECOND = CesiumMath.RADIANS_PER_DEGREE / 3600;
217
+ CesiumMath.toRadians = function(degrees) {
218
+ if (!defined_default(degrees)) {
219
+ throw new DeveloperError_default("degrees is required.");
220
+ }
221
+ return degrees * CesiumMath.RADIANS_PER_DEGREE;
222
+ };
223
+ CesiumMath.toDegrees = function(radians) {
224
+ if (!defined_default(radians)) {
225
+ throw new DeveloperError_default("radians is required.");
226
+ }
227
+ return radians * CesiumMath.DEGREES_PER_RADIAN;
228
+ };
229
+ CesiumMath.convertLongitudeRange = function(angle) {
230
+ if (!defined_default(angle)) {
231
+ throw new DeveloperError_default("angle is required.");
232
+ }
233
+ const twoPi = CesiumMath.TWO_PI;
234
+ const simplified = angle - Math.floor(angle / twoPi) * twoPi;
235
+ if (simplified < -Math.PI) {
236
+ return simplified + twoPi;
237
+ }
238
+ if (simplified >= Math.PI) {
239
+ return simplified - twoPi;
240
+ }
241
+ return simplified;
242
+ };
243
+ CesiumMath.clampToLatitudeRange = function(angle) {
244
+ if (!defined_default(angle)) {
245
+ throw new DeveloperError_default("angle is required.");
246
+ }
247
+ return CesiumMath.clamp(
248
+ angle,
249
+ -1 * CesiumMath.PI_OVER_TWO,
250
+ CesiumMath.PI_OVER_TWO
251
+ );
252
+ };
253
+ CesiumMath.negativePiToPi = function(angle) {
254
+ if (!defined_default(angle)) {
255
+ throw new DeveloperError_default("angle is required.");
256
+ }
257
+ if (angle >= -CesiumMath.PI && angle <= CesiumMath.PI) {
258
+ return angle;
259
+ }
260
+ return CesiumMath.zeroToTwoPi(angle + CesiumMath.PI) - CesiumMath.PI;
261
+ };
262
+ CesiumMath.zeroToTwoPi = function(angle) {
263
+ if (!defined_default(angle)) {
264
+ throw new DeveloperError_default("angle is required.");
265
+ }
266
+ if (angle >= 0 && angle <= CesiumMath.TWO_PI) {
267
+ return angle;
268
+ }
269
+ const mod = CesiumMath.mod(angle, CesiumMath.TWO_PI);
270
+ if (Math.abs(mod) < CesiumMath.EPSILON14 && Math.abs(angle) > CesiumMath.EPSILON14) {
271
+ return CesiumMath.TWO_PI;
272
+ }
273
+ return mod;
274
+ };
275
+ CesiumMath.mod = function(m, n) {
276
+ if (!defined_default(m)) {
277
+ throw new DeveloperError_default("m is required.");
278
+ }
279
+ if (!defined_default(n)) {
280
+ throw new DeveloperError_default("n is required.");
281
+ }
282
+ if (n === 0) {
283
+ throw new DeveloperError_default("divisor cannot be 0.");
284
+ }
285
+ if (CesiumMath.sign(m) === CesiumMath.sign(n) && Math.abs(m) < Math.abs(n)) {
286
+ return m;
287
+ }
288
+ return (m % n + n) % n;
289
+ };
290
+ CesiumMath.equalsEpsilon = function(left, right, relativeEpsilon, absoluteEpsilon) {
291
+ if (!defined_default(left)) {
292
+ throw new DeveloperError_default("left is required.");
293
+ }
294
+ if (!defined_default(right)) {
295
+ throw new DeveloperError_default("right is required.");
296
+ }
297
+ relativeEpsilon = defaultValue_default(relativeEpsilon, 0);
298
+ absoluteEpsilon = defaultValue_default(absoluteEpsilon, relativeEpsilon);
299
+ const absDiff = Math.abs(left - right);
300
+ return absDiff <= absoluteEpsilon || absDiff <= relativeEpsilon * Math.max(Math.abs(left), Math.abs(right));
301
+ };
302
+ CesiumMath.lessThan = function(left, right, absoluteEpsilon) {
303
+ if (!defined_default(left)) {
304
+ throw new DeveloperError_default("first is required.");
305
+ }
306
+ if (!defined_default(right)) {
307
+ throw new DeveloperError_default("second is required.");
308
+ }
309
+ if (!defined_default(absoluteEpsilon)) {
310
+ throw new DeveloperError_default("absoluteEpsilon is required.");
311
+ }
312
+ return left - right < -absoluteEpsilon;
313
+ };
314
+ CesiumMath.lessThanOrEquals = function(left, right, absoluteEpsilon) {
315
+ if (!defined_default(left)) {
316
+ throw new DeveloperError_default("first is required.");
317
+ }
318
+ if (!defined_default(right)) {
319
+ throw new DeveloperError_default("second is required.");
320
+ }
321
+ if (!defined_default(absoluteEpsilon)) {
322
+ throw new DeveloperError_default("absoluteEpsilon is required.");
323
+ }
324
+ return left - right < absoluteEpsilon;
325
+ };
326
+ CesiumMath.greaterThan = function(left, right, absoluteEpsilon) {
327
+ if (!defined_default(left)) {
328
+ throw new DeveloperError_default("first is required.");
329
+ }
330
+ if (!defined_default(right)) {
331
+ throw new DeveloperError_default("second is required.");
332
+ }
333
+ if (!defined_default(absoluteEpsilon)) {
334
+ throw new DeveloperError_default("absoluteEpsilon is required.");
335
+ }
336
+ return left - right > absoluteEpsilon;
337
+ };
338
+ CesiumMath.greaterThanOrEquals = function(left, right, absoluteEpsilon) {
339
+ if (!defined_default(left)) {
340
+ throw new DeveloperError_default("first is required.");
341
+ }
342
+ if (!defined_default(right)) {
343
+ throw new DeveloperError_default("second is required.");
344
+ }
345
+ if (!defined_default(absoluteEpsilon)) {
346
+ throw new DeveloperError_default("absoluteEpsilon is required.");
347
+ }
348
+ return left - right > -absoluteEpsilon;
349
+ };
350
+ var factorials = [1];
351
+ CesiumMath.factorial = function(n) {
352
+ if (typeof n !== "number" || n < 0) {
353
+ throw new DeveloperError_default(
354
+ "A number greater than or equal to 0 is required."
355
+ );
356
+ }
357
+ const length = factorials.length;
358
+ if (n >= length) {
359
+ let sum = factorials[length - 1];
360
+ for (let i = length; i <= n; i++) {
361
+ const next = sum * i;
362
+ factorials.push(next);
363
+ sum = next;
364
+ }
365
+ }
366
+ return factorials[n];
367
+ };
368
+ CesiumMath.incrementWrap = function(n, maximumValue, minimumValue) {
369
+ minimumValue = defaultValue_default(minimumValue, 0);
370
+ if (!defined_default(n)) {
371
+ throw new DeveloperError_default("n is required.");
372
+ }
373
+ if (maximumValue <= minimumValue) {
374
+ throw new DeveloperError_default("maximumValue must be greater than minimumValue.");
375
+ }
376
+ ++n;
377
+ if (n > maximumValue) {
378
+ n = minimumValue;
379
+ }
380
+ return n;
381
+ };
382
+ CesiumMath.isPowerOfTwo = function(n) {
383
+ if (typeof n !== "number" || n < 0 || n > 4294967295) {
384
+ throw new DeveloperError_default("A number between 0 and (2^32)-1 is required.");
385
+ }
386
+ return n !== 0 && (n & n - 1) === 0;
387
+ };
388
+ CesiumMath.nextPowerOfTwo = function(n) {
389
+ if (typeof n !== "number" || n < 0 || n > 2147483648) {
390
+ throw new DeveloperError_default("A number between 0 and 2^31 is required.");
391
+ }
392
+ --n;
393
+ n |= n >> 1;
394
+ n |= n >> 2;
395
+ n |= n >> 4;
396
+ n |= n >> 8;
397
+ n |= n >> 16;
398
+ ++n;
399
+ return n;
400
+ };
401
+ CesiumMath.previousPowerOfTwo = function(n) {
402
+ if (typeof n !== "number" || n < 0 || n > 4294967295) {
403
+ throw new DeveloperError_default("A number between 0 and (2^32)-1 is required.");
404
+ }
405
+ n |= n >> 1;
406
+ n |= n >> 2;
407
+ n |= n >> 4;
408
+ n |= n >> 8;
409
+ n |= n >> 16;
410
+ n |= n >> 32;
411
+ n = (n >>> 0) - (n >>> 1);
412
+ return n;
413
+ };
414
+ CesiumMath.clamp = function(value, min, max) {
415
+ Check_default.typeOf.number("value", value);
416
+ Check_default.typeOf.number("min", min);
417
+ Check_default.typeOf.number("max", max);
418
+ return value < min ? min : value > max ? max : value;
419
+ };
420
+ var randomNumberGenerator = new import_mersenne_twister.default();
421
+ CesiumMath.setRandomNumberSeed = function(seed) {
422
+ if (!defined_default(seed)) {
423
+ throw new DeveloperError_default("seed is required.");
424
+ }
425
+ randomNumberGenerator = new import_mersenne_twister.default(seed);
426
+ };
427
+ CesiumMath.nextRandomNumber = function() {
428
+ return randomNumberGenerator.random();
429
+ };
430
+ CesiumMath.randomBetween = function(min, max) {
431
+ return CesiumMath.nextRandomNumber() * (max - min) + min;
432
+ };
433
+ CesiumMath.acosClamped = function(value) {
434
+ if (!defined_default(value)) {
435
+ throw new DeveloperError_default("value is required.");
436
+ }
437
+ return Math.acos(CesiumMath.clamp(value, -1, 1));
438
+ };
439
+ CesiumMath.asinClamped = function(value) {
440
+ if (!defined_default(value)) {
441
+ throw new DeveloperError_default("value is required.");
442
+ }
443
+ return Math.asin(CesiumMath.clamp(value, -1, 1));
444
+ };
445
+ CesiumMath.chordLength = function(angle, radius) {
446
+ if (!defined_default(angle)) {
447
+ throw new DeveloperError_default("angle is required.");
448
+ }
449
+ if (!defined_default(radius)) {
450
+ throw new DeveloperError_default("radius is required.");
451
+ }
452
+ return 2 * radius * Math.sin(angle * 0.5);
453
+ };
454
+ CesiumMath.logBase = function(number, base) {
455
+ if (!defined_default(number)) {
456
+ throw new DeveloperError_default("number is required.");
457
+ }
458
+ if (!defined_default(base)) {
459
+ throw new DeveloperError_default("base is required.");
460
+ }
461
+ return Math.log(number) / Math.log(base);
462
+ };
463
+ CesiumMath.cbrt = defaultValue_default(Math.cbrt, function cbrt(number) {
464
+ const result = Math.pow(Math.abs(number), 1 / 3);
465
+ return number < 0 ? -result : result;
466
+ });
467
+ CesiumMath.log2 = defaultValue_default(Math.log2, function log2(number) {
468
+ return Math.log(number) * Math.LOG2E;
469
+ });
470
+ CesiumMath.fog = function(distanceToCamera, density) {
471
+ const scalar = distanceToCamera * density;
472
+ return 1 - Math.exp(-(scalar * scalar));
473
+ };
474
+ CesiumMath.fastApproximateAtan = function(x) {
475
+ Check_default.typeOf.number("x", x);
476
+ return x * (-0.1784 * Math.abs(x) - 0.0663 * x * x + 1.0301);
477
+ };
478
+ CesiumMath.fastApproximateAtan2 = function(x, y) {
479
+ Check_default.typeOf.number("x", x);
480
+ Check_default.typeOf.number("y", y);
481
+ let opposite;
482
+ let t = Math.abs(x);
483
+ opposite = Math.abs(y);
484
+ const adjacent = Math.max(t, opposite);
485
+ opposite = Math.min(t, opposite);
486
+ const oppositeOverAdjacent = opposite / adjacent;
487
+ if (isNaN(oppositeOverAdjacent)) {
488
+ throw new DeveloperError_default("either x or y must be nonzero");
489
+ }
490
+ t = CesiumMath.fastApproximateAtan(oppositeOverAdjacent);
491
+ t = Math.abs(y) > Math.abs(x) ? CesiumMath.PI_OVER_TWO - t : t;
492
+ t = x < 0 ? CesiumMath.PI - t : t;
493
+ t = y < 0 ? -t : t;
494
+ return t;
495
+ };
496
+ var Math_default = CesiumMath;
497
+
498
+ export {
499
+ Math_default
500
+ };
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.42
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import {
27
+ defined_default
28
+ } from "./chunk-JKLMRPKK.js";
29
+
30
+ // packages/engine/Source/Core/RuntimeError.js
31
+ function RuntimeError(message) {
32
+ this.name = "RuntimeError";
33
+ this.message = message;
34
+ let stack;
35
+ try {
36
+ throw new Error();
37
+ } catch (e) {
38
+ stack = e.stack;
39
+ }
40
+ this.stack = stack;
41
+ }
42
+ if (defined_default(Object.create)) {
43
+ RuntimeError.prototype = Object.create(Error.prototype);
44
+ RuntimeError.prototype.constructor = RuntimeError;
45
+ }
46
+ RuntimeError.prototype.toString = function() {
47
+ let str = `${this.name}: ${this.message}`;
48
+ if (defined_default(this.stack)) {
49
+ str += `
50
+ ${this.stack.toString()}`;
51
+ }
52
+ return str;
53
+ };
54
+ var RuntimeError_default = RuntimeError;
55
+
56
+ export {
57
+ RuntimeError_default
58
+ };