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,672 +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 R } from "./chunk-ATPDRNKI.js";
27
- import { a as st } from "./chunk-QB3MDM4J.js";
28
- import { a as Z, b as H } from "./chunk-O5IJ3OGP.js";
29
- import { a as V } from "./chunk-RXTBM4OI.js";
30
- import { a as U } from "./chunk-FYOYUPXG.js";
31
- import { b as it } from "./chunk-TAMCUKAR.js";
32
- import { a as ct } from "./chunk-PDMQLSBL.js";
33
- import { a as ot } from "./chunk-P37AI2DW.js";
34
- import { a as nt } from "./chunk-T6BE4RZK.js";
35
- import { b as J, c as X, d as z } from "./chunk-X5IHHI6X.js";
36
- import { f as K } from "./chunk-7Z5IIKOJ.js";
37
- import { a as k } from "./chunk-KZNJOCYU.js";
38
- import { a as w, b as q, c as M, d as et, e as F } from "./chunk-POASMU2N.js";
39
- import { a as I } from "./chunk-R6KGAEF6.js";
40
- import { a as tt } from "./chunk-IUA6FAOZ.js";
41
- import { e as x } from "./chunk-PEYJTJPE.js";
42
- function dt(n, i) {
43
- ((this.positions = x(n) ? n : []), (this.holes = x(i) ? i : []));
44
- }
45
- var rt = dt;
46
- function S() {
47
- ((this._array = []), (this._offset = 0), (this._length = 0));
48
- }
49
- Object.defineProperties(S.prototype, {
50
- length: {
51
- get: function () {
52
- return this._length;
53
- },
54
- },
55
- });
56
- S.prototype.enqueue = function (n) {
57
- (this._array.push(n), this._length++);
58
- };
59
- S.prototype.dequeue = function () {
60
- if (this._length === 0) return;
61
- let n = this._array,
62
- i = this._offset,
63
- u = n[i];
64
- return (
65
- (n[i] = void 0),
66
- i++,
67
- i > 10 && i * 2 > n.length && ((this._array = n.slice(i)), (i = 0)),
68
- (this._offset = i),
69
- this._length--,
70
- u
71
- );
72
- };
73
- S.prototype.peek = function () {
74
- if (this._length !== 0) return this._array[this._offset];
75
- };
76
- S.prototype.contains = function (n) {
77
- return this._array.indexOf(n) !== -1;
78
- };
79
- S.prototype.clear = function () {
80
- this._array.length = this._offset = this._length = 0;
81
- };
82
- S.prototype.sort = function (n) {
83
- (this._offset > 0 &&
84
- ((this._array = this._array.slice(this._offset)), (this._offset = 0)),
85
- this._array.sort(n));
86
- };
87
- var $ = S;
88
- var b = {};
89
- b.computeHierarchyPackedLength = function (n, i) {
90
- let u = 0,
91
- c = [n];
92
- for (; c.length > 0; ) {
93
- let r = c.pop();
94
- if (!x(r)) continue;
95
- u += 2;
96
- let a = r.positions,
97
- t = r.holes;
98
- if ((x(a) && a.length > 0 && (u += a.length * i.packedLength), x(t))) {
99
- let o = t.length;
100
- for (let e = 0; e < o; ++e) c.push(t[e]);
101
- }
102
- }
103
- return u;
104
- };
105
- b.packPolygonHierarchy = function (n, i, u, c) {
106
- let r = [n];
107
- for (; r.length > 0; ) {
108
- let a = r.pop();
109
- if (!x(a)) continue;
110
- let t = a.positions,
111
- o = a.holes;
112
- if (
113
- ((i[u++] = x(t) ? t.length : 0), (i[u++] = x(o) ? o.length : 0), x(t))
114
- ) {
115
- let e = t.length;
116
- for (let s = 0; s < e; ++s, u += c.packedLength) c.pack(t[s], i, u);
117
- }
118
- if (x(o)) {
119
- let e = o.length;
120
- for (let s = 0; s < e; ++s) r.push(o[s]);
121
- }
122
- }
123
- return u;
124
- };
125
- b.unpackPolygonHierarchy = function (n, i, u) {
126
- let c = n[i++],
127
- r = n[i++],
128
- a = new Array(c),
129
- t = r > 0 ? new Array(r) : void 0;
130
- for (let o = 0; o < c; ++o, i += u.packedLength) a[o] = u.unpack(n, i);
131
- for (let o = 0; o < r; ++o)
132
- ((t[o] = b.unpackPolygonHierarchy(n, i, u)),
133
- (i = t[o].startingIndex),
134
- delete t[o].startingIndex);
135
- return { positions: a, holes: t, startingIndex: i };
136
- };
137
- var O = new M();
138
- function ht(n, i, u, c) {
139
- return (
140
- M.subtract(i, n, O),
141
- M.multiplyByScalar(O, u / c, O),
142
- M.add(n, O, O),
143
- [O.x, O.y]
144
- );
145
- }
146
- var G = new w();
147
- function gt(n, i, u, c) {
148
- return (
149
- w.subtract(i, n, G),
150
- w.multiplyByScalar(G, u / c, G),
151
- w.add(n, G, G),
152
- [G.x, G.y, G.z]
153
- );
154
- }
155
- b.subdivideLineCount = function (n, i, u) {
156
- let r = w.distance(n, i) / u,
157
- a = Math.max(0, Math.ceil(I.log2(r)));
158
- return Math.pow(2, a);
159
- };
160
- var j = new q(),
161
- Q = new q(),
162
- pt = new q(),
163
- mt = new w(),
164
- Y = new U();
165
- b.subdivideRhumbLineCount = function (n, i, u, c) {
166
- let r = n.cartesianToCartographic(i, j),
167
- a = n.cartesianToCartographic(u, Q),
168
- o = new U(r, a, n).surfaceDistance / c,
169
- e = Math.max(0, Math.ceil(I.log2(o)));
170
- return Math.pow(2, e);
171
- };
172
- b.subdivideTexcoordLine = function (n, i, u, c, r, a) {
173
- let t = b.subdivideLineCount(u, c, r),
174
- o = M.distance(n, i),
175
- e = o / t,
176
- s = a;
177
- s.length = t * 2;
178
- let l = 0;
179
- for (let h = 0; h < t; h++) {
180
- let f = ht(n, i, h * e, o);
181
- ((s[l++] = f[0]), (s[l++] = f[1]));
182
- }
183
- return s;
184
- };
185
- b.subdivideLine = function (n, i, u, c) {
186
- let r = b.subdivideLineCount(n, i, u),
187
- a = w.distance(n, i),
188
- t = a / r;
189
- x(c) || (c = []);
190
- let o = c;
191
- o.length = r * 3;
192
- let e = 0;
193
- for (let s = 0; s < r; s++) {
194
- let l = gt(n, i, s * t, a);
195
- ((o[e++] = l[0]), (o[e++] = l[1]), (o[e++] = l[2]));
196
- }
197
- return o;
198
- };
199
- b.subdivideTexcoordRhumbLine = function (n, i, u, c, r, a, t) {
200
- let o = u.cartesianToCartographic(c, j),
201
- e = u.cartesianToCartographic(r, Q);
202
- Y.setEndPoints(o, e);
203
- let s = Y.surfaceDistance / a,
204
- l = Math.max(0, Math.ceil(I.log2(s))),
205
- h = Math.pow(2, l),
206
- f = M.distance(n, i),
207
- g = f / h,
208
- m = t;
209
- m.length = h * 2;
210
- let p = 0;
211
- for (let d = 0; d < h; d++) {
212
- let y = ht(n, i, d * g, f);
213
- ((m[p++] = y[0]), (m[p++] = y[1]));
214
- }
215
- return m;
216
- };
217
- b.subdivideRhumbLine = function (n, i, u, c, r) {
218
- let a = n.cartesianToCartographic(i, j),
219
- t = n.cartesianToCartographic(u, Q),
220
- o = new U(a, t, n),
221
- e = o.surfaceDistance / c,
222
- s = Math.max(0, Math.ceil(I.log2(e))),
223
- l = Math.pow(2, s),
224
- h = o.surfaceDistance / l;
225
- x(r) || (r = []);
226
- let f = r;
227
- f.length = l * 3;
228
- let g = 0;
229
- for (let m = 0; m < l; m++) {
230
- let p = o.interpolateUsingSurfaceDistance(m * h, pt),
231
- d = n.cartographicToCartesian(p, mt);
232
- ((f[g++] = d.x), (f[g++] = d.y), (f[g++] = d.z));
233
- }
234
- return f;
235
- };
236
- var yt = new w(),
237
- xt = new w(),
238
- wt = new w(),
239
- bt = new w();
240
- b.scaleToGeodeticHeightExtruded = function (n, i, u, c, r) {
241
- c = tt(c, et.default);
242
- let a = yt,
243
- t = xt,
244
- o = wt,
245
- e = bt;
246
- if (x(n) && x(n.attributes) && x(n.attributes.position)) {
247
- let s = n.attributes.position.values,
248
- l = s.length / 2;
249
- for (let h = 0; h < l; h += 3)
250
- (w.fromArray(s, h, o),
251
- c.geodeticSurfaceNormal(o, a),
252
- (e = c.scaleToGeodeticSurface(o, e)),
253
- (t = w.multiplyByScalar(a, u, t)),
254
- (t = w.add(e, t, t)),
255
- (s[h + l] = t.x),
256
- (s[h + 1 + l] = t.y),
257
- (s[h + 2 + l] = t.z),
258
- r && (e = w.clone(o, e)),
259
- (t = w.multiplyByScalar(a, i, t)),
260
- (t = w.add(e, t, t)),
261
- (s[h] = t.x),
262
- (s[h + 1] = t.y),
263
- (s[h + 2] = t.z));
264
- }
265
- return n;
266
- };
267
- b.polygonOutlinesFromHierarchy = function (n, i, u) {
268
- let c = [],
269
- r = new $();
270
- r.enqueue(n);
271
- let a, t, o;
272
- for (; r.length !== 0; ) {
273
- let e = r.dequeue(),
274
- s = e.positions;
275
- if (i)
276
- for (o = s.length, a = 0; a < o; a++)
277
- u.scaleToGeodeticSurface(s[a], s[a]);
278
- if (((s = V(s, w.equalsEpsilon, !0)), s.length < 3)) continue;
279
- let l = e.holes ? e.holes.length : 0;
280
- for (a = 0; a < l; a++) {
281
- let h = e.holes[a],
282
- f = h.positions;
283
- if (i)
284
- for (o = f.length, t = 0; t < o; ++t)
285
- u.scaleToGeodeticSurface(f[t], f[t]);
286
- if (((f = V(f, w.equalsEpsilon, !0)), f.length < 3)) continue;
287
- c.push(f);
288
- let g = 0;
289
- for (x(h.holes) && (g = h.holes.length), t = 0; t < g; t++)
290
- r.enqueue(h.holes[t]);
291
- }
292
- c.push(s);
293
- }
294
- return c;
295
- };
296
- var Lt = new q();
297
- function Tt(n, i, u) {
298
- let c = u.cartesianToCartographic(n, j),
299
- r = u.cartesianToCartographic(i, Q);
300
- if (Math.sign(c.latitude) === Math.sign(r.latitude)) return;
301
- Y.setEndPoints(c, r);
302
- let a = Y.findIntersectionWithLatitude(0, Lt);
303
- if (!x(a)) return;
304
- let t = Math.min(c.longitude, r.longitude),
305
- o = Math.max(c.longitude, r.longitude);
306
- if (Math.abs(o - t) > I.PI) {
307
- let e = t;
308
- ((t = o), (o = e));
309
- }
310
- if (!(a.longitude < t || a.longitude > o))
311
- return u.cartographicToCartesian(a);
312
- }
313
- function Et(n, i, u, c) {
314
- if (c === R.RHUMB) return Tt(n, i, u);
315
- let r = it.lineSegmentPlane(n, i, ct.ORIGIN_XY_PLANE);
316
- if (x(r)) return u.scaleToGeodeticSurface(r, r);
317
- }
318
- var vt = new q();
319
- function Ct(n, i, u) {
320
- let c = [],
321
- r,
322
- a,
323
- t,
324
- o,
325
- e,
326
- s = 0;
327
- for (; s < n.length; ) {
328
- ((r = n[s]),
329
- (a = n[(s + 1) % n.length]),
330
- (t = I.sign(r.z)),
331
- (o = I.sign(a.z)));
332
- let l = (h) => i.cartesianToCartographic(h, vt).longitude;
333
- if (t === 0)
334
- c.push({ position: s, type: t, visited: !1, next: o, theta: l(r) });
335
- else if (o !== 0) {
336
- if (((e = Et(r, a, i, u)), ++s, !x(e))) continue;
337
- (n.splice(s, 0, e),
338
- c.push({ position: s, type: t, visited: !1, next: o, theta: l(e) }));
339
- }
340
- ++s;
341
- }
342
- return c;
343
- }
344
- function lt(n, i, u, c, r, a, t) {
345
- let o = [],
346
- e = a,
347
- s = (h) => (f) => f.position === h,
348
- l = [];
349
- do {
350
- let h = u[e];
351
- o.push(h);
352
- let f = c.findIndex(s(e)),
353
- g = c[f];
354
- if (!x(g)) {
355
- ++e;
356
- continue;
357
- }
358
- let { visited: m, type: p, next: d } = g;
359
- if (((g.visited = !0), p === 0)) {
360
- if (d === 0) {
361
- let C = c[f - (t ? 1 : -1)];
362
- if (C?.position === e + 1) C.visited = !0;
363
- else {
364
- ++e;
365
- continue;
366
- }
367
- }
368
- if ((!m && t && d > 0) || (a === e && !t && d < 0)) {
369
- ++e;
370
- continue;
371
- }
372
- }
373
- if (!(t ? p >= 0 : p <= 0)) {
374
- ++e;
375
- continue;
376
- }
377
- m || l.push(e);
378
- let L = f + (t ? 1 : -1),
379
- _ = c[L];
380
- if (!x(_)) {
381
- ++e;
382
- continue;
383
- }
384
- e = _.position;
385
- } while (e < u.length && e >= 0 && e !== a && o.length < u.length);
386
- n.splice(i, r, o);
387
- for (let h of l) i = lt(n, ++i, u, c, 0, h, !t);
388
- return i;
389
- }
390
- b.splitPolygonsOnEquator = function (n, i, u, c) {
391
- (x(c) || (c = []), c.splice(0, 0, ...n), (c.length = n.length));
392
- let r = 0;
393
- for (; r < c.length; ) {
394
- let a = c[r],
395
- t = a.slice();
396
- if (a.length < 3) {
397
- ((c[r] = t), ++r);
398
- continue;
399
- }
400
- let o = Ct(t, i, u);
401
- if (t.length === a.length || o.length <= 1) {
402
- ((c[r] = t), ++r);
403
- continue;
404
- }
405
- o.sort((s, l) => s.theta - l.theta);
406
- let e = t[0].z >= 0;
407
- r = lt(c, r, t, o, 1, 0, e);
408
- }
409
- return c;
410
- };
411
- b.polygonsFromHierarchy = function (n, i, u, c, r, a) {
412
- let t = [],
413
- o = [],
414
- e = new $();
415
- e.enqueue(n);
416
- let s = x(a);
417
- for (; e.length !== 0; ) {
418
- let l = e.dequeue(),
419
- h = l.positions,
420
- f = l.holes,
421
- g,
422
- m;
423
- if (c)
424
- for (m = h.length, g = 0; g < m; g++)
425
- r.scaleToGeodeticSurface(h[g], h[g]);
426
- if ((i || (h = V(h, w.equalsEpsilon, !0)), h.length < 3)) continue;
427
- let p = u(h);
428
- if (!x(p)) continue;
429
- let d = [],
430
- y = H.computeWindingOrder2D(p);
431
- if ((y === Z.CLOCKWISE && (p.reverse(), (h = h.slice().reverse())), s)) {
432
- s = !1;
433
- let P = [h];
434
- if (((P = a(P, P)), P.length > 1)) {
435
- for (let v of P) e.enqueue(new rt(v, f));
436
- continue;
437
- }
438
- }
439
- let L = h.slice(),
440
- _ = x(f) ? f.length : 0,
441
- C = [],
442
- T;
443
- for (g = 0; g < _; g++) {
444
- let P = f[g],
445
- v = P.positions;
446
- if (c)
447
- for (m = v.length, T = 0; T < m; ++T)
448
- r.scaleToGeodeticSurface(v[T], v[T]);
449
- if ((i || (v = V(v, w.equalsEpsilon, !0)), v.length < 3)) continue;
450
- let E = u(v);
451
- if (!x(E)) continue;
452
- ((y = H.computeWindingOrder2D(E)),
453
- y === Z.CLOCKWISE && (E.reverse(), (v = v.slice().reverse())),
454
- C.push(v),
455
- d.push(L.length),
456
- (L = L.concat(v)),
457
- (p = p.concat(E)));
458
- let D = 0;
459
- for (x(P.holes) && (D = P.holes.length), T = 0; T < D; T++)
460
- e.enqueue(P.holes[T]);
461
- }
462
- (t.push({ outerRing: h, holes: C }),
463
- o.push({ positions: L, positions2D: p, holes: d }));
464
- }
465
- return { hierarchy: t, polygons: o };
466
- };
467
- var Pt = new M(),
468
- Dt = new w(),
469
- It = new K(),
470
- _t = new F();
471
- b.computeBoundingRectangle = function (n, i, u, c, r) {
472
- let a = K.fromAxisAngle(n, c, It),
473
- t = F.fromQuaternion(a, _t),
474
- o = Number.POSITIVE_INFINITY,
475
- e = Number.NEGATIVE_INFINITY,
476
- s = Number.POSITIVE_INFINITY,
477
- l = Number.NEGATIVE_INFINITY,
478
- h = u.length;
479
- for (let f = 0; f < h; ++f) {
480
- let g = w.clone(u[f], Dt);
481
- F.multiplyByVector(t, g, g);
482
- let m = i(g, Pt);
483
- x(m) &&
484
- ((o = Math.min(o, m.x)),
485
- (e = Math.max(e, m.x)),
486
- (s = Math.min(s, m.y)),
487
- (l = Math.max(l, m.y)));
488
- }
489
- return ((r.x = o), (r.y = s), (r.width = e - o), (r.height = l - s), r);
490
- };
491
- b.createGeometryFromPositions = function (n, i, u, c, r, a, t) {
492
- let o = H.triangulate(i.positions2D, i.holes);
493
- o.length < 3 && (o = [0, 1, 2]);
494
- let e = i.positions,
495
- s = x(u),
496
- l = s ? u.positions : void 0;
497
- if (r) {
498
- let h = e.length,
499
- f = new Array(h * 3),
500
- g = 0;
501
- for (let d = 0; d < h; d++) {
502
- let y = e[d];
503
- ((f[g++] = y.x), (f[g++] = y.y), (f[g++] = y.z));
504
- }
505
- let m = {
506
- attributes: {
507
- position: new z({
508
- componentDatatype: k.DOUBLE,
509
- componentsPerAttribute: 3,
510
- values: f,
511
- }),
512
- },
513
- indices: o,
514
- primitiveType: J.TRIANGLES,
515
- };
516
- s &&
517
- (m.attributes.st = new z({
518
- componentDatatype: k.FLOAT,
519
- componentsPerAttribute: 2,
520
- values: M.packArray(l),
521
- }));
522
- let p = new X(m);
523
- return a.normal ? st.computeNormal(p) : p;
524
- }
525
- if (t === R.GEODESIC) return H.computeSubdivision(n, e, o, l, c);
526
- if (t === R.RHUMB) return H.computeRhumbLineSubdivision(n, e, o, l, c);
527
- };
528
- var ut = [],
529
- at = [],
530
- At = new w(),
531
- Mt = new w();
532
- b.computeWallGeometry = function (n, i, u, c, r, a) {
533
- let t,
534
- o,
535
- e,
536
- s,
537
- l,
538
- h,
539
- f,
540
- g,
541
- m,
542
- p = n.length,
543
- d = 0,
544
- y = 0,
545
- L = x(i),
546
- _ = L ? i.positions : void 0;
547
- if (r)
548
- for (
549
- o = p * 3 * 2,
550
- t = new Array(o * 2),
551
- L && ((m = p * 2 * 2), (g = new Array(m * 2))),
552
- e = 0;
553
- e < p;
554
- e++
555
- )
556
- ((s = n[e]),
557
- (l = n[(e + 1) % p]),
558
- (t[d] = t[d + o] = s.x),
559
- ++d,
560
- (t[d] = t[d + o] = s.y),
561
- ++d,
562
- (t[d] = t[d + o] = s.z),
563
- ++d,
564
- (t[d] = t[d + o] = l.x),
565
- ++d,
566
- (t[d] = t[d + o] = l.y),
567
- ++d,
568
- (t[d] = t[d + o] = l.z),
569
- ++d,
570
- L &&
571
- ((h = _[e]),
572
- (f = _[(e + 1) % p]),
573
- (g[y] = g[y + m] = h.x),
574
- ++y,
575
- (g[y] = g[y + m] = h.y),
576
- ++y,
577
- (g[y] = g[y + m] = f.x),
578
- ++y,
579
- (g[y] = g[y + m] = f.y),
580
- ++y));
581
- else {
582
- let E = I.chordLength(c, u.maximumRadius),
583
- D = 0;
584
- if (a === R.GEODESIC)
585
- for (e = 0; e < p; e++)
586
- D += b.subdivideLineCount(n[e], n[(e + 1) % p], E);
587
- else if (a === R.RHUMB)
588
- for (e = 0; e < p; e++)
589
- D += b.subdivideRhumbLineCount(u, n[e], n[(e + 1) % p], E);
590
- for (
591
- o = (D + p) * 3,
592
- t = new Array(o * 2),
593
- L && ((m = (D + p) * 2), (g = new Array(m * 2))),
594
- e = 0;
595
- e < p;
596
- e++
597
- ) {
598
- ((s = n[e]), (l = n[(e + 1) % p]));
599
- let A, N;
600
- (L && ((h = _[e]), (f = _[(e + 1) % p])),
601
- a === R.GEODESIC
602
- ? ((A = b.subdivideLine(s, l, E, at)),
603
- L && (N = b.subdivideTexcoordLine(h, f, s, l, E, ut)))
604
- : a === R.RHUMB &&
605
- ((A = b.subdivideRhumbLine(u, s, l, E, at)),
606
- L && (N = b.subdivideTexcoordRhumbLine(h, f, u, s, l, E, ut))));
607
- let ft = A.length;
608
- for (let B = 0; B < ft; ++B, ++d) ((t[d] = A[B]), (t[d + o] = A[B]));
609
- if (
610
- ((t[d] = l.x),
611
- (t[d + o] = l.x),
612
- ++d,
613
- (t[d] = l.y),
614
- (t[d + o] = l.y),
615
- ++d,
616
- (t[d] = l.z),
617
- (t[d + o] = l.z),
618
- ++d,
619
- L)
620
- ) {
621
- let B = N.length;
622
- for (let W = 0; W < B; ++W, ++y) ((g[y] = N[W]), (g[y + m] = N[W]));
623
- ((g[y] = f.x),
624
- (g[y + m] = f.x),
625
- ++y,
626
- (g[y] = f.y),
627
- (g[y + m] = f.y),
628
- ++y);
629
- }
630
- }
631
- }
632
- p = t.length;
633
- let C = ot.createTypedArray(p / 3, p - n.length * 6),
634
- T = 0;
635
- for (p /= 6, e = 0; e < p; e++) {
636
- let E = e,
637
- D = E + 1,
638
- A = E + p,
639
- N = A + 1;
640
- ((s = w.fromArray(t, E * 3, At)),
641
- (l = w.fromArray(t, D * 3, Mt)),
642
- !w.equalsEpsilon(s, l, I.EPSILON10, I.EPSILON10) &&
643
- ((C[T++] = E),
644
- (C[T++] = A),
645
- (C[T++] = D),
646
- (C[T++] = D),
647
- (C[T++] = A),
648
- (C[T++] = N)));
649
- }
650
- let P = {
651
- attributes: new nt({
652
- position: new z({
653
- componentDatatype: k.DOUBLE,
654
- componentsPerAttribute: 3,
655
- values: t,
656
- }),
657
- }),
658
- indices: C,
659
- primitiveType: J.TRIANGLES,
660
- };
661
- return (
662
- L &&
663
- (P.attributes.st = new z({
664
- componentDatatype: k.FLOAT,
665
- componentsPerAttribute: 2,
666
- values: g,
667
- })),
668
- new X(P)
669
- );
670
- };
671
- var se = b;
672
- export { se as a };