create-swdg-frontend 0.1.6 → 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 (469) 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/.husky/commit-msg +42 -42
  20. package/template/.husky/pre-commit +2 -2
  21. package/template/.husky/prepare-commit-msg +0 -0
  22. package/template/.lintstagedrc +5 -5
  23. package/template/.prettierignore +26 -26
  24. package/template/.prettierrc.cjs +10 -10
  25. package/template/.stylelintignore +1 -1
  26. package/template/.stylelintrc.json +12 -6
  27. package/template/README.md +99 -36
  28. package/template/auto-imports.d.ts +10 -0
  29. package/template/commitlint.config.cjs +64 -64
  30. package/template/docs/MAINTAINER.md +77 -0
  31. package/template/docs/ONBOARDING.md +284 -0
  32. package/template/docs/TESTING.md +104 -0
  33. package/template/eslint.config.js +97 -96
  34. package/template/index.html +17 -17
  35. package/template/interface/user.ts +5 -5
  36. package/template/package.json +88 -86
  37. package/template/pnpm-lock.yaml +6360 -0
  38. package/template/postcss.config.js +5 -0
  39. package/template/scripts/gen-api.cjs +280 -230
  40. package/template/scripts/release.mjs +53 -59
  41. package/template/scripts/set-release-version.mjs +46 -0
  42. package/template/scripts/test-pipeline.mjs +85 -0
  43. package/template/scripts/test-scaffold.mjs +197 -0
  44. package/template/scripts/test-template.mjs +52 -0
  45. package/template/scripts/verify.mjs +28 -0
  46. package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
  47. package/template/src/App.vue +6 -6
  48. package/template/src/api/README.md +7 -3
  49. package/template/src/assets/favicon.svg +49 -49
  50. package/template/src/components/Body/index.vue +80 -16
  51. package/template/src/components/CesiumViewer/index.vue +36 -0
  52. package/template/src/components/Header/index.vue +19 -8
  53. package/template/src/components/OnboardingDeck/index.vue +449 -0
  54. package/template/src/data/onboardingSlides.ts +208 -0
  55. package/template/src/directive/focus.ts +9 -9
  56. package/template/src/layout/BasicLayout.vue +28 -28
  57. package/template/src/main.ts +25 -33
  58. package/template/src/router/index.ts +30 -24
  59. package/template/src/router/routeUtils.ts +13 -0
  60. package/template/src/stores/README.md +3 -3
  61. package/template/src/stores/useCounter.ts +12 -12
  62. package/template/src/styles/alerts.less +85 -85
  63. package/template/src/styles/global.css +326 -326
  64. package/template/src/styles/shell.css +232 -0
  65. package/template/src/utils/alert.ts +58 -58
  66. package/template/src/utils/axios-middleware.js +180 -0
  67. package/template/src/utils/cesium/index.ts +71 -0
  68. package/template/src/utils/components.ts +21 -21
  69. package/template/src/utils/composables/useAlert.ts +14 -14
  70. package/template/src/utils/composables/useFeatureGis.ts +24 -0
  71. package/template/src/utils/http.ts +5 -0
  72. package/template/src/views/examples/cesium/index.vue +85 -0
  73. package/template/src/views/examples/guide/index.vue +42 -0
  74. package/template/src/views/examples/test/index.vue +63 -0
  75. package/template/src/views/index.vue +8 -9
  76. package/template/src/vite-env.d.ts +1 -1
  77. package/template/tests/README.md +7 -6
  78. package/template/tests/e2e/README.md +3 -3
  79. package/template/tests/setup.ts +1 -1
  80. package/template/tests/unit/onboardingSlides.test.ts +20 -0
  81. package/template/tests/unit/router.utils.test.ts +21 -0
  82. package/template/tests/unit/scaffold.lib.test.ts +44 -0
  83. package/template/tests/unit/useFeatureGis.test.ts +14 -0
  84. package/template/tests/utils/helpers.ts +1 -1
  85. package/template/tsconfig.json +51 -51
  86. package/template/tsconfig.node.json +11 -11
  87. package/template/types/README.md +3 -3
  88. package/template/types/env.d.ts +13 -0
  89. package/template/types/global.d.ts +9 -9
  90. package/template/vite.config.ts +89 -75
  91. package/template/vitest.config.ts +22 -9
  92. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
  93. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
  94. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
  95. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
  96. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
  97. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
  98. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
  99. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
  100. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
  101. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
  102. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
  103. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
  104. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
  105. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
  106. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
  107. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
  108. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
  109. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
  110. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
  111. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
  112. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
  113. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
  114. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
  115. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
  116. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
  117. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
  118. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
  119. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
  120. package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
  121. package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
  122. package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
  123. package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
  124. package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  125. package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  126. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  127. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  128. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  129. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  130. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  131. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  132. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  133. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  134. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  135. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  136. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  137. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  138. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  139. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  140. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  141. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  142. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  143. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  144. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  145. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  146. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  147. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  148. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  149. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  150. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  151. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  152. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  153. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  154. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  155. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  156. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  157. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  158. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  159. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  160. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  161. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  162. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  163. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  164. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  165. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  166. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  167. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  168. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
  169. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  170. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  171. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  172. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  173. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  174. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  175. package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
  176. package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
  177. package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
  178. package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
  179. package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
  180. package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
  181. package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
  182. package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
  183. package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
  184. package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
  185. package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
  186. package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
  187. package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
  188. package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
  189. package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
  190. package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
  191. package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
  192. package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
  193. package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
  194. package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
  195. package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
  196. package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
  197. package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
  198. package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
  199. package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
  200. package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
  201. package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
  202. package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
  203. package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
  204. package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
  205. package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
  206. package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
  207. package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
  208. package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
  209. package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
  210. package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
  211. package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
  212. package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
  213. package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
  214. package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
  215. package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
  216. package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
  217. package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
  218. package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
  219. package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
  220. package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
  221. package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
  222. package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
  223. package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
  224. package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
  225. package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
  226. package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
  227. package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
  228. package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
  229. package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
  230. package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
  231. package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
  232. package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
  233. package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
  234. package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
  235. package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
  236. package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
  237. package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
  238. package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
  239. package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
  240. package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
  241. package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
  242. package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
  243. package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
  244. package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
  245. package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
  246. package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
  247. package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
  248. package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
  249. package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
  250. package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
  251. package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
  252. package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
  253. package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
  254. package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
  255. package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
  256. package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
  257. package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
  258. package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
  259. package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
  260. package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
  261. package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
  262. package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
  263. package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
  264. package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
  265. package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
  266. package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
  267. package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
  268. package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
  269. package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
  270. package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
  271. package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
  272. package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
  273. package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
  274. package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
  275. package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
  276. package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
  277. package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
  278. package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
  279. package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
  280. package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
  281. package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
  282. package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
  283. package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
  284. package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
  285. package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
  286. package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
  287. package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
  288. package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
  289. package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
  290. package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
  291. package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
  292. package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
  293. package/template/public/Cesium1.119/Assets/Textures/pin.svg +0 -1
  294. package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
  295. package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
  296. package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +0 -10924
  297. package/template/public/Cesium1.119/Cesium.js +0 -185772
  298. package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
  299. package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
  300. package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
  301. package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
  302. package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
  303. package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
  304. package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +0 -11424
  305. package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
  306. package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
  307. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
  308. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
  309. package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
  310. package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
  311. package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
  312. package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
  313. package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
  314. package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
  315. package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
  316. package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
  317. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  318. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  319. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  320. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  321. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  322. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  323. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  324. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  325. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  326. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  327. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  328. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  329. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  330. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  331. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  332. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  333. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  334. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  335. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  336. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
  337. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
  338. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
  339. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
  340. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
  341. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
  342. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
  343. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
  344. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
  345. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  346. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  347. package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
  348. package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
  349. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +0 -94
  350. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
  351. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
  352. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
  353. package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
  354. package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
  355. package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
  356. package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
  357. package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
  358. package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
  359. package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
  360. package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
  361. package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
  362. package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
  363. package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
  364. package/template/public/Cesium1.119/Widgets/shared.css +0 -103
  365. package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
  366. package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
  367. package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
  368. package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
  369. package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
  370. package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
  371. package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
  372. package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
  373. package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
  374. package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
  375. package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
  376. package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
  377. package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
  378. package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
  379. package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
  380. package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
  381. package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
  382. package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
  383. package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
  384. package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
  385. package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
  386. package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
  387. package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
  388. package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
  389. package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
  390. package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
  391. package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
  392. package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
  393. package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
  394. package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
  395. package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
  396. package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
  397. package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
  398. package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
  399. package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
  400. package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
  401. package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
  402. package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
  403. package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
  404. package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
  405. package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
  406. package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
  407. package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
  408. package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
  409. package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
  410. package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
  411. package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
  412. package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
  413. package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
  414. package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
  415. package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
  416. package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
  417. package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
  418. package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
  419. package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
  420. package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
  421. package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
  422. package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
  423. package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
  424. package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
  425. package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
  426. package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
  427. package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
  428. package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
  429. package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
  430. package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
  431. package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
  432. package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
  433. package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
  434. package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
  435. package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
  436. package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
  437. package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
  438. package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
  439. package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
  440. package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
  441. package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
  442. package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
  443. package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
  444. package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
  445. package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
  446. package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
  447. package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
  448. package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
  449. package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
  450. package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
  451. package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
  452. package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
  453. package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
  454. package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
  455. package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
  456. package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
  457. package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
  458. package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
  459. package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
  460. package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
  461. package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
  462. package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
  463. package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
  464. package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
  465. package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
  466. package/template/public/Cesium1.119/index.cjs +0 -185632
  467. package/template/public/Cesium1.119/index.js +0 -182874
  468. package/template/src/views/Test/index.vue +0 -23
  469. package/template/tests/unit/example.test.ts +0 -7
@@ -1,857 +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 ue } from "./chunk-FYOYUPXG.js";
27
- import { b as he, c as pe, d as ne } from "./chunk-X5IHHI6X.js";
28
- import { a as te } from "./chunk-KZNJOCYU.js";
29
- import { a as p, b as ee, c as w, d as Se } from "./chunk-POASMU2N.js";
30
- import { a as Y } from "./chunk-R6KGAEF6.js";
31
- import { a as le } from "./chunk-3C7WC463.js";
32
- import { a as K } from "./chunk-IUA6FAOZ.js";
33
- import { b } from "./chunk-UH2WFNTA.js";
34
- import { c as We, d as $e, e as D } from "./chunk-PEYJTJPE.js";
35
- var Oe = We((st, ge) => {
36
- "use strict";
37
- ge.exports = xe;
38
- ge.exports.default = xe;
39
- function xe(e, n, t) {
40
- t = t || 2;
41
- var u = n && n.length,
42
- r = u ? n[0] * t : e.length,
43
- i = Ce(e, 0, r, t, !0),
44
- s = [];
45
- if (!i || i.next === i.prev) return s;
46
- var o, f, c, l, y, v, d;
47
- if ((u && (i = ke(e, n, i, t)), e.length > 80 * t)) {
48
- ((o = c = e[0]), (f = l = e[1]));
49
- for (var h = t; h < r; h += t)
50
- ((y = e[h]),
51
- (v = e[h + 1]),
52
- y < o && (o = y),
53
- v < f && (f = v),
54
- y > c && (c = y),
55
- v > l && (l = v));
56
- ((d = Math.max(c - o, l - f)), (d = d !== 0 ? 32767 / d : 0));
57
- }
58
- return (re(i, s, t, o, f, d, 0), s);
59
- }
60
- function Ce(e, n, t, u, r) {
61
- var i, s;
62
- if (r === de(e, n, t, u) > 0)
63
- for (i = n; i < t; i += u) s = Ae(i, e[i], e[i + 1], s);
64
- else for (i = t - u; i >= n; i -= u) s = Ae(i, e[i], e[i + 1], s);
65
- return (s && ae(s, s.next) && (oe(s), (s = s.next)), s);
66
- }
67
- function N(e, n) {
68
- if (!e) return e;
69
- n || (n = e);
70
- var t = e,
71
- u;
72
- do
73
- if (
74
- ((u = !1), !t.steiner && (ae(t, t.next) || A(t.prev, t, t.next) === 0))
75
- ) {
76
- if ((oe(t), (t = n = t.prev), t === t.next)) break;
77
- u = !0;
78
- } else t = t.next;
79
- while (u || t !== n);
80
- return n;
81
- }
82
- function re(e, n, t, u, r, i, s) {
83
- if (e) {
84
- !s && i && qe(e, u, r, i);
85
- for (var o = e, f, c; e.prev !== e.next; ) {
86
- if (((f = e.prev), (c = e.next), i ? Ie(e, u, r, i) : Ge(e))) {
87
- (n.push((f.i / t) | 0),
88
- n.push((e.i / t) | 0),
89
- n.push((c.i / t) | 0),
90
- oe(e),
91
- (e = c.next),
92
- (o = c.next));
93
- continue;
94
- }
95
- if (((e = c), e === o)) {
96
- s
97
- ? s === 1
98
- ? ((e = He(N(e), n, t)), re(e, n, t, u, r, i, 2))
99
- : s === 2 && Ne(e, n, t, u, r, i)
100
- : re(N(e), n, t, u, r, i, 1);
101
- break;
102
- }
103
- }
104
- }
105
- }
106
- function Ge(e) {
107
- var n = e.prev,
108
- t = e,
109
- u = e.next;
110
- if (A(n, t, u) >= 0) return !1;
111
- for (
112
- var r = n.x,
113
- i = t.x,
114
- s = u.x,
115
- o = n.y,
116
- f = t.y,
117
- c = u.y,
118
- l = r < i ? (r < s ? r : s) : i < s ? i : s,
119
- y = o < f ? (o < c ? o : c) : f < c ? f : c,
120
- v = r > i ? (r > s ? r : s) : i > s ? i : s,
121
- d = o > f ? (o > c ? o : c) : f > c ? f : c,
122
- h = u.next;
123
- h !== n;
124
- ) {
125
- if (
126
- h.x >= l &&
127
- h.x <= v &&
128
- h.y >= y &&
129
- h.y <= d &&
130
- V(r, o, i, f, s, c, h.x, h.y) &&
131
- A(h.prev, h, h.next) >= 0
132
- )
133
- return !1;
134
- h = h.next;
135
- }
136
- return !0;
137
- }
138
- function Ie(e, n, t, u) {
139
- var r = e.prev,
140
- i = e,
141
- s = e.next;
142
- if (A(r, i, s) >= 0) return !1;
143
- for (
144
- var o = r.x,
145
- f = i.x,
146
- c = s.x,
147
- l = r.y,
148
- y = i.y,
149
- v = s.y,
150
- d = o < f ? (o < c ? o : c) : f < c ? f : c,
151
- h = l < y ? (l < v ? l : v) : y < v ? y : v,
152
- T = o > f ? (o > c ? o : c) : f > c ? f : c,
153
- L = l > y ? (l > v ? l : v) : y > v ? y : v,
154
- z = ye(d, h, n, t, u),
155
- F = ye(T, L, n, t, u),
156
- x = e.prevZ,
157
- a = e.nextZ;
158
- x && x.z >= z && a && a.z <= F;
159
- ) {
160
- if (
161
- (x.x >= d &&
162
- x.x <= T &&
163
- x.y >= h &&
164
- x.y <= L &&
165
- x !== r &&
166
- x !== s &&
167
- V(o, l, f, y, c, v, x.x, x.y) &&
168
- A(x.prev, x, x.next) >= 0) ||
169
- ((x = x.prevZ),
170
- a.x >= d &&
171
- a.x <= T &&
172
- a.y >= h &&
173
- a.y <= L &&
174
- a !== r &&
175
- a !== s &&
176
- V(o, l, f, y, c, v, a.x, a.y) &&
177
- A(a.prev, a, a.next) >= 0)
178
- )
179
- return !1;
180
- a = a.nextZ;
181
- }
182
- for (; x && x.z >= z; ) {
183
- if (
184
- x.x >= d &&
185
- x.x <= T &&
186
- x.y >= h &&
187
- x.y <= L &&
188
- x !== r &&
189
- x !== s &&
190
- V(o, l, f, y, c, v, x.x, x.y) &&
191
- A(x.prev, x, x.next) >= 0
192
- )
193
- return !1;
194
- x = x.prevZ;
195
- }
196
- for (; a && a.z <= F; ) {
197
- if (
198
- a.x >= d &&
199
- a.x <= T &&
200
- a.y >= h &&
201
- a.y <= L &&
202
- a !== r &&
203
- a !== s &&
204
- V(o, l, f, y, c, v, a.x, a.y) &&
205
- A(a.prev, a, a.next) >= 0
206
- )
207
- return !1;
208
- a = a.nextZ;
209
- }
210
- return !0;
211
- }
212
- function He(e, n, t) {
213
- var u = e;
214
- do {
215
- var r = u.prev,
216
- i = u.next.next;
217
- (!ae(r, i) &&
218
- be(r, u, u.next, i) &&
219
- ie(r, i) &&
220
- ie(i, r) &&
221
- (n.push((r.i / t) | 0),
222
- n.push((u.i / t) | 0),
223
- n.push((i.i / t) | 0),
224
- oe(u),
225
- oe(u.next),
226
- (u = e = i)),
227
- (u = u.next));
228
- } while (u !== e);
229
- return N(u);
230
- }
231
- function Ne(e, n, t, u, r, i) {
232
- var s = e;
233
- do {
234
- for (var o = s.next.next; o !== s.prev; ) {
235
- if (s.i !== o.i && je(s, o)) {
236
- var f = Ee(s, o);
237
- ((s = N(s, s.next)),
238
- (f = N(f, f.next)),
239
- re(s, n, t, u, r, i, 0),
240
- re(f, n, t, u, r, i, 0));
241
- return;
242
- }
243
- o = o.next;
244
- }
245
- s = s.next;
246
- } while (s !== e);
247
- }
248
- function ke(e, n, t, u) {
249
- var r = [],
250
- i,
251
- s,
252
- o,
253
- f,
254
- c;
255
- for (i = 0, s = n.length; i < s; i++)
256
- ((o = n[i] * u),
257
- (f = i < s - 1 ? n[i + 1] * u : e.length),
258
- (c = Ce(e, o, f, u, !1)),
259
- c === c.next && (c.steiner = !0),
260
- r.push(Qe(c)));
261
- for (r.sort(Ue), i = 0; i < r.length; i++) t = _e(r[i], t);
262
- return t;
263
- }
264
- function Ue(e, n) {
265
- return e.x - n.x;
266
- }
267
- function _e(e, n) {
268
- var t = Ke(e, n);
269
- if (!t) return n;
270
- var u = Ee(t, e);
271
- return (N(u, u.next), N(t, t.next));
272
- }
273
- function Ke(e, n) {
274
- var t = n,
275
- u = e.x,
276
- r = e.y,
277
- i = -1 / 0,
278
- s;
279
- do {
280
- if (r <= t.y && r >= t.next.y && t.next.y !== t.y) {
281
- var o = t.x + ((r - t.y) * (t.next.x - t.x)) / (t.next.y - t.y);
282
- if (
283
- o <= u &&
284
- o > i &&
285
- ((i = o), (s = t.x < t.next.x ? t : t.next), o === u)
286
- )
287
- return s;
288
- }
289
- t = t.next;
290
- } while (t !== n);
291
- if (!s) return null;
292
- var f = s,
293
- c = s.x,
294
- l = s.y,
295
- y = 1 / 0,
296
- v;
297
- t = s;
298
- do
299
- (u >= t.x &&
300
- t.x >= c &&
301
- u !== t.x &&
302
- V(r < l ? u : i, r, c, l, r < l ? i : u, r, t.x, t.y) &&
303
- ((v = Math.abs(r - t.y) / (u - t.x)),
304
- ie(t, e) &&
305
- (v < y || (v === y && (t.x > s.x || (t.x === s.x && Ve(s, t))))) &&
306
- ((s = t), (y = v))),
307
- (t = t.next));
308
- while (t !== f);
309
- return s;
310
- }
311
- function Ve(e, n) {
312
- return A(e.prev, e, n.prev) < 0 && A(n.next, e, e.next) < 0;
313
- }
314
- function qe(e, n, t, u) {
315
- var r = e;
316
- do
317
- (r.z === 0 && (r.z = ye(r.x, r.y, n, t, u)),
318
- (r.prevZ = r.prev),
319
- (r.nextZ = r.next),
320
- (r = r.next));
321
- while (r !== e);
322
- ((r.prevZ.nextZ = null), (r.prevZ = null), Je(r));
323
- }
324
- function Je(e) {
325
- var n,
326
- t,
327
- u,
328
- r,
329
- i,
330
- s,
331
- o,
332
- f,
333
- c = 1;
334
- do {
335
- for (t = e, e = null, i = null, s = 0; t; ) {
336
- for (s++, u = t, o = 0, n = 0; n < c && (o++, (u = u.nextZ), !!u); n++);
337
- for (f = c; o > 0 || (f > 0 && u); )
338
- (o !== 0 && (f === 0 || !u || t.z <= u.z)
339
- ? ((r = t), (t = t.nextZ), o--)
340
- : ((r = u), (u = u.nextZ), f--),
341
- i ? (i.nextZ = r) : (e = r),
342
- (r.prevZ = i),
343
- (i = r));
344
- t = u;
345
- }
346
- ((i.nextZ = null), (c *= 2));
347
- } while (s > 1);
348
- return e;
349
- }
350
- function ye(e, n, t, u, r) {
351
- return (
352
- (e = ((e - t) * r) | 0),
353
- (n = ((n - u) * r) | 0),
354
- (e = (e | (e << 8)) & 16711935),
355
- (e = (e | (e << 4)) & 252645135),
356
- (e = (e | (e << 2)) & 858993459),
357
- (e = (e | (e << 1)) & 1431655765),
358
- (n = (n | (n << 8)) & 16711935),
359
- (n = (n | (n << 4)) & 252645135),
360
- (n = (n | (n << 2)) & 858993459),
361
- (n = (n | (n << 1)) & 1431655765),
362
- e | (n << 1)
363
- );
364
- }
365
- function Qe(e) {
366
- var n = e,
367
- t = e;
368
- do ((n.x < t.x || (n.x === t.x && n.y < t.y)) && (t = n), (n = n.next));
369
- while (n !== e);
370
- return t;
371
- }
372
- function V(e, n, t, u, r, i, s, o) {
373
- return (
374
- (r - s) * (n - o) >= (e - s) * (i - o) &&
375
- (e - s) * (u - o) >= (t - s) * (n - o) &&
376
- (t - s) * (i - o) >= (r - s) * (u - o)
377
- );
378
- }
379
- function je(e, n) {
380
- return (
381
- e.next.i !== n.i &&
382
- e.prev.i !== n.i &&
383
- !Xe(e, n) &&
384
- ((ie(e, n) &&
385
- ie(n, e) &&
386
- Ye(e, n) &&
387
- (A(e.prev, e, n.prev) || A(e, n.prev, n))) ||
388
- (ae(e, n) && A(e.prev, e, e.next) > 0 && A(n.prev, n, n.next) > 0))
389
- );
390
- }
391
- function A(e, n, t) {
392
- return (n.y - e.y) * (t.x - n.x) - (n.x - e.x) * (t.y - n.y);
393
- }
394
- function ae(e, n) {
395
- return e.x === n.x && e.y === n.y;
396
- }
397
- function be(e, n, t, u) {
398
- var r = fe(A(e, n, t)),
399
- i = fe(A(e, n, u)),
400
- s = fe(A(t, u, e)),
401
- o = fe(A(t, u, n));
402
- return !!(
403
- (r !== i && s !== o) ||
404
- (r === 0 && ce(e, t, n)) ||
405
- (i === 0 && ce(e, u, n)) ||
406
- (s === 0 && ce(t, e, u)) ||
407
- (o === 0 && ce(t, n, u))
408
- );
409
- }
410
- function ce(e, n, t) {
411
- return (
412
- n.x <= Math.max(e.x, t.x) &&
413
- n.x >= Math.min(e.x, t.x) &&
414
- n.y <= Math.max(e.y, t.y) &&
415
- n.y >= Math.min(e.y, t.y)
416
- );
417
- }
418
- function fe(e) {
419
- return e > 0 ? 1 : e < 0 ? -1 : 0;
420
- }
421
- function Xe(e, n) {
422
- var t = e;
423
- do {
424
- if (
425
- t.i !== e.i &&
426
- t.next.i !== e.i &&
427
- t.i !== n.i &&
428
- t.next.i !== n.i &&
429
- be(t, t.next, e, n)
430
- )
431
- return !0;
432
- t = t.next;
433
- } while (t !== e);
434
- return !1;
435
- }
436
- function ie(e, n) {
437
- return A(e.prev, e, e.next) < 0
438
- ? A(e, n, e.next) >= 0 && A(e, e.prev, n) >= 0
439
- : A(e, n, e.prev) < 0 || A(e, e.next, n) < 0;
440
- }
441
- function Ye(e, n) {
442
- var t = e,
443
- u = !1,
444
- r = (e.x + n.x) / 2,
445
- i = (e.y + n.y) / 2;
446
- do
447
- (t.y > i != t.next.y > i &&
448
- t.next.y !== t.y &&
449
- r < ((t.next.x - t.x) * (i - t.y)) / (t.next.y - t.y) + t.x &&
450
- (u = !u),
451
- (t = t.next));
452
- while (t !== e);
453
- return u;
454
- }
455
- function Ee(e, n) {
456
- var t = new me(e.i, e.x, e.y),
457
- u = new me(n.i, n.x, n.y),
458
- r = e.next,
459
- i = n.prev;
460
- return (
461
- (e.next = n),
462
- (n.prev = e),
463
- (t.next = r),
464
- (r.prev = t),
465
- (u.next = t),
466
- (t.prev = u),
467
- (i.next = u),
468
- (u.prev = i),
469
- u
470
- );
471
- }
472
- function Ae(e, n, t, u) {
473
- var r = new me(e, n, t);
474
- return (
475
- u
476
- ? ((r.next = u.next), (r.prev = u), (u.next.prev = r), (u.next = r))
477
- : ((r.prev = r), (r.next = r)),
478
- r
479
- );
480
- }
481
- function oe(e) {
482
- ((e.next.prev = e.prev),
483
- (e.prev.next = e.next),
484
- e.prevZ && (e.prevZ.nextZ = e.nextZ),
485
- e.nextZ && (e.nextZ.prevZ = e.prevZ));
486
- }
487
- function me(e, n, t) {
488
- ((this.i = e),
489
- (this.x = n),
490
- (this.y = t),
491
- (this.prev = null),
492
- (this.next = null),
493
- (this.z = 0),
494
- (this.prevZ = null),
495
- (this.nextZ = null),
496
- (this.steiner = !1));
497
- }
498
- xe.deviation = function (e, n, t, u) {
499
- var r = n && n.length,
500
- i = r ? n[0] * t : e.length,
501
- s = Math.abs(de(e, 0, i, t));
502
- if (r)
503
- for (var o = 0, f = n.length; o < f; o++) {
504
- var c = n[o] * t,
505
- l = o < f - 1 ? n[o + 1] * t : e.length;
506
- s -= Math.abs(de(e, c, l, t));
507
- }
508
- var y = 0;
509
- for (o = 0; o < u.length; o += 3) {
510
- var v = u[o] * t,
511
- d = u[o + 1] * t,
512
- h = u[o + 2] * t;
513
- y += Math.abs(
514
- (e[v] - e[h]) * (e[d + 1] - e[v + 1]) -
515
- (e[v] - e[d]) * (e[h + 1] - e[v + 1]),
516
- );
517
- }
518
- return s === 0 && y === 0 ? 0 : Math.abs((y - s) / s);
519
- };
520
- function de(e, n, t, u) {
521
- for (var r = 0, i = n, s = t - u; i < t; i += u)
522
- ((r += (e[s] - e[i]) * (e[i + 1] + e[s + 1])), (s = i));
523
- return r;
524
- }
525
- xe.flatten = function (e) {
526
- for (
527
- var n = e[0][0].length,
528
- t = { vertices: [], holes: [], dimensions: n },
529
- u = 0,
530
- r = 0;
531
- r < e.length;
532
- r++
533
- ) {
534
- for (var i = 0; i < e[r].length; i++)
535
- for (var s = 0; s < n; s++) t.vertices.push(e[r][i][s]);
536
- r > 0 && ((u += e[r - 1].length), t.holes.push(u));
537
- }
538
- return t;
539
- };
540
- });
541
- var se = { CLOCKWISE: le.CW, COUNTER_CLOCKWISE: le.CCW };
542
- se.validate = function (e) {
543
- return e === se.CLOCKWISE || e === se.COUNTER_CLOCKWISE;
544
- };
545
- var ve = Object.freeze(se);
546
- var Le = $e(Oe(), 1);
547
- var et = new p(),
548
- tt = new p(),
549
- B = {};
550
- B.computeArea2D = function (e) {
551
- (b.defined("positions", e),
552
- b.typeOf.number.greaterThanOrEquals("positions.length", e.length, 3));
553
- let n = e.length,
554
- t = 0;
555
- for (let u = n - 1, r = 0; r < n; u = r++) {
556
- let i = e[u],
557
- s = e[r];
558
- t += i.x * s.y - s.x * i.y;
559
- }
560
- return t * 0.5;
561
- };
562
- B.computeWindingOrder2D = function (e) {
563
- return B.computeArea2D(e) > 0 ? ve.COUNTER_CLOCKWISE : ve.CLOCKWISE;
564
- };
565
- B.triangulate = function (e, n) {
566
- b.defined("positions", e);
567
- let t = w.packArray(e);
568
- return (0, Le.default)(t, n, 2);
569
- };
570
- var De = new p(),
571
- Fe = new p(),
572
- Pe = new p(),
573
- Te = new p(),
574
- Me = new p(),
575
- Ze = new p(),
576
- R = new p(),
577
- Re = new w(),
578
- ze = new w(),
579
- Be = new w(),
580
- q = new w();
581
- B.computeSubdivision = function (e, n, t, u, r) {
582
- r = K(r, Y.RADIANS_PER_DEGREE);
583
- let i = D(u);
584
- (b.typeOf.object("ellipsoid", e),
585
- b.defined("positions", n),
586
- b.defined("indices", t),
587
- b.typeOf.number.greaterThanOrEquals("indices.length", t.length, 3),
588
- b.typeOf.number.equals("indices.length % 3", "0", t.length % 3, 0),
589
- b.typeOf.number.greaterThan("granularity", r, 0));
590
- let s = t.slice(0),
591
- o,
592
- f = n.length,
593
- c = new Array(f * 3),
594
- l = new Array(f * 2),
595
- y = 0,
596
- v = 0;
597
- for (o = 0; o < f; o++) {
598
- let x = n[o];
599
- if (((c[y++] = x.x), (c[y++] = x.y), (c[y++] = x.z), i)) {
600
- let a = u[o];
601
- ((l[v++] = a.x), (l[v++] = a.y));
602
- }
603
- }
604
- let d = [],
605
- h = {},
606
- T = e.maximumRadius,
607
- L = Y.chordLength(r, T),
608
- z = L * L;
609
- for (; s.length > 0; ) {
610
- let x = s.pop(),
611
- a = s.pop(),
612
- m = s.pop(),
613
- C = p.fromArray(c, m * 3, De),
614
- E = p.fromArray(c, a * 3, Fe),
615
- J = p.fromArray(c, x * 3, Pe),
616
- Q,
617
- j,
618
- W;
619
- i &&
620
- ((Q = w.fromArray(l, m * 2, Re)),
621
- (j = w.fromArray(l, a * 2, ze)),
622
- (W = w.fromArray(l, x * 2, Be)));
623
- let k = p.multiplyByScalar(p.normalize(C, Te), T, Te),
624
- U = p.multiplyByScalar(p.normalize(E, Me), T, Me),
625
- $ = p.multiplyByScalar(p.normalize(J, Ze), T, Ze),
626
- G = p.magnitudeSquared(p.subtract(k, U, R)),
627
- I = p.magnitudeSquared(p.subtract(U, $, R)),
628
- X = p.magnitudeSquared(p.subtract($, k, R)),
629
- H = Math.max(G, I, X),
630
- M,
631
- S,
632
- g;
633
- H > z
634
- ? G === H
635
- ? ((M = `${Math.min(m, a)} ${Math.max(m, a)}`),
636
- (o = h[M]),
637
- D(o) ||
638
- ((S = p.add(C, E, R)),
639
- p.multiplyByScalar(S, 0.5, S),
640
- c.push(S.x, S.y, S.z),
641
- (o = c.length / 3 - 1),
642
- (h[M] = o),
643
- i &&
644
- ((g = w.add(Q, j, q)),
645
- w.multiplyByScalar(g, 0.5, g),
646
- l.push(g.x, g.y))),
647
- s.push(m, o, x),
648
- s.push(o, a, x))
649
- : I === H
650
- ? ((M = `${Math.min(a, x)} ${Math.max(a, x)}`),
651
- (o = h[M]),
652
- D(o) ||
653
- ((S = p.add(E, J, R)),
654
- p.multiplyByScalar(S, 0.5, S),
655
- c.push(S.x, S.y, S.z),
656
- (o = c.length / 3 - 1),
657
- (h[M] = o),
658
- i &&
659
- ((g = w.add(j, W, q)),
660
- w.multiplyByScalar(g, 0.5, g),
661
- l.push(g.x, g.y))),
662
- s.push(a, o, m),
663
- s.push(o, x, m))
664
- : X === H &&
665
- ((M = `${Math.min(x, m)} ${Math.max(x, m)}`),
666
- (o = h[M]),
667
- D(o) ||
668
- ((S = p.add(J, C, R)),
669
- p.multiplyByScalar(S, 0.5, S),
670
- c.push(S.x, S.y, S.z),
671
- (o = c.length / 3 - 1),
672
- (h[M] = o),
673
- i &&
674
- ((g = w.add(W, Q, q)),
675
- w.multiplyByScalar(g, 0.5, g),
676
- l.push(g.x, g.y))),
677
- s.push(x, o, a),
678
- s.push(o, m, a))
679
- : (d.push(m), d.push(a), d.push(x));
680
- }
681
- let F = {
682
- attributes: {
683
- position: new ne({
684
- componentDatatype: te.DOUBLE,
685
- componentsPerAttribute: 3,
686
- values: c,
687
- }),
688
- },
689
- indices: d,
690
- primitiveType: he.TRIANGLES,
691
- };
692
- return (
693
- i &&
694
- (F.attributes.st = new ne({
695
- componentDatatype: te.FLOAT,
696
- componentsPerAttribute: 2,
697
- values: l,
698
- })),
699
- new pe(F)
700
- );
701
- };
702
- var nt = new ee(),
703
- rt = new ee(),
704
- it = new ee(),
705
- we = new ee();
706
- B.computeRhumbLineSubdivision = function (e, n, t, u, r) {
707
- r = K(r, Y.RADIANS_PER_DEGREE);
708
- let i = D(u);
709
- (b.typeOf.object("ellipsoid", e),
710
- b.defined("positions", n),
711
- b.defined("indices", t),
712
- b.typeOf.number.greaterThanOrEquals("indices.length", t.length, 3),
713
- b.typeOf.number.equals("indices.length % 3", "0", t.length % 3, 0),
714
- b.typeOf.number.greaterThan("granularity", r, 0));
715
- let s = t.slice(0),
716
- o,
717
- f = n.length,
718
- c = new Array(f * 3),
719
- l = new Array(f * 2),
720
- y = 0,
721
- v = 0;
722
- for (o = 0; o < f; o++) {
723
- let m = n[o];
724
- if (((c[y++] = m.x), (c[y++] = m.y), (c[y++] = m.z), i)) {
725
- let C = u[o];
726
- ((l[v++] = C.x), (l[v++] = C.y));
727
- }
728
- }
729
- let d = [],
730
- h = {},
731
- T = e.maximumRadius,
732
- L = Y.chordLength(r, T),
733
- z = new ue(void 0, void 0, e),
734
- F = new ue(void 0, void 0, e),
735
- x = new ue(void 0, void 0, e);
736
- for (; s.length > 0; ) {
737
- let m = s.pop(),
738
- C = s.pop(),
739
- E = s.pop(),
740
- J = p.fromArray(c, E * 3, De),
741
- Q = p.fromArray(c, C * 3, Fe),
742
- j = p.fromArray(c, m * 3, Pe),
743
- W,
744
- k,
745
- U;
746
- i &&
747
- ((W = w.fromArray(l, E * 2, Re)),
748
- (k = w.fromArray(l, C * 2, ze)),
749
- (U = w.fromArray(l, m * 2, Be)));
750
- let $ = e.cartesianToCartographic(J, nt),
751
- G = e.cartesianToCartographic(Q, rt),
752
- I = e.cartesianToCartographic(j, it);
753
- z.setEndPoints($, G);
754
- let X = z.surfaceDistance;
755
- F.setEndPoints(G, I);
756
- let H = F.surfaceDistance;
757
- x.setEndPoints(I, $);
758
- let M = x.surfaceDistance,
759
- S = Math.max(X, H, M),
760
- g,
761
- P,
762
- _,
763
- Z,
764
- O;
765
- S > L
766
- ? X === S
767
- ? ((g = `${Math.min(E, C)} ${Math.max(E, C)}`),
768
- (o = h[g]),
769
- D(o) ||
770
- ((P = z.interpolateUsingFraction(0.5, we)),
771
- (_ = ($.height + G.height) * 0.5),
772
- (Z = p.fromRadians(P.longitude, P.latitude, _, e, R)),
773
- c.push(Z.x, Z.y, Z.z),
774
- (o = c.length / 3 - 1),
775
- (h[g] = o),
776
- i &&
777
- ((O = w.add(W, k, q)),
778
- w.multiplyByScalar(O, 0.5, O),
779
- l.push(O.x, O.y))),
780
- s.push(E, o, m),
781
- s.push(o, C, m))
782
- : H === S
783
- ? ((g = `${Math.min(C, m)} ${Math.max(C, m)}`),
784
- (o = h[g]),
785
- D(o) ||
786
- ((P = F.interpolateUsingFraction(0.5, we)),
787
- (_ = (G.height + I.height) * 0.5),
788
- (Z = p.fromRadians(P.longitude, P.latitude, _, e, R)),
789
- c.push(Z.x, Z.y, Z.z),
790
- (o = c.length / 3 - 1),
791
- (h[g] = o),
792
- i &&
793
- ((O = w.add(k, U, q)),
794
- w.multiplyByScalar(O, 0.5, O),
795
- l.push(O.x, O.y))),
796
- s.push(C, o, E),
797
- s.push(o, m, E))
798
- : M === S &&
799
- ((g = `${Math.min(m, E)} ${Math.max(m, E)}`),
800
- (o = h[g]),
801
- D(o) ||
802
- ((P = x.interpolateUsingFraction(0.5, we)),
803
- (_ = (I.height + $.height) * 0.5),
804
- (Z = p.fromRadians(P.longitude, P.latitude, _, e, R)),
805
- c.push(Z.x, Z.y, Z.z),
806
- (o = c.length / 3 - 1),
807
- (h[g] = o),
808
- i &&
809
- ((O = w.add(U, W, q)),
810
- w.multiplyByScalar(O, 0.5, O),
811
- l.push(O.x, O.y))),
812
- s.push(m, o, C),
813
- s.push(o, E, C))
814
- : (d.push(E), d.push(C), d.push(m));
815
- }
816
- let a = {
817
- attributes: {
818
- position: new ne({
819
- componentDatatype: te.DOUBLE,
820
- componentsPerAttribute: 3,
821
- values: c,
822
- }),
823
- },
824
- indices: d,
825
- primitiveType: he.TRIANGLES,
826
- };
827
- return (
828
- i &&
829
- (a.attributes.st = new ne({
830
- componentDatatype: te.FLOAT,
831
- componentsPerAttribute: 2,
832
- values: l,
833
- })),
834
- new pe(a)
835
- );
836
- };
837
- B.scaleToGeodeticHeight = function (e, n, t, u) {
838
- t = K(t, Se.default);
839
- let r = et,
840
- i = tt;
841
- if (((n = K(n, 0)), (u = K(u, !0)), D(e))) {
842
- let s = e.length;
843
- for (let o = 0; o < s; o += 3)
844
- (p.fromArray(e, o, i),
845
- u && (i = t.scaleToGeodeticSurface(i, i)),
846
- n !== 0 &&
847
- ((r = t.geodeticSurfaceNormal(i, r)),
848
- p.multiplyByScalar(r, n, r),
849
- p.add(i, r, i)),
850
- (e[o] = i.x),
851
- (e[o + 1] = i.y),
852
- (e[o + 2] = i.z));
853
- }
854
- return e;
855
- };
856
- var At = B;
857
- export { ve as a, At as b };