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,573 +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 { f as j } from "./chunk-POASMU2N.js";
27
- import { a as E } from "./chunk-R6KGAEF6.js";
28
- import { a as C } from "./chunk-IUA6FAOZ.js";
29
- import { b as n } from "./chunk-UH2WFNTA.js";
30
- import { e as O } from "./chunk-PEYJTJPE.js";
31
- function l(r, o, t) {
32
- return (
33
- t < 0 && (t += 1),
34
- t > 1 && (t -= 1),
35
- t * 6 < 1
36
- ? r + (o - r) * 6 * t
37
- : t * 2 < 1
38
- ? o
39
- : t * 3 < 2
40
- ? r + (o - r) * (2 / 3 - t) * 6
41
- : r
42
- );
43
- }
44
- function e(r, o, t, f) {
45
- ((this.red = C(r, 1)),
46
- (this.green = C(o, 1)),
47
- (this.blue = C(t, 1)),
48
- (this.alpha = C(f, 1)));
49
- }
50
- e.fromCartesian4 = function (r, o) {
51
- return (
52
- n.typeOf.object("cartesian", r),
53
- O(o)
54
- ? ((o.red = r.x), (o.green = r.y), (o.blue = r.z), (o.alpha = r.w), o)
55
- : new e(r.x, r.y, r.z, r.w)
56
- );
57
- };
58
- e.fromBytes = function (r, o, t, f, s) {
59
- return (
60
- (r = e.byteToFloat(C(r, 255))),
61
- (o = e.byteToFloat(C(o, 255))),
62
- (t = e.byteToFloat(C(t, 255))),
63
- (f = e.byteToFloat(C(f, 255))),
64
- O(s)
65
- ? ((s.red = r), (s.green = o), (s.blue = t), (s.alpha = f), s)
66
- : new e(r, o, t, f)
67
- );
68
- };
69
- e.fromAlpha = function (r, o, t) {
70
- return (
71
- n.typeOf.object("color", r),
72
- n.typeOf.number("alpha", o),
73
- O(t)
74
- ? ((t.red = r.red),
75
- (t.green = r.green),
76
- (t.blue = r.blue),
77
- (t.alpha = o),
78
- t)
79
- : new e(r.red, r.green, r.blue, o)
80
- );
81
- };
82
- var A, g, m;
83
- j.supportsTypedArrays() &&
84
- ((A = new ArrayBuffer(4)), (g = new Uint32Array(A)), (m = new Uint8Array(A)));
85
- e.fromRgba = function (r, o) {
86
- return ((g[0] = r), e.fromBytes(m[0], m[1], m[2], m[3], o));
87
- };
88
- e.fromHsl = function (r, o, t, f, s) {
89
- ((r = C(r, 0) % 1), (o = C(o, 0)), (t = C(t, 0)), (f = C(f, 1)));
90
- let c = t,
91
- b = t,
92
- i = t;
93
- if (o !== 0) {
94
- let S;
95
- t < 0.5 ? (S = t * (1 + o)) : (S = t + o - t * o);
96
- let F = 2 * t - S;
97
- ((c = l(F, S, r + 1 / 3)), (b = l(F, S, r)), (i = l(F, S, r - 1 / 3)));
98
- }
99
- return O(s)
100
- ? ((s.red = c), (s.green = b), (s.blue = i), (s.alpha = f), s)
101
- : new e(c, b, i, f);
102
- };
103
- e.fromRandom = function (r, o) {
104
- r = C(r, C.EMPTY_OBJECT);
105
- let t = r.red;
106
- if (!O(t)) {
107
- let b = C(r.minimumRed, 0),
108
- i = C(r.maximumRed, 1);
109
- (n.typeOf.number.lessThanOrEquals("minimumRed", b, i),
110
- (t = b + E.nextRandomNumber() * (i - b)));
111
- }
112
- let f = r.green;
113
- if (!O(f)) {
114
- let b = C(r.minimumGreen, 0),
115
- i = C(r.maximumGreen, 1);
116
- (n.typeOf.number.lessThanOrEquals("minimumGreen", b, i),
117
- (f = b + E.nextRandomNumber() * (i - b)));
118
- }
119
- let s = r.blue;
120
- if (!O(s)) {
121
- let b = C(r.minimumBlue, 0),
122
- i = C(r.maximumBlue, 1);
123
- (n.typeOf.number.lessThanOrEquals("minimumBlue", b, i),
124
- (s = b + E.nextRandomNumber() * (i - b)));
125
- }
126
- let c = r.alpha;
127
- if (!O(c)) {
128
- let b = C(r.minimumAlpha, 0),
129
- i = C(r.maximumAlpha, 1);
130
- (n.typeOf.number.lessThanOrEquals("minumumAlpha", b, i),
131
- (c = b + E.nextRandomNumber() * (i - b)));
132
- }
133
- return O(o)
134
- ? ((o.red = t), (o.green = f), (o.blue = s), (o.alpha = c), o)
135
- : new e(t, f, s, c);
136
- };
137
- var a = /^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,
138
- z = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,
139
- p =
140
- /^rgba?\s*\(\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i,
141
- R =
142
- /^hsla?\s*\(\s*([0-9.]+)\s*[,\s]+\s*([0-9.]+%)\s*[,\s]+\s*([0-9.]+%)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i;
143
- e.fromCssColorString = function (r, o) {
144
- (n.typeOf.string("color", r), O(o) || (o = new e()), (r = r.trim()));
145
- let t = e[r.toUpperCase()];
146
- if (O(t)) return (e.clone(t, o), o);
147
- let f = a.exec(r);
148
- return f !== null
149
- ? ((o.red = parseInt(f[1], 16) / 15),
150
- (o.green = parseInt(f[2], 16) / 15),
151
- (o.blue = parseInt(f[3], 16) / 15),
152
- (o.alpha = parseInt(C(f[4], "f"), 16) / 15),
153
- o)
154
- : ((f = z.exec(r)),
155
- f !== null
156
- ? ((o.red = parseInt(f[1], 16) / 255),
157
- (o.green = parseInt(f[2], 16) / 255),
158
- (o.blue = parseInt(f[3], 16) / 255),
159
- (o.alpha = parseInt(C(f[4], "ff"), 16) / 255),
160
- o)
161
- : ((f = p.exec(r)),
162
- f !== null
163
- ? ((o.red =
164
- parseFloat(f[1]) / (f[1].substr(-1) === "%" ? 100 : 255)),
165
- (o.green =
166
- parseFloat(f[2]) / (f[2].substr(-1) === "%" ? 100 : 255)),
167
- (o.blue =
168
- parseFloat(f[3]) / (f[3].substr(-1) === "%" ? 100 : 255)),
169
- (o.alpha = parseFloat(C(f[4], "1.0"))),
170
- o)
171
- : ((f = R.exec(r)),
172
- f !== null
173
- ? e.fromHsl(
174
- parseFloat(f[1]) / 360,
175
- parseFloat(f[2]) / 100,
176
- parseFloat(f[3]) / 100,
177
- parseFloat(C(f[4], "1.0")),
178
- o,
179
- )
180
- : ((o = void 0), o))));
181
- };
182
- e.packedLength = 4;
183
- e.pack = function (r, o, t) {
184
- return (
185
- n.typeOf.object("value", r),
186
- n.defined("array", o),
187
- (t = C(t, 0)),
188
- (o[t++] = r.red),
189
- (o[t++] = r.green),
190
- (o[t++] = r.blue),
191
- (o[t] = r.alpha),
192
- o
193
- );
194
- };
195
- e.unpack = function (r, o, t) {
196
- return (
197
- n.defined("array", r),
198
- (o = C(o, 0)),
199
- O(t) || (t = new e()),
200
- (t.red = r[o++]),
201
- (t.green = r[o++]),
202
- (t.blue = r[o++]),
203
- (t.alpha = r[o]),
204
- t
205
- );
206
- };
207
- e.byteToFloat = function (r) {
208
- return r / 255;
209
- };
210
- e.floatToByte = function (r) {
211
- return r === 1 ? 255 : (r * 256) | 0;
212
- };
213
- e.clone = function (r, o) {
214
- if (O(r))
215
- return O(o)
216
- ? ((o.red = r.red),
217
- (o.green = r.green),
218
- (o.blue = r.blue),
219
- (o.alpha = r.alpha),
220
- o)
221
- : new e(r.red, r.green, r.blue, r.alpha);
222
- };
223
- e.equals = function (r, o) {
224
- return (
225
- r === o ||
226
- (O(r) &&
227
- O(o) &&
228
- r.red === o.red &&
229
- r.green === o.green &&
230
- r.blue === o.blue &&
231
- r.alpha === o.alpha)
232
- );
233
- };
234
- e.equalsArray = function (r, o, t) {
235
- return (
236
- r.red === o[t] &&
237
- r.green === o[t + 1] &&
238
- r.blue === o[t + 2] &&
239
- r.alpha === o[t + 3]
240
- );
241
- };
242
- e.prototype.clone = function (r) {
243
- return e.clone(this, r);
244
- };
245
- e.prototype.equals = function (r) {
246
- return e.equals(this, r);
247
- };
248
- e.prototype.equalsEpsilon = function (r, o) {
249
- return (
250
- this === r ||
251
- (O(r) &&
252
- Math.abs(this.red - r.red) <= o &&
253
- Math.abs(this.green - r.green) <= o &&
254
- Math.abs(this.blue - r.blue) <= o &&
255
- Math.abs(this.alpha - r.alpha) <= o)
256
- );
257
- };
258
- e.prototype.toString = function () {
259
- return `(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;
260
- };
261
- e.prototype.toCssColorString = function () {
262
- let r = e.floatToByte(this.red),
263
- o = e.floatToByte(this.green),
264
- t = e.floatToByte(this.blue);
265
- return this.alpha === 1
266
- ? `rgb(${r},${o},${t})`
267
- : `rgba(${r},${o},${t},${this.alpha})`;
268
- };
269
- e.prototype.toCssHexString = function () {
270
- let r = e.floatToByte(this.red).toString(16);
271
- r.length < 2 && (r = `0${r}`);
272
- let o = e.floatToByte(this.green).toString(16);
273
- o.length < 2 && (o = `0${o}`);
274
- let t = e.floatToByte(this.blue).toString(16);
275
- if ((t.length < 2 && (t = `0${t}`), this.alpha < 1)) {
276
- let f = e.floatToByte(this.alpha).toString(16);
277
- return (f.length < 2 && (f = `0${f}`), `#${r}${o}${t}${f}`);
278
- }
279
- return `#${r}${o}${t}`;
280
- };
281
- e.prototype.toBytes = function (r) {
282
- let o = e.floatToByte(this.red),
283
- t = e.floatToByte(this.green),
284
- f = e.floatToByte(this.blue),
285
- s = e.floatToByte(this.alpha);
286
- return O(r)
287
- ? ((r[0] = o), (r[1] = t), (r[2] = f), (r[3] = s), r)
288
- : [o, t, f, s];
289
- };
290
- e.prototype.toRgba = function () {
291
- return (
292
- (m[0] = e.floatToByte(this.red)),
293
- (m[1] = e.floatToByte(this.green)),
294
- (m[2] = e.floatToByte(this.blue)),
295
- (m[3] = e.floatToByte(this.alpha)),
296
- g[0]
297
- );
298
- };
299
- e.prototype.brighten = function (r, o) {
300
- return (
301
- n.typeOf.number("magnitude", r),
302
- n.typeOf.number.greaterThanOrEquals("magnitude", r, 0),
303
- n.typeOf.object("result", o),
304
- (r = 1 - r),
305
- (o.red = 1 - (1 - this.red) * r),
306
- (o.green = 1 - (1 - this.green) * r),
307
- (o.blue = 1 - (1 - this.blue) * r),
308
- (o.alpha = this.alpha),
309
- o
310
- );
311
- };
312
- e.prototype.darken = function (r, o) {
313
- return (
314
- n.typeOf.number("magnitude", r),
315
- n.typeOf.number.greaterThanOrEquals("magnitude", r, 0),
316
- n.typeOf.object("result", o),
317
- (r = 1 - r),
318
- (o.red = this.red * r),
319
- (o.green = this.green * r),
320
- (o.blue = this.blue * r),
321
- (o.alpha = this.alpha),
322
- o
323
- );
324
- };
325
- e.prototype.withAlpha = function (r, o) {
326
- return e.fromAlpha(this, r, o);
327
- };
328
- e.add = function (r, o, t) {
329
- return (
330
- n.typeOf.object("left", r),
331
- n.typeOf.object("right", o),
332
- n.typeOf.object("result", t),
333
- (t.red = r.red + o.red),
334
- (t.green = r.green + o.green),
335
- (t.blue = r.blue + o.blue),
336
- (t.alpha = r.alpha + o.alpha),
337
- t
338
- );
339
- };
340
- e.subtract = function (r, o, t) {
341
- return (
342
- n.typeOf.object("left", r),
343
- n.typeOf.object("right", o),
344
- n.typeOf.object("result", t),
345
- (t.red = r.red - o.red),
346
- (t.green = r.green - o.green),
347
- (t.blue = r.blue - o.blue),
348
- (t.alpha = r.alpha - o.alpha),
349
- t
350
- );
351
- };
352
- e.multiply = function (r, o, t) {
353
- return (
354
- n.typeOf.object("left", r),
355
- n.typeOf.object("right", o),
356
- n.typeOf.object("result", t),
357
- (t.red = r.red * o.red),
358
- (t.green = r.green * o.green),
359
- (t.blue = r.blue * o.blue),
360
- (t.alpha = r.alpha * o.alpha),
361
- t
362
- );
363
- };
364
- e.divide = function (r, o, t) {
365
- return (
366
- n.typeOf.object("left", r),
367
- n.typeOf.object("right", o),
368
- n.typeOf.object("result", t),
369
- (t.red = r.red / o.red),
370
- (t.green = r.green / o.green),
371
- (t.blue = r.blue / o.blue),
372
- (t.alpha = r.alpha / o.alpha),
373
- t
374
- );
375
- };
376
- e.mod = function (r, o, t) {
377
- return (
378
- n.typeOf.object("left", r),
379
- n.typeOf.object("right", o),
380
- n.typeOf.object("result", t),
381
- (t.red = r.red % o.red),
382
- (t.green = r.green % o.green),
383
- (t.blue = r.blue % o.blue),
384
- (t.alpha = r.alpha % o.alpha),
385
- t
386
- );
387
- };
388
- e.lerp = function (r, o, t, f) {
389
- return (
390
- n.typeOf.object("start", r),
391
- n.typeOf.object("end", o),
392
- n.typeOf.number("t", t),
393
- n.typeOf.object("result", f),
394
- (f.red = E.lerp(r.red, o.red, t)),
395
- (f.green = E.lerp(r.green, o.green, t)),
396
- (f.blue = E.lerp(r.blue, o.blue, t)),
397
- (f.alpha = E.lerp(r.alpha, o.alpha, t)),
398
- f
399
- );
400
- };
401
- e.multiplyByScalar = function (r, o, t) {
402
- return (
403
- n.typeOf.object("color", r),
404
- n.typeOf.number("scalar", o),
405
- n.typeOf.object("result", t),
406
- (t.red = r.red * o),
407
- (t.green = r.green * o),
408
- (t.blue = r.blue * o),
409
- (t.alpha = r.alpha * o),
410
- t
411
- );
412
- };
413
- e.divideByScalar = function (r, o, t) {
414
- return (
415
- n.typeOf.object("color", r),
416
- n.typeOf.number("scalar", o),
417
- n.typeOf.object("result", t),
418
- (t.red = r.red / o),
419
- (t.green = r.green / o),
420
- (t.blue = r.blue / o),
421
- (t.alpha = r.alpha / o),
422
- t
423
- );
424
- };
425
- e.ALICEBLUE = Object.freeze(e.fromCssColorString("#F0F8FF"));
426
- e.ANTIQUEWHITE = Object.freeze(e.fromCssColorString("#FAEBD7"));
427
- e.AQUA = Object.freeze(e.fromCssColorString("#00FFFF"));
428
- e.AQUAMARINE = Object.freeze(e.fromCssColorString("#7FFFD4"));
429
- e.AZURE = Object.freeze(e.fromCssColorString("#F0FFFF"));
430
- e.BEIGE = Object.freeze(e.fromCssColorString("#F5F5DC"));
431
- e.BISQUE = Object.freeze(e.fromCssColorString("#FFE4C4"));
432
- e.BLACK = Object.freeze(e.fromCssColorString("#000000"));
433
- e.BLANCHEDALMOND = Object.freeze(e.fromCssColorString("#FFEBCD"));
434
- e.BLUE = Object.freeze(e.fromCssColorString("#0000FF"));
435
- e.BLUEVIOLET = Object.freeze(e.fromCssColorString("#8A2BE2"));
436
- e.BROWN = Object.freeze(e.fromCssColorString("#A52A2A"));
437
- e.BURLYWOOD = Object.freeze(e.fromCssColorString("#DEB887"));
438
- e.CADETBLUE = Object.freeze(e.fromCssColorString("#5F9EA0"));
439
- e.CHARTREUSE = Object.freeze(e.fromCssColorString("#7FFF00"));
440
- e.CHOCOLATE = Object.freeze(e.fromCssColorString("#D2691E"));
441
- e.CORAL = Object.freeze(e.fromCssColorString("#FF7F50"));
442
- e.CORNFLOWERBLUE = Object.freeze(e.fromCssColorString("#6495ED"));
443
- e.CORNSILK = Object.freeze(e.fromCssColorString("#FFF8DC"));
444
- e.CRIMSON = Object.freeze(e.fromCssColorString("#DC143C"));
445
- e.CYAN = Object.freeze(e.fromCssColorString("#00FFFF"));
446
- e.DARKBLUE = Object.freeze(e.fromCssColorString("#00008B"));
447
- e.DARKCYAN = Object.freeze(e.fromCssColorString("#008B8B"));
448
- e.DARKGOLDENROD = Object.freeze(e.fromCssColorString("#B8860B"));
449
- e.DARKGRAY = Object.freeze(e.fromCssColorString("#A9A9A9"));
450
- e.DARKGREEN = Object.freeze(e.fromCssColorString("#006400"));
451
- e.DARKGREY = e.DARKGRAY;
452
- e.DARKKHAKI = Object.freeze(e.fromCssColorString("#BDB76B"));
453
- e.DARKMAGENTA = Object.freeze(e.fromCssColorString("#8B008B"));
454
- e.DARKOLIVEGREEN = Object.freeze(e.fromCssColorString("#556B2F"));
455
- e.DARKORANGE = Object.freeze(e.fromCssColorString("#FF8C00"));
456
- e.DARKORCHID = Object.freeze(e.fromCssColorString("#9932CC"));
457
- e.DARKRED = Object.freeze(e.fromCssColorString("#8B0000"));
458
- e.DARKSALMON = Object.freeze(e.fromCssColorString("#E9967A"));
459
- e.DARKSEAGREEN = Object.freeze(e.fromCssColorString("#8FBC8F"));
460
- e.DARKSLATEBLUE = Object.freeze(e.fromCssColorString("#483D8B"));
461
- e.DARKSLATEGRAY = Object.freeze(e.fromCssColorString("#2F4F4F"));
462
- e.DARKSLATEGREY = e.DARKSLATEGRAY;
463
- e.DARKTURQUOISE = Object.freeze(e.fromCssColorString("#00CED1"));
464
- e.DARKVIOLET = Object.freeze(e.fromCssColorString("#9400D3"));
465
- e.DEEPPINK = Object.freeze(e.fromCssColorString("#FF1493"));
466
- e.DEEPSKYBLUE = Object.freeze(e.fromCssColorString("#00BFFF"));
467
- e.DIMGRAY = Object.freeze(e.fromCssColorString("#696969"));
468
- e.DIMGREY = e.DIMGRAY;
469
- e.DODGERBLUE = Object.freeze(e.fromCssColorString("#1E90FF"));
470
- e.FIREBRICK = Object.freeze(e.fromCssColorString("#B22222"));
471
- e.FLORALWHITE = Object.freeze(e.fromCssColorString("#FFFAF0"));
472
- e.FORESTGREEN = Object.freeze(e.fromCssColorString("#228B22"));
473
- e.FUCHSIA = Object.freeze(e.fromCssColorString("#FF00FF"));
474
- e.GAINSBORO = Object.freeze(e.fromCssColorString("#DCDCDC"));
475
- e.GHOSTWHITE = Object.freeze(e.fromCssColorString("#F8F8FF"));
476
- e.GOLD = Object.freeze(e.fromCssColorString("#FFD700"));
477
- e.GOLDENROD = Object.freeze(e.fromCssColorString("#DAA520"));
478
- e.GRAY = Object.freeze(e.fromCssColorString("#808080"));
479
- e.GREEN = Object.freeze(e.fromCssColorString("#008000"));
480
- e.GREENYELLOW = Object.freeze(e.fromCssColorString("#ADFF2F"));
481
- e.GREY = e.GRAY;
482
- e.HONEYDEW = Object.freeze(e.fromCssColorString("#F0FFF0"));
483
- e.HOTPINK = Object.freeze(e.fromCssColorString("#FF69B4"));
484
- e.INDIANRED = Object.freeze(e.fromCssColorString("#CD5C5C"));
485
- e.INDIGO = Object.freeze(e.fromCssColorString("#4B0082"));
486
- e.IVORY = Object.freeze(e.fromCssColorString("#FFFFF0"));
487
- e.KHAKI = Object.freeze(e.fromCssColorString("#F0E68C"));
488
- e.LAVENDER = Object.freeze(e.fromCssColorString("#E6E6FA"));
489
- e.LAVENDAR_BLUSH = Object.freeze(e.fromCssColorString("#FFF0F5"));
490
- e.LAWNGREEN = Object.freeze(e.fromCssColorString("#7CFC00"));
491
- e.LEMONCHIFFON = Object.freeze(e.fromCssColorString("#FFFACD"));
492
- e.LIGHTBLUE = Object.freeze(e.fromCssColorString("#ADD8E6"));
493
- e.LIGHTCORAL = Object.freeze(e.fromCssColorString("#F08080"));
494
- e.LIGHTCYAN = Object.freeze(e.fromCssColorString("#E0FFFF"));
495
- e.LIGHTGOLDENRODYELLOW = Object.freeze(e.fromCssColorString("#FAFAD2"));
496
- e.LIGHTGRAY = Object.freeze(e.fromCssColorString("#D3D3D3"));
497
- e.LIGHTGREEN = Object.freeze(e.fromCssColorString("#90EE90"));
498
- e.LIGHTGREY = e.LIGHTGRAY;
499
- e.LIGHTPINK = Object.freeze(e.fromCssColorString("#FFB6C1"));
500
- e.LIGHTSEAGREEN = Object.freeze(e.fromCssColorString("#20B2AA"));
501
- e.LIGHTSKYBLUE = Object.freeze(e.fromCssColorString("#87CEFA"));
502
- e.LIGHTSLATEGRAY = Object.freeze(e.fromCssColorString("#778899"));
503
- e.LIGHTSLATEGREY = e.LIGHTSLATEGRAY;
504
- e.LIGHTSTEELBLUE = Object.freeze(e.fromCssColorString("#B0C4DE"));
505
- e.LIGHTYELLOW = Object.freeze(e.fromCssColorString("#FFFFE0"));
506
- e.LIME = Object.freeze(e.fromCssColorString("#00FF00"));
507
- e.LIMEGREEN = Object.freeze(e.fromCssColorString("#32CD32"));
508
- e.LINEN = Object.freeze(e.fromCssColorString("#FAF0E6"));
509
- e.MAGENTA = Object.freeze(e.fromCssColorString("#FF00FF"));
510
- e.MAROON = Object.freeze(e.fromCssColorString("#800000"));
511
- e.MEDIUMAQUAMARINE = Object.freeze(e.fromCssColorString("#66CDAA"));
512
- e.MEDIUMBLUE = Object.freeze(e.fromCssColorString("#0000CD"));
513
- e.MEDIUMORCHID = Object.freeze(e.fromCssColorString("#BA55D3"));
514
- e.MEDIUMPURPLE = Object.freeze(e.fromCssColorString("#9370DB"));
515
- e.MEDIUMSEAGREEN = Object.freeze(e.fromCssColorString("#3CB371"));
516
- e.MEDIUMSLATEBLUE = Object.freeze(e.fromCssColorString("#7B68EE"));
517
- e.MEDIUMSPRINGGREEN = Object.freeze(e.fromCssColorString("#00FA9A"));
518
- e.MEDIUMTURQUOISE = Object.freeze(e.fromCssColorString("#48D1CC"));
519
- e.MEDIUMVIOLETRED = Object.freeze(e.fromCssColorString("#C71585"));
520
- e.MIDNIGHTBLUE = Object.freeze(e.fromCssColorString("#191970"));
521
- e.MINTCREAM = Object.freeze(e.fromCssColorString("#F5FFFA"));
522
- e.MISTYROSE = Object.freeze(e.fromCssColorString("#FFE4E1"));
523
- e.MOCCASIN = Object.freeze(e.fromCssColorString("#FFE4B5"));
524
- e.NAVAJOWHITE = Object.freeze(e.fromCssColorString("#FFDEAD"));
525
- e.NAVY = Object.freeze(e.fromCssColorString("#000080"));
526
- e.OLDLACE = Object.freeze(e.fromCssColorString("#FDF5E6"));
527
- e.OLIVE = Object.freeze(e.fromCssColorString("#808000"));
528
- e.OLIVEDRAB = Object.freeze(e.fromCssColorString("#6B8E23"));
529
- e.ORANGE = Object.freeze(e.fromCssColorString("#FFA500"));
530
- e.ORANGERED = Object.freeze(e.fromCssColorString("#FF4500"));
531
- e.ORCHID = Object.freeze(e.fromCssColorString("#DA70D6"));
532
- e.PALEGOLDENROD = Object.freeze(e.fromCssColorString("#EEE8AA"));
533
- e.PALEGREEN = Object.freeze(e.fromCssColorString("#98FB98"));
534
- e.PALETURQUOISE = Object.freeze(e.fromCssColorString("#AFEEEE"));
535
- e.PALEVIOLETRED = Object.freeze(e.fromCssColorString("#DB7093"));
536
- e.PAPAYAWHIP = Object.freeze(e.fromCssColorString("#FFEFD5"));
537
- e.PEACHPUFF = Object.freeze(e.fromCssColorString("#FFDAB9"));
538
- e.PERU = Object.freeze(e.fromCssColorString("#CD853F"));
539
- e.PINK = Object.freeze(e.fromCssColorString("#FFC0CB"));
540
- e.PLUM = Object.freeze(e.fromCssColorString("#DDA0DD"));
541
- e.POWDERBLUE = Object.freeze(e.fromCssColorString("#B0E0E6"));
542
- e.PURPLE = Object.freeze(e.fromCssColorString("#800080"));
543
- e.RED = Object.freeze(e.fromCssColorString("#FF0000"));
544
- e.ROSYBROWN = Object.freeze(e.fromCssColorString("#BC8F8F"));
545
- e.ROYALBLUE = Object.freeze(e.fromCssColorString("#4169E1"));
546
- e.SADDLEBROWN = Object.freeze(e.fromCssColorString("#8B4513"));
547
- e.SALMON = Object.freeze(e.fromCssColorString("#FA8072"));
548
- e.SANDYBROWN = Object.freeze(e.fromCssColorString("#F4A460"));
549
- e.SEAGREEN = Object.freeze(e.fromCssColorString("#2E8B57"));
550
- e.SEASHELL = Object.freeze(e.fromCssColorString("#FFF5EE"));
551
- e.SIENNA = Object.freeze(e.fromCssColorString("#A0522D"));
552
- e.SILVER = Object.freeze(e.fromCssColorString("#C0C0C0"));
553
- e.SKYBLUE = Object.freeze(e.fromCssColorString("#87CEEB"));
554
- e.SLATEBLUE = Object.freeze(e.fromCssColorString("#6A5ACD"));
555
- e.SLATEGRAY = Object.freeze(e.fromCssColorString("#708090"));
556
- e.SLATEGREY = e.SLATEGRAY;
557
- e.SNOW = Object.freeze(e.fromCssColorString("#FFFAFA"));
558
- e.SPRINGGREEN = Object.freeze(e.fromCssColorString("#00FF7F"));
559
- e.STEELBLUE = Object.freeze(e.fromCssColorString("#4682B4"));
560
- e.TAN = Object.freeze(e.fromCssColorString("#D2B48C"));
561
- e.TEAL = Object.freeze(e.fromCssColorString("#008080"));
562
- e.THISTLE = Object.freeze(e.fromCssColorString("#D8BFD8"));
563
- e.TOMATO = Object.freeze(e.fromCssColorString("#FF6347"));
564
- e.TURQUOISE = Object.freeze(e.fromCssColorString("#40E0D0"));
565
- e.VIOLET = Object.freeze(e.fromCssColorString("#EE82EE"));
566
- e.WHEAT = Object.freeze(e.fromCssColorString("#F5DEB3"));
567
- e.WHITE = Object.freeze(e.fromCssColorString("#FFFFFF"));
568
- e.WHITESMOKE = Object.freeze(e.fromCssColorString("#F5F5F5"));
569
- e.YELLOW = Object.freeze(e.fromCssColorString("#FFFF00"));
570
- e.YELLOWGREEN = Object.freeze(e.fromCssColorString("#9ACD32"));
571
- e.TRANSPARENT = Object.freeze(new e(0, 0, 0, 0));
572
- var h = e;
573
- export { h as a };