@vcmap/ui 5.0.0-rc.29 → 5.0.0-rc.31

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 (334) hide show
  1. package/build/buildHelpers.js +4 -3
  2. package/config/base.config.json +5 -4
  3. package/config/dev.config.json +8 -0
  4. package/config/graphFeatureInfo.config.json +1 -1
  5. package/config/projects.config.json +2 -2
  6. package/dist/assets/cesium/ThirdParty/Workers/basis_transcoder.js +1 -1
  7. package/dist/assets/cesium/Workers/chunk-227AJNOA.js +59 -0
  8. package/dist/assets/cesium/Workers/chunk-2R5O53JW.js +157 -0
  9. package/dist/assets/cesium/Workers/chunk-34YUDLRP.js +781 -0
  10. package/dist/assets/cesium/Workers/chunk-3W63OHNJ.js +100 -0
  11. package/dist/assets/cesium/Workers/chunk-4MFFIWUA.js +163 -0
  12. package/dist/assets/cesium/Workers/chunk-66QLLS45.js +218 -0
  13. package/dist/assets/cesium/Workers/chunk-6BTKZDRG.js +77 -0
  14. package/dist/assets/cesium/Workers/chunk-A4JVFBQ3.js +101 -0
  15. package/dist/assets/cesium/Workers/chunk-ABADGKYE.js +58 -0
  16. package/dist/assets/cesium/Workers/chunk-AFFLIKOH.js +353 -0
  17. package/dist/assets/cesium/Workers/chunk-AHKEZ2OE.js +629 -0
  18. package/dist/assets/cesium/Workers/chunk-C3SXRKRW.js +476 -0
  19. package/dist/assets/cesium/Workers/chunk-CCFQRR6D.js +55 -0
  20. package/dist/assets/cesium/Workers/chunk-CHHNOC2C.js +1860 -0
  21. package/dist/assets/cesium/Workers/chunk-CTELOFLA.js +196 -0
  22. package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +3273 -0
  23. package/dist/assets/cesium/Workers/chunk-EW2GWJYB.js +44 -0
  24. package/dist/assets/cesium/Workers/chunk-GLZBE3ML.js +421 -0
  25. package/dist/assets/cesium/Workers/chunk-HARLBUOL.js +236 -0
  26. package/dist/assets/cesium/Workers/chunk-HQF437NJ.js +117 -0
  27. package/dist/assets/cesium/Workers/chunk-IPA4EACJ.js +368 -0
  28. package/dist/assets/cesium/Workers/chunk-J3JY6I2C.js +1009 -0
  29. package/dist/assets/cesium/Workers/chunk-JB2LWGH4.js +390 -0
  30. package/dist/assets/cesium/Workers/chunk-JS3AW5BK.js +634 -0
  31. package/dist/assets/cesium/Workers/chunk-K36FEYS7.js +452 -0
  32. package/dist/assets/cesium/Workers/chunk-KD4Y7CZL.js +400 -0
  33. package/dist/assets/cesium/Workers/chunk-KTJSNCK4.js +842 -0
  34. package/dist/assets/cesium/Workers/chunk-LLUNNUJV.js +258 -0
  35. package/dist/assets/cesium/Workers/{package.js → chunk-MPAZH4BF.js} +13 -2
  36. package/dist/assets/cesium/Workers/chunk-MYZB7C4T.js +1258 -0
  37. package/dist/assets/cesium/Workers/chunk-N3JIFFX2.js +501 -0
  38. package/dist/assets/cesium/Workers/chunk-O5AMBQ36.js +430 -0
  39. package/dist/assets/cesium/Workers/chunk-OAVNIRB4.js +124 -0
  40. package/dist/assets/cesium/Workers/chunk-OYFCF4PL.js +171 -0
  41. package/dist/assets/cesium/Workers/chunk-OZJDGN5F.js +1477 -0
  42. package/dist/assets/cesium/Workers/chunk-PCJWUS4M.js +2041 -0
  43. package/dist/assets/cesium/Workers/chunk-PFQBCKBM.js +8644 -0
  44. package/dist/assets/cesium/Workers/chunk-QIKODV5G.js +305 -0
  45. package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +73 -0
  46. package/dist/assets/cesium/Workers/chunk-QMEMZIJI.js +138 -0
  47. package/dist/assets/cesium/Workers/chunk-QT3MPEMI.js +102 -0
  48. package/dist/assets/cesium/Workers/chunk-RP2A7BR5.js +289 -0
  49. package/dist/assets/cesium/Workers/chunk-RW6LU2CJ.js +138 -0
  50. package/dist/assets/cesium/Workers/chunk-TFC6TZ3S.js +757 -0
  51. package/dist/assets/cesium/Workers/chunk-V3NGATMV.js +693 -0
  52. package/dist/assets/cesium/Workers/chunk-VLGOATD6.js +1075 -0
  53. package/dist/assets/cesium/Workers/chunk-WXTV4ATB.js +39 -0
  54. package/dist/assets/cesium/Workers/chunk-X4SU25DT.js +302 -0
  55. package/dist/assets/cesium/Workers/chunk-XTY7B2N6.js +2716 -0
  56. package/dist/assets/cesium/Workers/chunk-XY7MGBKC.js +513 -0
  57. package/dist/assets/cesium/Workers/chunk-Z24VKNDO.js +834 -0
  58. package/dist/assets/cesium/Workers/chunk-ZA25DG4Y.js +684 -0
  59. package/dist/assets/cesium/Workers/chunk-ZFOBYDGF.js +73 -0
  60. package/dist/assets/cesium/Workers/combineGeometry.js +65 -15
  61. package/dist/assets/cesium/Workers/createBoxGeometry.js +55 -10
  62. package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +231 -310
  63. package/dist/assets/cesium/Workers/createCircleGeometry.js +185 -202
  64. package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +141 -155
  65. package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +477 -557
  66. package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +218 -230
  67. package/dist/assets/cesium/Workers/createCorridorGeometry.js +1162 -1307
  68. package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +533 -569
  69. package/dist/assets/cesium/Workers/createCylinderGeometry.js +57 -10
  70. package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +224 -258
  71. package/dist/assets/cesium/Workers/createEllipseGeometry.js +68 -12
  72. package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +61 -12
  73. package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +56 -10
  74. package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +58 -13
  75. package/dist/assets/cesium/Workers/createFrustumGeometry.js +55 -10
  76. package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +226 -243
  77. package/dist/assets/cesium/Workers/createGeometry.js +143 -48
  78. package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1484 -2011
  79. package/dist/assets/cesium/Workers/createPlaneGeometry.js +216 -243
  80. package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +121 -113
  81. package/dist/assets/cesium/Workers/createPolygonGeometry.js +1041 -1327
  82. package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +516 -657
  83. package/dist/assets/cesium/Workers/createPolylineGeometry.js +471 -547
  84. package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +352 -384
  85. package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +271 -295
  86. package/dist/assets/cesium/Workers/createRectangleGeometry.js +1128 -1331
  87. package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +445 -500
  88. package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +381 -440
  89. package/dist/assets/cesium/Workers/createSphereGeometry.js +112 -118
  90. package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +112 -121
  91. package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +32 -127
  92. package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +462 -505
  93. package/dist/assets/cesium/Workers/createVectorTileGeometries.js +377 -436
  94. package/dist/assets/cesium/Workers/createVectorTilePoints.js +110 -77
  95. package/dist/assets/cesium/Workers/createVectorTilePolygons.js +369 -391
  96. package/dist/assets/cesium/Workers/createVectorTilePolylines.js +252 -244
  97. package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +543 -615
  98. package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +2244 -2677
  99. package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +682 -926
  100. package/dist/assets/cesium/Workers/createWallGeometry.js +459 -593
  101. package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +324 -419
  102. package/dist/assets/cesium/Workers/decodeDraco.js +327 -347
  103. package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2530 -3567
  104. package/dist/assets/cesium/Workers/decodeI3S.js +765 -970
  105. package/dist/assets/cesium/Workers/transcodeKTX2.js +3353 -1464
  106. package/dist/assets/cesium/Workers/transferTypedArrayTest.js +3 -4
  107. package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +748 -953
  108. package/dist/assets/{cesium.16590b.js → cesium.77d0f7.js} +8915 -13165
  109. package/dist/assets/cesium.js +1 -1
  110. package/dist/assets/{core.74da2a.js → core.720589.js} +3421 -3365
  111. package/dist/assets/core.js +1 -1
  112. package/dist/assets/index-dd539204.js +1 -0
  113. package/dist/assets/{ol.50a512.js → ol.e48649.js} +4 -4
  114. package/dist/assets/ol.js +1 -1
  115. package/dist/assets/{ui.d3054c.css → ui.50452a.css} +2 -2
  116. package/dist/assets/{ui.d3054c.js → ui.50452a.js} +5312 -4776
  117. package/dist/assets/ui.js +1 -1
  118. package/dist/assets/vue.js +2 -2
  119. package/dist/assets/{vuetify.946bd8.js → vuetify.f0a769.js} +1 -1
  120. package/dist/assets/vuetify.js +2 -2
  121. package/dist/index.html +27 -23
  122. package/index.html +23 -22
  123. package/index.js +6 -0
  124. package/package.json +5 -5
  125. package/plugins/@vcmap-show-case/form-inputs-example/FormInputsExample.vue +37 -1
  126. package/plugins/@vcmap-show-case/form-inputs-example/index.js +3 -0
  127. package/plugins/@vcmap-show-case/form-inputs-example/validation.js +11 -0
  128. package/plugins/@vcmap-show-case/plugin-editors/PluginEditors.vue +119 -0
  129. package/plugins/@vcmap-show-case/plugin-editors/index.js +41 -0
  130. package/plugins/@vcmap-show-case/plugin-editors/package.json +5 -0
  131. package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ProjectSelectorComponent.vue +1 -1
  132. package/plugins/{@vcmap → @vcmap-show-case}/project-selector/config.json +2 -2
  133. package/plugins/{@vcmap → @vcmap-show-case}/project-selector/package.json +1 -1
  134. package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/package.json +1 -1
  135. package/plugins/@vcmap-show-case/style-input-example/styleExample.vue +0 -1
  136. package/plugins/@vcmap-show-case/table-example/DataTableExample.vue +1 -1
  137. package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/ThemeChangerComponent.vue +1 -1
  138. package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/config.json +2 -2
  139. package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/package.json +1 -1
  140. package/plugins/@vcmap-show-case/vector-properties-example/index.js +40 -0
  141. package/plugins/@vcmap-show-case/vector-properties-example/package.json +5 -0
  142. package/plugins/@vcmap-show-case/vector-properties-example/vectorPropertiesExample.vue +128 -0
  143. package/plugins/package.json +6 -2
  144. package/src/application/VcsAttributions.vue +27 -20
  145. package/src/components/form-inputs-controls/VcsChipArrayInput.vue +290 -0
  146. package/src/components/form-inputs-controls/VcsSlider.vue +1 -0
  147. package/src/components/form-inputs-controls/VcsTextField.vue +9 -3
  148. package/src/components/icons/2DAreaIcon.vue +2 -17
  149. package/src/components/icons/2DDistanceIcon.vue +0 -3
  150. package/src/components/icons/3DAreaIcon.vue +2 -17
  151. package/src/components/icons/3DDistanceIcon.vue +0 -3
  152. package/src/components/icons/3DHeightIcon.vue +0 -3
  153. package/src/components/icons/AngleIcon.vue +0 -1
  154. package/src/components/icons/AssociationsIcon.vue +1 -3
  155. package/src/components/icons/AxisIcon.vue +0 -4
  156. package/src/components/icons/BoundingBoxIcon.vue +1 -4
  157. package/src/components/icons/CheckboxIcon.vue +0 -2
  158. package/src/components/icons/CheckboxIndeterminateIcon.vue +1 -5
  159. package/src/components/icons/CircleIcon.vue +1 -6
  160. package/src/components/icons/ClippingHorizontalIcon.vue +0 -1
  161. package/src/components/icons/ClippingIcon.vue +0 -1
  162. package/src/components/icons/ClippingVerticalIcon.vue +0 -1
  163. package/src/components/icons/ColorPickerIcon.vue +0 -1
  164. package/src/components/icons/ColorSwatchIcon.vue +0 -2
  165. package/src/components/icons/CommentIcon.vue +0 -1
  166. package/src/components/icons/CompassIcon.vue +0 -2
  167. package/src/components/icons/ComponentsIcon.vue +0 -1
  168. package/src/components/icons/ConeIcon.vue +1 -4
  169. package/src/components/icons/DimensionsHouseIcon.vue +0 -2
  170. package/src/components/icons/EditIcon.vue +0 -1
  171. package/src/components/icons/EditVerticesIcon.vue +0 -4
  172. package/src/components/icons/ElevationProfileIcon.vue +1 -13
  173. package/src/components/icons/ExportAreaIcon.vue +0 -1
  174. package/src/components/icons/ExportFlightIcon.vue +0 -1
  175. package/src/components/icons/ExportIcon.vue +12 -8
  176. package/src/components/icons/ExternalLinkIcon.vue +0 -2
  177. package/src/components/icons/FastForwardIcon.vue +0 -1
  178. package/src/components/icons/FilterIcon.vue +0 -1
  179. package/src/components/icons/GlobeNatureIcon.vue +0 -3
  180. package/src/components/icons/GroundIcon.vue +0 -1
  181. package/src/components/icons/HealthCareIndustriesIcon.vue +1 -11
  182. package/src/components/icons/HideIcon.vue +0 -1
  183. package/src/components/icons/HomePointIcon.vue +0 -1
  184. package/src/components/icons/HospitalsIcon.vue +1 -20
  185. package/src/components/icons/HouseIcon.vue +3 -13
  186. package/src/components/icons/ImportIcon.vue +6 -14
  187. package/src/components/icons/InfoIcon.vue +0 -2
  188. package/src/components/icons/KebabIcon.vue +1 -9
  189. package/src/components/icons/LabelIcon.vue +0 -2
  190. package/src/components/icons/LayersIcon.vue +1 -9
  191. package/src/components/icons/LegendIcon.vue +0 -1
  192. package/src/components/icons/LineIcon.vue +0 -2
  193. package/src/components/icons/LinkIcon.vue +0 -1
  194. package/src/components/icons/LogoutIcon.vue +0 -1
  195. package/src/components/icons/MapIcon.vue +0 -2
  196. package/src/components/icons/MenuIcon.vue +1 -5
  197. package/src/components/icons/MinusIcon.vue +0 -2
  198. package/src/components/icons/ObjectSelectIcon.vue +0 -2
  199. package/src/components/icons/ObliqueViewIcon.vue +0 -1
  200. package/src/components/icons/PdfIcon.vue +0 -1
  201. package/src/components/icons/PedestrianIcon.vue +0 -1
  202. package/src/components/icons/PenIcon.vue +0 -1
  203. package/src/components/icons/PlayCircleIcon.vue +1 -8
  204. package/src/components/icons/PlusIcon.vue +0 -2
  205. package/src/components/icons/PoiIcon.vue +0 -1
  206. package/src/components/icons/PointIcon.vue +2 -6
  207. package/src/components/icons/PointSelectIcon.vue +0 -1
  208. package/src/components/icons/PresentationModeIcon.vue +0 -1
  209. package/src/components/icons/ProgressIcon.vue +1 -1
  210. package/src/components/icons/QueryIcon.vue +0 -1
  211. package/src/components/icons/RectangleIcon.vue +1 -6
  212. package/src/components/icons/ReturnIcon.vue +0 -1
  213. package/src/components/icons/RewindIcon.vue +0 -1
  214. package/src/components/icons/RotateLeftIcon.vue +0 -1
  215. package/src/components/icons/RotateRightIcon.vue +0 -1
  216. package/src/components/icons/ScreenshotIcon.vue +1 -6
  217. package/src/components/icons/SearchIcon.vue +0 -1
  218. package/src/components/icons/ShadowIcon.vue +0 -2
  219. package/src/components/icons/ShapesIcon.vue +1 -4
  220. package/src/components/icons/ShareIcon.vue +0 -1
  221. package/src/components/icons/SimpleCircleFilledIcon.vue +0 -1
  222. package/src/components/icons/SimpleCircleHalfFilledIcon.vue +0 -1
  223. package/src/components/icons/SimpleCircleOutlinedIcon.vue +1 -7
  224. package/src/components/icons/SkipPreviousIcon.vue +1 -6
  225. package/src/components/icons/SplitViewIcon.vue +0 -1
  226. package/src/components/icons/TextStyleIcon.vue +0 -3
  227. package/src/components/icons/ThreeDimensionsIcon.vue +0 -1
  228. package/src/components/icons/ToolsIcon.vue +0 -1
  229. package/src/components/icons/TouchIcon.vue +0 -1
  230. package/src/components/icons/TriangleIcon.vue +0 -3
  231. package/src/components/icons/TwoDimensionsIcon.vue +0 -2
  232. package/src/components/icons/UploadIcon.vue +0 -1
  233. package/src/components/icons/UserProfileIcon.vue +0 -1
  234. package/src/components/icons/UserShareIcon.vue +0 -1
  235. package/src/components/icons/ViewpointFlightIcon.vue +0 -1
  236. package/src/components/icons/ViewpointIcon.vue +0 -1
  237. package/src/components/icons/Viewshed360Icon.vue +0 -1
  238. package/src/components/icons/ViewshedConeIcon.vue +0 -1
  239. package/src/components/icons/ViewshedIcon.vue +0 -1
  240. package/src/components/icons/WalkingIcon.vue +0 -1
  241. package/src/components/icons/WallIcon.vue +1 -4
  242. package/src/components/icons/WandIcon.vue +22 -70
  243. package/src/components/lists/VcsList.vue +18 -12
  244. package/src/components/plugins/AbstractConfigEditor.vue +84 -0
  245. package/src/components/style/VcsImageSelector.vue +6 -5
  246. package/src/components/style/VcsTextSelector.vue +1 -1
  247. package/src/components/tables/VcsDataTable.vue +1 -1
  248. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +780 -0
  249. package/src/components/vector-properties/composables.js +93 -0
  250. package/src/contentTree/contentTreeCollection.js +30 -9
  251. package/src/i18n/de.js +41 -7
  252. package/src/i18n/en.js +39 -5
  253. package/src/i18n/i18nCollection.js +19 -65
  254. package/src/manager/buttonManager.js +4 -0
  255. package/src/manager/collectionManager/collectionComponent.js +1 -1
  256. package/src/manager/contextMenu/contextMenuManager.js +2 -0
  257. package/src/pluginHelper.js +57 -17
  258. package/src/vcsUiApp.js +25 -30
  259. package/src/vuePlugins/i18n.js +0 -8
  260. package/dist/assets/cesium/ThirdParty/Workers/draco_decoder_nodejs.js +0 -117
  261. package/dist/assets/cesium/Workers/ArcType-2d9abbbc.js +0 -37
  262. package/dist/assets/cesium/Workers/AttributeCompression-f9f6c717.js +0 -716
  263. package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-4140c51f.js +0 -258
  264. package/dist/assets/cesium/Workers/BoundingRectangle-c714b156.js +0 -369
  265. package/dist/assets/cesium/Workers/BoxGeometry-6f3da43d.js +0 -884
  266. package/dist/assets/cesium/Workers/Check-6ede7e26.js +0 -290
  267. package/dist/assets/cesium/Workers/Color-8a565ff2.js +0 -2262
  268. package/dist/assets/cesium/Workers/ComponentDatatype-cf1fa08e.js +0 -341
  269. package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-4b4d4096.js +0 -132
  270. package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7b94502b.js +0 -498
  271. package/dist/assets/cesium/Workers/CylinderGeometry-ca070b87.js +0 -467
  272. package/dist/assets/cesium/Workers/CylinderGeometryLibrary-7bf291b4.js +0 -63
  273. package/dist/assets/cesium/Workers/EllipseGeometry-122e51fa.js +0 -1304
  274. package/dist/assets/cesium/Workers/EllipseGeometryLibrary-4d326efc.js +0 -366
  275. package/dist/assets/cesium/Workers/EllipseOutlineGeometry-16cc2bd7.js +0 -443
  276. package/dist/assets/cesium/Workers/EllipsoidGeodesic-5b3623dc.js +0 -520
  277. package/dist/assets/cesium/Workers/EllipsoidGeometry-cb148ca2.js +0 -637
  278. package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-0fa10c79.js +0 -454
  279. package/dist/assets/cesium/Workers/EllipsoidRhumbLine-ef872433.js +0 -741
  280. package/dist/assets/cesium/Workers/EllipsoidTangentPlane-6dd1b7af.js +0 -373
  281. package/dist/assets/cesium/Workers/EncodedCartesian3-57415c8a.js +0 -171
  282. package/dist/assets/cesium/Workers/FrustumGeometry-ee73037c.js +0 -2540
  283. package/dist/assets/cesium/Workers/GeometryAttribute-ff5b4fb1.js +0 -619
  284. package/dist/assets/cesium/Workers/GeometryAttributes-ad136444.js +0 -91
  285. package/dist/assets/cesium/Workers/GeometryInstance-34d9e21e.js +0 -121
  286. package/dist/assets/cesium/Workers/GeometryOffsetAttribute-9ad0019c.js +0 -16
  287. package/dist/assets/cesium/Workers/GeometryPipeline-1f8fbf05.js +0 -3690
  288. package/dist/assets/cesium/Workers/IndexDatatype-2643aa47.js +0 -200
  289. package/dist/assets/cesium/Workers/IntersectionTests-70d39ba9.js +0 -1836
  290. package/dist/assets/cesium/Workers/Math-0a2ac845.js +0 -1340
  291. package/dist/assets/cesium/Workers/Matrix2-e1298525.js +0 -7086
  292. package/dist/assets/cesium/Workers/Matrix3-41c58dde.js +0 -4283
  293. package/dist/assets/cesium/Workers/OrientedBoundingBox-159cf1d6.js +0 -1259
  294. package/dist/assets/cesium/Workers/Plane-4c3d403b.js +0 -309
  295. package/dist/assets/cesium/Workers/PolygonGeometryLibrary-076a5d25.js +0 -1074
  296. package/dist/assets/cesium/Workers/PolygonPipeline-b9f2810a.js +0 -1344
  297. package/dist/assets/cesium/Workers/PolylinePipeline-639192e0.js +0 -573
  298. package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-b73549fb.js +0 -781
  299. package/dist/assets/cesium/Workers/PrimitivePipeline-10ede1b6.js +0 -966
  300. package/dist/assets/cesium/Workers/RectangleGeometryLibrary-c35a7356.js +0 -280
  301. package/dist/assets/cesium/Workers/RuntimeError-ef395448.js +0 -68
  302. package/dist/assets/cesium/Workers/TerrainEncoding-668d242f.js +0 -1227
  303. package/dist/assets/cesium/Workers/Transforms-a2a85221.js +0 -14712
  304. package/dist/assets/cesium/Workers/VertexFormat-030f11ff.js +0 -312
  305. package/dist/assets/cesium/Workers/WallGeometryLibrary-1938bf0d.js +0 -211
  306. package/dist/assets/cesium/Workers/WebGLConstants-0b1ce7ba.js +0 -620
  307. package/dist/assets/cesium/Workers/WebMercatorProjection-13ed1a6e.js +0 -151
  308. package/dist/assets/cesium/Workers/arrayRemoveDuplicates-d2061e85.js +0 -129
  309. package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +0 -1363
  310. package/dist/assets/cesium/Workers/combine-d9581036.js +0 -82
  311. package/dist/assets/cesium/Workers/defaultValue-fe22d8c0.js +0 -51
  312. package/dist/assets/index-cb070eff.js +0 -1
  313. package/plugins/@vcmap/create-link/fallbackCreateLink.vue +0 -76
  314. package/plugins/@vcmap/create-link/index.js +0 -95
  315. package/plugins/@vcmap/create-link/package.json +0 -6
  316. package/plugins/@vcmap/search-nominatim/LICENSE.md +0 -13
  317. package/plugins/@vcmap/search-nominatim/README.md +0 -3
  318. package/plugins/@vcmap/search-nominatim/config.json +0 -3
  319. package/plugins/@vcmap/search-nominatim/index.js +0 -29
  320. package/plugins/@vcmap/search-nominatim/nominatim.js +0 -175
  321. package/plugins/@vcmap/search-nominatim/package.json +0 -9
  322. /package/dist/assets/{vue.30740e.js → vue.5d696e.js} +0 -0
  323. /package/dist/assets/{vuetify.946bd8.css → vuetify.f0a769.css} +0 -0
  324. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ModulesListComponent.vue +0 -0
  325. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/README.md +0 -0
  326. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/de.json +0 -0
  327. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/en.json +0 -0
  328. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/index.js +0 -0
  329. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/README.md +0 -0
  330. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/SimpleGraphComponent.vue +0 -0
  331. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/index.js +0 -0
  332. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/simpleGraphView.js +0 -0
  333. /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/README.md +0 -0
  334. /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/index.js +0 -0
@@ -0,0 +1,757 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.109.3
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 {
27
+ AttributeCompression_default
28
+ } from "./chunk-O5AMBQ36.js";
29
+ import {
30
+ BoundingSphere_default
31
+ } from "./chunk-PFQBCKBM.js";
32
+ import {
33
+ Cartesian2_default,
34
+ Matrix4_default,
35
+ Rectangle_default
36
+ } from "./chunk-DUHWWBQQ.js";
37
+ import {
38
+ ComponentDatatype_default
39
+ } from "./chunk-LLUNNUJV.js";
40
+ import {
41
+ Cartesian3_default,
42
+ Ellipsoid_default
43
+ } from "./chunk-PCJWUS4M.js";
44
+ import {
45
+ Math_default
46
+ } from "./chunk-N3JIFFX2.js";
47
+ import {
48
+ defaultValue_default
49
+ } from "./chunk-WXTV4ATB.js";
50
+ import {
51
+ Check_default
52
+ } from "./chunk-4MFFIWUA.js";
53
+ import {
54
+ defined_default
55
+ } from "./chunk-6BTKZDRG.js";
56
+
57
+ // packages/engine/Source/Core/EllipsoidalOccluder.js
58
+ function EllipsoidalOccluder(ellipsoid, cameraPosition) {
59
+ Check_default.typeOf.object("ellipsoid", ellipsoid);
60
+ this._ellipsoid = ellipsoid;
61
+ this._cameraPosition = new Cartesian3_default();
62
+ this._cameraPositionInScaledSpace = new Cartesian3_default();
63
+ this._distanceToLimbInScaledSpaceSquared = 0;
64
+ if (defined_default(cameraPosition)) {
65
+ this.cameraPosition = cameraPosition;
66
+ }
67
+ }
68
+ Object.defineProperties(EllipsoidalOccluder.prototype, {
69
+ /**
70
+ * Gets the occluding ellipsoid.
71
+ * @memberof EllipsoidalOccluder.prototype
72
+ * @type {Ellipsoid}
73
+ */
74
+ ellipsoid: {
75
+ get: function() {
76
+ return this._ellipsoid;
77
+ }
78
+ },
79
+ /**
80
+ * Gets or sets the position of the camera.
81
+ * @memberof EllipsoidalOccluder.prototype
82
+ * @type {Cartesian3}
83
+ */
84
+ cameraPosition: {
85
+ get: function() {
86
+ return this._cameraPosition;
87
+ },
88
+ set: function(cameraPosition) {
89
+ const ellipsoid = this._ellipsoid;
90
+ const cv = ellipsoid.transformPositionToScaledSpace(
91
+ cameraPosition,
92
+ this._cameraPositionInScaledSpace
93
+ );
94
+ const vhMagnitudeSquared = Cartesian3_default.magnitudeSquared(cv) - 1;
95
+ Cartesian3_default.clone(cameraPosition, this._cameraPosition);
96
+ this._cameraPositionInScaledSpace = cv;
97
+ this._distanceToLimbInScaledSpaceSquared = vhMagnitudeSquared;
98
+ }
99
+ }
100
+ });
101
+ var scratchCartesian = new Cartesian3_default();
102
+ EllipsoidalOccluder.prototype.isPointVisible = function(occludee) {
103
+ const ellipsoid = this._ellipsoid;
104
+ const occludeeScaledSpacePosition = ellipsoid.transformPositionToScaledSpace(
105
+ occludee,
106
+ scratchCartesian
107
+ );
108
+ return isScaledSpacePointVisible(
109
+ occludeeScaledSpacePosition,
110
+ this._cameraPositionInScaledSpace,
111
+ this._distanceToLimbInScaledSpaceSquared
112
+ );
113
+ };
114
+ EllipsoidalOccluder.prototype.isScaledSpacePointVisible = function(occludeeScaledSpacePosition) {
115
+ return isScaledSpacePointVisible(
116
+ occludeeScaledSpacePosition,
117
+ this._cameraPositionInScaledSpace,
118
+ this._distanceToLimbInScaledSpaceSquared
119
+ );
120
+ };
121
+ var scratchCameraPositionInScaledSpaceShrunk = new Cartesian3_default();
122
+ EllipsoidalOccluder.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid = function(occludeeScaledSpacePosition, minimumHeight) {
123
+ const ellipsoid = this._ellipsoid;
124
+ let vhMagnitudeSquared;
125
+ let cv;
126
+ if (defined_default(minimumHeight) && minimumHeight < 0 && ellipsoid.minimumRadius > -minimumHeight) {
127
+ cv = scratchCameraPositionInScaledSpaceShrunk;
128
+ cv.x = this._cameraPosition.x / (ellipsoid.radii.x + minimumHeight);
129
+ cv.y = this._cameraPosition.y / (ellipsoid.radii.y + minimumHeight);
130
+ cv.z = this._cameraPosition.z / (ellipsoid.radii.z + minimumHeight);
131
+ vhMagnitudeSquared = cv.x * cv.x + cv.y * cv.y + cv.z * cv.z - 1;
132
+ } else {
133
+ cv = this._cameraPositionInScaledSpace;
134
+ vhMagnitudeSquared = this._distanceToLimbInScaledSpaceSquared;
135
+ }
136
+ return isScaledSpacePointVisible(
137
+ occludeeScaledSpacePosition,
138
+ cv,
139
+ vhMagnitudeSquared
140
+ );
141
+ };
142
+ EllipsoidalOccluder.prototype.computeHorizonCullingPoint = function(directionToPoint, positions, result) {
143
+ return computeHorizonCullingPointFromPositions(
144
+ this._ellipsoid,
145
+ directionToPoint,
146
+ positions,
147
+ result
148
+ );
149
+ };
150
+ var scratchEllipsoidShrunk = Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE);
151
+ EllipsoidalOccluder.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid = function(directionToPoint, positions, minimumHeight, result) {
152
+ const possiblyShrunkEllipsoid = getPossiblyShrunkEllipsoid(
153
+ this._ellipsoid,
154
+ minimumHeight,
155
+ scratchEllipsoidShrunk
156
+ );
157
+ return computeHorizonCullingPointFromPositions(
158
+ possiblyShrunkEllipsoid,
159
+ directionToPoint,
160
+ positions,
161
+ result
162
+ );
163
+ };
164
+ EllipsoidalOccluder.prototype.computeHorizonCullingPointFromVertices = function(directionToPoint, vertices, stride, center, result) {
165
+ return computeHorizonCullingPointFromVertices(
166
+ this._ellipsoid,
167
+ directionToPoint,
168
+ vertices,
169
+ stride,
170
+ center,
171
+ result
172
+ );
173
+ };
174
+ EllipsoidalOccluder.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid = function(directionToPoint, vertices, stride, center, minimumHeight, result) {
175
+ const possiblyShrunkEllipsoid = getPossiblyShrunkEllipsoid(
176
+ this._ellipsoid,
177
+ minimumHeight,
178
+ scratchEllipsoidShrunk
179
+ );
180
+ return computeHorizonCullingPointFromVertices(
181
+ possiblyShrunkEllipsoid,
182
+ directionToPoint,
183
+ vertices,
184
+ stride,
185
+ center,
186
+ result
187
+ );
188
+ };
189
+ var subsampleScratch = [];
190
+ EllipsoidalOccluder.prototype.computeHorizonCullingPointFromRectangle = function(rectangle, ellipsoid, result) {
191
+ Check_default.typeOf.object("rectangle", rectangle);
192
+ const positions = Rectangle_default.subsample(
193
+ rectangle,
194
+ ellipsoid,
195
+ 0,
196
+ subsampleScratch
197
+ );
198
+ const bs = BoundingSphere_default.fromPoints(positions);
199
+ if (Cartesian3_default.magnitude(bs.center) < 0.1 * ellipsoid.minimumRadius) {
200
+ return void 0;
201
+ }
202
+ return this.computeHorizonCullingPoint(bs.center, positions, result);
203
+ };
204
+ var scratchEllipsoidShrunkRadii = new Cartesian3_default();
205
+ function getPossiblyShrunkEllipsoid(ellipsoid, minimumHeight, result) {
206
+ if (defined_default(minimumHeight) && minimumHeight < 0 && ellipsoid.minimumRadius > -minimumHeight) {
207
+ const ellipsoidShrunkRadii = Cartesian3_default.fromElements(
208
+ ellipsoid.radii.x + minimumHeight,
209
+ ellipsoid.radii.y + minimumHeight,
210
+ ellipsoid.radii.z + minimumHeight,
211
+ scratchEllipsoidShrunkRadii
212
+ );
213
+ ellipsoid = Ellipsoid_default.fromCartesian3(ellipsoidShrunkRadii, result);
214
+ }
215
+ return ellipsoid;
216
+ }
217
+ function computeHorizonCullingPointFromPositions(ellipsoid, directionToPoint, positions, result) {
218
+ Check_default.typeOf.object("directionToPoint", directionToPoint);
219
+ Check_default.defined("positions", positions);
220
+ if (!defined_default(result)) {
221
+ result = new Cartesian3_default();
222
+ }
223
+ const scaledSpaceDirectionToPoint = computeScaledSpaceDirectionToPoint(
224
+ ellipsoid,
225
+ directionToPoint
226
+ );
227
+ let resultMagnitude = 0;
228
+ for (let i = 0, len = positions.length; i < len; ++i) {
229
+ const position = positions[i];
230
+ const candidateMagnitude = computeMagnitude(
231
+ ellipsoid,
232
+ position,
233
+ scaledSpaceDirectionToPoint
234
+ );
235
+ if (candidateMagnitude < 0) {
236
+ return void 0;
237
+ }
238
+ resultMagnitude = Math.max(resultMagnitude, candidateMagnitude);
239
+ }
240
+ return magnitudeToPoint(scaledSpaceDirectionToPoint, resultMagnitude, result);
241
+ }
242
+ var positionScratch = new Cartesian3_default();
243
+ function computeHorizonCullingPointFromVertices(ellipsoid, directionToPoint, vertices, stride, center, result) {
244
+ Check_default.typeOf.object("directionToPoint", directionToPoint);
245
+ Check_default.defined("vertices", vertices);
246
+ Check_default.typeOf.number("stride", stride);
247
+ if (!defined_default(result)) {
248
+ result = new Cartesian3_default();
249
+ }
250
+ stride = defaultValue_default(stride, 3);
251
+ center = defaultValue_default(center, Cartesian3_default.ZERO);
252
+ const scaledSpaceDirectionToPoint = computeScaledSpaceDirectionToPoint(
253
+ ellipsoid,
254
+ directionToPoint
255
+ );
256
+ let resultMagnitude = 0;
257
+ for (let i = 0, len = vertices.length; i < len; i += stride) {
258
+ positionScratch.x = vertices[i] + center.x;
259
+ positionScratch.y = vertices[i + 1] + center.y;
260
+ positionScratch.z = vertices[i + 2] + center.z;
261
+ const candidateMagnitude = computeMagnitude(
262
+ ellipsoid,
263
+ positionScratch,
264
+ scaledSpaceDirectionToPoint
265
+ );
266
+ if (candidateMagnitude < 0) {
267
+ return void 0;
268
+ }
269
+ resultMagnitude = Math.max(resultMagnitude, candidateMagnitude);
270
+ }
271
+ return magnitudeToPoint(scaledSpaceDirectionToPoint, resultMagnitude, result);
272
+ }
273
+ function isScaledSpacePointVisible(occludeeScaledSpacePosition, cameraPositionInScaledSpace, distanceToLimbInScaledSpaceSquared) {
274
+ const cv = cameraPositionInScaledSpace;
275
+ const vhMagnitudeSquared = distanceToLimbInScaledSpaceSquared;
276
+ const vt = Cartesian3_default.subtract(
277
+ occludeeScaledSpacePosition,
278
+ cv,
279
+ scratchCartesian
280
+ );
281
+ const vtDotVc = -Cartesian3_default.dot(vt, cv);
282
+ const isOccluded = vhMagnitudeSquared < 0 ? vtDotVc > 0 : vtDotVc > vhMagnitudeSquared && vtDotVc * vtDotVc / Cartesian3_default.magnitudeSquared(vt) > vhMagnitudeSquared;
283
+ return !isOccluded;
284
+ }
285
+ var scaledSpaceScratch = new Cartesian3_default();
286
+ var directionScratch = new Cartesian3_default();
287
+ function computeMagnitude(ellipsoid, position, scaledSpaceDirectionToPoint) {
288
+ const scaledSpacePosition = ellipsoid.transformPositionToScaledSpace(
289
+ position,
290
+ scaledSpaceScratch
291
+ );
292
+ let magnitudeSquared = Cartesian3_default.magnitudeSquared(scaledSpacePosition);
293
+ let magnitude = Math.sqrt(magnitudeSquared);
294
+ const direction = Cartesian3_default.divideByScalar(
295
+ scaledSpacePosition,
296
+ magnitude,
297
+ directionScratch
298
+ );
299
+ magnitudeSquared = Math.max(1, magnitudeSquared);
300
+ magnitude = Math.max(1, magnitude);
301
+ const cosAlpha = Cartesian3_default.dot(direction, scaledSpaceDirectionToPoint);
302
+ const sinAlpha = Cartesian3_default.magnitude(
303
+ Cartesian3_default.cross(direction, scaledSpaceDirectionToPoint, direction)
304
+ );
305
+ const cosBeta = 1 / magnitude;
306
+ const sinBeta = Math.sqrt(magnitudeSquared - 1) * cosBeta;
307
+ return 1 / (cosAlpha * cosBeta - sinAlpha * sinBeta);
308
+ }
309
+ function magnitudeToPoint(scaledSpaceDirectionToPoint, resultMagnitude, result) {
310
+ if (resultMagnitude <= 0 || resultMagnitude === 1 / 0 || resultMagnitude !== resultMagnitude) {
311
+ return void 0;
312
+ }
313
+ return Cartesian3_default.multiplyByScalar(
314
+ scaledSpaceDirectionToPoint,
315
+ resultMagnitude,
316
+ result
317
+ );
318
+ }
319
+ var directionToPointScratch = new Cartesian3_default();
320
+ function computeScaledSpaceDirectionToPoint(ellipsoid, directionToPoint) {
321
+ if (Cartesian3_default.equals(directionToPoint, Cartesian3_default.ZERO)) {
322
+ return directionToPoint;
323
+ }
324
+ ellipsoid.transformPositionToScaledSpace(
325
+ directionToPoint,
326
+ directionToPointScratch
327
+ );
328
+ return Cartesian3_default.normalize(directionToPointScratch, directionToPointScratch);
329
+ }
330
+ var EllipsoidalOccluder_default = EllipsoidalOccluder;
331
+
332
+ // packages/engine/Source/Core/TerrainExaggeration.js
333
+ var TerrainExaggeration = {};
334
+ TerrainExaggeration.getHeight = function(height, scale, relativeHeight) {
335
+ return (height - relativeHeight) * scale + relativeHeight;
336
+ };
337
+ var scratchCartographic = new Cartesian3_default();
338
+ TerrainExaggeration.getPosition = function(position, ellipsoid, terrainExaggeration, terrainExaggerationRelativeHeight, result) {
339
+ const cartographic = ellipsoid.cartesianToCartographic(
340
+ position,
341
+ scratchCartographic
342
+ );
343
+ const newHeight = TerrainExaggeration.getHeight(
344
+ cartographic.height,
345
+ terrainExaggeration,
346
+ terrainExaggerationRelativeHeight
347
+ );
348
+ return Cartesian3_default.fromRadians(
349
+ cartographic.longitude,
350
+ cartographic.latitude,
351
+ newHeight,
352
+ ellipsoid,
353
+ result
354
+ );
355
+ };
356
+ var TerrainExaggeration_default = TerrainExaggeration;
357
+
358
+ // packages/engine/Source/Core/TerrainQuantization.js
359
+ var TerrainQuantization = {
360
+ /**
361
+ * The vertices are not compressed.
362
+ *
363
+ * @type {number}
364
+ * @constant
365
+ */
366
+ NONE: 0,
367
+ /**
368
+ * The vertices are compressed to 12 bits.
369
+ *
370
+ * @type {number}
371
+ * @constant
372
+ */
373
+ BITS12: 1
374
+ };
375
+ var TerrainQuantization_default = Object.freeze(TerrainQuantization);
376
+
377
+ // packages/engine/Source/Core/TerrainEncoding.js
378
+ var cartesian3Scratch = new Cartesian3_default();
379
+ var cartesian3DimScratch = new Cartesian3_default();
380
+ var cartesian2Scratch = new Cartesian2_default();
381
+ var matrix4Scratch = new Matrix4_default();
382
+ var matrix4Scratch2 = new Matrix4_default();
383
+ var SHIFT_LEFT_12 = Math.pow(2, 12);
384
+ function TerrainEncoding(center, axisAlignedBoundingBox, minimumHeight, maximumHeight, fromENU, hasVertexNormals, hasWebMercatorT, hasGeodeticSurfaceNormals, exaggeration, exaggerationRelativeHeight) {
385
+ let quantization = TerrainQuantization_default.NONE;
386
+ let toENU;
387
+ let matrix;
388
+ if (defined_default(axisAlignedBoundingBox) && defined_default(minimumHeight) && defined_default(maximumHeight) && defined_default(fromENU)) {
389
+ const minimum = axisAlignedBoundingBox.minimum;
390
+ const maximum = axisAlignedBoundingBox.maximum;
391
+ const dimensions = Cartesian3_default.subtract(
392
+ maximum,
393
+ minimum,
394
+ cartesian3DimScratch
395
+ );
396
+ const hDim = maximumHeight - minimumHeight;
397
+ const maxDim = Math.max(Cartesian3_default.maximumComponent(dimensions), hDim);
398
+ if (maxDim < SHIFT_LEFT_12 - 1) {
399
+ quantization = TerrainQuantization_default.BITS12;
400
+ } else {
401
+ quantization = TerrainQuantization_default.NONE;
402
+ }
403
+ toENU = Matrix4_default.inverseTransformation(fromENU, new Matrix4_default());
404
+ const translation = Cartesian3_default.negate(minimum, cartesian3Scratch);
405
+ Matrix4_default.multiply(
406
+ Matrix4_default.fromTranslation(translation, matrix4Scratch),
407
+ toENU,
408
+ toENU
409
+ );
410
+ const scale = cartesian3Scratch;
411
+ scale.x = 1 / dimensions.x;
412
+ scale.y = 1 / dimensions.y;
413
+ scale.z = 1 / dimensions.z;
414
+ Matrix4_default.multiply(Matrix4_default.fromScale(scale, matrix4Scratch), toENU, toENU);
415
+ matrix = Matrix4_default.clone(fromENU);
416
+ Matrix4_default.setTranslation(matrix, Cartesian3_default.ZERO, matrix);
417
+ fromENU = Matrix4_default.clone(fromENU, new Matrix4_default());
418
+ const translationMatrix = Matrix4_default.fromTranslation(minimum, matrix4Scratch);
419
+ const scaleMatrix = Matrix4_default.fromScale(dimensions, matrix4Scratch2);
420
+ const st = Matrix4_default.multiply(translationMatrix, scaleMatrix, matrix4Scratch);
421
+ Matrix4_default.multiply(fromENU, st, fromENU);
422
+ Matrix4_default.multiply(matrix, st, matrix);
423
+ }
424
+ this.quantization = quantization;
425
+ this.minimumHeight = minimumHeight;
426
+ this.maximumHeight = maximumHeight;
427
+ this.center = Cartesian3_default.clone(center);
428
+ this.toScaledENU = toENU;
429
+ this.fromScaledENU = fromENU;
430
+ this.matrix = matrix;
431
+ this.hasVertexNormals = hasVertexNormals;
432
+ this.hasWebMercatorT = defaultValue_default(hasWebMercatorT, false);
433
+ this.hasGeodeticSurfaceNormals = defaultValue_default(
434
+ hasGeodeticSurfaceNormals,
435
+ false
436
+ );
437
+ this.exaggeration = defaultValue_default(exaggeration, 1);
438
+ this.exaggerationRelativeHeight = defaultValue_default(
439
+ exaggerationRelativeHeight,
440
+ 0
441
+ );
442
+ this.stride = 0;
443
+ this._offsetGeodeticSurfaceNormal = 0;
444
+ this._offsetVertexNormal = 0;
445
+ this._calculateStrideAndOffsets();
446
+ }
447
+ TerrainEncoding.prototype.encode = function(vertexBuffer, bufferIndex, position, uv, height, normalToPack, webMercatorT, geodeticSurfaceNormal) {
448
+ const u = uv.x;
449
+ const v = uv.y;
450
+ if (this.quantization === TerrainQuantization_default.BITS12) {
451
+ position = Matrix4_default.multiplyByPoint(
452
+ this.toScaledENU,
453
+ position,
454
+ cartesian3Scratch
455
+ );
456
+ position.x = Math_default.clamp(position.x, 0, 1);
457
+ position.y = Math_default.clamp(position.y, 0, 1);
458
+ position.z = Math_default.clamp(position.z, 0, 1);
459
+ const hDim = this.maximumHeight - this.minimumHeight;
460
+ const h = Math_default.clamp((height - this.minimumHeight) / hDim, 0, 1);
461
+ Cartesian2_default.fromElements(position.x, position.y, cartesian2Scratch);
462
+ const compressed0 = AttributeCompression_default.compressTextureCoordinates(
463
+ cartesian2Scratch
464
+ );
465
+ Cartesian2_default.fromElements(position.z, h, cartesian2Scratch);
466
+ const compressed1 = AttributeCompression_default.compressTextureCoordinates(
467
+ cartesian2Scratch
468
+ );
469
+ Cartesian2_default.fromElements(u, v, cartesian2Scratch);
470
+ const compressed2 = AttributeCompression_default.compressTextureCoordinates(
471
+ cartesian2Scratch
472
+ );
473
+ vertexBuffer[bufferIndex++] = compressed0;
474
+ vertexBuffer[bufferIndex++] = compressed1;
475
+ vertexBuffer[bufferIndex++] = compressed2;
476
+ if (this.hasWebMercatorT) {
477
+ Cartesian2_default.fromElements(webMercatorT, 0, cartesian2Scratch);
478
+ const compressed3 = AttributeCompression_default.compressTextureCoordinates(
479
+ cartesian2Scratch
480
+ );
481
+ vertexBuffer[bufferIndex++] = compressed3;
482
+ }
483
+ } else {
484
+ Cartesian3_default.subtract(position, this.center, cartesian3Scratch);
485
+ vertexBuffer[bufferIndex++] = cartesian3Scratch.x;
486
+ vertexBuffer[bufferIndex++] = cartesian3Scratch.y;
487
+ vertexBuffer[bufferIndex++] = cartesian3Scratch.z;
488
+ vertexBuffer[bufferIndex++] = height;
489
+ vertexBuffer[bufferIndex++] = u;
490
+ vertexBuffer[bufferIndex++] = v;
491
+ if (this.hasWebMercatorT) {
492
+ vertexBuffer[bufferIndex++] = webMercatorT;
493
+ }
494
+ }
495
+ if (this.hasVertexNormals) {
496
+ vertexBuffer[bufferIndex++] = AttributeCompression_default.octPackFloat(
497
+ normalToPack
498
+ );
499
+ }
500
+ if (this.hasGeodeticSurfaceNormals) {
501
+ vertexBuffer[bufferIndex++] = geodeticSurfaceNormal.x;
502
+ vertexBuffer[bufferIndex++] = geodeticSurfaceNormal.y;
503
+ vertexBuffer[bufferIndex++] = geodeticSurfaceNormal.z;
504
+ }
505
+ return bufferIndex;
506
+ };
507
+ var scratchPosition = new Cartesian3_default();
508
+ var scratchGeodeticSurfaceNormal = new Cartesian3_default();
509
+ TerrainEncoding.prototype.addGeodeticSurfaceNormals = function(oldBuffer, newBuffer, ellipsoid) {
510
+ if (this.hasGeodeticSurfaceNormals) {
511
+ return;
512
+ }
513
+ const oldStride = this.stride;
514
+ const vertexCount = oldBuffer.length / oldStride;
515
+ this.hasGeodeticSurfaceNormals = true;
516
+ this._calculateStrideAndOffsets();
517
+ const newStride = this.stride;
518
+ for (let index = 0; index < vertexCount; index++) {
519
+ for (let offset = 0; offset < oldStride; offset++) {
520
+ const oldIndex = index * oldStride + offset;
521
+ const newIndex = index * newStride + offset;
522
+ newBuffer[newIndex] = oldBuffer[oldIndex];
523
+ }
524
+ const position = this.decodePosition(newBuffer, index, scratchPosition);
525
+ const geodeticSurfaceNormal = ellipsoid.geodeticSurfaceNormal(
526
+ position,
527
+ scratchGeodeticSurfaceNormal
528
+ );
529
+ const bufferIndex = index * newStride + this._offsetGeodeticSurfaceNormal;
530
+ newBuffer[bufferIndex] = geodeticSurfaceNormal.x;
531
+ newBuffer[bufferIndex + 1] = geodeticSurfaceNormal.y;
532
+ newBuffer[bufferIndex + 2] = geodeticSurfaceNormal.z;
533
+ }
534
+ };
535
+ TerrainEncoding.prototype.removeGeodeticSurfaceNormals = function(oldBuffer, newBuffer) {
536
+ if (!this.hasGeodeticSurfaceNormals) {
537
+ return;
538
+ }
539
+ const oldStride = this.stride;
540
+ const vertexCount = oldBuffer.length / oldStride;
541
+ this.hasGeodeticSurfaceNormals = false;
542
+ this._calculateStrideAndOffsets();
543
+ const newStride = this.stride;
544
+ for (let index = 0; index < vertexCount; index++) {
545
+ for (let offset = 0; offset < newStride; offset++) {
546
+ const oldIndex = index * oldStride + offset;
547
+ const newIndex = index * newStride + offset;
548
+ newBuffer[newIndex] = oldBuffer[oldIndex];
549
+ }
550
+ }
551
+ };
552
+ TerrainEncoding.prototype.decodePosition = function(buffer, index, result) {
553
+ if (!defined_default(result)) {
554
+ result = new Cartesian3_default();
555
+ }
556
+ index *= this.stride;
557
+ if (this.quantization === TerrainQuantization_default.BITS12) {
558
+ const xy = AttributeCompression_default.decompressTextureCoordinates(
559
+ buffer[index],
560
+ cartesian2Scratch
561
+ );
562
+ result.x = xy.x;
563
+ result.y = xy.y;
564
+ const zh = AttributeCompression_default.decompressTextureCoordinates(
565
+ buffer[index + 1],
566
+ cartesian2Scratch
567
+ );
568
+ result.z = zh.x;
569
+ return Matrix4_default.multiplyByPoint(this.fromScaledENU, result, result);
570
+ }
571
+ result.x = buffer[index];
572
+ result.y = buffer[index + 1];
573
+ result.z = buffer[index + 2];
574
+ return Cartesian3_default.add(result, this.center, result);
575
+ };
576
+ TerrainEncoding.prototype.getExaggeratedPosition = function(buffer, index, result) {
577
+ result = this.decodePosition(buffer, index, result);
578
+ const exaggeration = this.exaggeration;
579
+ const exaggerationRelativeHeight = this.exaggerationRelativeHeight;
580
+ const hasExaggeration = exaggeration !== 1;
581
+ if (hasExaggeration && this.hasGeodeticSurfaceNormals) {
582
+ const geodeticSurfaceNormal = this.decodeGeodeticSurfaceNormal(
583
+ buffer,
584
+ index,
585
+ scratchGeodeticSurfaceNormal
586
+ );
587
+ const rawHeight = this.decodeHeight(buffer, index);
588
+ const heightDifference = TerrainExaggeration_default.getHeight(
589
+ rawHeight,
590
+ exaggeration,
591
+ exaggerationRelativeHeight
592
+ ) - rawHeight;
593
+ result.x += geodeticSurfaceNormal.x * heightDifference;
594
+ result.y += geodeticSurfaceNormal.y * heightDifference;
595
+ result.z += geodeticSurfaceNormal.z * heightDifference;
596
+ }
597
+ return result;
598
+ };
599
+ TerrainEncoding.prototype.decodeTextureCoordinates = function(buffer, index, result) {
600
+ if (!defined_default(result)) {
601
+ result = new Cartesian2_default();
602
+ }
603
+ index *= this.stride;
604
+ if (this.quantization === TerrainQuantization_default.BITS12) {
605
+ return AttributeCompression_default.decompressTextureCoordinates(
606
+ buffer[index + 2],
607
+ result
608
+ );
609
+ }
610
+ return Cartesian2_default.fromElements(buffer[index + 4], buffer[index + 5], result);
611
+ };
612
+ TerrainEncoding.prototype.decodeHeight = function(buffer, index) {
613
+ index *= this.stride;
614
+ if (this.quantization === TerrainQuantization_default.BITS12) {
615
+ const zh = AttributeCompression_default.decompressTextureCoordinates(
616
+ buffer[index + 1],
617
+ cartesian2Scratch
618
+ );
619
+ return zh.y * (this.maximumHeight - this.minimumHeight) + this.minimumHeight;
620
+ }
621
+ return buffer[index + 3];
622
+ };
623
+ TerrainEncoding.prototype.decodeWebMercatorT = function(buffer, index) {
624
+ index *= this.stride;
625
+ if (this.quantization === TerrainQuantization_default.BITS12) {
626
+ return AttributeCompression_default.decompressTextureCoordinates(
627
+ buffer[index + 3],
628
+ cartesian2Scratch
629
+ ).x;
630
+ }
631
+ return buffer[index + 6];
632
+ };
633
+ TerrainEncoding.prototype.getOctEncodedNormal = function(buffer, index, result) {
634
+ index = index * this.stride + this._offsetVertexNormal;
635
+ const temp = buffer[index] / 256;
636
+ const x = Math.floor(temp);
637
+ const y = (temp - x) * 256;
638
+ return Cartesian2_default.fromElements(x, y, result);
639
+ };
640
+ TerrainEncoding.prototype.decodeGeodeticSurfaceNormal = function(buffer, index, result) {
641
+ index = index * this.stride + this._offsetGeodeticSurfaceNormal;
642
+ result.x = buffer[index];
643
+ result.y = buffer[index + 1];
644
+ result.z = buffer[index + 2];
645
+ return result;
646
+ };
647
+ TerrainEncoding.prototype._calculateStrideAndOffsets = function() {
648
+ let vertexStride = 0;
649
+ switch (this.quantization) {
650
+ case TerrainQuantization_default.BITS12:
651
+ vertexStride += 3;
652
+ break;
653
+ default:
654
+ vertexStride += 6;
655
+ }
656
+ if (this.hasWebMercatorT) {
657
+ vertexStride += 1;
658
+ }
659
+ if (this.hasVertexNormals) {
660
+ this._offsetVertexNormal = vertexStride;
661
+ vertexStride += 1;
662
+ }
663
+ if (this.hasGeodeticSurfaceNormals) {
664
+ this._offsetGeodeticSurfaceNormal = vertexStride;
665
+ vertexStride += 3;
666
+ }
667
+ this.stride = vertexStride;
668
+ };
669
+ var attributesIndicesNone = {
670
+ position3DAndHeight: 0,
671
+ textureCoordAndEncodedNormals: 1,
672
+ geodeticSurfaceNormal: 2
673
+ };
674
+ var attributesIndicesBits12 = {
675
+ compressed0: 0,
676
+ compressed1: 1,
677
+ geodeticSurfaceNormal: 2
678
+ };
679
+ TerrainEncoding.prototype.getAttributes = function(buffer) {
680
+ const datatype = ComponentDatatype_default.FLOAT;
681
+ const sizeInBytes = ComponentDatatype_default.getSizeInBytes(datatype);
682
+ const strideInBytes = this.stride * sizeInBytes;
683
+ let offsetInBytes = 0;
684
+ const attributes = [];
685
+ function addAttribute(index, componentsPerAttribute) {
686
+ attributes.push({
687
+ index,
688
+ vertexBuffer: buffer,
689
+ componentDatatype: datatype,
690
+ componentsPerAttribute,
691
+ offsetInBytes,
692
+ strideInBytes
693
+ });
694
+ offsetInBytes += componentsPerAttribute * sizeInBytes;
695
+ }
696
+ if (this.quantization === TerrainQuantization_default.NONE) {
697
+ addAttribute(attributesIndicesNone.position3DAndHeight, 4);
698
+ let componentsTexCoordAndNormals = 2;
699
+ componentsTexCoordAndNormals += this.hasWebMercatorT ? 1 : 0;
700
+ componentsTexCoordAndNormals += this.hasVertexNormals ? 1 : 0;
701
+ addAttribute(
702
+ attributesIndicesNone.textureCoordAndEncodedNormals,
703
+ componentsTexCoordAndNormals
704
+ );
705
+ if (this.hasGeodeticSurfaceNormals) {
706
+ addAttribute(attributesIndicesNone.geodeticSurfaceNormal, 3);
707
+ }
708
+ } else {
709
+ const usingAttribute0Component4 = this.hasWebMercatorT || this.hasVertexNormals;
710
+ const usingAttribute1Component1 = this.hasWebMercatorT && this.hasVertexNormals;
711
+ addAttribute(
712
+ attributesIndicesBits12.compressed0,
713
+ usingAttribute0Component4 ? 4 : 3
714
+ );
715
+ if (usingAttribute1Component1) {
716
+ addAttribute(attributesIndicesBits12.compressed1, 1);
717
+ }
718
+ if (this.hasGeodeticSurfaceNormals) {
719
+ addAttribute(attributesIndicesBits12.geodeticSurfaceNormal, 3);
720
+ }
721
+ }
722
+ return attributes;
723
+ };
724
+ TerrainEncoding.prototype.getAttributeLocations = function() {
725
+ if (this.quantization === TerrainQuantization_default.NONE) {
726
+ return attributesIndicesNone;
727
+ }
728
+ return attributesIndicesBits12;
729
+ };
730
+ TerrainEncoding.clone = function(encoding, result) {
731
+ if (!defined_default(encoding)) {
732
+ return void 0;
733
+ }
734
+ if (!defined_default(result)) {
735
+ result = new TerrainEncoding();
736
+ }
737
+ result.quantization = encoding.quantization;
738
+ result.minimumHeight = encoding.minimumHeight;
739
+ result.maximumHeight = encoding.maximumHeight;
740
+ result.center = Cartesian3_default.clone(encoding.center);
741
+ result.toScaledENU = Matrix4_default.clone(encoding.toScaledENU);
742
+ result.fromScaledENU = Matrix4_default.clone(encoding.fromScaledENU);
743
+ result.matrix = Matrix4_default.clone(encoding.matrix);
744
+ result.hasVertexNormals = encoding.hasVertexNormals;
745
+ result.hasWebMercatorT = encoding.hasWebMercatorT;
746
+ result.hasGeodeticSurfaceNormals = encoding.hasGeodeticSurfaceNormals;
747
+ result.exaggeration = encoding.exaggeration;
748
+ result.exaggerationRelativeHeight = encoding.exaggerationRelativeHeight;
749
+ result._calculateStrideAndOffsets();
750
+ return result;
751
+ };
752
+ var TerrainEncoding_default = TerrainEncoding;
753
+
754
+ export {
755
+ EllipsoidalOccluder_default,
756
+ TerrainEncoding_default
757
+ };