@sl-utils/cesium 1.0.0 → 1.0.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 (552) hide show
  1. package/LICENSE copy +201 -0
  2. package/README.md +5 -0
  3. package/demo/App.vue +26 -0
  4. package/demo/main.ts +5 -0
  5. package/demo/style.css +3 -0
  6. package/index.cjs +12 -0
  7. package/index.html +13 -0
  8. package/package.json +31 -3
  9. package/public/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  10. package/public/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  11. package/public/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  12. package/public/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  13. package/public/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  14. package/public/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  15. package/public/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  16. package/public/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  17. package/public/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  18. package/public/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  19. package/public/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  20. package/public/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  21. package/public/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  22. package/public/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  23. package/public/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  24. package/public/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  25. package/public/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  26. package/public/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  27. package/public/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  28. package/public/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  29. package/public/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  30. package/public/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  31. package/public/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  32. package/public/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  33. package/public/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  34. package/public/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  35. package/public/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  36. package/public/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  37. package/public/Assets/Images/bing_maps_credit.png +0 -0
  38. package/public/Assets/Images/cesium_credit.png +0 -0
  39. package/public/Assets/Images/google_earth_credit.png +0 -0
  40. package/public/Assets/Images/ion-credit.png +0 -0
  41. package/public/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  42. package/public/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  43. package/public/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  44. package/public/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  45. package/public/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  46. package/public/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  47. package/public/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  48. package/public/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  49. package/public/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  50. package/public/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  51. package/public/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  52. package/public/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  53. package/public/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  54. package/public/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  55. package/public/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  56. package/public/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  57. package/public/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  58. package/public/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  59. package/public/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  60. package/public/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  61. package/public/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  62. package/public/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  63. package/public/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  64. package/public/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  65. package/public/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  66. package/public/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  67. package/public/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  68. package/public/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  69. package/public/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  70. package/public/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  71. package/public/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  72. package/public/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  73. package/public/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  74. package/public/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  75. package/public/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  76. package/public/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  77. package/public/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  78. package/public/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  79. package/public/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  80. package/public/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  81. package/public/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  82. package/public/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  83. package/public/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  84. package/public/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  85. package/public/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  86. package/public/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  87. package/public/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  88. package/public/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  89. package/public/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  90. package/public/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  91. package/public/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  92. package/public/Assets/Textures/maki/airfield.png +0 -0
  93. package/public/Assets/Textures/maki/airport.png +0 -0
  94. package/public/Assets/Textures/maki/alcohol-shop.png +0 -0
  95. package/public/Assets/Textures/maki/america-football.png +0 -0
  96. package/public/Assets/Textures/maki/art-gallery.png +0 -0
  97. package/public/Assets/Textures/maki/bakery.png +0 -0
  98. package/public/Assets/Textures/maki/bank.png +0 -0
  99. package/public/Assets/Textures/maki/bar.png +0 -0
  100. package/public/Assets/Textures/maki/baseball.png +0 -0
  101. package/public/Assets/Textures/maki/basketball.png +0 -0
  102. package/public/Assets/Textures/maki/beer.png +0 -0
  103. package/public/Assets/Textures/maki/bicycle.png +0 -0
  104. package/public/Assets/Textures/maki/building.png +0 -0
  105. package/public/Assets/Textures/maki/bus.png +0 -0
  106. package/public/Assets/Textures/maki/cafe.png +0 -0
  107. package/public/Assets/Textures/maki/camera.png +0 -0
  108. package/public/Assets/Textures/maki/campsite.png +0 -0
  109. package/public/Assets/Textures/maki/car.png +0 -0
  110. package/public/Assets/Textures/maki/cemetery.png +0 -0
  111. package/public/Assets/Textures/maki/cesium.png +0 -0
  112. package/public/Assets/Textures/maki/chemist.png +0 -0
  113. package/public/Assets/Textures/maki/cinema.png +0 -0
  114. package/public/Assets/Textures/maki/circle-stroked.png +0 -0
  115. package/public/Assets/Textures/maki/circle.png +0 -0
  116. package/public/Assets/Textures/maki/city.png +0 -0
  117. package/public/Assets/Textures/maki/clothing-store.png +0 -0
  118. package/public/Assets/Textures/maki/college.png +0 -0
  119. package/public/Assets/Textures/maki/commercial.png +0 -0
  120. package/public/Assets/Textures/maki/cricket.png +0 -0
  121. package/public/Assets/Textures/maki/cross.png +0 -0
  122. package/public/Assets/Textures/maki/dam.png +0 -0
  123. package/public/Assets/Textures/maki/danger.png +0 -0
  124. package/public/Assets/Textures/maki/disability.png +0 -0
  125. package/public/Assets/Textures/maki/dog-park.png +0 -0
  126. package/public/Assets/Textures/maki/embassy.png +0 -0
  127. package/public/Assets/Textures/maki/emergency-telephone.png +0 -0
  128. package/public/Assets/Textures/maki/entrance.png +0 -0
  129. package/public/Assets/Textures/maki/farm.png +0 -0
  130. package/public/Assets/Textures/maki/fast-food.png +0 -0
  131. package/public/Assets/Textures/maki/ferry.png +0 -0
  132. package/public/Assets/Textures/maki/fire-station.png +0 -0
  133. package/public/Assets/Textures/maki/fuel.png +0 -0
  134. package/public/Assets/Textures/maki/garden.png +0 -0
  135. package/public/Assets/Textures/maki/gift.png +0 -0
  136. package/public/Assets/Textures/maki/golf.png +0 -0
  137. package/public/Assets/Textures/maki/grocery.png +0 -0
  138. package/public/Assets/Textures/maki/hairdresser.png +0 -0
  139. package/public/Assets/Textures/maki/harbor.png +0 -0
  140. package/public/Assets/Textures/maki/heart.png +0 -0
  141. package/public/Assets/Textures/maki/heliport.png +0 -0
  142. package/public/Assets/Textures/maki/hospital.png +0 -0
  143. package/public/Assets/Textures/maki/ice-cream.png +0 -0
  144. package/public/Assets/Textures/maki/industrial.png +0 -0
  145. package/public/Assets/Textures/maki/land-use.png +0 -0
  146. package/public/Assets/Textures/maki/laundry.png +0 -0
  147. package/public/Assets/Textures/maki/library.png +0 -0
  148. package/public/Assets/Textures/maki/lighthouse.png +0 -0
  149. package/public/Assets/Textures/maki/lodging.png +0 -0
  150. package/public/Assets/Textures/maki/logging.png +0 -0
  151. package/public/Assets/Textures/maki/london-underground.png +0 -0
  152. package/public/Assets/Textures/maki/marker-stroked.png +0 -0
  153. package/public/Assets/Textures/maki/marker.png +0 -0
  154. package/public/Assets/Textures/maki/minefield.png +0 -0
  155. package/public/Assets/Textures/maki/mobilephone.png +0 -0
  156. package/public/Assets/Textures/maki/monument.png +0 -0
  157. package/public/Assets/Textures/maki/museum.png +0 -0
  158. package/public/Assets/Textures/maki/music.png +0 -0
  159. package/public/Assets/Textures/maki/oil-well.png +0 -0
  160. package/public/Assets/Textures/maki/park.png +0 -0
  161. package/public/Assets/Textures/maki/park2.png +0 -0
  162. package/public/Assets/Textures/maki/parking-garage.png +0 -0
  163. package/public/Assets/Textures/maki/parking.png +0 -0
  164. package/public/Assets/Textures/maki/pharmacy.png +0 -0
  165. package/public/Assets/Textures/maki/pitch.png +0 -0
  166. package/public/Assets/Textures/maki/place-of-worship.png +0 -0
  167. package/public/Assets/Textures/maki/playground.png +0 -0
  168. package/public/Assets/Textures/maki/police.png +0 -0
  169. package/public/Assets/Textures/maki/polling-place.png +0 -0
  170. package/public/Assets/Textures/maki/post.png +0 -0
  171. package/public/Assets/Textures/maki/prison.png +0 -0
  172. package/public/Assets/Textures/maki/rail-above.png +0 -0
  173. package/public/Assets/Textures/maki/rail-light.png +0 -0
  174. package/public/Assets/Textures/maki/rail-metro.png +0 -0
  175. package/public/Assets/Textures/maki/rail-underground.png +0 -0
  176. package/public/Assets/Textures/maki/rail.png +0 -0
  177. package/public/Assets/Textures/maki/religious-christian.png +0 -0
  178. package/public/Assets/Textures/maki/religious-jewish.png +0 -0
  179. package/public/Assets/Textures/maki/religious-muslim.png +0 -0
  180. package/public/Assets/Textures/maki/restaurant.png +0 -0
  181. package/public/Assets/Textures/maki/roadblock.png +0 -0
  182. package/public/Assets/Textures/maki/rocket.png +0 -0
  183. package/public/Assets/Textures/maki/school.png +0 -0
  184. package/public/Assets/Textures/maki/scooter.png +0 -0
  185. package/public/Assets/Textures/maki/shop.png +0 -0
  186. package/public/Assets/Textures/maki/skiing.png +0 -0
  187. package/public/Assets/Textures/maki/slaughterhouse.png +0 -0
  188. package/public/Assets/Textures/maki/soccer.png +0 -0
  189. package/public/Assets/Textures/maki/square-stroked.png +0 -0
  190. package/public/Assets/Textures/maki/square.png +0 -0
  191. package/public/Assets/Textures/maki/star-stroked.png +0 -0
  192. package/public/Assets/Textures/maki/star.png +0 -0
  193. package/public/Assets/Textures/maki/suitcase.png +0 -0
  194. package/public/Assets/Textures/maki/swimming.png +0 -0
  195. package/public/Assets/Textures/maki/telephone.png +0 -0
  196. package/public/Assets/Textures/maki/tennis.png +0 -0
  197. package/public/Assets/Textures/maki/theatre.png +0 -0
  198. package/public/Assets/Textures/maki/toilets.png +0 -0
  199. package/public/Assets/Textures/maki/town-hall.png +0 -0
  200. package/public/Assets/Textures/maki/town.png +0 -0
  201. package/public/Assets/Textures/maki/triangle-stroked.png +0 -0
  202. package/public/Assets/Textures/maki/triangle.png +0 -0
  203. package/public/Assets/Textures/maki/village.png +0 -0
  204. package/public/Assets/Textures/maki/warehouse.png +0 -0
  205. package/public/Assets/Textures/maki/waste-basket.png +0 -0
  206. package/public/Assets/Textures/maki/water.png +0 -0
  207. package/public/Assets/Textures/maki/wetland.png +0 -0
  208. package/public/Assets/Textures/maki/zoo.png +0 -0
  209. package/public/Assets/Textures/moonSmall.jpg +0 -0
  210. package/public/Assets/Textures/pin.svg +1 -0
  211. package/public/Assets/Textures/waterNormals.jpg +0 -0
  212. package/public/Assets/Textures/waterNormalsSmall.jpg +0 -0
  213. package/public/Assets/approximateTerrainHeights.json +1 -0
  214. package/public/Cesium.js +16587 -0
  215. package/public/ThirdParty/Workers/package.json +1 -0
  216. package/public/ThirdParty/Workers/zip-web-worker.js +1 -0
  217. package/public/ThirdParty/basis_transcoder.wasm +0 -0
  218. package/public/ThirdParty/draco_decoder.wasm +0 -0
  219. package/public/ThirdParty/google-earth-dbroot-parser.js +1 -0
  220. package/public/ThirdParty/wasm_splats_bg.wasm +0 -0
  221. package/public/ThirdParty/zip-module.wasm +0 -0
  222. package/public/Widgets/Animation/Animation.css +127 -0
  223. package/public/Widgets/Animation/lighter.css +70 -0
  224. package/public/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
  225. package/public/Widgets/BaseLayerPicker/lighter.css +22 -0
  226. package/public/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
  227. package/public/Widgets/CesiumInspector/CesiumInspector.css +113 -0
  228. package/public/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  229. package/public/Widgets/CesiumWidget/lighter.css +14 -0
  230. package/public/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  231. package/public/Widgets/Geocoder/Geocoder.css +70 -0
  232. package/public/Widgets/Geocoder/lighter.css +17 -0
  233. package/public/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  234. package/public/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  235. package/public/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  236. package/public/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  237. package/public/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  238. package/public/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  239. package/public/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  240. package/public/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  241. package/public/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  242. package/public/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  243. package/public/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  244. package/public/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  245. package/public/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  246. package/public/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  247. package/public/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  248. package/public/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  249. package/public/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  250. package/public/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  251. package/public/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  252. package/public/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  253. package/public/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  254. package/public/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  255. package/public/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  256. package/public/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  257. package/public/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  258. package/public/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  259. package/public/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  260. package/public/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  261. package/public/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  262. package/public/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  263. package/public/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  264. package/public/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  265. package/public/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  266. package/public/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  267. package/public/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  268. package/public/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  269. package/public/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  270. package/public/Widgets/Images/TimelineIcons.png +0 -0
  271. package/public/Widgets/Images/info-loading.gif +0 -0
  272. package/public/Widgets/InfoBox/InfoBox.css +92 -0
  273. package/public/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  274. package/public/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
  275. package/public/Widgets/NavigationHelpButton/lighter.css +38 -0
  276. package/public/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  277. package/public/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
  278. package/public/Widgets/SceneModePicker/SceneModePicker.css +56 -0
  279. package/public/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
  280. package/public/Widgets/Timeline/Timeline.css +103 -0
  281. package/public/Widgets/Timeline/lighter.css +23 -0
  282. package/public/Widgets/VRButton/VRButton.css +8 -0
  283. package/public/Widgets/Viewer/Viewer.css +107 -0
  284. package/public/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  285. package/public/Widgets/lighter.css +237 -0
  286. package/public/Widgets/lighterShared.css +46 -0
  287. package/public/Widgets/shared.css +103 -0
  288. package/public/Widgets/widgets.css +1342 -0
  289. package/public/Workers/chunk-3DKU5AMY.js +26 -0
  290. package/public/Workers/chunk-3MO6V622.js +26 -0
  291. package/public/Workers/chunk-3ULTL2FZ.js +26 -0
  292. package/public/Workers/chunk-43YDDN2L.js +26 -0
  293. package/public/Workers/chunk-453UE67U.js +26 -0
  294. package/public/Workers/chunk-5JJC62LP.js +26 -0
  295. package/public/Workers/chunk-65WPDQMK.js +26 -0
  296. package/public/Workers/chunk-6J7K26F7.js +26 -0
  297. package/public/Workers/chunk-A3G5ORRJ.js +26 -0
  298. package/public/Workers/chunk-AIXDAWPZ.js +26 -0
  299. package/public/Workers/chunk-ANKVUFZB.js +26 -0
  300. package/public/Workers/chunk-AZ67KQQB.js +26 -0
  301. package/public/Workers/chunk-C5F5JZAC.js +26 -0
  302. package/public/Workers/chunk-CK62LO4L.js +26 -0
  303. package/public/Workers/chunk-DXDIQEOK.js +26 -0
  304. package/public/Workers/chunk-E7ZPYMUI.js +26 -0
  305. package/public/Workers/chunk-GDE4VUE6.js +26 -0
  306. package/public/Workers/chunk-GGYRJCFH.js +29 -0
  307. package/public/Workers/chunk-HBIOVTO5.js +27 -0
  308. package/public/Workers/chunk-HJIURIT6.js +26 -0
  309. package/public/Workers/chunk-IDLM42AV.js +26 -0
  310. package/public/Workers/chunk-IFBNVX3N.js +26 -0
  311. package/public/Workers/chunk-IR47TAV5.js +26 -0
  312. package/public/Workers/chunk-ISGFCDPW.js +26 -0
  313. package/public/Workers/chunk-JJ24SU25.js +26 -0
  314. package/public/Workers/chunk-LAGV6F3C.js +29 -0
  315. package/public/Workers/chunk-LLCMCKFU.js +26 -0
  316. package/public/Workers/chunk-MSR5BKMH.js +26 -0
  317. package/public/Workers/chunk-MWVHSLYS.js +26 -0
  318. package/public/Workers/chunk-MYNU3I3W.js +26 -0
  319. package/public/Workers/chunk-NSDLDP72.js +26 -0
  320. package/public/Workers/chunk-NUY3PECV.js +26 -0
  321. package/public/Workers/chunk-OHMLE6SB.js +26 -0
  322. package/public/Workers/chunk-OJH7UFER.js +28 -0
  323. package/public/Workers/chunk-OUZ34R6R.js +26 -0
  324. package/public/Workers/chunk-OWJWRYGM.js +26 -0
  325. package/public/Workers/chunk-PAML32O3.js +26 -0
  326. package/public/Workers/chunk-PNKG35NX.js +26 -0
  327. package/public/Workers/chunk-Q6F3SO7I.js +26 -0
  328. package/public/Workers/chunk-QROIA2H7.js +26 -0
  329. package/public/Workers/chunk-RH6XN2ZV.js +28 -0
  330. package/public/Workers/chunk-SCMY6ELS.js +26 -0
  331. package/public/Workers/chunk-SP3AH7D2.js +26 -0
  332. package/public/Workers/chunk-SRXN2PE4.js +26 -0
  333. package/public/Workers/chunk-SUBLUDWJ.js +26 -0
  334. package/public/Workers/chunk-T4S74O3D.js +26 -0
  335. package/public/Workers/chunk-TITUTZNR.js +63 -0
  336. package/public/Workers/chunk-UWS7N7FB.js +26 -0
  337. package/public/Workers/chunk-V5C26K4F.js +26 -0
  338. package/public/Workers/chunk-VAPRBQYE.js +26 -0
  339. package/public/Workers/chunk-VBYW5FXW.js +26 -0
  340. package/public/Workers/chunk-VLPLGYXT.js +26 -0
  341. package/public/Workers/chunk-W5T7UWKW.js +26 -0
  342. package/public/Workers/chunk-XLJBHQML.js +26 -0
  343. package/public/Workers/chunk-XWXQVSYW.js +26 -0
  344. package/public/Workers/chunk-YSN2K4FT.js +27 -0
  345. package/public/Workers/chunk-ZTSD53QT.js +26 -0
  346. package/public/Workers/combineGeometry.js +26 -0
  347. package/public/Workers/createBoxGeometry.js +26 -0
  348. package/public/Workers/createBoxOutlineGeometry.js +26 -0
  349. package/public/Workers/createCircleGeometry.js +26 -0
  350. package/public/Workers/createCircleOutlineGeometry.js +26 -0
  351. package/public/Workers/createCoplanarPolygonGeometry.js +26 -0
  352. package/public/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
  353. package/public/Workers/createCorridorGeometry.js +26 -0
  354. package/public/Workers/createCorridorOutlineGeometry.js +26 -0
  355. package/public/Workers/createCylinderGeometry.js +26 -0
  356. package/public/Workers/createCylinderOutlineGeometry.js +26 -0
  357. package/public/Workers/createEllipseGeometry.js +26 -0
  358. package/public/Workers/createEllipseOutlineGeometry.js +26 -0
  359. package/public/Workers/createEllipsoidGeometry.js +26 -0
  360. package/public/Workers/createEllipsoidOutlineGeometry.js +26 -0
  361. package/public/Workers/createFrustumGeometry.js +26 -0
  362. package/public/Workers/createFrustumOutlineGeometry.js +26 -0
  363. package/public/Workers/createGeometry.js +26 -0
  364. package/public/Workers/createGroundPolylineGeometry.js +26 -0
  365. package/public/Workers/createPlaneGeometry.js +26 -0
  366. package/public/Workers/createPlaneOutlineGeometry.js +26 -0
  367. package/public/Workers/createPolygonGeometry.js +26 -0
  368. package/public/Workers/createPolygonOutlineGeometry.js +26 -0
  369. package/public/Workers/createPolylineGeometry.js +26 -0
  370. package/public/Workers/createPolylineVolumeGeometry.js +26 -0
  371. package/public/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
  372. package/public/Workers/createRectangleGeometry.js +26 -0
  373. package/public/Workers/createRectangleOutlineGeometry.js +26 -0
  374. package/public/Workers/createSimplePolylineGeometry.js +26 -0
  375. package/public/Workers/createSphereGeometry.js +26 -0
  376. package/public/Workers/createSphereOutlineGeometry.js +26 -0
  377. package/public/Workers/createTaskProcessorWorker.js +26 -0
  378. package/public/Workers/createVectorTileClampedPolylines.js +26 -0
  379. package/public/Workers/createVectorTileGeometries.js +26 -0
  380. package/public/Workers/createVectorTilePoints.js +26 -0
  381. package/public/Workers/createVectorTilePolygons.js +26 -0
  382. package/public/Workers/createVectorTilePolylines.js +26 -0
  383. package/public/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
  384. package/public/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
  385. package/public/Workers/createVerticesFromHeightmap.js +26 -0
  386. package/public/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
  387. package/public/Workers/createWallGeometry.js +26 -0
  388. package/public/Workers/createWallOutlineGeometry.js +26 -0
  389. package/public/Workers/decodeDraco.js +26 -0
  390. package/public/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
  391. package/public/Workers/decodeI3S.js +26 -0
  392. package/public/Workers/gaussianSplatSorter.js +26 -0
  393. package/public/Workers/gaussianSplatTextureGenerator.js +26 -0
  394. package/public/Workers/incrementallyBuildTerrainPicker.js +26 -0
  395. package/public/Workers/transcodeKTX2.js +56 -0
  396. package/public/Workers/transferTypedArrayTest.js +26 -0
  397. package/public/Workers/upsampleQuantizedTerrainMesh.js +26 -0
  398. package/public/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
  399. package/public/index.cjs +16587 -0
  400. package/public/index.js +16587 -0
  401. package/src/Assets/geojson/BaiYangDian.geojson +699 -0
  402. package/src/Assets/geojson/HeBei.geojson +97754 -0
  403. package/src/Assets/geojson//344/270/255/345/233/275_/347/234/201.geojson +1 -0
  404. package/src/Assets/images/BYD.png +0 -0
  405. package/src/Assets/images/BYH.png +0 -0
  406. package/src/Assets/images/CZD.png +0 -0
  407. package/src/Assets/images/bouys.png +0 -0
  408. package/src/Assets/images/hebei.ico +0 -0
  409. package/src/Assets/images/jinzhou.ico +0 -0
  410. package/src/Assets/images/map_bg.png +0 -0
  411. package/src/Assets/images/map_bridge.png +0 -0
  412. package/src/Assets/images/map_radar.png +0 -0
  413. package/src/Assets/images/map_vhf.png +0 -0
  414. package/src/Assets/images/shenlan.png +0 -0
  415. package/src/Assets/images/ship.png +0 -0
  416. package/src/Assets/images/ship_1.png +0 -0
  417. package/src/Assets/images/ship_1_e.png +0 -0
  418. package/src/Assets/images/ship_1_tv.png +0 -0
  419. package/src/Assets/images/ship_2.png +0 -0
  420. package/src/Assets/images/ship_2_e.png +0 -0
  421. package/src/Assets/images/ship_2_tv.png +0 -0
  422. package/src/Assets/images/ship_3.png +0 -0
  423. package/src/Assets/images/ship_3_e.png +0 -0
  424. package/src/Assets/images/ship_3_tv.png +0 -0
  425. package/src/Assets/images/ship_4.png +0 -0
  426. package/src/Assets/images/ship_4_e.png +0 -0
  427. package/src/Assets/images/ship_4_tv.png +0 -0
  428. package/src/Assets/images/ship_5.png +0 -0
  429. package/src/Assets/images/ship_5_e.png +0 -0
  430. package/src/Assets/images/ship_5_tv.png +0 -0
  431. package/src/Assets/images/snowflake_particle.png +0 -0
  432. package/src/Assets/models/fengche.gltf +2920 -0
  433. package/src/Assets/resource.ts +32 -0
  434. package/src/const/color.ts +10 -0
  435. package/src/const/config/camera.ts +16 -0
  436. package/src/const/config/index.ts +2 -0
  437. package/src/const/config/viewer.ts +42 -0
  438. package/src/const/index.ts +3 -0
  439. package/src/const/position.ts +34 -0
  440. package/src/core/cdk/compass.ts +24 -0
  441. package/src/core/cdk/index.ts +36 -0
  442. package/src/core/cdk/lnglat.ts +125 -0
  443. package/src/core/cdk/orbit.ts +118 -0
  444. package/src/core/cdk/overlay.ts +90 -0
  445. package/src/core/cdk/slider.ts +54 -0
  446. package/src/core/cdk/svg_compass.svg +33 -0
  447. package/src/core/index.ts +2 -0
  448. package/src/core/layers/baidu-map-layer.ts +117 -0
  449. package/src/core/libs/gui.ts +88 -0
  450. package/src/core/scene/camera.ts +211 -0
  451. package/src/core/scene/globe.ts +33 -0
  452. package/src/core/scene/index.ts +5 -0
  453. package/src/core/scene/layers.ts +240 -0
  454. package/src/core/scene/primitives.ts +55 -0
  455. package/src/core/scene/scene.ts +44 -0
  456. package/src/core/viewer/clock.ts +93 -0
  457. package/src/core/viewer/data.ts +17 -0
  458. package/src/core/viewer/element.ts +146 -0
  459. package/src/core/viewer/entities.ts +74 -0
  460. package/src/core/viewer/event.ts +155 -0
  461. package/src/core/viewer/index.ts +7 -0
  462. package/src/core/viewer/result.ts +7 -0
  463. package/src/core/viewer/terrain.ts +30 -0
  464. package/src/core/viewer/viewer.ts +255 -0
  465. package/src/entities/ellipse.ts +68 -0
  466. package/src/entities/geojson.ts +19 -0
  467. package/src/entities/image.ts +28 -0
  468. package/src/entities/index.ts +42 -0
  469. package/src/entities/label.ts +37 -0
  470. package/src/entities/point.ts +48 -0
  471. package/src/entities/polygon.ts +59 -0
  472. package/src/entities/polyline.ts +55 -0
  473. package/src/entities/radar.ts +18 -0
  474. package/src/entities/rectangle.ts +50 -0
  475. package/src/entities/trailing.ts +22 -0
  476. package/src/index.ts +10 -0
  477. package/src/plugins/bathymetry.ts +107 -0
  478. package/src/plugins/elevation.ts +146 -0
  479. package/src/plugins/index.ts +3 -0
  480. package/src/plugins/post-process-snow.glsl +99 -0
  481. package/src/plugins/post-process-snow.ts +45 -0
  482. package/src/plugins/thunder.glsl +159 -0
  483. package/src/primitives/appearance/demo.ts +27 -0
  484. package/src/primitives/appearance/index.ts +1 -0
  485. package/src/primitives/area.ts +40 -0
  486. package/src/primitives/geometry/geometry.ts +44 -0
  487. package/src/primitives/image-2d.ts +73 -0
  488. package/src/primitives/index.ts +9 -0
  489. package/src/primitives/instance/instance.ts +58 -0
  490. package/src/primitives/material/image2d.ts +25 -0
  491. package/src/primitives/material/index.ts +8 -0
  492. package/src/primitives/material/ship2d.ts +55 -0
  493. package/src/primitives/particle.ts +47 -0
  494. package/src/primitives/shaders/EllipsoidSurfaceAppearanceFS.glsl +31 -0
  495. package/src/primitives/shaders/EllipsoidSurfaceAppearanceVS.glsl +19 -0
  496. package/src/primitives/shaders/imageFS.glsl +22 -0
  497. package/src/primitives/shaders/raedme.md +187 -0
  498. package/src/property/index.ts +1 -0
  499. package/src/property/material/core.ts +52 -0
  500. package/src/property/material/index.ts +5 -0
  501. package/src/property/material/radar.ts +41 -0
  502. package/src/property/material/road.ts +35 -0
  503. package/src/property/material/trailing.ts +31 -0
  504. package/src/property/material/wall.ts +31 -0
  505. package/src/scene/TJG/area.ts +37 -0
  506. package/src/scene/TJG/billboard.ts +89 -0
  507. package/src/scene/TJG/entityies.ts +131 -0
  508. package/src/scene/TJG/lines.ts +14 -0
  509. package/src/scene/TJG/maps.ts +16 -0
  510. package/src/scene/TJG/scene-tjg.ts +212 -0
  511. package/src/scene/TJG/ships.ts +32 -0
  512. package/src/scene/TJG/tileset.ts +144 -0
  513. package/src/scene/TJG/tjg.d.ts +14 -0
  514. package/src/scene/cdk/fog.ts +47 -0
  515. package/src/scene/cdk/index.ts +4 -0
  516. package/src/scene/cdk/measure.ts +108 -0
  517. package/src/scene/cdk/plot.ts +182 -0
  518. package/src/scene/cdk/source.ts +33 -0
  519. package/src/shaders/3d-tileset.ts +41 -0
  520. package/src/shaders/index.ts +1 -0
  521. package/src/shaders/material-property/a-readme.md +2 -0
  522. package/src/shaders/material-property/radarFS.glsl +25 -0
  523. package/src/shaders/material-property/roadFS.glsl +14 -0
  524. package/src/shaders/material-property/trailingFS.glsl +18 -0
  525. package/src/shaders/material-property/wallFS.glsl +31 -0
  526. package/src/shaders/raedme.md +187 -0
  527. package/src/shaders/ship/ShipVS.glsl +19 -0
  528. package/src/sl-utils-cesium.ts +1 -0
  529. package/src/types/cdk.d.ts +20 -0
  530. package/src/types/core.d.ts +6 -0
  531. package/src/types/entity.d.ts +628 -0
  532. package/src/types/event.d.ts +32 -0
  533. package/src/types/extend.Cesium.d.ts +28 -0
  534. package/src/types/geometry.d.ts +55 -0
  535. package/src/types/plugins.d.ts +34 -0
  536. package/src/types/primitive.d.ts +69 -0
  537. package/src/types/scene.d.ts +25 -0
  538. package/src/types/viewer.d.ts +114 -0
  539. package/src/utils/cesium.ts +189 -0
  540. package/src/utils/common.ts +87 -0
  541. package/src/utils/index.ts +5 -0
  542. package/src/utils/map.ts +112 -0
  543. package/src/utils/types.ts +44 -0
  544. package/tsconfig.cjs.json +7 -0
  545. package/tsconfig.json +34 -0
  546. package/types/billboard.d.ts +8 -0
  547. package/types/entities.d.ts +224 -0
  548. package/types/property.d.ts +12 -0
  549. package/types/resource.d.ts +26 -0
  550. package/types/sl-utils-cesium.d.ts +17 -0
  551. package/vite.config.ts +43 -0
  552. package/webpack.config.js +29 -0
@@ -0,0 +1,112 @@
1
+ const a = 6378245.0;
2
+ const pi = 3.1415926535897932384626;
3
+ const ee = 0.00669342162296594323;
4
+ const x_pi = pi * 3000.0 / 180.0;
5
+ /**地球半径 */
6
+ const R = 6378137;
7
+ /** 百度转84 */
8
+ function tobd09gps84(lng: number, lat: number) {
9
+ var gcj02 = tobd09cj02(lng, lat);
10
+ var map84 = togcj02gps84(gcj02.lng, gcj02.lat);
11
+ return map84;
12
+ }
13
+ /** 火星转84 */
14
+ function togcj02gps84(lng: number, lat: number) {
15
+ var coord = transform(lng, lat);
16
+ var lontitude = lng * 2 - coord.lng;
17
+ var latitude = lat * 2 - coord.lat;
18
+ var newCoord = {
19
+ lng: lontitude,
20
+ lat: latitude
21
+ };
22
+ return newCoord;
23
+ }
24
+ /** 84转百度 */
25
+ function togps84bd09(lng: number, lat: number) {
26
+ var gcj02 = togps84gcj02(lng, lat);
27
+ var bd09 = togcj02bd09(gcj02.lng, gcj02.lat);
28
+ return bd09;
29
+ }
30
+ /** 84转火星 */
31
+ function togps84gcj02(lng: number, lat: number) {
32
+ var dLat = transformLat(lng - 105.0, lat - 35.0);
33
+ var dLng = transformLng(lng - 105.0, lat - 35.0);
34
+ var radLat = lat / 180.0 * pi;
35
+ var magic = Math.sin(radLat);
36
+ magic = 1 - ee * magic * magic;
37
+ var sqrtMagic = Math.sqrt(magic);
38
+ dLat = (dLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * pi);
39
+ dLng = (dLng * 180.0) / (a / sqrtMagic * Math.cos(radLat) * pi);
40
+ var mgLat = lat + dLat;
41
+ var mgLng = lng + dLng;
42
+ var newCoord = {
43
+ lng: mgLng,
44
+ lat: mgLat
45
+ };
46
+ return newCoord;
47
+ }
48
+ /** 火星转百度 */
49
+ function togcj02bd09(lng: number, lat: number) {
50
+ var z = Math.sqrt(lng * lng + lat * lat) + 0.00002 * Math.sin(lat * x_pi);
51
+ var theta = Math.atan2(lat, lng) + 0.000003 * Math.cos(lng * x_pi);
52
+ var bd_lng = z * Math.cos(theta) + 0.0065;
53
+ var bd_lat = z * Math.sin(theta) + 0.006;
54
+ var newCoord = {
55
+ lng: bd_lng,
56
+ lat: bd_lat
57
+ };
58
+ return newCoord;
59
+ }
60
+ /** 百度转火星 */
61
+ function tobd09cj02(bd_lng: number, bd_lat: number) {
62
+ var x = bd_lng - 0.0065;
63
+ var y = bd_lat - 0.006;
64
+ var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * x_pi);
65
+ var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * x_pi);
66
+ var gg_lng = z * Math.cos(theta);
67
+ var gg_lat = z * Math.sin(theta);
68
+ var newCoord = {
69
+ lng: gg_lng,
70
+ lat: gg_lat
71
+ };
72
+ return newCoord;
73
+ }
74
+ function transform(lng: number, lat: number) {
75
+ var dLat = transformLat(lng - 105.0, lat - 35.0);
76
+ var dLng = transformLng(lng - 105.0, lat - 35.0);
77
+ var radLat = lat / 180.0 * pi;
78
+ var magic = Math.sin(radLat);
79
+ magic = 1 - ee * magic * magic;
80
+ var sqrtMagic = Math.sqrt(magic);
81
+ dLat = (dLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * pi);
82
+ dLng = (dLng * 180.0) / (a / sqrtMagic * Math.cos(radLat) * pi);
83
+ var mgLat = lat + dLat;
84
+ var mgLng = lng + dLng;
85
+ var newCoord = {
86
+ lng: mgLng,
87
+ lat: mgLat
88
+ };
89
+ return newCoord;
90
+ }
91
+ function transformLat(x: number, y: number) {
92
+ var ret = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * Math.sqrt(Math.abs(x));
93
+ ret += (20.0 * Math.sin(6.0 * x * pi) + 20.0 * Math.sin(2.0 * x * pi)) * 2.0 / 3.0;
94
+ ret += (20.0 * Math.sin(y * pi) + 40.0 * Math.sin(y / 3.0 * pi)) * 2.0 / 3.0;
95
+ ret += (160.0 * Math.sin(y / 12.0 * pi) + 320 * Math.sin(y * pi / 30.0)) * 2.0 / 3.0;
96
+ return ret;
97
+ }
98
+ function transformLng(x: number, y: number) {
99
+ var ret = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * Math.sqrt(Math.abs(x));
100
+ ret += (20.0 * Math.sin(6.0 * x * pi) + 20.0 * Math.sin(2.0 * x * pi)) * 2.0 / 3.0;
101
+ ret += (20.0 * Math.sin(x * pi) + 40.0 * Math.sin(x / 3.0 * pi)) * 2.0 / 3.0;
102
+ ret += (150.0 * Math.sin(x / 12.0 * pi) + 300.0 * Math.sin(x / 30.0 * pi)) * 2.0 / 3.0;
103
+ return ret;
104
+ }
105
+ export {
106
+ tobd09gps84 as um_tobd09gps84,
107
+ togcj02gps84 as um_togcj02gps84,
108
+ togps84bd09 as um_togps84bd09,
109
+ togps84gcj02 as um_togps84gcj02,
110
+ togcj02bd09 as um_togcj02bd09,
111
+ tobd09cj02 as um_tobd09cj02,
112
+ };
@@ -0,0 +1,44 @@
1
+ import { Cartesian2, Cartesian3, Property, Scene } from "cesium";
2
+ /**类型判断工具类 */
3
+ function uc_tsIfNumber(value): value is number {
4
+ return typeof value === 'number'
5
+ }
6
+ /**判断参数是否是Property */
7
+ function uc_tsIfProperty(value: any): value is Property {
8
+ return value instanceof Property;
9
+ }
10
+ /**判断参数是否是Cartesian2*/
11
+ function uc_tsIfCartesian2(value: any): value is Cartesian2 {
12
+ return value instanceof Cartesian2;
13
+ }
14
+ /**判断参数是否是Cartesian3 */
15
+ function uc_tsIfCartesian3(value: any): value is Cartesian3 {
16
+ return value instanceof Cartesian3;
17
+ }
18
+ /**判断参数是否是经纬度数组 */
19
+ function uc_tsIfLnglatHeight(value: any): value is LnglatHeight {
20
+ return Array.isArray(value) && typeof value[0] === 'number' && typeof value[1] === 'number' && (typeof value[2] === 'number' || typeof value[2] === 'undefined');
21
+ }
22
+
23
+ /**判断参数是否是Cartesian3数组 */
24
+ function uc_tsIfCartesian3Array(value: any): value is Cartesian3[] {
25
+ return Array.isArray(value) && uc_tsIfCartesian3(value[0]);
26
+ }
27
+ /**判断参数是否是经纬度数组 */
28
+ function uc_tsIfLnglatHeightArray(value: any): value is LnglatHeight[] {
29
+ return Array.isArray(value) && uc_tsIfLnglatHeight(value[0]);
30
+ }
31
+ /**判断参数是否是Scene */
32
+ function uc_tsIfScene(value: any): value is Scene {
33
+ return value instanceof Scene;
34
+ }
35
+ export {
36
+ uc_tsIfNumber,
37
+ uc_tsIfProperty,
38
+ uc_tsIfCartesian2,
39
+ uc_tsIfCartesian3,
40
+ uc_tsIfLnglatHeight,
41
+ uc_tsIfCartesian3Array,
42
+ uc_tsIfLnglatHeightArray,
43
+ uc_tsIfScene
44
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "CommonJS",
5
+ "outDir": "./dist"
6
+ }
7
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,34 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "compilerOptions": {
4
+ /**启用所有严格类型检查选项*/
5
+ "strict": false,
6
+ /**关闭“所有路径必须返回值”的检查*/
7
+ "noImplicitReturns": false,
8
+ /**在严格的 null检查模式下, null和 undefined值不包含在任何类型里*/
9
+ "strictNullChecks": false,
10
+ "noImplicitAny": false,
11
+ "removeComments": true,
12
+ "preserveConstEnums": true,
13
+ "sourceMap": true,
14
+ "target": "ES2020",
15
+ "module": "commonjs",
16
+ "outDir": "./dist",
17
+ "rootDir": "./src",
18
+ "baseUrl": ".",
19
+ "lib": [
20
+ "es2020",
21
+ "dom"
22
+ ],
23
+ "paths": {
24
+ "@sl-utils/cesium": [
25
+ "types/sl-utils-cesium.d.ts"
26
+ ] // 添加这行
27
+ }
28
+ },
29
+ "include": [
30
+ "src/**/*",
31
+ "types/**/*",
32
+ ],
33
+ "exclude": []
34
+ }
@@ -0,0 +1,8 @@
1
+ /**广告牌信息 */
2
+ interface BillboardInfo {
3
+ id: string;
4
+ positions: LnglatHeight,
5
+ type: string;
6
+ /**图片裁切位置 */
7
+ subRegion?: [number, number]
8
+ }
@@ -0,0 +1,224 @@
1
+ import { ArcType, Cartesian2, Cartesian3, ClassificationType, Color, ConstantProperty, DistanceDisplayCondition, EllipseGraphics, HeightReference, HorizontalOrigin, LabelGraphics, LabelStyle, MaterialProperty, NearFarScalar, PlaneGraphics, PointGraphics, PolygonGraphics, PolygonHierarchy, PolylineGraphics, PositionProperty, Property, Rectangle, RectangleGraphics, ShadowMode, VerticalOrigin, Viewer } from "cesium";
2
+ import { CCamera } from "src/core";
3
+
4
+ declare global {
5
+ /**配置-实体椭圆 */
6
+ interface OptEntityEllipse extends EllipseGraphics.ConstructorOptions {
7
+ /**经纬度坐标点(设置此属性会覆盖positions,此值不能在外部动态变化) @default [] */
8
+ lnglat?: LnglatHeight,
9
+ /**坐标点 @default*/
10
+ position?: PositionProperty | Cartesian3;
11
+ /**点数据会增加变化的折线 */
12
+ ifChange?: boolean,
13
+
14
+ show?: Property | boolean;
15
+ /**指定半长轴的数字属性 */
16
+ semiMajorAxis?: Property | number;
17
+ /**指定半短轴的数字属性 */
18
+ semiMinorAxis?: Property | number;
19
+ height?: Property | number;
20
+ heightReference?: Property | HeightReference;
21
+ extrudedHeight?: Property | number;
22
+ extrudedHeightReference?: Property | HeightReference;
23
+ rotation?: Property | number;
24
+ stRotation?: Property | number;
25
+ granularity?: Property | number;
26
+ fill?: Property | boolean;
27
+ material?: MaterialProperty | Color;
28
+ /**指定多边形是否轮廓的属性,只有显示设置为height=0时才显示轮廓边框 */
29
+ outline?: Property | boolean;
30
+ outlineColor?: Property | Color;
31
+ outlineWidth?: Property | number;
32
+ numberOfVerticalLines?: Property | number;
33
+ shadows?: Property | ShadowMode;
34
+ distanceDisplayCondition?: Property | DistanceDisplayCondition;
35
+ classificationType?: Property | ClassificationType;
36
+ zIndex?: ConstantProperty | number;
37
+ }
38
+ /**实体扫描雷达的配置项 */
39
+ interface OptEntityGeojson {
40
+ /**geojson的文件路径 */
41
+ url: string;
42
+ /**雷达扫射半径 */
43
+ viewer: Viewer;
44
+ }
45
+ /**配置-实体图片 */
46
+ interface OptEntityImage extends PlaneGraphics.ConstructorOptions {
47
+ id?: string;
48
+ /**经纬度坐标点(设置此属性会覆盖positions,此值不能在外部动态变化) @default [] */
49
+ lnglat?: LnglatHeight,
50
+ /**图片 */
51
+ url: string;
52
+ /**旋转角度 - ° */
53
+ rotate: number
54
+ /**相机 */
55
+ camera: CCamera;
56
+ /**大小 - x */
57
+ sizeX: number;
58
+ /**大小 - y */
59
+ sizeY: number;
60
+ }
61
+ /**配置-实体标签 */
62
+ interface OptEntityLabel extends LabelGraphics.ConstructorOptions {
63
+ /**实际上不管如何设置都可改变位置 */
64
+ ifChange?: boolean;
65
+ /**标签的位置 */
66
+ position?: PositionProperty | Cartesian3;
67
+ show?: Property | boolean;
68
+ text?: Property | string;
69
+ font?: Property | string;
70
+ style?: Property | LabelStyle;
71
+ scale?: Property | number;
72
+ showBackground?: Property | boolean;
73
+ backgroundColor?: Property | Color;
74
+ backgroundPadding?: Property | Cartesian2;
75
+ pixelOffset?: Property | Cartesian2;
76
+ eyeOffset?: Property | Cartesian3;
77
+ horizontalOrigin?: Property | HorizontalOrigin;
78
+ verticalOrigin?: Property | VerticalOrigin;
79
+ heightReference?: Property | HeightReference;
80
+ fillColor?: Property | Color;
81
+ outlineColor?: Property | Color;
82
+ outlineWidth?: Property | number;
83
+ translucencyByDistance?: Property | NearFarScalar;
84
+ pixelOffsetScaleByDistance?: Property | NearFarScalar;
85
+ scaleByDistance?: Property | NearFarScalar;
86
+ distanceDisplayCondition?: Property | DistanceDisplayCondition;
87
+ disableDepthTestDistance?: Property | number;
88
+ }
89
+ /**配置-实体点 */
90
+ interface OptEntityPoint extends PointGraphics.ConstructorOptions {
91
+ id?: string;
92
+ position?: PositionProperty | Cartesian3,
93
+ /**点数据会变化的点(此时position不能为PositionProperty类型) */
94
+ ifChange?: boolean,
95
+ show?: Property | boolean;
96
+ pixelSize?: Property | number;
97
+ heightReference?: Property | HeightReference;
98
+ color?: Property | Color;
99
+ outlineColor?: Property | Color;
100
+ outlineWidth?: Property | number;
101
+ scaleByDistance?: Property | NearFarScalar;
102
+ translucencyByDistance?: Property | NearFarScalar;
103
+ distanceDisplayCondition?: Property | DistanceDisplayCondition;
104
+ disableDepthTestDistance?: Property | number;
105
+
106
+ }
107
+ /**配置-实体多边形 */
108
+ interface OptEntityPolygon extends PolygonGraphics.ConstructorOptions {
109
+ /**点数据会增加变化的折线 */
110
+ ifChange?: boolean,
111
+
112
+ /**是否显示 */
113
+ show?: Property | boolean;
114
+ /**指定多边形点位(可以挖空) */
115
+ hierarchy?: Property | PolygonHierarchy | Cartesian3[];
116
+ /**指定多边形的恒定高度 @default 0.0 */
117
+ height?: Property | number;
118
+ /**指定拉伸的 HeightReference 的属性 */
119
+ heightReference?: Property | HeightReference;
120
+ /**指定多边形拉伸的高度 */
121
+ extrudedHeight?: Property | number;
122
+ extrudedHeightReference?: Property | HeightReference;
123
+ stRotation?: Property | number;
124
+ /**指定多边形上各点之间的角度距离 */
125
+ granularity?: Property | number;
126
+ /**指定多边形是否被提供的材质填充 */
127
+ fill?: Property | boolean;
128
+ /**指定用于填充多边形的材质的属性 */
129
+ material?: MaterialProperty | Color;
130
+ /**指定多边形是否轮廓的属性,只有显示设置为height=0时才显示轮廓边框 */
131
+ outline?: Property | boolean;
132
+ /**指定轮廓的 Color 的属性@default Color.BLACK */
133
+ outlineColor?: Property | Color;
134
+ /**指定轮廓的宽度@default 1.0 */
135
+ outlineWidth?: Property | number;
136
+ /**指定是否使用每个位置的高度 */
137
+ perPositionHeight?: Property | boolean;
138
+ /**指定是否包括挤压多边形的顶部 */
139
+ closeTop?: boolean | boolean;
140
+ /**指定是否包括拉伸多边形的底部 */
141
+ closeBottom?: boolean | boolean;
142
+ /**指定多边形边缘使用的线的类型 */
143
+ arcType?: Property | ArcType;
144
+ shadows?: Property | ShadowMode;
145
+ /**指定将在距相机多远的距离显示此多边形 */
146
+ distanceDisplayCondition?: Property | DistanceDisplayCondition;
147
+ /**指定此多边形在地面上时是对地形,3D Tile还是对两者进行分类 */
148
+ classificationType?: Property | ClassificationType;
149
+ zIndex?: ConstantProperty | number;
150
+ textureCoordinates?: Property | PolygonHierarchy;
151
+ }
152
+ /**配置-实体折线 */
153
+ interface OptEntityPolyline extends PolylineGraphics.ConstructorOptions {
154
+ /**点数据会增加变化的折线 */
155
+ ifChange?: boolean,
156
+ /**是否显示 @default true*/
157
+ show?: Property | boolean;
158
+ /**折线点的集合 @default []*/
159
+ positions?: Property | Cartesian3[];
160
+ /**折线宽度 @default 2 */
161
+ width?: Property | number;
162
+ granularity?: Property | number;
163
+ /**线条材质 @default Color.fromRgba(0x67ADDFFF)*/
164
+ material?: MaterialProperty | Color;
165
+ depthFailMaterial?: MaterialProperty | Color;
166
+ /**指定线段应该是大弧线,菱形线还是线性连接 @default ArcType.GEODESIC*/
167
+ arcType?: Property | ArcType;
168
+ clampToGround?: Property | boolean;
169
+ shadows?: Property | ShadowMode;
170
+ distanceDisplayCondition?: Property | DistanceDisplayCondition;
171
+ classificationType?: Property | ClassificationType;
172
+ zIndex?: Property | number;
173
+ }
174
+ /**实体扫描雷达的配置项 */
175
+ interface OptEntityRadar {
176
+ /**中心点位置 */
177
+ position: LnglatHeight;
178
+ /**雷达扫射半径 */
179
+ radius: number;
180
+ }
181
+ /**配置-实体矩形 */
182
+ interface OptEntityRectangle extends RectangleGraphics.ConstructorOptions {
183
+ /**点数据会增加变化的折线 */
184
+ ifChange?: boolean,
185
+ /**是否显示 */
186
+ show?: Property | boolean;
187
+ /**指定多边形点位(可以挖空) */
188
+ coordinates?: Property | Rectangle;
189
+ /**指定多边形的恒定高度 @default 0.0 */
190
+ height?: Property | number;
191
+ /**指定拉伸的 HeightReference 的属性 */
192
+ heightReference?: Property | HeightReference;
193
+ /**指定多边形拉伸的高度 */
194
+ extrudedHeight?: Property | number;
195
+ extrudedHeightReference?: Property | HeightReference;
196
+ /**指定矩形从北方向顺时针方向的旋转 */
197
+ rotation?: Property | number;
198
+ /**指定矩形纹理从北方逆时针旋转 */
199
+ stRotation?: Property | number;
200
+ /**指定多边形上各点之间的角度距离 */
201
+ granularity?: Property | number;
202
+ /**指定多边形是否被提供的材质填充 */
203
+ fill?: Property | boolean;
204
+ /**指定用于填充多边形的材质的属性 */
205
+ material?: MaterialProperty | Color;
206
+ /**指定多边形是否轮廓的属性,只有显示设置为height=0时才显示轮廓边框 */
207
+ outline?: Property | boolean;
208
+ /**指定轮廓的 Color 的属性@default Color.BLACK */
209
+ outlineColor?: Property | Color;
210
+ /**指定轮廓的宽度@default 1.0 */
211
+ outlineWidth?: Property | number;
212
+ shadows?: Property | ShadowMode;
213
+ /**指定将在距相机多远的距离显示此多边形 */
214
+ distanceDisplayCondition?: Property | DistanceDisplayCondition;
215
+ /**指定此多边形在地面上时是对地形,3D Tile还是对两者进行分类 */
216
+ classificationType?: Property | ClassificationType;
217
+ zIndex?: ConstantProperty | number;
218
+ }
219
+ /**配置-实体线-拖尾效果 */
220
+ interface OptEntityTrailing {
221
+ /**点位置组-组成线 */
222
+ positions: LnglatHeight[];
223
+ }
224
+ }
@@ -0,0 +1,12 @@
1
+ /**材质属性构造项 */
2
+ interface OptPropertyMaterial {
3
+ fabric: {
4
+ /**材质属性名称 */
5
+ type: string;
6
+ uniforms: any;
7
+ components?: any;
8
+ /**材质属性着色器语言 */
9
+ source: string;
10
+ };
11
+ translucent?: Function
12
+ }
@@ -0,0 +1,26 @@
1
+ /**资源类型模块申明 */
2
+ declare module '*.glsl' {
3
+ const value: string;
4
+ export default value;
5
+ }
6
+ declare module '*.gltf' {
7
+ const value: string;
8
+ export default value;
9
+ }
10
+ declare module '*.png' {
11
+ const value: string;
12
+ export default value;
13
+ }
14
+ declare module '*.ico' {
15
+ const value: string;
16
+ export default value;
17
+ }
18
+ declare module '*.svg' {
19
+ const value: string;
20
+ export default value;
21
+ }
22
+ declare module '*.geojson' {
23
+ const value: string;
24
+ export default value;
25
+ }
26
+
@@ -0,0 +1,17 @@
1
+ import { SLCViewer } from "src/core";
2
+
3
+ declare module "@sl-utils/cesium" {
4
+
5
+ export class SceneTJG extends SLCViewer {
6
+ constructor(html)
7
+
8
+ /** */
9
+ public openMeasure()
10
+ /**添加船舶 */
11
+ public onAddShips(ships: CesiumShipInfo[])
12
+
13
+ public addBouys(allIcons: BillboardInfo[])
14
+ /**添加风电场区域 */
15
+ public onAddWindArea()
16
+ }
17
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,43 @@
1
+ import { defineConfig } from 'vite'
2
+ import glsl from 'vite-plugin-glsl'
3
+ import { viteStaticCopy } from 'vite-plugin-static-copy'
4
+ import vue from '@vitejs/plugin-vue'
5
+ // https://vite.dev/config/
6
+ export default defineConfig({
7
+ // 让 Vite 将 .gltf 和 .glb 文件视为静态资源处理
8
+ assetsInclude: ['**/*.gltf', '**/*.glb', '**/*.geojson'],
9
+ plugins: [
10
+ glsl({
11
+ include: [ // 要处理的文件类型
12
+ '**/*.glsl',
13
+ '**/*.wgsl',
14
+ '**/*.vert',
15
+ '**/*.frag',
16
+ '**/*.vs',
17
+ '**/*.fs',
18
+ '**/*.glsl'
19
+ ],
20
+ exclude: undefined, // 排除的文件
21
+ warnDuplicatedImports: true, // 警告重复导入
22
+ defaultExtension: 'glsl', // 默认扩展名
23
+ watch: true // 监听文件变化
24
+ }), viteStaticCopy({
25
+ targets: [
26
+ {
27
+ src: 'Cesium/Assets/**/*', // 源文件夹路径
28
+ dest: '/Assets' , // 目标文件夹(相对于 build.outDir)
29
+ }
30
+ ]
31
+ }), vue()],
32
+ build: {
33
+ outDir: 'dist',
34
+ lib: {
35
+ entry: 'src/sl-utils-cesium.ts',
36
+ name: 'test',
37
+ fileName: (format) => `sl-utils-cesium.${format}.js`,
38
+ },
39
+ },
40
+ server: {
41
+ port: 5171
42
+ }
43
+ })
@@ -0,0 +1,29 @@
1
+ // webpack.config.js
2
+ module.exports = {
3
+ // 其他配置...
4
+ module: {
5
+ rules: [
6
+ {
7
+ // 匹配需要处理的文件类型
8
+ test: /\.(png|jpe?g|gif|svg|woff|woff2|eot|ttf|otf)$/i,
9
+ use: [
10
+ {
11
+ loader: 'file-loader',
12
+ options: {
13
+ // 输出文件的名称模板
14
+ name: '[name].[hash:8].[ext]',
15
+ // 输出路径(相对于 output 目录)
16
+ outputPath: 'assets/',
17
+ // 公共路径(用于引用资源)
18
+ publicPath: 'assets/',
19
+ // 是否保留原始文件路径
20
+ useRelativePath: false,
21
+ // 是否输出文件(默认 true)
22
+ emitFile: true
23
+ }
24
+ }
25
+ ]
26
+ }
27
+ ]
28
+ }
29
+ }