deeptwins-engine-3d 0.1.76 → 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 (238) 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 +4 -0
  155. package/dist/esm/index.js +1 -175
  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.js +1 -318
  164. package/dist/esm/lowAltitude/VisitLayer.js +1 -180
  165. package/dist/esm/map/Event.js +1 -377
  166. package/dist/esm/map/GroundSkyBox.js +1 -166
  167. package/dist/esm/map/Map.js +1 -881
  168. package/dist/esm/map/Property.js +1 -35
  169. package/dist/esm/material/AtmosphericDispersion.js +1 -569
  170. package/dist/esm/material/GlobalVolumetricCloud.js +1 -377
  171. package/dist/esm/material/VolumeCloud.js +1 -115
  172. package/dist/esm/material/WeatherEffects.js +1 -351
  173. package/dist/esm/material/entity/BaseMaterialProperty.js +1 -51
  174. package/dist/esm/material/entity/CircleWaveMaterialProperty.js +1 -101
  175. package/dist/esm/material/entity/DynamicWallMaterialProperty.js +1 -101
  176. package/dist/esm/material/entity/ImageGlowingMaterialProperty.js +1 -89
  177. package/dist/esm/material/entity/ImageMaterialProperty.js +1 -34
  178. package/dist/esm/material/entity/PolylineTrailLinkMaterialProperty.js +1 -132
  179. package/dist/esm/material/primitive/BaseMaterialAppearance.js +1 -28
  180. package/dist/esm/material/primitive/ImageGlowingMaterialAppearance.js +1 -77
  181. package/dist/esm/material/primitive/ImageMaterialAppearance.js +1 -77
  182. package/dist/esm/measure/Area.js +1 -220
  183. package/dist/esm/measure/BaseDraw.js +1 -105
  184. package/dist/esm/measure/Distance.js +1 -223
  185. package/dist/esm/measure/index.js +1 -266
  186. package/dist/esm/measure/types.js +1 -17
  187. package/dist/esm/measure/utils.js +1 -319
  188. package/dist/esm/particle/BaseParticle.js +1 -196
  189. package/dist/esm/particle/FireParticle.js +1 -65
  190. package/dist/esm/particle/FountainParticle.js +1 -80
  191. package/dist/esm/particle/SmokeParticle.js +1 -65
  192. package/dist/esm/particle/common.js +1 -23
  193. package/dist/esm/particle/index.js +1 -5
  194. package/dist/esm/property/PositionProperty.js +1 -56
  195. package/dist/esm/tileLayer/ArcGisLayer.js +1 -41
  196. package/dist/esm/tileLayer/CustomRasterClipWorkerClient.js +1 -147
  197. package/dist/esm/tileLayer/CustomRasterLayer.js +1 -1136
  198. package/dist/esm/tileLayer/ImageryLayer.js +1 -44
  199. package/dist/esm/tileLayer/MvtVectorLoad.js +1 -1549
  200. package/dist/esm/tileLayer/MvtVectorWorkerClient.js +1 -126
  201. package/dist/esm/tileLayer/RasterLayer.js +1 -23
  202. package/dist/esm/tileLayer/WmsLayer.js +1 -26
  203. package/dist/esm/tileLayer/WmtsLayer.js +1 -23
  204. package/dist/esm/tool/BuildClampedPolygonGrid.js +1 -278
  205. package/dist/esm/tool/Compass.js +1 -282
  206. package/dist/esm/tool/PrimitiveCluster.js +1 -706
  207. package/dist/esm/tool/TimerInterval.js +1 -58
  208. package/dist/esm/tool/common.js +1 -405
  209. package/dist/esm/tool/fetch.js +1 -222
  210. package/dist/esm/tool/heatmap.js +1 -631
  211. package/dist/esm/tool/utils.d.ts +1 -0
  212. package/dist/esm/tool/utils.js +1 -501
  213. package/dist/esm/toolTip/index.js +1 -79
  214. package/dist/esm/videoFusion/BaseVideo.d.ts +7 -0
  215. package/dist/esm/videoFusion/BaseVideo.js +1 -330
  216. package/dist/esm/videoFusion/VideoProject.js +1 -230
  217. package/dist/esm/videoFusion/VideoTexture.js +1 -163
  218. package/dist/esm/visualization/BaseHeatmap.js +1 -271
  219. package/dist/esm/visualization/BoundaryHighlight.d.ts +136 -0
  220. package/dist/esm/visualization/BoundaryHighlight.js +1 -0
  221. package/dist/esm/visualization/DynamicWater.js +1 -289
  222. package/dist/esm/visualization/Frustum.js +1 -248
  223. package/dist/esm/visualization/Heatmap2d.js +1 -97
  224. package/dist/esm/visualization/Heatmap3d.js +1 -281
  225. package/dist/esm/visualization/MigrationEffect.js +1 -397
  226. package/dist/esm/visualization/PointCluster.js +1 -220
  227. package/dist/esm/visualization/RadarScan.js +1 -333
  228. package/dist/esm/visualization/SampledTerrainRiver.d.ts +180 -0
  229. package/dist/esm/visualization/SampledTerrainRiver.js +1 -0
  230. package/dist/esm/visualization/SampledTerrainWater.d.ts +170 -0
  231. package/dist/esm/visualization/SampledTerrainWater.js +1 -0
  232. package/dist/esm/visualization/WindField.d.ts +72 -0
  233. package/dist/esm/visualization/WindField.js +1 -0
  234. package/dist/esm/visualization/windCore.d.ts +161 -0
  235. package/dist/esm/visualization/windCore.js +8 -0
  236. package/dist/umd/deeptwins-engine-3d.min.css +1 -1
  237. package/dist/umd/deeptwins-engine-3d.min.js +1 -1
  238. package/package.json +6 -4
@@ -0,0 +1,102 @@
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
+ Cartesian3_default
28
+ } from "./chunk-ZW52HXFN.js";
29
+ import {
30
+ Check_default
31
+ } from "./chunk-PN3GIZ5Q.js";
32
+ import {
33
+ defined_default
34
+ } from "./chunk-JKLMRPKK.js";
35
+
36
+ // packages/engine/Source/Core/EncodedCartesian3.js
37
+ function EncodedCartesian3() {
38
+ this.high = Cartesian3_default.clone(Cartesian3_default.ZERO);
39
+ this.low = Cartesian3_default.clone(Cartesian3_default.ZERO);
40
+ }
41
+ EncodedCartesian3.encode = function(value, result) {
42
+ Check_default.typeOf.number("value", value);
43
+ if (!defined_default(result)) {
44
+ result = {
45
+ high: 0,
46
+ low: 0
47
+ };
48
+ }
49
+ let doubleHigh;
50
+ if (value >= 0) {
51
+ doubleHigh = Math.floor(value / 65536) * 65536;
52
+ result.high = doubleHigh;
53
+ result.low = value - doubleHigh;
54
+ } else {
55
+ doubleHigh = Math.floor(-value / 65536) * 65536;
56
+ result.high = -doubleHigh;
57
+ result.low = value + doubleHigh;
58
+ }
59
+ return result;
60
+ };
61
+ var scratchEncode = {
62
+ high: 0,
63
+ low: 0
64
+ };
65
+ EncodedCartesian3.fromCartesian = function(cartesian, result) {
66
+ Check_default.typeOf.object("cartesian", cartesian);
67
+ if (!defined_default(result)) {
68
+ result = new EncodedCartesian3();
69
+ }
70
+ const high = result.high;
71
+ const low = result.low;
72
+ EncodedCartesian3.encode(cartesian.x, scratchEncode);
73
+ high.x = scratchEncode.high;
74
+ low.x = scratchEncode.low;
75
+ EncodedCartesian3.encode(cartesian.y, scratchEncode);
76
+ high.y = scratchEncode.high;
77
+ low.y = scratchEncode.low;
78
+ EncodedCartesian3.encode(cartesian.z, scratchEncode);
79
+ high.z = scratchEncode.high;
80
+ low.z = scratchEncode.low;
81
+ return result;
82
+ };
83
+ var encodedP = new EncodedCartesian3();
84
+ EncodedCartesian3.writeElements = function(cartesian, cartesianArray, index) {
85
+ Check_default.defined("cartesianArray", cartesianArray);
86
+ Check_default.typeOf.number("index", index);
87
+ Check_default.typeOf.number.greaterThanOrEquals("index", index, 0);
88
+ EncodedCartesian3.fromCartesian(cartesian, encodedP);
89
+ const high = encodedP.high;
90
+ const low = encodedP.low;
91
+ cartesianArray[index] = high.x;
92
+ cartesianArray[index + 1] = high.y;
93
+ cartesianArray[index + 2] = high.z;
94
+ cartesianArray[index + 3] = low.x;
95
+ cartesianArray[index + 4] = low.y;
96
+ cartesianArray[index + 5] = low.z;
97
+ };
98
+ var EncodedCartesian3_default = EncodedCartesian3;
99
+
100
+ export {
101
+ EncodedCartesian3_default
102
+ };
@@ -0,0 +1,44 @@
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
+
30
+ // packages/engine/Source/Core/GeometryAttributes.js
31
+ function GeometryAttributes(options) {
32
+ options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
33
+ this.position = options.position;
34
+ this.normal = options.normal;
35
+ this.st = options.st;
36
+ this.bitangent = options.bitangent;
37
+ this.tangent = options.tangent;
38
+ this.color = options.color;
39
+ }
40
+ var GeometryAttributes_default = GeometryAttributes;
41
+
42
+ export {
43
+ GeometryAttributes_default
44
+ };
@@ -0,0 +1,300 @@
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
+ Matrix2_default,
28
+ Matrix4_default,
29
+ Quaternion_default,
30
+ Rectangle_default,
31
+ Transforms_default
32
+ } from "./chunk-R4W6IRJZ.js";
33
+ import {
34
+ Cartesian2_default,
35
+ Cartesian3_default,
36
+ Cartographic_default,
37
+ Matrix3_default
38
+ } from "./chunk-ZW52HXFN.js";
39
+ import {
40
+ WebGLConstants_default
41
+ } from "./chunk-RZQLZIUI.js";
42
+ import {
43
+ defaultValue_default
44
+ } from "./chunk-ATLWOZFF.js";
45
+ import {
46
+ Check_default,
47
+ DeveloperError_default
48
+ } from "./chunk-PN3GIZ5Q.js";
49
+ import {
50
+ defined_default
51
+ } from "./chunk-JKLMRPKK.js";
52
+
53
+ // packages/engine/Source/Core/GeometryType.js
54
+ var GeometryType = {
55
+ NONE: 0,
56
+ TRIANGLES: 1,
57
+ LINES: 2,
58
+ POLYLINES: 3
59
+ };
60
+ var GeometryType_default = Object.freeze(GeometryType);
61
+
62
+ // packages/engine/Source/Core/PrimitiveType.js
63
+ var PrimitiveType = {
64
+ /**
65
+ * Points primitive where each vertex (or index) is a separate point.
66
+ *
67
+ * @type {number}
68
+ * @constant
69
+ */
70
+ POINTS: WebGLConstants_default.POINTS,
71
+ /**
72
+ * Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.
73
+ *
74
+ * @type {number}
75
+ * @constant
76
+ */
77
+ LINES: WebGLConstants_default.LINES,
78
+ /**
79
+ * Line loop primitive where each vertex (or index) after the first connects a line to
80
+ * the previous vertex, and the last vertex implicitly connects to the first.
81
+ *
82
+ * @type {number}
83
+ * @constant
84
+ */
85
+ LINE_LOOP: WebGLConstants_default.LINE_LOOP,
86
+ /**
87
+ * Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.
88
+ *
89
+ * @type {number}
90
+ * @constant
91
+ */
92
+ LINE_STRIP: WebGLConstants_default.LINE_STRIP,
93
+ /**
94
+ * Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.
95
+ *
96
+ * @type {number}
97
+ * @constant
98
+ */
99
+ TRIANGLES: WebGLConstants_default.TRIANGLES,
100
+ /**
101
+ * Triangle strip primitive where each vertex (or index) after the first two connect to
102
+ * the previous two vertices forming a triangle. For example, this can be used to model a wall.
103
+ *
104
+ * @type {number}
105
+ * @constant
106
+ */
107
+ TRIANGLE_STRIP: WebGLConstants_default.TRIANGLE_STRIP,
108
+ /**
109
+ * Triangle fan primitive where each vertex (or index) after the first two connect to
110
+ * the previous vertex and the first vertex forming a triangle. For example, this can be used
111
+ * to model a cone or circle.
112
+ *
113
+ * @type {number}
114
+ * @constant
115
+ */
116
+ TRIANGLE_FAN: WebGLConstants_default.TRIANGLE_FAN
117
+ };
118
+ PrimitiveType.isLines = function(primitiveType) {
119
+ return primitiveType === PrimitiveType.LINES || primitiveType === PrimitiveType.LINE_LOOP || primitiveType === PrimitiveType.LINE_STRIP;
120
+ };
121
+ PrimitiveType.isTriangles = function(primitiveType) {
122
+ return primitiveType === PrimitiveType.TRIANGLES || primitiveType === PrimitiveType.TRIANGLE_STRIP || primitiveType === PrimitiveType.TRIANGLE_FAN;
123
+ };
124
+ PrimitiveType.validate = function(primitiveType) {
125
+ return primitiveType === PrimitiveType.POINTS || primitiveType === PrimitiveType.LINES || primitiveType === PrimitiveType.LINE_LOOP || primitiveType === PrimitiveType.LINE_STRIP || primitiveType === PrimitiveType.TRIANGLES || primitiveType === PrimitiveType.TRIANGLE_STRIP || primitiveType === PrimitiveType.TRIANGLE_FAN;
126
+ };
127
+ var PrimitiveType_default = Object.freeze(PrimitiveType);
128
+
129
+ // packages/engine/Source/Core/Geometry.js
130
+ function Geometry(options) {
131
+ options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
132
+ Check_default.typeOf.object("options.attributes", options.attributes);
133
+ this.attributes = options.attributes;
134
+ this.indices = options.indices;
135
+ this.primitiveType = defaultValue_default(
136
+ options.primitiveType,
137
+ PrimitiveType_default.TRIANGLES
138
+ );
139
+ this.boundingSphere = options.boundingSphere;
140
+ this.geometryType = defaultValue_default(options.geometryType, GeometryType_default.NONE);
141
+ this.boundingSphereCV = options.boundingSphereCV;
142
+ this.offsetAttribute = options.offsetAttribute;
143
+ }
144
+ Geometry.computeNumberOfVertices = function(geometry) {
145
+ Check_default.typeOf.object("geometry", geometry);
146
+ let numberOfVertices = -1;
147
+ for (const property in geometry.attributes) {
148
+ if (geometry.attributes.hasOwnProperty(property) && defined_default(geometry.attributes[property]) && defined_default(geometry.attributes[property].values)) {
149
+ const attribute = geometry.attributes[property];
150
+ const num = attribute.values.length / attribute.componentsPerAttribute;
151
+ if (numberOfVertices !== num && numberOfVertices !== -1) {
152
+ throw new DeveloperError_default(
153
+ "All attribute lists must have the same number of attributes."
154
+ );
155
+ }
156
+ numberOfVertices = num;
157
+ }
158
+ }
159
+ return numberOfVertices;
160
+ };
161
+ var rectangleCenterScratch = new Cartographic_default();
162
+ var enuCenterScratch = new Cartesian3_default();
163
+ var fixedFrameToEnuScratch = new Matrix4_default();
164
+ var boundingRectanglePointsCartographicScratch = [
165
+ new Cartographic_default(),
166
+ new Cartographic_default(),
167
+ new Cartographic_default()
168
+ ];
169
+ var boundingRectanglePointsEnuScratch = [
170
+ new Cartesian2_default(),
171
+ new Cartesian2_default(),
172
+ new Cartesian2_default()
173
+ ];
174
+ var points2DScratch = [new Cartesian2_default(), new Cartesian2_default(), new Cartesian2_default()];
175
+ var pointEnuScratch = new Cartesian3_default();
176
+ var enuRotationScratch = new Quaternion_default();
177
+ var enuRotationMatrixScratch = new Matrix4_default();
178
+ var rotation2DScratch = new Matrix2_default();
179
+ Geometry._textureCoordinateRotationPoints = function(positions, stRotation, ellipsoid, boundingRectangle) {
180
+ let i;
181
+ const rectangleCenter = Rectangle_default.center(
182
+ boundingRectangle,
183
+ rectangleCenterScratch
184
+ );
185
+ const enuCenter = Cartographic_default.toCartesian(
186
+ rectangleCenter,
187
+ ellipsoid,
188
+ enuCenterScratch
189
+ );
190
+ const enuToFixedFrame = Transforms_default.eastNorthUpToFixedFrame(
191
+ enuCenter,
192
+ ellipsoid,
193
+ fixedFrameToEnuScratch
194
+ );
195
+ const fixedFrameToEnu = Matrix4_default.inverse(
196
+ enuToFixedFrame,
197
+ fixedFrameToEnuScratch
198
+ );
199
+ const boundingPointsEnu = boundingRectanglePointsEnuScratch;
200
+ const boundingPointsCarto = boundingRectanglePointsCartographicScratch;
201
+ boundingPointsCarto[0].longitude = boundingRectangle.west;
202
+ boundingPointsCarto[0].latitude = boundingRectangle.south;
203
+ boundingPointsCarto[1].longitude = boundingRectangle.west;
204
+ boundingPointsCarto[1].latitude = boundingRectangle.north;
205
+ boundingPointsCarto[2].longitude = boundingRectangle.east;
206
+ boundingPointsCarto[2].latitude = boundingRectangle.south;
207
+ let posEnu = pointEnuScratch;
208
+ for (i = 0; i < 3; i++) {
209
+ Cartographic_default.toCartesian(boundingPointsCarto[i], ellipsoid, posEnu);
210
+ posEnu = Matrix4_default.multiplyByPointAsVector(fixedFrameToEnu, posEnu, posEnu);
211
+ boundingPointsEnu[i].x = posEnu.x;
212
+ boundingPointsEnu[i].y = posEnu.y;
213
+ }
214
+ const rotation = Quaternion_default.fromAxisAngle(
215
+ Cartesian3_default.UNIT_Z,
216
+ -stRotation,
217
+ enuRotationScratch
218
+ );
219
+ const textureMatrix = Matrix3_default.fromQuaternion(
220
+ rotation,
221
+ enuRotationMatrixScratch
222
+ );
223
+ const positionsLength = positions.length;
224
+ let enuMinX = Number.POSITIVE_INFINITY;
225
+ let enuMinY = Number.POSITIVE_INFINITY;
226
+ let enuMaxX = Number.NEGATIVE_INFINITY;
227
+ let enuMaxY = Number.NEGATIVE_INFINITY;
228
+ for (i = 0; i < positionsLength; i++) {
229
+ posEnu = Matrix4_default.multiplyByPointAsVector(
230
+ fixedFrameToEnu,
231
+ positions[i],
232
+ posEnu
233
+ );
234
+ posEnu = Matrix3_default.multiplyByVector(textureMatrix, posEnu, posEnu);
235
+ enuMinX = Math.min(enuMinX, posEnu.x);
236
+ enuMinY = Math.min(enuMinY, posEnu.y);
237
+ enuMaxX = Math.max(enuMaxX, posEnu.x);
238
+ enuMaxY = Math.max(enuMaxY, posEnu.y);
239
+ }
240
+ const toDesiredInComputed = Matrix2_default.fromRotation(
241
+ stRotation,
242
+ rotation2DScratch
243
+ );
244
+ const points2D = points2DScratch;
245
+ points2D[0].x = enuMinX;
246
+ points2D[0].y = enuMinY;
247
+ points2D[1].x = enuMinX;
248
+ points2D[1].y = enuMaxY;
249
+ points2D[2].x = enuMaxX;
250
+ points2D[2].y = enuMinY;
251
+ const boundingEnuMin = boundingPointsEnu[0];
252
+ const boundingPointsWidth = boundingPointsEnu[2].x - boundingEnuMin.x;
253
+ const boundingPointsHeight = boundingPointsEnu[1].y - boundingEnuMin.y;
254
+ for (i = 0; i < 3; i++) {
255
+ const point2D = points2D[i];
256
+ Matrix2_default.multiplyByVector(toDesiredInComputed, point2D, point2D);
257
+ point2D.x = (point2D.x - boundingEnuMin.x) / boundingPointsWidth;
258
+ point2D.y = (point2D.y - boundingEnuMin.y) / boundingPointsHeight;
259
+ }
260
+ const minXYCorner = points2D[0];
261
+ const maxYCorner = points2D[1];
262
+ const maxXCorner = points2D[2];
263
+ const result = new Array(6);
264
+ Cartesian2_default.pack(minXYCorner, result);
265
+ Cartesian2_default.pack(maxYCorner, result, 2);
266
+ Cartesian2_default.pack(maxXCorner, result, 4);
267
+ return result;
268
+ };
269
+ var Geometry_default = Geometry;
270
+
271
+ // packages/engine/Source/Core/GeometryAttribute.js
272
+ function GeometryAttribute(options) {
273
+ options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
274
+ if (!defined_default(options.componentDatatype)) {
275
+ throw new DeveloperError_default("options.componentDatatype is required.");
276
+ }
277
+ if (!defined_default(options.componentsPerAttribute)) {
278
+ throw new DeveloperError_default("options.componentsPerAttribute is required.");
279
+ }
280
+ if (options.componentsPerAttribute < 1 || options.componentsPerAttribute > 4) {
281
+ throw new DeveloperError_default(
282
+ "options.componentsPerAttribute must be between 1 and 4."
283
+ );
284
+ }
285
+ if (!defined_default(options.values)) {
286
+ throw new DeveloperError_default("options.values is required.");
287
+ }
288
+ this.componentDatatype = options.componentDatatype;
289
+ this.componentsPerAttribute = options.componentsPerAttribute;
290
+ this.normalize = defaultValue_default(options.normalize, false);
291
+ this.values = options.values;
292
+ }
293
+ var GeometryAttribute_default = GeometryAttribute;
294
+
295
+ export {
296
+ GeometryType_default,
297
+ PrimitiveType_default,
298
+ Geometry_default,
299
+ GeometryAttribute_default
300
+ };
@@ -0,0 +1,59 @@
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
+ Matrix4_default
28
+ } from "./chunk-R4W6IRJZ.js";
29
+ import {
30
+ defaultValue_default
31
+ } from "./chunk-ATLWOZFF.js";
32
+ import {
33
+ DeveloperError_default
34
+ } from "./chunk-PN3GIZ5Q.js";
35
+ import {
36
+ defined_default
37
+ } from "./chunk-JKLMRPKK.js";
38
+
39
+ // packages/engine/Source/Core/GeometryInstance.js
40
+ function GeometryInstance(options) {
41
+ options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
42
+ if (!defined_default(options.geometry)) {
43
+ throw new DeveloperError_default("options.geometry is required.");
44
+ }
45
+ this.geometry = options.geometry;
46
+ this.modelMatrix = Matrix4_default.clone(
47
+ defaultValue_default(options.modelMatrix, Matrix4_default.IDENTITY)
48
+ );
49
+ this.id = options.id;
50
+ this.pickPrimitive = options.pickPrimitive;
51
+ this.attributes = defaultValue_default(options.attributes, {});
52
+ this.westHemisphereGeometry = void 0;
53
+ this.eastHemisphereGeometry = void 0;
54
+ }
55
+ var GeometryInstance_default = GeometryInstance;
56
+
57
+ export {
58
+ GeometryInstance_default
59
+ };
@@ -0,0 +1,100 @@
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
+ Math_default
28
+ } from "./chunk-HSJSUPQV.js";
29
+ import {
30
+ defaultValue_default
31
+ } from "./chunk-ATLWOZFF.js";
32
+ import {
33
+ Check_default
34
+ } from "./chunk-PN3GIZ5Q.js";
35
+ import {
36
+ defined_default
37
+ } from "./chunk-JKLMRPKK.js";
38
+
39
+ // packages/engine/Source/Core/arrayRemoveDuplicates.js
40
+ var removeDuplicatesEpsilon = Math_default.EPSILON10;
41
+ function arrayRemoveDuplicates(values, equalsEpsilon, wrapAround, removedIndices) {
42
+ Check_default.defined("equalsEpsilon", equalsEpsilon);
43
+ if (!defined_default(values)) {
44
+ return void 0;
45
+ }
46
+ wrapAround = defaultValue_default(wrapAround, false);
47
+ const storeRemovedIndices = defined_default(removedIndices);
48
+ const length = values.length;
49
+ if (length < 2) {
50
+ return values;
51
+ }
52
+ let i;
53
+ let v0 = values[0];
54
+ let v1;
55
+ let cleanedValues;
56
+ let lastCleanIndex = 0;
57
+ let removedIndexLCI = -1;
58
+ for (i = 1; i < length; ++i) {
59
+ v1 = values[i];
60
+ if (equalsEpsilon(v0, v1, removeDuplicatesEpsilon)) {
61
+ if (!defined_default(cleanedValues)) {
62
+ cleanedValues = values.slice(0, i);
63
+ lastCleanIndex = i - 1;
64
+ removedIndexLCI = 0;
65
+ }
66
+ if (storeRemovedIndices) {
67
+ removedIndices.push(i);
68
+ }
69
+ } else {
70
+ if (defined_default(cleanedValues)) {
71
+ cleanedValues.push(v1);
72
+ lastCleanIndex = i;
73
+ if (storeRemovedIndices) {
74
+ removedIndexLCI = removedIndices.length;
75
+ }
76
+ }
77
+ v0 = v1;
78
+ }
79
+ }
80
+ if (wrapAround && equalsEpsilon(values[0], values[length - 1], removeDuplicatesEpsilon)) {
81
+ if (storeRemovedIndices) {
82
+ if (defined_default(cleanedValues)) {
83
+ removedIndices.splice(removedIndexLCI, 0, lastCleanIndex);
84
+ } else {
85
+ removedIndices.push(length - 1);
86
+ }
87
+ }
88
+ if (defined_default(cleanedValues)) {
89
+ cleanedValues.length -= 1;
90
+ } else {
91
+ cleanedValues = values.slice(0, -1);
92
+ }
93
+ }
94
+ return defined_default(cleanedValues) ? cleanedValues : values;
95
+ }
96
+ var arrayRemoveDuplicates_default = arrayRemoveDuplicates;
97
+
98
+ export {
99
+ arrayRemoveDuplicates_default
100
+ };
@@ -0,0 +1,101 @@
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/formatError.js
31
+ function formatError(object) {
32
+ let result;
33
+ const name = object.name;
34
+ const message = object.message;
35
+ if (defined_default(name) && defined_default(message)) {
36
+ result = `${name}: ${message}`;
37
+ } else {
38
+ result = object.toString();
39
+ }
40
+ const stack = object.stack;
41
+ if (defined_default(stack)) {
42
+ result += `
43
+ ${stack}`;
44
+ }
45
+ return result;
46
+ }
47
+ var formatError_default = formatError;
48
+
49
+ // packages/engine/Source/Workers/createTaskProcessorWorker.js
50
+ function createTaskProcessorWorker(workerFunction) {
51
+ async function onMessageHandler({ data }) {
52
+ const transferableObjects = [];
53
+ const responseMessage = {
54
+ id: data.id,
55
+ result: void 0,
56
+ error: void 0
57
+ };
58
+ self.CESIUM_BASE_URL = data.baseUrl;
59
+ try {
60
+ const result = await workerFunction(data.parameters, transferableObjects);
61
+ responseMessage.result = result;
62
+ } catch (error) {
63
+ if (error instanceof Error) {
64
+ responseMessage.error = {
65
+ name: error.name,
66
+ message: error.message,
67
+ stack: error.stack
68
+ };
69
+ } else {
70
+ responseMessage.error = error;
71
+ }
72
+ }
73
+ if (!data.canTransferArrayBuffer) {
74
+ transferableObjects.length = 0;
75
+ }
76
+ try {
77
+ postMessage(responseMessage, transferableObjects);
78
+ } catch (error) {
79
+ responseMessage.result = void 0;
80
+ responseMessage.error = `postMessage failed with error: ${formatError_default(
81
+ error
82
+ )}
83
+ with responseMessage: ${JSON.stringify(responseMessage)}`;
84
+ postMessage(responseMessage);
85
+ }
86
+ }
87
+ function onMessageErrorHandler(event) {
88
+ postMessage({
89
+ id: event.data?.id,
90
+ error: `postMessage failed with error: ${JSON.stringify(event)}`
91
+ });
92
+ }
93
+ self.onmessage = onMessageHandler;
94
+ self.onmessageerror = onMessageErrorHandler;
95
+ return self;
96
+ }
97
+ var createTaskProcessorWorker_default = createTaskProcessorWorker;
98
+
99
+ export {
100
+ createTaskProcessorWorker_default
101
+ };