@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
@@ -1,535 +1,492 @@
1
- define(['./AttributeCompression-f9f6c717', './Matrix3-41c58dde', './combine-d9581036', './IndexDatatype-2643aa47', './Math-0a2ac845', './Matrix2-e1298525', './createTaskProcessorWorker', './ComponentDatatype-cf1fa08e', './defaultValue-fe22d8c0', './Check-6ede7e26', './WebGLConstants-0b1ce7ba', './RuntimeError-ef395448'], (function (AttributeCompression, Matrix3, combine, IndexDatatype, Math$1, Matrix2, createTaskProcessorWorker, ComponentDatatype, defaultValue, Check, WebGLConstants, RuntimeError) { 'use strict';
2
-
3
- const MAX_SHORT = 32767;
4
- const MITER_BREAK = Math.cos(Math$1.CesiumMath.toRadians(150.0));
5
-
6
- const scratchBVCartographic = new Matrix3.Cartographic();
7
- const scratchEncodedPosition = new Matrix3.Cartesian3();
8
-
9
- function decodePositions(
10
- uBuffer,
11
- vBuffer,
12
- heightBuffer,
13
- rectangle,
14
- minimumHeight,
15
- maximumHeight,
16
- ellipsoid
17
- ) {
18
- const positionsLength = uBuffer.length;
19
- const decodedPositions = new Float64Array(positionsLength * 3);
20
- for (let i = 0; i < positionsLength; ++i) {
21
- const u = uBuffer[i];
22
- const v = vBuffer[i];
23
- const h = heightBuffer[i];
24
-
25
- const lon = Math$1.CesiumMath.lerp(rectangle.west, rectangle.east, u / MAX_SHORT);
26
- const lat = Math$1.CesiumMath.lerp(
27
- rectangle.south,
28
- rectangle.north,
29
- v / MAX_SHORT
30
- );
31
- const alt = Math$1.CesiumMath.lerp(minimumHeight, maximumHeight, h / MAX_SHORT);
32
-
33
- const cartographic = Matrix3.Cartographic.fromRadians(
34
- lon,
35
- lat,
36
- alt,
37
- scratchBVCartographic
38
- );
39
- const decodedPosition = ellipsoid.cartographicToCartesian(
40
- cartographic,
41
- scratchEncodedPosition
42
- );
43
- Matrix3.Cartesian3.pack(decodedPosition, decodedPositions, i * 3);
44
- }
45
- return decodedPositions;
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
+ createTaskProcessorWorker_default
28
+ } from "./chunk-A4JVFBQ3.js";
29
+ import {
30
+ AttributeCompression_default
31
+ } from "./chunk-O5AMBQ36.js";
32
+ import {
33
+ IndexDatatype_default
34
+ } from "./chunk-RW6LU2CJ.js";
35
+ import {
36
+ combine_default
37
+ } from "./chunk-QJ3DFBH3.js";
38
+ import {
39
+ Rectangle_default
40
+ } from "./chunk-DUHWWBQQ.js";
41
+ import "./chunk-LLUNNUJV.js";
42
+ import {
43
+ Cartesian3_default,
44
+ Cartographic_default,
45
+ Ellipsoid_default
46
+ } from "./chunk-PCJWUS4M.js";
47
+ import {
48
+ Math_default
49
+ } from "./chunk-N3JIFFX2.js";
50
+ import "./chunk-AHKEZ2OE.js";
51
+ import "./chunk-ABADGKYE.js";
52
+ import "./chunk-WXTV4ATB.js";
53
+ import "./chunk-4MFFIWUA.js";
54
+ import "./chunk-6BTKZDRG.js";
55
+
56
+ // packages/engine/Source/Workers/createVectorTileClampedPolylines.js
57
+ var MAX_SHORT = 32767;
58
+ var MITER_BREAK = Math.cos(Math_default.toRadians(150));
59
+ var scratchBVCartographic = new Cartographic_default();
60
+ var scratchEncodedPosition = new Cartesian3_default();
61
+ function decodePositions(uBuffer, vBuffer, heightBuffer, rectangle, minimumHeight, maximumHeight, ellipsoid) {
62
+ const positionsLength = uBuffer.length;
63
+ const decodedPositions = new Float64Array(positionsLength * 3);
64
+ for (let i = 0; i < positionsLength; ++i) {
65
+ const u = uBuffer[i];
66
+ const v = vBuffer[i];
67
+ const h = heightBuffer[i];
68
+ const lon = Math_default.lerp(rectangle.west, rectangle.east, u / MAX_SHORT);
69
+ const lat = Math_default.lerp(
70
+ rectangle.south,
71
+ rectangle.north,
72
+ v / MAX_SHORT
73
+ );
74
+ const alt = Math_default.lerp(minimumHeight, maximumHeight, h / MAX_SHORT);
75
+ const cartographic = Cartographic_default.fromRadians(
76
+ lon,
77
+ lat,
78
+ alt,
79
+ scratchBVCartographic
80
+ );
81
+ const decodedPosition = ellipsoid.cartographicToCartesian(
82
+ cartographic,
83
+ scratchEncodedPosition
84
+ );
85
+ Cartesian3_default.pack(decodedPosition, decodedPositions, i * 3);
46
86
  }
47
-
48
- function getPositionOffsets(counts) {
49
- const countsLength = counts.length;
50
- const positionOffsets = new Uint32Array(countsLength + 1);
51
- let offset = 0;
52
- for (let i = 0; i < countsLength; ++i) {
53
- positionOffsets[i] = offset;
54
- offset += counts[i];
55
- }
56
- positionOffsets[countsLength] = offset;
57
- return positionOffsets;
87
+ return decodedPositions;
88
+ }
89
+ function getPositionOffsets(counts) {
90
+ const countsLength = counts.length;
91
+ const positionOffsets = new Uint32Array(countsLength + 1);
92
+ let offset = 0;
93
+ for (let i = 0; i < countsLength; ++i) {
94
+ positionOffsets[i] = offset;
95
+ offset += counts[i];
58
96
  }
59
-
60
- const previousCompressedCartographicScratch = new Matrix3.Cartographic();
61
- const currentCompressedCartographicScratch = new Matrix3.Cartographic();
62
- function removeDuplicates(uBuffer, vBuffer, heightBuffer, counts) {
63
- const countsLength = counts.length;
64
- const positionsLength = uBuffer.length;
65
- const markRemoval = new Uint8Array(positionsLength);
66
- const previous = previousCompressedCartographicScratch;
67
- const current = currentCompressedCartographicScratch;
68
- let offset = 0;
69
- for (let i = 0; i < countsLength; i++) {
70
- const count = counts[i];
71
- let updatedCount = count;
72
- for (let j = 1; j < count; j++) {
73
- const index = offset + j;
74
- const previousIndex = index - 1;
75
- current.longitude = uBuffer[index];
76
- current.latitude = vBuffer[index];
77
- previous.longitude = uBuffer[previousIndex];
78
- previous.latitude = vBuffer[previousIndex];
79
-
80
- if (Matrix3.Cartographic.equals(current, previous)) {
81
- updatedCount--;
82
- markRemoval[previousIndex] = 1;
83
- }
84
- }
85
- counts[i] = updatedCount;
86
- offset += count;
87
- }
88
-
89
- let nextAvailableIndex = 0;
90
- for (let k = 0; k < positionsLength; k++) {
91
- if (markRemoval[k] !== 1) {
92
- uBuffer[nextAvailableIndex] = uBuffer[k];
93
- vBuffer[nextAvailableIndex] = vBuffer[k];
94
- heightBuffer[nextAvailableIndex] = heightBuffer[k];
95
- nextAvailableIndex++;
97
+ positionOffsets[countsLength] = offset;
98
+ return positionOffsets;
99
+ }
100
+ var previousCompressedCartographicScratch = new Cartographic_default();
101
+ var currentCompressedCartographicScratch = new Cartographic_default();
102
+ function removeDuplicates(uBuffer, vBuffer, heightBuffer, counts) {
103
+ const countsLength = counts.length;
104
+ const positionsLength = uBuffer.length;
105
+ const markRemoval = new Uint8Array(positionsLength);
106
+ const previous = previousCompressedCartographicScratch;
107
+ const current = currentCompressedCartographicScratch;
108
+ let offset = 0;
109
+ for (let i = 0; i < countsLength; i++) {
110
+ const count = counts[i];
111
+ let updatedCount = count;
112
+ for (let j = 1; j < count; j++) {
113
+ const index = offset + j;
114
+ const previousIndex = index - 1;
115
+ current.longitude = uBuffer[index];
116
+ current.latitude = vBuffer[index];
117
+ previous.longitude = uBuffer[previousIndex];
118
+ previous.latitude = vBuffer[previousIndex];
119
+ if (Cartographic_default.equals(current, previous)) {
120
+ updatedCount--;
121
+ markRemoval[previousIndex] = 1;
96
122
  }
97
123
  }
124
+ counts[i] = updatedCount;
125
+ offset += count;
98
126
  }
99
-
100
- function VertexAttributesAndIndices(volumesCount) {
101
- const vertexCount = volumesCount * 8;
102
- const vec3Floats = vertexCount * 3;
103
- const vec4Floats = vertexCount * 4;
104
- this.startEllipsoidNormals = new Float32Array(vec3Floats);
105
- this.endEllipsoidNormals = new Float32Array(vec3Floats);
106
- this.startPositionAndHeights = new Float32Array(vec4Floats);
107
- this.startFaceNormalAndVertexCornerIds = new Float32Array(vec4Floats);
108
- this.endPositionAndHeights = new Float32Array(vec4Floats);
109
- this.endFaceNormalAndHalfWidths = new Float32Array(vec4Floats);
110
- this.vertexBatchIds = new Uint16Array(vertexCount);
111
-
112
- this.indices = IndexDatatype.IndexDatatype.createTypedArray(vertexCount, 36 * volumesCount);
113
-
114
- this.vec3Offset = 0;
115
- this.vec4Offset = 0;
116
- this.batchIdOffset = 0;
117
- this.indexOffset = 0;
118
-
119
- this.volumeStartIndex = 0;
127
+ let nextAvailableIndex = 0;
128
+ for (let k = 0; k < positionsLength; k++) {
129
+ if (markRemoval[k] !== 1) {
130
+ uBuffer[nextAvailableIndex] = uBuffer[k];
131
+ vBuffer[nextAvailableIndex] = vBuffer[k];
132
+ heightBuffer[nextAvailableIndex] = heightBuffer[k];
133
+ nextAvailableIndex++;
134
+ }
120
135
  }
121
-
122
- const towardCurrScratch = new Matrix3.Cartesian3();
123
- const towardNextScratch = new Matrix3.Cartesian3();
124
- function computeMiteredNormal(
125
- previousPosition,
126
- position,
136
+ }
137
+ function VertexAttributesAndIndices(volumesCount) {
138
+ const vertexCount = volumesCount * 8;
139
+ const vec3Floats = vertexCount * 3;
140
+ const vec4Floats = vertexCount * 4;
141
+ this.startEllipsoidNormals = new Float32Array(vec3Floats);
142
+ this.endEllipsoidNormals = new Float32Array(vec3Floats);
143
+ this.startPositionAndHeights = new Float32Array(vec4Floats);
144
+ this.startFaceNormalAndVertexCornerIds = new Float32Array(vec4Floats);
145
+ this.endPositionAndHeights = new Float32Array(vec4Floats);
146
+ this.endFaceNormalAndHalfWidths = new Float32Array(vec4Floats);
147
+ this.vertexBatchIds = new Uint16Array(vertexCount);
148
+ this.indices = IndexDatatype_default.createTypedArray(vertexCount, 36 * volumesCount);
149
+ this.vec3Offset = 0;
150
+ this.vec4Offset = 0;
151
+ this.batchIdOffset = 0;
152
+ this.indexOffset = 0;
153
+ this.volumeStartIndex = 0;
154
+ }
155
+ var towardCurrScratch = new Cartesian3_default();
156
+ var towardNextScratch = new Cartesian3_default();
157
+ function computeMiteredNormal(previousPosition, position, nextPosition, ellipsoidSurfaceNormal, result) {
158
+ const towardNext = Cartesian3_default.subtract(
127
159
  nextPosition,
128
- ellipsoidSurfaceNormal,
129
- result
130
- ) {
131
- const towardNext = Matrix3.Cartesian3.subtract(
132
- nextPosition,
133
- position,
134
- towardNextScratch
135
- );
136
- let towardCurr = Matrix3.Cartesian3.subtract(
137
- position,
138
- previousPosition,
160
+ position,
161
+ towardNextScratch
162
+ );
163
+ let towardCurr = Cartesian3_default.subtract(
164
+ position,
165
+ previousPosition,
166
+ towardCurrScratch
167
+ );
168
+ Cartesian3_default.normalize(towardNext, towardNext);
169
+ Cartesian3_default.normalize(towardCurr, towardCurr);
170
+ if (Cartesian3_default.dot(towardNext, towardCurr) < MITER_BREAK) {
171
+ towardCurr = Cartesian3_default.multiplyByScalar(
172
+ towardCurr,
173
+ -1,
139
174
  towardCurrScratch
140
175
  );
141
- Matrix3.Cartesian3.normalize(towardNext, towardNext);
142
- Matrix3.Cartesian3.normalize(towardCurr, towardCurr);
143
-
144
- if (Matrix3.Cartesian3.dot(towardNext, towardCurr) < MITER_BREAK) {
145
- towardCurr = Matrix3.Cartesian3.multiplyByScalar(
146
- towardCurr,
147
- -1.0,
148
- towardCurrScratch
149
- );
150
- }
151
-
152
- Matrix3.Cartesian3.add(towardNext, towardCurr, result);
153
- if (Matrix3.Cartesian3.equals(result, Matrix3.Cartesian3.ZERO)) {
154
- result = Matrix3.Cartesian3.subtract(previousPosition, position);
155
- }
156
-
157
- // Make sure the normal is orthogonal to the ellipsoid surface normal
158
- Matrix3.Cartesian3.cross(result, ellipsoidSurfaceNormal, result);
159
- Matrix3.Cartesian3.cross(ellipsoidSurfaceNormal, result, result);
160
- Matrix3.Cartesian3.normalize(result, result);
161
- return result;
162
176
  }
163
-
164
- // Winding order is reversed so each segment's volume is inside-out
165
- // 3-----------7
166
- // /| left /|
167
- // / | 1 / |
168
- // 2-----------6 5 end
169
- // | / | /
170
- // start |/ right |/
171
- // 0-----------4
172
- //
173
- const REFERENCE_INDICES = [
174
- 0,
175
- 2,
176
- 6,
177
- 0,
178
- 6,
179
- 4, // right
180
- 0,
181
- 1,
182
- 3,
183
- 0,
184
- 3,
185
- 2, // start face
186
- 0,
187
- 4,
188
- 5,
189
- 0,
190
- 5,
191
- 1, // bottom
192
- 5,
193
- 3,
194
- 1,
195
- 5,
196
- 7,
197
- 3, // left
198
- 7,
199
- 5,
200
- 4,
201
- 7,
202
- 4,
203
- 6, // end face
204
- 7,
205
- 6,
206
- 2,
207
- 7,
208
- 2,
209
- 3, // top
210
- ];
211
- const REFERENCE_INDICES_LENGTH = REFERENCE_INDICES.length;
212
-
213
- const positionScratch = new Matrix3.Cartesian3();
214
- const scratchStartEllipsoidNormal = new Matrix3.Cartesian3();
215
- const scratchStartFaceNormal = new Matrix3.Cartesian3();
216
- const scratchEndEllipsoidNormal = new Matrix3.Cartesian3();
217
- const scratchEndFaceNormal = new Matrix3.Cartesian3();
218
- VertexAttributesAndIndices.prototype.addVolume = function (
177
+ Cartesian3_default.add(towardNext, towardCurr, result);
178
+ if (Cartesian3_default.equals(result, Cartesian3_default.ZERO)) {
179
+ result = Cartesian3_default.subtract(previousPosition, position);
180
+ }
181
+ Cartesian3_default.cross(result, ellipsoidSurfaceNormal, result);
182
+ Cartesian3_default.cross(ellipsoidSurfaceNormal, result, result);
183
+ Cartesian3_default.normalize(result, result);
184
+ return result;
185
+ }
186
+ var REFERENCE_INDICES = [
187
+ 0,
188
+ 2,
189
+ 6,
190
+ 0,
191
+ 6,
192
+ 4,
193
+ // right
194
+ 0,
195
+ 1,
196
+ 3,
197
+ 0,
198
+ 3,
199
+ 2,
200
+ // start face
201
+ 0,
202
+ 4,
203
+ 5,
204
+ 0,
205
+ 5,
206
+ 1,
207
+ // bottom
208
+ 5,
209
+ 3,
210
+ 1,
211
+ 5,
212
+ 7,
213
+ 3,
214
+ // left
215
+ 7,
216
+ 5,
217
+ 4,
218
+ 7,
219
+ 4,
220
+ 6,
221
+ // end face
222
+ 7,
223
+ 6,
224
+ 2,
225
+ 7,
226
+ 2,
227
+ 3
228
+ // top
229
+ ];
230
+ var REFERENCE_INDICES_LENGTH = REFERENCE_INDICES.length;
231
+ var positionScratch = new Cartesian3_default();
232
+ var scratchStartEllipsoidNormal = new Cartesian3_default();
233
+ var scratchStartFaceNormal = new Cartesian3_default();
234
+ var scratchEndEllipsoidNormal = new Cartesian3_default();
235
+ var scratchEndFaceNormal = new Cartesian3_default();
236
+ VertexAttributesAndIndices.prototype.addVolume = function(preStartRTC, startRTC, endRTC, postEndRTC, startHeight, endHeight, halfWidth, batchId, center, ellipsoid) {
237
+ let position = Cartesian3_default.add(startRTC, center, positionScratch);
238
+ const startEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
239
+ position,
240
+ scratchStartEllipsoidNormal
241
+ );
242
+ position = Cartesian3_default.add(endRTC, center, positionScratch);
243
+ const endEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
244
+ position,
245
+ scratchEndEllipsoidNormal
246
+ );
247
+ const startFaceNormal = computeMiteredNormal(
219
248
  preStartRTC,
220
249
  startRTC,
221
250
  endRTC,
251
+ startEllipsoidNormal,
252
+ scratchStartFaceNormal
253
+ );
254
+ const endFaceNormal = computeMiteredNormal(
222
255
  postEndRTC,
223
- startHeight,
224
- endHeight,
225
- halfWidth,
226
- batchId,
227
- center,
228
- ellipsoid
229
- ) {
230
- let position = Matrix3.Cartesian3.add(startRTC, center, positionScratch);
231
- const startEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
232
- position,
233
- scratchStartEllipsoidNormal
234
- );
235
- position = Matrix3.Cartesian3.add(endRTC, center, positionScratch);
236
- const endEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
237
- position,
238
- scratchEndEllipsoidNormal
239
- );
240
-
241
- const startFaceNormal = computeMiteredNormal(
242
- preStartRTC,
243
- startRTC,
244
- endRTC,
245
- startEllipsoidNormal,
246
- scratchStartFaceNormal
247
- );
248
- const endFaceNormal = computeMiteredNormal(
249
- postEndRTC,
250
- endRTC,
251
- startRTC,
252
- endEllipsoidNormal,
253
- scratchEndFaceNormal
256
+ endRTC,
257
+ startRTC,
258
+ endEllipsoidNormal,
259
+ scratchEndFaceNormal
260
+ );
261
+ const startEllipsoidNormals = this.startEllipsoidNormals;
262
+ const endEllipsoidNormals = this.endEllipsoidNormals;
263
+ const startPositionAndHeights = this.startPositionAndHeights;
264
+ const startFaceNormalAndVertexCornerIds = this.startFaceNormalAndVertexCornerIds;
265
+ const endPositionAndHeights = this.endPositionAndHeights;
266
+ const endFaceNormalAndHalfWidths = this.endFaceNormalAndHalfWidths;
267
+ const vertexBatchIds = this.vertexBatchIds;
268
+ let batchIdOffset = this.batchIdOffset;
269
+ let vec3Offset = this.vec3Offset;
270
+ let vec4Offset = this.vec4Offset;
271
+ let i;
272
+ for (i = 0; i < 8; i++) {
273
+ Cartesian3_default.pack(startEllipsoidNormal, startEllipsoidNormals, vec3Offset);
274
+ Cartesian3_default.pack(endEllipsoidNormal, endEllipsoidNormals, vec3Offset);
275
+ Cartesian3_default.pack(startRTC, startPositionAndHeights, vec4Offset);
276
+ startPositionAndHeights[vec4Offset + 3] = startHeight;
277
+ Cartesian3_default.pack(endRTC, endPositionAndHeights, vec4Offset);
278
+ endPositionAndHeights[vec4Offset + 3] = endHeight;
279
+ Cartesian3_default.pack(
280
+ startFaceNormal,
281
+ startFaceNormalAndVertexCornerIds,
282
+ vec4Offset
254
283
  );
255
-
256
- const startEllipsoidNormals = this.startEllipsoidNormals;
257
- const endEllipsoidNormals = this.endEllipsoidNormals;
258
- const startPositionAndHeights = this.startPositionAndHeights;
259
- const startFaceNormalAndVertexCornerIds = this
260
- .startFaceNormalAndVertexCornerIds;
261
- const endPositionAndHeights = this.endPositionAndHeights;
262
- const endFaceNormalAndHalfWidths = this.endFaceNormalAndHalfWidths;
263
- const vertexBatchIds = this.vertexBatchIds;
264
-
265
- let batchIdOffset = this.batchIdOffset;
266
- let vec3Offset = this.vec3Offset;
267
- let vec4Offset = this.vec4Offset;
268
-
269
- let i;
270
- for (i = 0; i < 8; i++) {
271
- Matrix3.Cartesian3.pack(startEllipsoidNormal, startEllipsoidNormals, vec3Offset);
272
- Matrix3.Cartesian3.pack(endEllipsoidNormal, endEllipsoidNormals, vec3Offset);
273
-
274
- Matrix3.Cartesian3.pack(startRTC, startPositionAndHeights, vec4Offset);
275
- startPositionAndHeights[vec4Offset + 3] = startHeight;
276
-
277
- Matrix3.Cartesian3.pack(endRTC, endPositionAndHeights, vec4Offset);
278
- endPositionAndHeights[vec4Offset + 3] = endHeight;
279
-
280
- Matrix3.Cartesian3.pack(
281
- startFaceNormal,
282
- startFaceNormalAndVertexCornerIds,
283
- vec4Offset
284
+ startFaceNormalAndVertexCornerIds[vec4Offset + 3] = i;
285
+ Cartesian3_default.pack(endFaceNormal, endFaceNormalAndHalfWidths, vec4Offset);
286
+ endFaceNormalAndHalfWidths[vec4Offset + 3] = halfWidth;
287
+ vertexBatchIds[batchIdOffset++] = batchId;
288
+ vec3Offset += 3;
289
+ vec4Offset += 4;
290
+ }
291
+ this.batchIdOffset = batchIdOffset;
292
+ this.vec3Offset = vec3Offset;
293
+ this.vec4Offset = vec4Offset;
294
+ const indices = this.indices;
295
+ const volumeStartIndex = this.volumeStartIndex;
296
+ const indexOffset = this.indexOffset;
297
+ for (i = 0; i < REFERENCE_INDICES_LENGTH; i++) {
298
+ indices[indexOffset + i] = REFERENCE_INDICES[i] + volumeStartIndex;
299
+ }
300
+ this.volumeStartIndex += 8;
301
+ this.indexOffset += REFERENCE_INDICES_LENGTH;
302
+ };
303
+ var scratchRectangle = new Rectangle_default();
304
+ var scratchEllipsoid = new Ellipsoid_default();
305
+ var scratchCenter = new Cartesian3_default();
306
+ var scratchPrev = new Cartesian3_default();
307
+ var scratchP0 = new Cartesian3_default();
308
+ var scratchP1 = new Cartesian3_default();
309
+ var scratchNext = new Cartesian3_default();
310
+ function createVectorTileClampedPolylines(parameters, transferableObjects) {
311
+ const encodedPositions = new Uint16Array(parameters.positions);
312
+ const widths = new Uint16Array(parameters.widths);
313
+ const counts = new Uint32Array(parameters.counts);
314
+ const batchIds = new Uint16Array(parameters.batchIds);
315
+ const rectangle = scratchRectangle;
316
+ const ellipsoid = scratchEllipsoid;
317
+ const center = scratchCenter;
318
+ const packedBuffer = new Float64Array(parameters.packedBuffer);
319
+ let offset = 0;
320
+ const minimumHeight = packedBuffer[offset++];
321
+ const maximumHeight = packedBuffer[offset++];
322
+ Rectangle_default.unpack(packedBuffer, offset, rectangle);
323
+ offset += Rectangle_default.packedLength;
324
+ Ellipsoid_default.unpack(packedBuffer, offset, ellipsoid);
325
+ offset += Ellipsoid_default.packedLength;
326
+ Cartesian3_default.unpack(packedBuffer, offset, center);
327
+ let i;
328
+ let positionsLength = encodedPositions.length / 3;
329
+ const uBuffer = encodedPositions.subarray(0, positionsLength);
330
+ const vBuffer = encodedPositions.subarray(
331
+ positionsLength,
332
+ 2 * positionsLength
333
+ );
334
+ const heightBuffer = encodedPositions.subarray(
335
+ 2 * positionsLength,
336
+ 3 * positionsLength
337
+ );
338
+ AttributeCompression_default.zigZagDeltaDecode(uBuffer, vBuffer, heightBuffer);
339
+ removeDuplicates(uBuffer, vBuffer, heightBuffer, counts);
340
+ const countsLength = counts.length;
341
+ let volumesCount = 0;
342
+ for (i = 0; i < countsLength; i++) {
343
+ const polylinePositionCount = counts[i];
344
+ volumesCount += polylinePositionCount - 1;
345
+ }
346
+ const attribsAndIndices = new VertexAttributesAndIndices(volumesCount);
347
+ const positions = decodePositions(
348
+ uBuffer,
349
+ vBuffer,
350
+ heightBuffer,
351
+ rectangle,
352
+ minimumHeight,
353
+ maximumHeight,
354
+ ellipsoid,
355
+ center
356
+ );
357
+ positionsLength = uBuffer.length;
358
+ const positionsRTC = new Float32Array(positionsLength * 3);
359
+ for (i = 0; i < positionsLength; ++i) {
360
+ positionsRTC[i * 3] = positions[i * 3] - center.x;
361
+ positionsRTC[i * 3 + 1] = positions[i * 3 + 1] - center.y;
362
+ positionsRTC[i * 3 + 2] = positions[i * 3 + 2] - center.z;
363
+ }
364
+ let currentPositionIndex = 0;
365
+ let currentHeightIndex = 0;
366
+ for (i = 0; i < countsLength; i++) {
367
+ const polylineVolumeCount = counts[i] - 1;
368
+ const halfWidth = widths[i] * 0.5;
369
+ const batchId = batchIds[i];
370
+ const volumeFirstPositionIndex = currentPositionIndex;
371
+ for (let j = 0; j < polylineVolumeCount; j++) {
372
+ const volumeStart = Cartesian3_default.unpack(
373
+ positionsRTC,
374
+ currentPositionIndex,
375
+ scratchP0
284
376
  );
285
- startFaceNormalAndVertexCornerIds[vec4Offset + 3] = i;
286
-
287
- Matrix3.Cartesian3.pack(endFaceNormal, endFaceNormalAndHalfWidths, vec4Offset);
288
- endFaceNormalAndHalfWidths[vec4Offset + 3] = halfWidth;
289
-
290
- vertexBatchIds[batchIdOffset++] = batchId;
291
-
292
- vec3Offset += 3;
293
- vec4Offset += 4;
294
- }
295
-
296
- this.batchIdOffset = batchIdOffset;
297
- this.vec3Offset = vec3Offset;
298
- this.vec4Offset = vec4Offset;
299
- const indices = this.indices;
300
- const volumeStartIndex = this.volumeStartIndex;
301
-
302
- const indexOffset = this.indexOffset;
303
- for (i = 0; i < REFERENCE_INDICES_LENGTH; i++) {
304
- indices[indexOffset + i] = REFERENCE_INDICES[i] + volumeStartIndex;
305
- }
306
-
307
- this.volumeStartIndex += 8;
308
- this.indexOffset += REFERENCE_INDICES_LENGTH;
309
- };
310
-
311
- const scratchRectangle = new Matrix2.Rectangle();
312
- const scratchEllipsoid = new Matrix3.Ellipsoid();
313
- const scratchCenter = new Matrix3.Cartesian3();
314
-
315
- const scratchPrev = new Matrix3.Cartesian3();
316
- const scratchP0 = new Matrix3.Cartesian3();
317
- const scratchP1 = new Matrix3.Cartesian3();
318
- const scratchNext = new Matrix3.Cartesian3();
319
- function createVectorTileClampedPolylines(parameters, transferableObjects) {
320
- const encodedPositions = new Uint16Array(parameters.positions);
321
- const widths = new Uint16Array(parameters.widths);
322
- const counts = new Uint32Array(parameters.counts);
323
- const batchIds = new Uint16Array(parameters.batchIds);
324
-
325
- // Unpack tile decoding parameters
326
- const rectangle = scratchRectangle;
327
- const ellipsoid = scratchEllipsoid;
328
- const center = scratchCenter;
329
- const packedBuffer = new Float64Array(parameters.packedBuffer);
330
-
331
- let offset = 0;
332
- const minimumHeight = packedBuffer[offset++];
333
- const maximumHeight = packedBuffer[offset++];
334
-
335
- Matrix2.Rectangle.unpack(packedBuffer, offset, rectangle);
336
- offset += Matrix2.Rectangle.packedLength;
337
-
338
- Matrix3.Ellipsoid.unpack(packedBuffer, offset, ellipsoid);
339
- offset += Matrix3.Ellipsoid.packedLength;
340
-
341
- Matrix3.Cartesian3.unpack(packedBuffer, offset, center);
342
-
343
- let i;
344
-
345
- // Unpack positions and generate volumes
346
- let positionsLength = encodedPositions.length / 3;
347
- const uBuffer = encodedPositions.subarray(0, positionsLength);
348
- const vBuffer = encodedPositions.subarray(
349
- positionsLength,
350
- 2 * positionsLength
351
- );
352
- const heightBuffer = encodedPositions.subarray(
353
- 2 * positionsLength,
354
- 3 * positionsLength
355
- );
356
- AttributeCompression.AttributeCompression.zigZagDeltaDecode(uBuffer, vBuffer, heightBuffer);
357
-
358
- removeDuplicates(uBuffer, vBuffer, heightBuffer, counts);
359
-
360
- // Figure out how many volumes and how many vertices there will be.
361
- const countsLength = counts.length;
362
- let volumesCount = 0;
363
- for (i = 0; i < countsLength; i++) {
364
- const polylinePositionCount = counts[i];
365
- volumesCount += polylinePositionCount - 1;
366
- }
367
-
368
- const attribsAndIndices = new VertexAttributesAndIndices(volumesCount);
369
-
370
- const positions = decodePositions(
371
- uBuffer,
372
- vBuffer,
373
- heightBuffer,
374
- rectangle,
375
- minimumHeight,
376
- maximumHeight,
377
- ellipsoid);
378
-
379
- positionsLength = uBuffer.length;
380
- const positionsRTC = new Float32Array(positionsLength * 3);
381
- for (i = 0; i < positionsLength; ++i) {
382
- positionsRTC[i * 3] = positions[i * 3] - center.x;
383
- positionsRTC[i * 3 + 1] = positions[i * 3 + 1] - center.y;
384
- positionsRTC[i * 3 + 2] = positions[i * 3 + 2] - center.z;
385
- }
386
-
387
- let currentPositionIndex = 0;
388
- let currentHeightIndex = 0;
389
- for (i = 0; i < countsLength; i++) {
390
- const polylineVolumeCount = counts[i] - 1;
391
- const halfWidth = widths[i] * 0.5;
392
- const batchId = batchIds[i];
393
- const volumeFirstPositionIndex = currentPositionIndex;
394
- for (let j = 0; j < polylineVolumeCount; j++) {
395
- const volumeStart = Matrix3.Cartesian3.unpack(
377
+ const volumeEnd = Cartesian3_default.unpack(
378
+ positionsRTC,
379
+ currentPositionIndex + 3,
380
+ scratchP1
381
+ );
382
+ let startHeight = heightBuffer[currentHeightIndex];
383
+ let endHeight = heightBuffer[currentHeightIndex + 1];
384
+ startHeight = Math_default.lerp(
385
+ minimumHeight,
386
+ maximumHeight,
387
+ startHeight / MAX_SHORT
388
+ );
389
+ endHeight = Math_default.lerp(
390
+ minimumHeight,
391
+ maximumHeight,
392
+ endHeight / MAX_SHORT
393
+ );
394
+ currentHeightIndex++;
395
+ let preStart = scratchPrev;
396
+ let postEnd = scratchNext;
397
+ if (j === 0) {
398
+ const finalPositionIndex = volumeFirstPositionIndex + polylineVolumeCount * 3;
399
+ const finalPosition = Cartesian3_default.unpack(
396
400
  positionsRTC,
397
- currentPositionIndex,
398
- scratchP0
401
+ finalPositionIndex,
402
+ scratchPrev
399
403
  );
400
- const volumeEnd = Matrix3.Cartesian3.unpack(
404
+ if (Cartesian3_default.equals(finalPosition, volumeStart)) {
405
+ Cartesian3_default.unpack(positionsRTC, finalPositionIndex - 3, preStart);
406
+ } else {
407
+ const offsetPastStart = Cartesian3_default.subtract(
408
+ volumeStart,
409
+ volumeEnd,
410
+ scratchPrev
411
+ );
412
+ preStart = Cartesian3_default.add(offsetPastStart, volumeStart, scratchPrev);
413
+ }
414
+ } else {
415
+ Cartesian3_default.unpack(positionsRTC, currentPositionIndex - 3, preStart);
416
+ }
417
+ if (j === polylineVolumeCount - 1) {
418
+ const firstPosition = Cartesian3_default.unpack(
401
419
  positionsRTC,
402
- currentPositionIndex + 3,
403
- scratchP1
404
- );
405
-
406
- let startHeight = heightBuffer[currentHeightIndex];
407
- let endHeight = heightBuffer[currentHeightIndex + 1];
408
- startHeight = Math$1.CesiumMath.lerp(
409
- minimumHeight,
410
- maximumHeight,
411
- startHeight / MAX_SHORT
420
+ volumeFirstPositionIndex,
421
+ scratchNext
412
422
  );
413
- endHeight = Math$1.CesiumMath.lerp(
414
- minimumHeight,
415
- maximumHeight,
416
- endHeight / MAX_SHORT
417
- );
418
-
419
- currentHeightIndex++;
420
-
421
- let preStart = scratchPrev;
422
- let postEnd = scratchNext;
423
- if (j === 0) {
424
- // Check if this volume is like a loop
425
- const finalPositionIndex =
426
- volumeFirstPositionIndex + polylineVolumeCount * 3;
427
- const finalPosition = Matrix3.Cartesian3.unpack(
423
+ if (Cartesian3_default.equals(firstPosition, volumeEnd)) {
424
+ Cartesian3_default.unpack(
428
425
  positionsRTC,
429
- finalPositionIndex,
430
- scratchPrev
426
+ volumeFirstPositionIndex + 3,
427
+ postEnd
431
428
  );
432
- if (Matrix3.Cartesian3.equals(finalPosition, volumeStart)) {
433
- Matrix3.Cartesian3.unpack(positionsRTC, finalPositionIndex - 3, preStart);
434
- } else {
435
- const offsetPastStart = Matrix3.Cartesian3.subtract(
436
- volumeStart,
437
- volumeEnd,
438
- scratchPrev
439
- );
440
- preStart = Matrix3.Cartesian3.add(offsetPastStart, volumeStart, scratchPrev);
441
- }
442
429
  } else {
443
- Matrix3.Cartesian3.unpack(positionsRTC, currentPositionIndex - 3, preStart);
444
- }
445
-
446
- if (j === polylineVolumeCount - 1) {
447
- // Check if this volume is like a loop
448
- const firstPosition = Matrix3.Cartesian3.unpack(
449
- positionsRTC,
450
- volumeFirstPositionIndex,
430
+ const offsetPastEnd = Cartesian3_default.subtract(
431
+ volumeEnd,
432
+ volumeStart,
451
433
  scratchNext
452
434
  );
453
- if (Matrix3.Cartesian3.equals(firstPosition, volumeEnd)) {
454
- Matrix3.Cartesian3.unpack(
455
- positionsRTC,
456
- volumeFirstPositionIndex + 3,
457
- postEnd
458
- );
459
- } else {
460
- const offsetPastEnd = Matrix3.Cartesian3.subtract(
461
- volumeEnd,
462
- volumeStart,
463
- scratchNext
464
- );
465
- postEnd = Matrix3.Cartesian3.add(offsetPastEnd, volumeEnd, scratchNext);
466
- }
467
- } else {
468
- Matrix3.Cartesian3.unpack(positionsRTC, currentPositionIndex + 6, postEnd);
435
+ postEnd = Cartesian3_default.add(offsetPastEnd, volumeEnd, scratchNext);
469
436
  }
470
-
471
- attribsAndIndices.addVolume(
472
- preStart,
473
- volumeStart,
474
- volumeEnd,
475
- postEnd,
476
- startHeight,
477
- endHeight,
478
- halfWidth,
479
- batchId,
480
- center,
481
- ellipsoid
482
- );
483
-
484
- currentPositionIndex += 3;
437
+ } else {
438
+ Cartesian3_default.unpack(positionsRTC, currentPositionIndex + 6, postEnd);
485
439
  }
440
+ attribsAndIndices.addVolume(
441
+ preStart,
442
+ volumeStart,
443
+ volumeEnd,
444
+ postEnd,
445
+ startHeight,
446
+ endHeight,
447
+ halfWidth,
448
+ batchId,
449
+ center,
450
+ ellipsoid
451
+ );
486
452
  currentPositionIndex += 3;
487
- currentHeightIndex++;
488
- }
489
-
490
- const indices = attribsAndIndices.indices;
491
-
492
- transferableObjects.push(attribsAndIndices.startEllipsoidNormals.buffer);
493
- transferableObjects.push(attribsAndIndices.endEllipsoidNormals.buffer);
494
- transferableObjects.push(attribsAndIndices.startPositionAndHeights.buffer);
495
- transferableObjects.push(
496
- attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer
497
- );
498
- transferableObjects.push(attribsAndIndices.endPositionAndHeights.buffer);
499
- transferableObjects.push(attribsAndIndices.endFaceNormalAndHalfWidths.buffer);
500
- transferableObjects.push(attribsAndIndices.vertexBatchIds.buffer);
501
- transferableObjects.push(indices.buffer);
502
-
503
- let results = {
504
- indexDatatype:
505
- indices.BYTES_PER_ELEMENT === 2
506
- ? IndexDatatype.IndexDatatype.UNSIGNED_SHORT
507
- : IndexDatatype.IndexDatatype.UNSIGNED_INT,
508
- startEllipsoidNormals: attribsAndIndices.startEllipsoidNormals.buffer,
509
- endEllipsoidNormals: attribsAndIndices.endEllipsoidNormals.buffer,
510
- startPositionAndHeights: attribsAndIndices.startPositionAndHeights.buffer,
511
- startFaceNormalAndVertexCornerIds:
512
- attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer,
513
- endPositionAndHeights: attribsAndIndices.endPositionAndHeights.buffer,
514
- endFaceNormalAndHalfWidths:
515
- attribsAndIndices.endFaceNormalAndHalfWidths.buffer,
516
- vertexBatchIds: attribsAndIndices.vertexBatchIds.buffer,
517
- indices: indices.buffer,
518
- };
519
-
520
- if (parameters.keepDecodedPositions) {
521
- const positionOffsets = getPositionOffsets(counts);
522
- transferableObjects.push(positions.buffer, positionOffsets.buffer);
523
- results = combine.combine(results, {
524
- decodedPositions: positions.buffer,
525
- decodedPositionOffsets: positionOffsets.buffer,
526
- });
527
453
  }
528
-
529
- return results;
454
+ currentPositionIndex += 3;
455
+ currentHeightIndex++;
530
456
  }
531
- var createVectorTileClampedPolylines$1 = createTaskProcessorWorker(createVectorTileClampedPolylines);
532
-
533
- return createVectorTileClampedPolylines$1;
534
-
535
- }));
457
+ const indices = attribsAndIndices.indices;
458
+ transferableObjects.push(attribsAndIndices.startEllipsoidNormals.buffer);
459
+ transferableObjects.push(attribsAndIndices.endEllipsoidNormals.buffer);
460
+ transferableObjects.push(attribsAndIndices.startPositionAndHeights.buffer);
461
+ transferableObjects.push(
462
+ attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer
463
+ );
464
+ transferableObjects.push(attribsAndIndices.endPositionAndHeights.buffer);
465
+ transferableObjects.push(attribsAndIndices.endFaceNormalAndHalfWidths.buffer);
466
+ transferableObjects.push(attribsAndIndices.vertexBatchIds.buffer);
467
+ transferableObjects.push(indices.buffer);
468
+ let results = {
469
+ indexDatatype: indices.BYTES_PER_ELEMENT === 2 ? IndexDatatype_default.UNSIGNED_SHORT : IndexDatatype_default.UNSIGNED_INT,
470
+ startEllipsoidNormals: attribsAndIndices.startEllipsoidNormals.buffer,
471
+ endEllipsoidNormals: attribsAndIndices.endEllipsoidNormals.buffer,
472
+ startPositionAndHeights: attribsAndIndices.startPositionAndHeights.buffer,
473
+ startFaceNormalAndVertexCornerIds: attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer,
474
+ endPositionAndHeights: attribsAndIndices.endPositionAndHeights.buffer,
475
+ endFaceNormalAndHalfWidths: attribsAndIndices.endFaceNormalAndHalfWidths.buffer,
476
+ vertexBatchIds: attribsAndIndices.vertexBatchIds.buffer,
477
+ indices: indices.buffer
478
+ };
479
+ if (parameters.keepDecodedPositions) {
480
+ const positionOffsets = getPositionOffsets(counts);
481
+ transferableObjects.push(positions.buffer, positionOffsets.buffer);
482
+ results = combine_default(results, {
483
+ decodedPositions: positions.buffer,
484
+ decodedPositionOffsets: positionOffsets.buffer
485
+ });
486
+ }
487
+ return results;
488
+ }
489
+ var createVectorTileClampedPolylines_default = createTaskProcessorWorker_default(createVectorTileClampedPolylines);
490
+ export {
491
+ createVectorTileClampedPolylines_default as default
492
+ };