create-swdg-frontend 0.1.7 → 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 (440) hide show
  1. package/README.md +31 -13
  2. package/bin/index.js +3 -244
  3. package/lib/argv.js +43 -0
  4. package/lib/cli.js +141 -0
  5. package/lib/constants.js +24 -0
  6. package/lib/gis.js +92 -0
  7. package/lib/manifest.js +23 -0
  8. package/lib/prompts.js +55 -0
  9. package/lib/scaffold.js +118 -0
  10. package/package.json +6 -2
  11. package/scripts/sync-template.js +120 -0
  12. package/scripts/validate-template.mjs +74 -0
  13. package/stubs/tsconfig.node.json +11 -0
  14. package/stubs/types-env.d.ts +9 -0
  15. package/stubs/vite.config.ts +64 -0
  16. package/template/.env.example +6 -0
  17. package/template/.github/workflows/ci.yml +23 -0
  18. package/template/.github/workflows/release.yml +69 -0
  19. package/template/.stylelintrc.json +7 -1
  20. package/template/README.md +95 -32
  21. package/template/auto-imports.d.ts +10 -0
  22. package/template/docs/MAINTAINER.md +77 -0
  23. package/template/docs/ONBOARDING.md +284 -0
  24. package/template/docs/TESTING.md +104 -0
  25. package/template/package.json +48 -41
  26. package/template/pnpm-lock.yaml +6360 -0
  27. package/template/scripts/gen-api.cjs +20 -7
  28. package/template/scripts/release.mjs +22 -28
  29. package/template/scripts/set-release-version.mjs +46 -0
  30. package/template/scripts/test-pipeline.mjs +85 -0
  31. package/template/scripts/test-scaffold.mjs +197 -0
  32. package/template/scripts/test-template.mjs +52 -0
  33. package/template/scripts/verify.mjs +28 -0
  34. package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
  35. package/template/src/api/README.md +4 -0
  36. package/template/src/components/Body/index.vue +65 -35
  37. package/template/src/components/CesiumViewer/index.vue +36 -0
  38. package/template/src/components/Header/index.vue +16 -5
  39. package/template/src/components/OnboardingDeck/index.vue +449 -0
  40. package/template/src/data/onboardingSlides.ts +208 -0
  41. package/template/src/main.ts +1 -0
  42. package/template/src/router/index.ts +20 -14
  43. package/template/src/router/routeUtils.ts +13 -0
  44. package/template/src/styles/shell.css +232 -0
  45. package/template/src/utils/axios-middleware.js +1 -1
  46. package/template/src/utils/cesium/index.ts +71 -0
  47. package/template/src/utils/composables/useFeatureGis.ts +24 -0
  48. package/template/src/views/examples/cesium/index.vue +85 -0
  49. package/template/src/views/examples/guide/index.vue +42 -0
  50. package/template/src/views/examples/test/index.vue +63 -0
  51. package/template/src/views/index.vue +2 -3
  52. package/template/tests/README.md +1 -0
  53. package/template/tests/unit/onboardingSlides.test.ts +20 -0
  54. package/template/tests/unit/router.utils.test.ts +21 -0
  55. package/template/tests/unit/scaffold.lib.test.ts +44 -0
  56. package/template/tests/unit/useFeatureGis.test.ts +14 -0
  57. package/template/tsconfig.json +17 -17
  58. package/template/tsconfig.node.json +1 -1
  59. package/template/types/env.d.ts +13 -0
  60. package/template/vite.config.ts +26 -5
  61. package/template/vitest.config.ts +13 -0
  62. package/template/.env +0 -1
  63. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
  64. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
  65. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
  66. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
  67. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
  68. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
  69. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
  70. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
  71. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
  72. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
  73. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
  74. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
  75. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
  76. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
  77. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
  78. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
  79. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
  80. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
  81. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
  82. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
  83. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
  84. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
  85. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
  86. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
  87. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
  88. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
  89. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
  90. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
  91. package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
  92. package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
  93. package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
  94. package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
  95. package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  96. package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  97. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  98. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  99. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  100. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  101. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  102. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  103. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  104. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  105. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  106. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  107. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  108. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  109. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  110. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  111. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  112. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  113. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  114. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  115. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  116. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  117. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  118. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  119. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  120. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  121. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  122. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  123. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  124. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  125. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  126. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  127. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  128. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  129. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  130. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  131. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  132. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  133. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  134. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  135. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  136. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  137. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  138. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  139. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
  140. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  141. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  142. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  143. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  144. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  145. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  146. package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
  147. package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
  148. package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
  149. package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
  150. package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
  151. package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
  152. package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
  153. package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
  154. package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
  155. package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
  156. package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
  157. package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
  158. package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
  159. package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
  160. package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
  161. package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
  162. package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
  163. package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
  164. package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
  165. package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
  166. package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
  167. package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
  168. package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
  169. package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
  170. package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
  171. package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
  172. package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
  173. package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
  174. package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
  175. package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
  176. package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
  177. package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
  178. package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
  179. package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
  180. package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
  181. package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
  182. package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
  183. package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
  184. package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
  185. package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
  186. package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
  187. package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
  188. package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
  189. package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
  190. package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
  191. package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
  192. package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
  193. package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
  194. package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
  195. package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
  196. package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
  197. package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
  198. package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
  199. package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
  200. package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
  201. package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
  202. package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
  203. package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
  204. package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
  205. package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
  206. package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
  207. package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
  208. package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
  209. package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
  210. package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
  211. package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
  212. package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
  213. package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
  214. package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
  215. package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
  216. package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
  217. package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
  218. package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
  219. package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
  220. package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
  221. package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
  222. package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
  223. package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
  224. package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
  225. package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
  226. package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
  227. package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
  228. package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
  229. package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
  230. package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
  231. package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
  232. package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
  233. package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
  234. package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
  235. package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
  236. package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
  237. package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
  238. package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
  239. package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
  240. package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
  241. package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
  242. package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
  243. package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
  244. package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
  245. package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
  246. package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
  247. package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
  248. package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
  249. package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
  250. package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
  251. package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
  252. package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
  253. package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
  254. package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
  255. package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
  256. package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
  257. package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
  258. package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
  259. package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
  260. package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
  261. package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
  262. package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
  263. package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
  264. package/template/public/Cesium1.119/Assets/Textures/pin.svg +0 -1
  265. package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
  266. package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
  267. package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +0 -10924
  268. package/template/public/Cesium1.119/Cesium.js +0 -185772
  269. package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
  270. package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
  271. package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
  272. package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
  273. package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
  274. package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
  275. package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +0 -11424
  276. package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
  277. package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
  278. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
  279. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
  280. package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
  281. package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
  282. package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
  283. package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
  284. package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
  285. package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
  286. package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
  287. package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
  288. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  289. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  290. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  291. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  292. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  293. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  294. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  295. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  296. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  297. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  298. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  299. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  300. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  301. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  302. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  303. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  304. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  305. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  306. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  307. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
  308. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
  309. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
  310. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
  311. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
  312. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
  313. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
  314. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
  315. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
  316. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  317. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  318. package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
  319. package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
  320. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +0 -94
  321. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
  322. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
  323. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
  324. package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
  325. package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
  326. package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
  327. package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
  328. package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
  329. package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
  330. package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
  331. package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
  332. package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
  333. package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
  334. package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
  335. package/template/public/Cesium1.119/Widgets/shared.css +0 -103
  336. package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
  337. package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
  338. package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
  339. package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
  340. package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
  341. package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
  342. package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
  343. package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
  344. package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
  345. package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
  346. package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
  347. package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
  348. package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
  349. package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
  350. package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
  351. package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
  352. package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
  353. package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
  354. package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
  355. package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
  356. package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
  357. package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
  358. package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
  359. package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
  360. package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
  361. package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
  362. package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
  363. package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
  364. package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
  365. package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
  366. package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
  367. package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
  368. package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
  369. package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
  370. package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
  371. package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
  372. package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
  373. package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
  374. package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
  375. package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
  376. package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
  377. package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
  378. package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
  379. package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
  380. package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
  381. package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
  382. package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
  383. package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
  384. package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
  385. package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
  386. package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
  387. package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
  388. package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
  389. package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
  390. package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
  391. package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
  392. package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
  393. package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
  394. package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
  395. package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
  396. package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
  397. package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
  398. package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
  399. package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
  400. package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
  401. package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
  402. package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
  403. package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
  404. package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
  405. package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
  406. package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
  407. package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
  408. package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
  409. package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
  410. package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
  411. package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
  412. package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
  413. package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
  414. package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
  415. package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
  416. package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
  417. package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
  418. package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
  419. package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
  420. package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
  421. package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
  422. package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
  423. package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
  424. package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
  425. package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
  426. package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
  427. package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
  428. package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
  429. package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
  430. package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
  431. package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
  432. package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
  433. package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
  434. package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
  435. package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
  436. package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
  437. package/template/public/Cesium1.119/index.cjs +0 -185632
  438. package/template/public/Cesium1.119/index.js +0 -182874
  439. package/template/src/views/Test/index.vue +0 -56
  440. package/template/tests/unit/example.test.ts +0 -7
@@ -1,331 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.119
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 { a as _ } from "./chunk-AMQUWUD4.js";
27
- import { a as te } from "./chunk-KF5NF354.js";
28
- import { a as fe, b as j, f as Z, g as me } from "./chunk-7Z5IIKOJ.js";
29
- import { a as e, b as ie, c as ee, e as O } from "./chunk-POASMU2N.js";
30
- import { a as Q } from "./chunk-R6KGAEF6.js";
31
- import { a as se } from "./chunk-IUA6FAOZ.js";
32
- import { a as le } from "./chunk-UH2WFNTA.js";
33
- import { e as $ } from "./chunk-PEYJTJPE.js";
34
- var Se = { ROUNDED: 0, MITERED: 1, BEVELED: 2 },
35
- G = Object.freeze(Se);
36
- var ue = {};
37
- function P(r, n) {
38
- if (!$(r)) throw new le("identifier is required.");
39
- $(ue[r]) || ((ue[r] = !0), console.warn(se(n, r)));
40
- }
41
- P.geometryOutlines =
42
- "Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";
43
- P.geometryZIndex =
44
- "Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";
45
- P.geometryHeightReference =
46
- "Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored";
47
- P.geometryExtrudedHeightReference =
48
- "Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";
49
- var he = P;
50
- var w = [new e(), new e()],
51
- Te = new e(),
52
- Be = new e(),
53
- Ce = new e(),
54
- ze = new e(),
55
- Ae = new e(),
56
- be = new e(),
57
- Oe = new e(),
58
- ve = new e(),
59
- De = new e(),
60
- I = new e(),
61
- W = new e(),
62
- R = {},
63
- re = new ie();
64
- function je(r, n) {
65
- let a = new Array(r.length);
66
- for (let o = 0; o < r.length; o++) {
67
- let t = r[o];
68
- ((re = n.cartesianToCartographic(t, re)),
69
- (a[o] = re.height),
70
- (r[o] = n.scaleToGeodeticSurface(t, t)));
71
- }
72
- return a;
73
- }
74
- function ne(r, n, a, o) {
75
- let t = r[0],
76
- c = r[1],
77
- f = e.angleBetween(t, c),
78
- l = Math.ceil(f / o),
79
- m = new Array(l),
80
- s;
81
- if (n === a) {
82
- for (s = 0; s < l; s++) m[s] = n;
83
- return (m.push(a), m);
84
- }
85
- let d = (a - n) / l;
86
- for (s = 1; s < l; s++) {
87
- let x = n + s * d;
88
- m[s] = x;
89
- }
90
- return ((m[0] = n), m.push(a), m);
91
- }
92
- var X = new e(),
93
- Y = new e();
94
- function He(r, n, a, o) {
95
- let t = new te(a, o),
96
- c = t.projectPointOntoPlane(e.add(a, r, X), X),
97
- f = t.projectPointOntoPlane(e.add(a, n, Y), Y),
98
- l = ee.angleBetween(c, f);
99
- return f.x * c.y - f.y * c.x >= 0 ? -l : l;
100
- }
101
- var Me = new e(-1, 0, 0),
102
- H = new j(),
103
- Ve = new j(),
104
- oe = new O(),
105
- Ne = O.IDENTITY.clone(),
106
- Fe = new e(),
107
- Ge = new fe(),
108
- de = new e();
109
- function v(r, n, a, o, t, c, f, l) {
110
- let m = Fe,
111
- s = Ge;
112
- ((H = me.eastNorthUpToFixedFrame(r, t, H)),
113
- (m = j.multiplyByPointAsVector(H, Me, m)),
114
- (m = e.normalize(m, m)));
115
- let S = He(m, n, r, t);
116
- ((oe = O.fromRotationZ(S, oe)),
117
- (de.z = c),
118
- (H = j.multiplyTransformation(
119
- H,
120
- j.fromRotationTranslation(oe, de, Ve),
121
- H,
122
- )));
123
- let d = Ne;
124
- d[0] = f;
125
- for (let x = 0; x < l; x++)
126
- for (let i = 0; i < a.length; i += 3)
127
- ((s = e.fromArray(a, i, s)),
128
- (s = O.multiplyByVector(d, s, s)),
129
- (s = j.multiplyByPoint(H, s, s)),
130
- o.push(s.x, s.y, s.z));
131
- return o;
132
- }
133
- var Ie = new e();
134
- function ce(r, n, a, o, t, c, f) {
135
- for (let l = 0; l < r.length; l += 3) {
136
- let m = e.fromArray(r, l, Ie);
137
- o = v(m, n, a, o, t, c[l / 3], f, 1);
138
- }
139
- return o;
140
- }
141
- function Le(r, n) {
142
- let a = r.length,
143
- o = new Array(a * 6),
144
- t = 0,
145
- c = n.x + n.width / 2,
146
- f = n.y + n.height / 2,
147
- l = r[0];
148
- ((o[t++] = l.x - c), (o[t++] = 0), (o[t++] = l.y - f));
149
- for (let m = 1; m < a; m++) {
150
- l = r[m];
151
- let s = l.x - c,
152
- S = l.y - f;
153
- ((o[t++] = s),
154
- (o[t++] = 0),
155
- (o[t++] = S),
156
- (o[t++] = s),
157
- (o[t++] = 0),
158
- (o[t++] = S));
159
- }
160
- return ((l = r[0]), (o[t++] = l.x - c), (o[t++] = 0), (o[t++] = l.y - f), o);
161
- }
162
- function ge(r, n) {
163
- let a = r.length,
164
- o = new Array(a * 3),
165
- t = 0,
166
- c = n.x + n.width / 2,
167
- f = n.y + n.height / 2;
168
- for (let l = 0; l < a; l++)
169
- ((o[t++] = r[l].x - c), (o[t++] = 0), (o[t++] = r[l].y - f));
170
- return o;
171
- }
172
- var ye = new Z(),
173
- we = new e(),
174
- pe = new O();
175
- function xe(r, n, a, o, t, c, f, l, m, s) {
176
- let S = e.angleBetween(e.subtract(n, r, I), e.subtract(a, r, W)),
177
- d = o === G.BEVELED ? 0 : Math.ceil(S / Q.toRadians(5)),
178
- x;
179
- t
180
- ? (x = O.fromQuaternion(
181
- Z.fromAxisAngle(e.negate(r, I), S / (d + 1), ye),
182
- pe,
183
- ))
184
- : (x = O.fromQuaternion(Z.fromAxisAngle(r, S / (d + 1), ye), pe));
185
- let i, g;
186
- if (((n = e.clone(n, we)), d > 0)) {
187
- let D = s ? 2 : 1;
188
- for (let y = 0; y < d; y++)
189
- ((n = O.multiplyByVector(x, n, n)),
190
- (i = e.subtract(n, r, I)),
191
- (i = e.normalize(i, i)),
192
- t || (i = e.negate(i, i)),
193
- (g = c.scaleToGeodeticSurface(n, W)),
194
- (f = v(g, i, l, f, c, m, 1, D)));
195
- } else
196
- ((i = e.subtract(n, r, I)),
197
- (i = e.normalize(i, i)),
198
- t || (i = e.negate(i, i)),
199
- (g = c.scaleToGeodeticSurface(n, W)),
200
- (f = v(g, i, l, f, c, m, 1, 1)),
201
- (a = e.clone(a, we)),
202
- (i = e.subtract(a, r, I)),
203
- (i = e.normalize(i, i)),
204
- t || (i = e.negate(i, i)),
205
- (g = c.scaleToGeodeticSurface(a, W)),
206
- (f = v(g, i, l, f, c, m, 1, 1)));
207
- return f;
208
- }
209
- R.removeDuplicatesFromShape = function (r) {
210
- let n = r.length,
211
- a = [];
212
- for (let o = n - 1, t = 0; t < n; o = t++) {
213
- let c = r[o],
214
- f = r[t];
215
- ee.equals(c, f) || a.push(f);
216
- }
217
- return a;
218
- };
219
- R.angleIsGreaterThanPi = function (r, n, a, o) {
220
- let t = new te(a, o),
221
- c = t.projectPointOntoPlane(e.add(a, r, X), X),
222
- f = t.projectPointOntoPlane(e.add(a, n, Y), Y);
223
- return f.x * c.y - f.y * c.x >= 0;
224
- };
225
- var qe = new e(),
226
- Pe = new e();
227
- R.computePositions = function (r, n, a, o, t) {
228
- let c = o._ellipsoid,
229
- f = je(r, c),
230
- l = o._granularity,
231
- m = o._cornerType,
232
- s = t ? Le(n, a) : ge(n, a),
233
- S = t ? ge(n, a) : void 0,
234
- d = a.height / 2,
235
- x = a.width / 2,
236
- i = r.length,
237
- g = [],
238
- D = t ? [] : void 0,
239
- y = Te,
240
- b = Be,
241
- h = Ce,
242
- E = ze,
243
- B = Ae,
244
- C = be,
245
- z = Oe,
246
- u = ve,
247
- T = De,
248
- p = r[0],
249
- M = r[1];
250
- ((E = c.geodeticSurfaceNormal(p, E)),
251
- (y = e.subtract(M, p, y)),
252
- (y = e.normalize(y, y)),
253
- (u = e.cross(E, y, u)),
254
- (u = e.normalize(u, u)));
255
- let V = f[0],
256
- A = f[1];
257
- (t && (D = v(p, u, S, D, c, V + d, 1, 1)),
258
- (T = e.clone(p, T)),
259
- (p = M),
260
- (b = e.negate(y, b)));
261
- let N, F;
262
- for (let U = 1; U < i - 1; U++) {
263
- let ae = t ? 2 : 1;
264
- if (((M = r[U + 1]), p.equals(M))) {
265
- he(
266
- "Positions are too close and are considered equivalent with rounding error.",
267
- );
268
- continue;
269
- }
270
- ((y = e.subtract(M, p, y)),
271
- (y = e.normalize(y, y)),
272
- (h = e.add(y, b, h)),
273
- (h = e.normalize(h, h)),
274
- (E = c.geodeticSurfaceNormal(p, E)));
275
- let L = e.multiplyByScalar(E, e.dot(y, E), qe);
276
- (e.subtract(y, L, L), e.normalize(L, L));
277
- let q = e.multiplyByScalar(E, e.dot(b, E), Pe);
278
- if (
279
- (e.subtract(b, q, q),
280
- e.normalize(q, q),
281
- !Q.equalsEpsilon(Math.abs(e.dot(L, q)), 1, Q.EPSILON7))
282
- ) {
283
- ((h = e.cross(h, E, h)), (h = e.cross(E, h, h)), (h = e.normalize(h, h)));
284
- let k = 1 / Math.max(0.25, e.magnitude(e.cross(h, b, I))),
285
- K = R.angleIsGreaterThanPi(y, b, p, c);
286
- (K
287
- ? ((B = e.add(p, e.multiplyByScalar(h, k * x, h), B)),
288
- (C = e.add(B, e.multiplyByScalar(u, x, C), C)),
289
- (w[0] = e.clone(T, w[0])),
290
- (w[1] = e.clone(C, w[1])),
291
- (N = ne(w, V + d, A + d, l)),
292
- (F = _.generateArc({ positions: w, granularity: l, ellipsoid: c })),
293
- (g = ce(F, u, s, g, c, N, 1)),
294
- (u = e.cross(E, y, u)),
295
- (u = e.normalize(u, u)),
296
- (z = e.add(B, e.multiplyByScalar(u, x, z), z)),
297
- m === G.ROUNDED || m === G.BEVELED
298
- ? xe(B, C, z, m, K, c, g, s, A + d, t)
299
- : ((h = e.negate(h, h)), (g = v(p, h, s, g, c, A + d, k, ae))),
300
- (T = e.clone(z, T)))
301
- : ((B = e.add(p, e.multiplyByScalar(h, k * x, h), B)),
302
- (C = e.add(B, e.multiplyByScalar(u, -x, C), C)),
303
- (w[0] = e.clone(T, w[0])),
304
- (w[1] = e.clone(C, w[1])),
305
- (N = ne(w, V + d, A + d, l)),
306
- (F = _.generateArc({ positions: w, granularity: l, ellipsoid: c })),
307
- (g = ce(F, u, s, g, c, N, 1)),
308
- (u = e.cross(E, y, u)),
309
- (u = e.normalize(u, u)),
310
- (z = e.add(B, e.multiplyByScalar(u, -x, z), z)),
311
- m === G.ROUNDED || m === G.BEVELED
312
- ? xe(B, C, z, m, K, c, g, s, A + d, t)
313
- : (g = v(p, h, s, g, c, A + d, k, ae)),
314
- (T = e.clone(z, T))),
315
- (b = e.negate(y, b)));
316
- } else ((g = v(T, u, s, g, c, V + d, 1, 1)), (T = p));
317
- ((V = A), (A = f[U + 1]), (p = M));
318
- }
319
- ((w[0] = e.clone(T, w[0])),
320
- (w[1] = e.clone(p, w[1])),
321
- (N = ne(w, V + d, A + d, l)),
322
- (F = _.generateArc({ positions: w, granularity: l, ellipsoid: c })),
323
- (g = ce(F, u, s, g, c, N, 1)),
324
- t && (D = v(p, u, S, D, c, A + d, 1, 1)),
325
- (i = g.length));
326
- let Ee = t ? i + D.length : i,
327
- J = new Float64Array(Ee);
328
- return (J.set(g), t && J.set(D, i), J);
329
- };
330
- var lt = R;
331
- export { G as a, he as b, lt as c };
@@ -1,258 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.119
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 { a as W } from "./chunk-ILGBPNP6.js";
27
- import { a as Z } from "./chunk-P37AI2DW.js";
28
- import { a as X } from "./chunk-T6BE4RZK.js";
29
- import { b as K, c as Q, d as V } from "./chunk-X5IHHI6X.js";
30
- import { d as H } from "./chunk-TMSETF7M.js";
31
- import { a as U } from "./chunk-KZNJOCYU.js";
32
- import { a as r, d as J } from "./chunk-POASMU2N.js";
33
- import { a as B } from "./chunk-R6KGAEF6.js";
34
- import { a as u } from "./chunk-IUA6FAOZ.js";
35
- import { a as P } from "./chunk-UH2WFNTA.js";
36
- import { e as T } from "./chunk-PEYJTJPE.js";
37
- var ii = new r(1, 1, 1),
38
- S = Math.cos,
39
- q = Math.sin;
40
- function x(t) {
41
- t = u(t, u.EMPTY_OBJECT);
42
- let o = u(t.radii, ii),
43
- n = u(t.innerRadii, o),
44
- k = u(t.minimumClock, 0),
45
- w = u(t.maximumClock, B.TWO_PI),
46
- d = u(t.minimumCone, 0),
47
- l = u(t.maximumCone, B.PI),
48
- s = Math.round(u(t.stackPartitions, 10)),
49
- A = Math.round(u(t.slicePartitions, 8)),
50
- m = Math.round(u(t.subdivisions, 128));
51
- if (s < 1) throw new P("options.stackPartitions cannot be less than 1");
52
- if (A < 0) throw new P("options.slicePartitions cannot be less than 0");
53
- if (m < 0)
54
- throw new P("options.subdivisions must be greater than or equal to zero.");
55
- if (T(t.offsetAttribute) && t.offsetAttribute === W.TOP)
56
- throw new P(
57
- "GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.",
58
- );
59
- ((this._radii = r.clone(o)),
60
- (this._innerRadii = r.clone(n)),
61
- (this._minimumClock = k),
62
- (this._maximumClock = w),
63
- (this._minimumCone = d),
64
- (this._maximumCone = l),
65
- (this._stackPartitions = s),
66
- (this._slicePartitions = A),
67
- (this._subdivisions = m),
68
- (this._offsetAttribute = t.offsetAttribute),
69
- (this._workerName = "createEllipsoidOutlineGeometry"));
70
- }
71
- x.packedLength = 2 * r.packedLength + 8;
72
- x.pack = function (t, o, n) {
73
- if (!T(t)) throw new P("value is required");
74
- if (!T(o)) throw new P("array is required");
75
- return (
76
- (n = u(n, 0)),
77
- r.pack(t._radii, o, n),
78
- (n += r.packedLength),
79
- r.pack(t._innerRadii, o, n),
80
- (n += r.packedLength),
81
- (o[n++] = t._minimumClock),
82
- (o[n++] = t._maximumClock),
83
- (o[n++] = t._minimumCone),
84
- (o[n++] = t._maximumCone),
85
- (o[n++] = t._stackPartitions),
86
- (o[n++] = t._slicePartitions),
87
- (o[n++] = t._subdivisions),
88
- (o[n] = u(t._offsetAttribute, -1)),
89
- o
90
- );
91
- };
92
- var $ = new r(),
93
- G = new r(),
94
- b = {
95
- radii: $,
96
- innerRadii: G,
97
- minimumClock: void 0,
98
- maximumClock: void 0,
99
- minimumCone: void 0,
100
- maximumCone: void 0,
101
- stackPartitions: void 0,
102
- slicePartitions: void 0,
103
- subdivisions: void 0,
104
- offsetAttribute: void 0,
105
- };
106
- x.unpack = function (t, o, n) {
107
- if (!T(t)) throw new P("array is required");
108
- o = u(o, 0);
109
- let k = r.unpack(t, o, $);
110
- o += r.packedLength;
111
- let w = r.unpack(t, o, G);
112
- o += r.packedLength;
113
- let d = t[o++],
114
- l = t[o++],
115
- s = t[o++],
116
- A = t[o++],
117
- m = t[o++],
118
- f = t[o++],
119
- E = t[o++],
120
- h = t[o];
121
- return T(n)
122
- ? ((n._radii = r.clone(k, n._radii)),
123
- (n._innerRadii = r.clone(w, n._innerRadii)),
124
- (n._minimumClock = d),
125
- (n._maximumClock = l),
126
- (n._minimumCone = s),
127
- (n._maximumCone = A),
128
- (n._stackPartitions = m),
129
- (n._slicePartitions = f),
130
- (n._subdivisions = E),
131
- (n._offsetAttribute = h === -1 ? void 0 : h),
132
- n)
133
- : ((b.minimumClock = d),
134
- (b.maximumClock = l),
135
- (b.minimumCone = s),
136
- (b.maximumCone = A),
137
- (b.stackPartitions = m),
138
- (b.slicePartitions = f),
139
- (b.subdivisions = E),
140
- (b.offsetAttribute = h === -1 ? void 0 : h),
141
- new x(b));
142
- };
143
- x.createGeometry = function (t) {
144
- let o = t._radii;
145
- if (o.x <= 0 || o.y <= 0 || o.z <= 0) return;
146
- let n = t._innerRadii;
147
- if (n.x <= 0 || n.y <= 0 || n.z <= 0) return;
148
- let k = t._minimumClock,
149
- w = t._maximumClock,
150
- d = t._minimumCone,
151
- l = t._maximumCone,
152
- s = t._subdivisions,
153
- A = J.fromCartesian3(o),
154
- m = t._slicePartitions + 1,
155
- f = t._stackPartitions + 1;
156
- ((m = Math.round((m * Math.abs(w - k)) / B.TWO_PI)),
157
- (f = Math.round((f * Math.abs(l - d)) / B.PI)),
158
- m < 2 && (m = 2),
159
- f < 2 && (f = 2));
160
- let E = 0,
161
- h = 1,
162
- L = n.x !== o.x || n.y !== o.y || n.z !== o.z,
163
- Y = !1,
164
- j = !1;
165
- L &&
166
- ((h = 2),
167
- d > 0 && ((Y = !0), (E += m)),
168
- l < Math.PI && ((j = !0), (E += m)));
169
- let y = s * h * (f + m),
170
- a = new Float64Array(y * 3),
171
- g = 2 * (y + E - (m + f) * h),
172
- _ = Z.createTypedArray(y, g),
173
- i,
174
- e,
175
- v,
176
- z,
177
- c = 0,
178
- C = new Array(f),
179
- O = new Array(f);
180
- for (i = 0; i < f; i++)
181
- ((z = d + (i * (l - d)) / (f - 1)), (C[i] = q(z)), (O[i] = S(z)));
182
- let M = new Array(s),
183
- R = new Array(s);
184
- for (i = 0; i < s; i++)
185
- ((v = k + (i * (w - k)) / (s - 1)), (M[i] = q(v)), (R[i] = S(v)));
186
- for (i = 0; i < f; i++)
187
- for (e = 0; e < s; e++)
188
- ((a[c++] = o.x * C[i] * R[e]),
189
- (a[c++] = o.y * C[i] * M[e]),
190
- (a[c++] = o.z * O[i]));
191
- if (L)
192
- for (i = 0; i < f; i++)
193
- for (e = 0; e < s; e++)
194
- ((a[c++] = n.x * C[i] * R[e]),
195
- (a[c++] = n.y * C[i] * M[e]),
196
- (a[c++] = n.z * O[i]));
197
- for (C.length = s, O.length = s, i = 0; i < s; i++)
198
- ((z = d + (i * (l - d)) / (s - 1)), (C[i] = q(z)), (O[i] = S(z)));
199
- for (M.length = m, R.length = m, i = 0; i < m; i++)
200
- ((v = k + (i * (w - k)) / (m - 1)), (M[i] = q(v)), (R[i] = S(v)));
201
- for (i = 0; i < s; i++)
202
- for (e = 0; e < m; e++)
203
- ((a[c++] = o.x * C[i] * R[e]),
204
- (a[c++] = o.y * C[i] * M[e]),
205
- (a[c++] = o.z * O[i]));
206
- if (L)
207
- for (i = 0; i < s; i++)
208
- for (e = 0; e < m; e++)
209
- ((a[c++] = n.x * C[i] * R[e]),
210
- (a[c++] = n.y * C[i] * M[e]),
211
- (a[c++] = n.z * O[i]));
212
- for (c = 0, i = 0; i < f * h; i++) {
213
- let p = i * s;
214
- for (e = 0; e < s - 1; e++) ((_[c++] = p + e), (_[c++] = p + e + 1));
215
- }
216
- let D = f * s * h;
217
- for (i = 0; i < m; i++)
218
- for (e = 0; e < s - 1; e++)
219
- ((_[c++] = D + i + e * m), (_[c++] = D + i + (e + 1) * m));
220
- if (L)
221
- for (D = f * s * h + m * s, i = 0; i < m; i++)
222
- for (e = 0; e < s - 1; e++)
223
- ((_[c++] = D + i + e * m), (_[c++] = D + i + (e + 1) * m));
224
- if (L) {
225
- let p = f * s * h,
226
- N = p + s * m;
227
- if (Y) for (i = 0; i < m; i++) ((_[c++] = p + i), (_[c++] = N + i));
228
- if (j)
229
- for (p += s * m - m, N += s * m - m, i = 0; i < m; i++)
230
- ((_[c++] = p + i), (_[c++] = N + i));
231
- }
232
- let F = new X({
233
- position: new V({
234
- componentDatatype: U.DOUBLE,
235
- componentsPerAttribute: 3,
236
- values: a,
237
- }),
238
- });
239
- if (T(t._offsetAttribute)) {
240
- let p = a.length,
241
- N = t._offsetAttribute === W.NONE ? 0 : 1,
242
- I = new Uint8Array(p / 3).fill(N);
243
- F.applyOffset = new V({
244
- componentDatatype: U.UNSIGNED_BYTE,
245
- componentsPerAttribute: 1,
246
- values: I,
247
- });
248
- }
249
- return new Q({
250
- attributes: F,
251
- indices: _,
252
- primitiveType: K.LINES,
253
- boundingSphere: H.fromEllipsoid(A),
254
- offsetAttribute: t._offsetAttribute,
255
- });
256
- };
257
- var Ci = x;
258
- export { Ci as a };