@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,445 +1,386 @@
1
- define(['./Transforms-a2a85221', './BoxGeometry-6f3da43d', './Matrix3-41c58dde', './Color-8a565ff2', './CylinderGeometry-ca070b87', './defaultValue-fe22d8c0', './EllipsoidGeometry-cb148ca2', './IndexDatatype-2643aa47', './Matrix2-e1298525', './createTaskProcessorWorker', './Check-6ede7e26', './Math-0a2ac845', './combine-d9581036', './RuntimeError-ef395448', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-ff5b4fb1', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './VertexFormat-030f11ff', './CylinderGeometryLibrary-7bf291b4'], (function (Transforms, BoxGeometry, Matrix3, Color, CylinderGeometry, defaultValue, EllipsoidGeometry, IndexDatatype, Matrix2, createTaskProcessorWorker, Check, Math$1, combine, RuntimeError, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, VertexFormat, CylinderGeometryLibrary) { 'use strict';
2
-
3
- /**
4
- * Describes a renderable batch of geometry.
5
- *
6
- * @alias Vector3DTileBatch
7
- * @constructor
8
- *
9
- * @param {object} options An object with the following properties:
10
- * @param {number} options.offset The offset of the batch into the indices buffer.
11
- * @param {number} options.count The number of indices in the batch.
12
- * @param {Color} options.color The color of the geometry in the batch.
13
- * @param {number[]} options.batchIds An array where each element is the batch id of the geometry in the batch.
14
- *
15
- * @private
16
- */
17
- function Vector3DTileBatch(options) {
18
- /**
19
- * The offset of the batch into the indices buffer.
20
- * @type {number}
21
- */
22
- this.offset = options.offset;
23
- /**
24
- * The number of indices in the batch.
25
- * @type {number}
26
- */
27
- this.count = options.count;
28
- /**
29
- * The color of the geometry in the batch.
30
- * @type {Color}
31
- */
32
- this.color = options.color;
33
- /**
34
- * An array where each element is the batch id of the geometry in the batch.
35
- * @type {number[]}
36
- */
37
- this.batchIds = options.batchIds;
38
- }
39
-
40
- const scratchCartesian = new Matrix3.Cartesian3();
41
-
42
- const packedBoxLength = Matrix2.Matrix4.packedLength + Matrix3.Cartesian3.packedLength;
43
- const packedCylinderLength = Matrix2.Matrix4.packedLength + 2;
44
- const packedEllipsoidLength = Matrix2.Matrix4.packedLength + Matrix3.Cartesian3.packedLength;
45
- const packedSphereLength = Matrix3.Cartesian3.packedLength + 1;
46
-
47
- const scratchModelMatrixAndBV = {
48
- modelMatrix: new Matrix2.Matrix4(),
49
- boundingVolume: new Transforms.BoundingSphere(),
50
- };
51
-
52
- function boxModelMatrixAndBoundingVolume(boxes, index) {
53
- let boxIndex = index * packedBoxLength;
54
-
55
- const dimensions = Matrix3.Cartesian3.unpack(boxes, boxIndex, scratchCartesian);
56
- boxIndex += Matrix3.Cartesian3.packedLength;
57
-
58
- const boxModelMatrix = Matrix2.Matrix4.unpack(
59
- boxes,
60
- boxIndex,
61
- scratchModelMatrixAndBV.modelMatrix
62
- );
63
- Matrix2.Matrix4.multiplyByScale(boxModelMatrix, dimensions, boxModelMatrix);
64
-
65
- const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
66
- Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO, boundingVolume.center);
67
- boundingVolume.radius = Math.sqrt(3.0);
68
-
69
- return scratchModelMatrixAndBV;
70
- }
71
-
72
- function cylinderModelMatrixAndBoundingVolume(cylinders, index) {
73
- let cylinderIndex = index * packedCylinderLength;
74
-
75
- const cylinderRadius = cylinders[cylinderIndex++];
76
- const length = cylinders[cylinderIndex++];
77
- const scale = Matrix3.Cartesian3.fromElements(
78
- cylinderRadius,
79
- cylinderRadius,
80
- length,
81
- scratchCartesian
82
- );
83
-
84
- const cylinderModelMatrix = Matrix2.Matrix4.unpack(
85
- cylinders,
86
- cylinderIndex,
87
- scratchModelMatrixAndBV.modelMatrix
88
- );
89
- Matrix2.Matrix4.multiplyByScale(cylinderModelMatrix, scale, cylinderModelMatrix);
90
-
91
- const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
92
- Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO, boundingVolume.center);
93
- boundingVolume.radius = Math.sqrt(2.0);
94
-
95
- return scratchModelMatrixAndBV;
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
+ Color_default
28
+ } from "./chunk-JS3AW5BK.js";
29
+ import {
30
+ CylinderGeometry_default
31
+ } from "./chunk-KD4Y7CZL.js";
32
+ import "./chunk-ZFOBYDGF.js";
33
+ import {
34
+ EllipsoidGeometry_default
35
+ } from "./chunk-XY7MGBKC.js";
36
+ import {
37
+ createTaskProcessorWorker_default
38
+ } from "./chunk-A4JVFBQ3.js";
39
+ import {
40
+ BoxGeometry_default
41
+ } from "./chunk-ZA25DG4Y.js";
42
+ import "./chunk-MPAZH4BF.js";
43
+ import "./chunk-QMEMZIJI.js";
44
+ import {
45
+ IndexDatatype_default
46
+ } from "./chunk-RW6LU2CJ.js";
47
+ import "./chunk-EW2GWJYB.js";
48
+ import "./chunk-X4SU25DT.js";
49
+ import {
50
+ BoundingSphere_default
51
+ } from "./chunk-PFQBCKBM.js";
52
+ import "./chunk-QJ3DFBH3.js";
53
+ import {
54
+ Matrix4_default
55
+ } from "./chunk-DUHWWBQQ.js";
56
+ import "./chunk-LLUNNUJV.js";
57
+ import {
58
+ Cartesian3_default
59
+ } from "./chunk-PCJWUS4M.js";
60
+ import "./chunk-N3JIFFX2.js";
61
+ import "./chunk-AHKEZ2OE.js";
62
+ import "./chunk-ABADGKYE.js";
63
+ import "./chunk-WXTV4ATB.js";
64
+ import "./chunk-4MFFIWUA.js";
65
+ import {
66
+ defined_default
67
+ } from "./chunk-6BTKZDRG.js";
68
+
69
+ // packages/engine/Source/Scene/Vector3DTileBatch.js
70
+ function Vector3DTileBatch(options) {
71
+ this.offset = options.offset;
72
+ this.count = options.count;
73
+ this.color = options.color;
74
+ this.batchIds = options.batchIds;
75
+ }
76
+ var Vector3DTileBatch_default = Vector3DTileBatch;
77
+
78
+ // packages/engine/Source/Workers/createVectorTileGeometries.js
79
+ var scratchCartesian = new Cartesian3_default();
80
+ var packedBoxLength = Matrix4_default.packedLength + Cartesian3_default.packedLength;
81
+ var packedCylinderLength = Matrix4_default.packedLength + 2;
82
+ var packedEllipsoidLength = Matrix4_default.packedLength + Cartesian3_default.packedLength;
83
+ var packedSphereLength = Cartesian3_default.packedLength + 1;
84
+ var scratchModelMatrixAndBV = {
85
+ modelMatrix: new Matrix4_default(),
86
+ boundingVolume: new BoundingSphere_default()
87
+ };
88
+ function boxModelMatrixAndBoundingVolume(boxes, index) {
89
+ let boxIndex = index * packedBoxLength;
90
+ const dimensions = Cartesian3_default.unpack(boxes, boxIndex, scratchCartesian);
91
+ boxIndex += Cartesian3_default.packedLength;
92
+ const boxModelMatrix = Matrix4_default.unpack(
93
+ boxes,
94
+ boxIndex,
95
+ scratchModelMatrixAndBV.modelMatrix
96
+ );
97
+ Matrix4_default.multiplyByScale(boxModelMatrix, dimensions, boxModelMatrix);
98
+ const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
99
+ Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
100
+ boundingVolume.radius = Math.sqrt(3);
101
+ return scratchModelMatrixAndBV;
102
+ }
103
+ function cylinderModelMatrixAndBoundingVolume(cylinders, index) {
104
+ let cylinderIndex = index * packedCylinderLength;
105
+ const cylinderRadius = cylinders[cylinderIndex++];
106
+ const length = cylinders[cylinderIndex++];
107
+ const scale = Cartesian3_default.fromElements(
108
+ cylinderRadius,
109
+ cylinderRadius,
110
+ length,
111
+ scratchCartesian
112
+ );
113
+ const cylinderModelMatrix = Matrix4_default.unpack(
114
+ cylinders,
115
+ cylinderIndex,
116
+ scratchModelMatrixAndBV.modelMatrix
117
+ );
118
+ Matrix4_default.multiplyByScale(cylinderModelMatrix, scale, cylinderModelMatrix);
119
+ const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
120
+ Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
121
+ boundingVolume.radius = Math.sqrt(2);
122
+ return scratchModelMatrixAndBV;
123
+ }
124
+ function ellipsoidModelMatrixAndBoundingVolume(ellipsoids, index) {
125
+ let ellipsoidIndex = index * packedEllipsoidLength;
126
+ const radii = Cartesian3_default.unpack(ellipsoids, ellipsoidIndex, scratchCartesian);
127
+ ellipsoidIndex += Cartesian3_default.packedLength;
128
+ const ellipsoidModelMatrix = Matrix4_default.unpack(
129
+ ellipsoids,
130
+ ellipsoidIndex,
131
+ scratchModelMatrixAndBV.modelMatrix
132
+ );
133
+ Matrix4_default.multiplyByScale(ellipsoidModelMatrix, radii, ellipsoidModelMatrix);
134
+ const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
135
+ Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
136
+ boundingVolume.radius = 1;
137
+ return scratchModelMatrixAndBV;
138
+ }
139
+ function sphereModelMatrixAndBoundingVolume(spheres, index) {
140
+ let sphereIndex = index * packedSphereLength;
141
+ const sphereRadius = spheres[sphereIndex++];
142
+ const sphereTranslation = Cartesian3_default.unpack(
143
+ spheres,
144
+ sphereIndex,
145
+ scratchCartesian
146
+ );
147
+ const sphereModelMatrix = Matrix4_default.fromTranslation(
148
+ sphereTranslation,
149
+ scratchModelMatrixAndBV.modelMatrix
150
+ );
151
+ Matrix4_default.multiplyByUniformScale(
152
+ sphereModelMatrix,
153
+ sphereRadius,
154
+ sphereModelMatrix
155
+ );
156
+ const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
157
+ Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
158
+ boundingVolume.radius = 1;
159
+ return scratchModelMatrixAndBV;
160
+ }
161
+ var scratchPosition = new Cartesian3_default();
162
+ function createPrimitive(options, primitive, primitiveBatchIds, geometry, getModelMatrixAndBoundingVolume) {
163
+ if (!defined_default(primitive)) {
164
+ return;
96
165
  }
97
-
98
- function ellipsoidModelMatrixAndBoundingVolume(ellipsoids, index) {
99
- let ellipsoidIndex = index * packedEllipsoidLength;
100
-
101
- const radii = Matrix3.Cartesian3.unpack(ellipsoids, ellipsoidIndex, scratchCartesian);
102
- ellipsoidIndex += Matrix3.Cartesian3.packedLength;
103
-
104
- const ellipsoidModelMatrix = Matrix2.Matrix4.unpack(
105
- ellipsoids,
106
- ellipsoidIndex,
107
- scratchModelMatrixAndBV.modelMatrix
166
+ const numberOfPrimitives = primitiveBatchIds.length;
167
+ const geometryPositions = geometry.attributes.position.values;
168
+ const geometryIndices = geometry.indices;
169
+ const positions = options.positions;
170
+ const vertexBatchIds = options.vertexBatchIds;
171
+ const indices = options.indices;
172
+ const batchIds = options.batchIds;
173
+ const batchTableColors = options.batchTableColors;
174
+ const batchedIndices = options.batchedIndices;
175
+ const indexOffsets = options.indexOffsets;
176
+ const indexCounts = options.indexCounts;
177
+ const boundingVolumes = options.boundingVolumes;
178
+ const modelMatrix = options.modelMatrix;
179
+ const center = options.center;
180
+ let positionOffset = options.positionOffset;
181
+ let batchIdIndex = options.batchIdIndex;
182
+ let indexOffset = options.indexOffset;
183
+ const batchedIndicesOffset = options.batchedIndicesOffset;
184
+ for (let i = 0; i < numberOfPrimitives; ++i) {
185
+ const primitiveModelMatrixAndBV = getModelMatrixAndBoundingVolume(
186
+ primitive,
187
+ i
108
188
  );
109
- Matrix2.Matrix4.multiplyByScale(ellipsoidModelMatrix, radii, ellipsoidModelMatrix);
110
-
111
- const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
112
- Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO, boundingVolume.center);
113
- boundingVolume.radius = 1.0;
114
-
115
- return scratchModelMatrixAndBV;
116
- }
117
-
118
- function sphereModelMatrixAndBoundingVolume(spheres, index) {
119
- let sphereIndex = index * packedSphereLength;
120
-
121
- const sphereRadius = spheres[sphereIndex++];
122
-
123
- const sphereTranslation = Matrix3.Cartesian3.unpack(
124
- spheres,
125
- sphereIndex,
126
- scratchCartesian
127
- );
128
- const sphereModelMatrix = Matrix2.Matrix4.fromTranslation(
129
- sphereTranslation,
130
- scratchModelMatrixAndBV.modelMatrix
131
- );
132
- Matrix2.Matrix4.multiplyByUniformScale(
133
- sphereModelMatrix,
134
- sphereRadius,
135
- sphereModelMatrix
136
- );
137
-
138
- const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
139
- Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO, boundingVolume.center);
140
- boundingVolume.radius = 1.0;
141
-
142
- return scratchModelMatrixAndBV;
143
- }
144
-
145
- const scratchPosition = new Matrix3.Cartesian3();
146
-
147
- function createPrimitive(
148
- options,
149
- primitive,
150
- primitiveBatchIds,
151
- geometry,
152
- getModelMatrixAndBoundingVolume
153
- ) {
154
- if (!defaultValue.defined(primitive)) {
155
- return;
189
+ const primitiveModelMatrix = primitiveModelMatrixAndBV.modelMatrix;
190
+ Matrix4_default.multiply(modelMatrix, primitiveModelMatrix, primitiveModelMatrix);
191
+ const batchId = primitiveBatchIds[i];
192
+ const positionsLength = geometryPositions.length;
193
+ for (let j = 0; j < positionsLength; j += 3) {
194
+ const position = Cartesian3_default.unpack(geometryPositions, j, scratchPosition);
195
+ Matrix4_default.multiplyByPoint(primitiveModelMatrix, position, position);
196
+ Cartesian3_default.subtract(position, center, position);
197
+ Cartesian3_default.pack(position, positions, positionOffset * 3 + j);
198
+ vertexBatchIds[batchIdIndex++] = batchId;
156
199
  }
157
-
158
- const numberOfPrimitives = primitiveBatchIds.length;
159
- const geometryPositions = geometry.attributes.position.values;
160
- const geometryIndices = geometry.indices;
161
-
162
- const positions = options.positions;
163
- const vertexBatchIds = options.vertexBatchIds;
164
- const indices = options.indices;
165
-
166
- const batchIds = options.batchIds;
167
- const batchTableColors = options.batchTableColors;
168
- const batchedIndices = options.batchedIndices;
169
- const indexOffsets = options.indexOffsets;
170
- const indexCounts = options.indexCounts;
171
- const boundingVolumes = options.boundingVolumes;
172
-
173
- const modelMatrix = options.modelMatrix;
174
- const center = options.center;
175
-
176
- let positionOffset = options.positionOffset;
177
- let batchIdIndex = options.batchIdIndex;
178
- let indexOffset = options.indexOffset;
179
- const batchedIndicesOffset = options.batchedIndicesOffset;
180
-
181
- for (let i = 0; i < numberOfPrimitives; ++i) {
182
- const primitiveModelMatrixAndBV = getModelMatrixAndBoundingVolume(
183
- primitive,
184
- i
185
- );
186
- const primitiveModelMatrix = primitiveModelMatrixAndBV.modelMatrix;
187
- Matrix2.Matrix4.multiply(modelMatrix, primitiveModelMatrix, primitiveModelMatrix);
188
-
189
- const batchId = primitiveBatchIds[i];
190
-
191
- const positionsLength = geometryPositions.length;
192
- for (let j = 0; j < positionsLength; j += 3) {
193
- const position = Matrix3.Cartesian3.unpack(geometryPositions, j, scratchPosition);
194
- Matrix2.Matrix4.multiplyByPoint(primitiveModelMatrix, position, position);
195
- Matrix3.Cartesian3.subtract(position, center, position);
196
-
197
- Matrix3.Cartesian3.pack(position, positions, positionOffset * 3 + j);
198
- vertexBatchIds[batchIdIndex++] = batchId;
199
- }
200
-
201
- const indicesLength = geometryIndices.length;
202
- for (let k = 0; k < indicesLength; ++k) {
203
- indices[indexOffset + k] = geometryIndices[k] + positionOffset;
204
- }
205
-
206
- const offset = i + batchedIndicesOffset;
207
- batchedIndices[offset] = new Vector3DTileBatch({
208
- offset: indexOffset,
209
- count: indicesLength,
210
- color: Color.Color.fromRgba(batchTableColors[batchId]),
211
- batchIds: [batchId],
212
- });
213
- batchIds[offset] = batchId;
214
- indexOffsets[offset] = indexOffset;
215
- indexCounts[offset] = indicesLength;
216
- boundingVolumes[offset] = Transforms.BoundingSphere.transform(
217
- primitiveModelMatrixAndBV.boundingVolume,
218
- primitiveModelMatrix
219
- );
220
-
221
- positionOffset += positionsLength / 3;
222
- indexOffset += indicesLength;
200
+ const indicesLength = geometryIndices.length;
201
+ for (let k = 0; k < indicesLength; ++k) {
202
+ indices[indexOffset + k] = geometryIndices[k] + positionOffset;
223
203
  }
224
-
225
- options.positionOffset = positionOffset;
226
- options.batchIdIndex = batchIdIndex;
227
- options.indexOffset = indexOffset;
228
- options.batchedIndicesOffset += numberOfPrimitives;
204
+ const offset = i + batchedIndicesOffset;
205
+ batchedIndices[offset] = new Vector3DTileBatch_default({
206
+ offset: indexOffset,
207
+ count: indicesLength,
208
+ color: Color_default.fromRgba(batchTableColors[batchId]),
209
+ batchIds: [batchId]
210
+ });
211
+ batchIds[offset] = batchId;
212
+ indexOffsets[offset] = indexOffset;
213
+ indexCounts[offset] = indicesLength;
214
+ boundingVolumes[offset] = BoundingSphere_default.transform(
215
+ primitiveModelMatrixAndBV.boundingVolume,
216
+ primitiveModelMatrix
217
+ );
218
+ positionOffset += positionsLength / 3;
219
+ indexOffset += indicesLength;
229
220
  }
230
-
231
- const scratchCenter = new Matrix3.Cartesian3();
232
- const scratchMatrix4 = new Matrix2.Matrix4();
233
-
234
- function unpackBuffer(buffer) {
235
- const packedBuffer = new Float64Array(buffer);
236
-
237
- let offset = 0;
238
- Matrix3.Cartesian3.unpack(packedBuffer, offset, scratchCenter);
239
- offset += Matrix3.Cartesian3.packedLength;
240
-
241
- Matrix2.Matrix4.unpack(packedBuffer, offset, scratchMatrix4);
221
+ options.positionOffset = positionOffset;
222
+ options.batchIdIndex = batchIdIndex;
223
+ options.indexOffset = indexOffset;
224
+ options.batchedIndicesOffset += numberOfPrimitives;
225
+ }
226
+ var scratchCenter = new Cartesian3_default();
227
+ var scratchMatrix4 = new Matrix4_default();
228
+ function unpackBuffer(buffer) {
229
+ const packedBuffer = new Float64Array(buffer);
230
+ let offset = 0;
231
+ Cartesian3_default.unpack(packedBuffer, offset, scratchCenter);
232
+ offset += Cartesian3_default.packedLength;
233
+ Matrix4_default.unpack(packedBuffer, offset, scratchMatrix4);
234
+ }
235
+ function packedBatchedIndicesLength(batchedIndices) {
236
+ const length = batchedIndices.length;
237
+ let count = 0;
238
+ for (let i = 0; i < length; ++i) {
239
+ count += Color_default.packedLength + 3 + batchedIndices[i].batchIds.length;
242
240
  }
243
-
244
- function packedBatchedIndicesLength(batchedIndices) {
245
- const length = batchedIndices.length;
246
- let count = 0;
247
- for (let i = 0; i < length; ++i) {
248
- count += Color.Color.packedLength + 3 + batchedIndices[i].batchIds.length;
249
- }
250
- return count;
241
+ return count;
242
+ }
243
+ function packBuffer(indicesBytesPerElement, batchedIndices, boundingVolumes) {
244
+ const numBVs = boundingVolumes.length;
245
+ const length = 1 + 1 + numBVs * BoundingSphere_default.packedLength + 1 + packedBatchedIndicesLength(batchedIndices);
246
+ const packedBuffer = new Float64Array(length);
247
+ let offset = 0;
248
+ packedBuffer[offset++] = indicesBytesPerElement;
249
+ packedBuffer[offset++] = numBVs;
250
+ for (let i = 0; i < numBVs; ++i) {
251
+ BoundingSphere_default.pack(boundingVolumes[i], packedBuffer, offset);
252
+ offset += BoundingSphere_default.packedLength;
251
253
  }
252
-
253
- function packBuffer(indicesBytesPerElement, batchedIndices, boundingVolumes) {
254
- const numBVs = boundingVolumes.length;
255
- const length =
256
- 1 +
257
- 1 +
258
- numBVs * Transforms.BoundingSphere.packedLength +
259
- 1 +
260
- packedBatchedIndicesLength(batchedIndices);
261
-
262
- const packedBuffer = new Float64Array(length);
263
-
264
- let offset = 0;
265
- packedBuffer[offset++] = indicesBytesPerElement;
266
- packedBuffer[offset++] = numBVs;
267
-
268
- for (let i = 0; i < numBVs; ++i) {
269
- Transforms.BoundingSphere.pack(boundingVolumes[i], packedBuffer, offset);
270
- offset += Transforms.BoundingSphere.packedLength;
254
+ const indicesLength = batchedIndices.length;
255
+ packedBuffer[offset++] = indicesLength;
256
+ for (let j = 0; j < indicesLength; ++j) {
257
+ const batchedIndex = batchedIndices[j];
258
+ Color_default.pack(batchedIndex.color, packedBuffer, offset);
259
+ offset += Color_default.packedLength;
260
+ packedBuffer[offset++] = batchedIndex.offset;
261
+ packedBuffer[offset++] = batchedIndex.count;
262
+ const batchIds = batchedIndex.batchIds;
263
+ const batchIdsLength = batchIds.length;
264
+ packedBuffer[offset++] = batchIdsLength;
265
+ for (let k = 0; k < batchIdsLength; ++k) {
266
+ packedBuffer[offset++] = batchIds[k];
271
267
  }
272
-
273
- const indicesLength = batchedIndices.length;
274
- packedBuffer[offset++] = indicesLength;
275
-
276
- for (let j = 0; j < indicesLength; ++j) {
277
- const batchedIndex = batchedIndices[j];
278
-
279
- Color.Color.pack(batchedIndex.color, packedBuffer, offset);
280
- offset += Color.Color.packedLength;
281
-
282
- packedBuffer[offset++] = batchedIndex.offset;
283
- packedBuffer[offset++] = batchedIndex.count;
284
-
285
- const batchIds = batchedIndex.batchIds;
286
- const batchIdsLength = batchIds.length;
287
- packedBuffer[offset++] = batchIdsLength;
288
-
289
- for (let k = 0; k < batchIdsLength; ++k) {
290
- packedBuffer[offset++] = batchIds[k];
291
- }
292
- }
293
-
294
- return packedBuffer;
295
- }
296
-
297
- function createVectorTileGeometries(parameters, transferableObjects) {
298
- const boxes = defaultValue.defined(parameters.boxes)
299
- ? new Float32Array(parameters.boxes)
300
- : undefined;
301
- const boxBatchIds = defaultValue.defined(parameters.boxBatchIds)
302
- ? new Uint16Array(parameters.boxBatchIds)
303
- : undefined;
304
- const cylinders = defaultValue.defined(parameters.cylinders)
305
- ? new Float32Array(parameters.cylinders)
306
- : undefined;
307
- const cylinderBatchIds = defaultValue.defined(parameters.cylinderBatchIds)
308
- ? new Uint16Array(parameters.cylinderBatchIds)
309
- : undefined;
310
- const ellipsoids = defaultValue.defined(parameters.ellipsoids)
311
- ? new Float32Array(parameters.ellipsoids)
312
- : undefined;
313
- const ellipsoidBatchIds = defaultValue.defined(parameters.ellipsoidBatchIds)
314
- ? new Uint16Array(parameters.ellipsoidBatchIds)
315
- : undefined;
316
- const spheres = defaultValue.defined(parameters.spheres)
317
- ? new Float32Array(parameters.spheres)
318
- : undefined;
319
- const sphereBatchIds = defaultValue.defined(parameters.sphereBatchIds)
320
- ? new Uint16Array(parameters.sphereBatchIds)
321
- : undefined;
322
-
323
- const numberOfBoxes = defaultValue.defined(boxes) ? boxBatchIds.length : 0;
324
- const numberOfCylinders = defaultValue.defined(cylinders) ? cylinderBatchIds.length : 0;
325
- const numberOfEllipsoids = defaultValue.defined(ellipsoids) ? ellipsoidBatchIds.length : 0;
326
- const numberOfSpheres = defaultValue.defined(spheres) ? sphereBatchIds.length : 0;
327
-
328
- const boxGeometry = BoxGeometry.BoxGeometry.getUnitBox();
329
- const cylinderGeometry = CylinderGeometry.CylinderGeometry.getUnitCylinder();
330
- const ellipsoidGeometry = EllipsoidGeometry.EllipsoidGeometry.getUnitEllipsoid();
331
-
332
- const boxPositions = boxGeometry.attributes.position.values;
333
- const cylinderPositions = cylinderGeometry.attributes.position.values;
334
- const ellipsoidPositions = ellipsoidGeometry.attributes.position.values;
335
-
336
- let numberOfPositions = boxPositions.length * numberOfBoxes;
337
- numberOfPositions += cylinderPositions.length * numberOfCylinders;
338
- numberOfPositions +=
339
- ellipsoidPositions.length * (numberOfEllipsoids + numberOfSpheres);
340
-
341
- const boxIndices = boxGeometry.indices;
342
- const cylinderIndices = cylinderGeometry.indices;
343
- const ellipsoidIndices = ellipsoidGeometry.indices;
344
-
345
- let numberOfIndices = boxIndices.length * numberOfBoxes;
346
- numberOfIndices += cylinderIndices.length * numberOfCylinders;
347
- numberOfIndices +=
348
- ellipsoidIndices.length * (numberOfEllipsoids + numberOfSpheres);
349
-
350
- const positions = new Float32Array(numberOfPositions);
351
- const vertexBatchIds = new Uint16Array(numberOfPositions / 3);
352
- const indices = IndexDatatype.IndexDatatype.createTypedArray(
353
- numberOfPositions / 3,
354
- numberOfIndices
355
- );
356
-
357
- const numberOfGeometries =
358
- numberOfBoxes + numberOfCylinders + numberOfEllipsoids + numberOfSpheres;
359
- const batchIds = new Uint16Array(numberOfGeometries);
360
- const batchedIndices = new Array(numberOfGeometries);
361
- const indexOffsets = new Uint32Array(numberOfGeometries);
362
- const indexCounts = new Uint32Array(numberOfGeometries);
363
- const boundingVolumes = new Array(numberOfGeometries);
364
-
365
- unpackBuffer(parameters.packedBuffer);
366
-
367
- const options = {
368
- batchTableColors: new Uint32Array(parameters.batchTableColors),
369
- positions: positions,
370
- vertexBatchIds: vertexBatchIds,
371
- indices: indices,
372
- batchIds: batchIds,
373
- batchedIndices: batchedIndices,
374
- indexOffsets: indexOffsets,
375
- indexCounts: indexCounts,
376
- boundingVolumes: boundingVolumes,
377
- positionOffset: 0,
378
- batchIdIndex: 0,
379
- indexOffset: 0,
380
- batchedIndicesOffset: 0,
381
- modelMatrix: scratchMatrix4,
382
- center: scratchCenter,
383
- };
384
-
385
- createPrimitive(
386
- options,
387
- boxes,
388
- boxBatchIds,
389
- boxGeometry,
390
- boxModelMatrixAndBoundingVolume
391
- );
392
- createPrimitive(
393
- options,
394
- cylinders,
395
- cylinderBatchIds,
396
- cylinderGeometry,
397
- cylinderModelMatrixAndBoundingVolume
398
- );
399
- createPrimitive(
400
- options,
401
- ellipsoids,
402
- ellipsoidBatchIds,
403
- ellipsoidGeometry,
404
- ellipsoidModelMatrixAndBoundingVolume
405
- );
406
- createPrimitive(
407
- options,
408
- spheres,
409
- sphereBatchIds,
410
- ellipsoidGeometry,
411
- sphereModelMatrixAndBoundingVolume
412
- );
413
-
414
- const packedBuffer = packBuffer(
415
- indices.BYTES_PER_ELEMENT,
416
- batchedIndices,
417
- boundingVolumes
418
- );
419
- transferableObjects.push(
420
- positions.buffer,
421
- vertexBatchIds.buffer,
422
- indices.buffer
423
- );
424
- transferableObjects.push(
425
- batchIds.buffer,
426
- indexOffsets.buffer,
427
- indexCounts.buffer
428
- );
429
- transferableObjects.push(packedBuffer.buffer);
430
-
431
- return {
432
- positions: positions.buffer,
433
- vertexBatchIds: vertexBatchIds.buffer,
434
- indices: indices.buffer,
435
- indexOffsets: indexOffsets.buffer,
436
- indexCounts: indexCounts.buffer,
437
- batchIds: batchIds.buffer,
438
- packedBuffer: packedBuffer.buffer,
439
- };
440
268
  }
441
- var createVectorTileGeometries$1 = createTaskProcessorWorker(createVectorTileGeometries);
442
-
443
- return createVectorTileGeometries$1;
444
-
445
- }));
269
+ return packedBuffer;
270
+ }
271
+ function createVectorTileGeometries(parameters, transferableObjects) {
272
+ const boxes = defined_default(parameters.boxes) ? new Float32Array(parameters.boxes) : void 0;
273
+ const boxBatchIds = defined_default(parameters.boxBatchIds) ? new Uint16Array(parameters.boxBatchIds) : void 0;
274
+ const cylinders = defined_default(parameters.cylinders) ? new Float32Array(parameters.cylinders) : void 0;
275
+ const cylinderBatchIds = defined_default(parameters.cylinderBatchIds) ? new Uint16Array(parameters.cylinderBatchIds) : void 0;
276
+ const ellipsoids = defined_default(parameters.ellipsoids) ? new Float32Array(parameters.ellipsoids) : void 0;
277
+ const ellipsoidBatchIds = defined_default(parameters.ellipsoidBatchIds) ? new Uint16Array(parameters.ellipsoidBatchIds) : void 0;
278
+ const spheres = defined_default(parameters.spheres) ? new Float32Array(parameters.spheres) : void 0;
279
+ const sphereBatchIds = defined_default(parameters.sphereBatchIds) ? new Uint16Array(parameters.sphereBatchIds) : void 0;
280
+ const numberOfBoxes = defined_default(boxes) ? boxBatchIds.length : 0;
281
+ const numberOfCylinders = defined_default(cylinders) ? cylinderBatchIds.length : 0;
282
+ const numberOfEllipsoids = defined_default(ellipsoids) ? ellipsoidBatchIds.length : 0;
283
+ const numberOfSpheres = defined_default(spheres) ? sphereBatchIds.length : 0;
284
+ const boxGeometry = BoxGeometry_default.getUnitBox();
285
+ const cylinderGeometry = CylinderGeometry_default.getUnitCylinder();
286
+ const ellipsoidGeometry = EllipsoidGeometry_default.getUnitEllipsoid();
287
+ const boxPositions = boxGeometry.attributes.position.values;
288
+ const cylinderPositions = cylinderGeometry.attributes.position.values;
289
+ const ellipsoidPositions = ellipsoidGeometry.attributes.position.values;
290
+ let numberOfPositions = boxPositions.length * numberOfBoxes;
291
+ numberOfPositions += cylinderPositions.length * numberOfCylinders;
292
+ numberOfPositions += ellipsoidPositions.length * (numberOfEllipsoids + numberOfSpheres);
293
+ const boxIndices = boxGeometry.indices;
294
+ const cylinderIndices = cylinderGeometry.indices;
295
+ const ellipsoidIndices = ellipsoidGeometry.indices;
296
+ let numberOfIndices = boxIndices.length * numberOfBoxes;
297
+ numberOfIndices += cylinderIndices.length * numberOfCylinders;
298
+ numberOfIndices += ellipsoidIndices.length * (numberOfEllipsoids + numberOfSpheres);
299
+ const positions = new Float32Array(numberOfPositions);
300
+ const vertexBatchIds = new Uint16Array(numberOfPositions / 3);
301
+ const indices = IndexDatatype_default.createTypedArray(
302
+ numberOfPositions / 3,
303
+ numberOfIndices
304
+ );
305
+ const numberOfGeometries = numberOfBoxes + numberOfCylinders + numberOfEllipsoids + numberOfSpheres;
306
+ const batchIds = new Uint16Array(numberOfGeometries);
307
+ const batchedIndices = new Array(numberOfGeometries);
308
+ const indexOffsets = new Uint32Array(numberOfGeometries);
309
+ const indexCounts = new Uint32Array(numberOfGeometries);
310
+ const boundingVolumes = new Array(numberOfGeometries);
311
+ unpackBuffer(parameters.packedBuffer);
312
+ const options = {
313
+ batchTableColors: new Uint32Array(parameters.batchTableColors),
314
+ positions,
315
+ vertexBatchIds,
316
+ indices,
317
+ batchIds,
318
+ batchedIndices,
319
+ indexOffsets,
320
+ indexCounts,
321
+ boundingVolumes,
322
+ positionOffset: 0,
323
+ batchIdIndex: 0,
324
+ indexOffset: 0,
325
+ batchedIndicesOffset: 0,
326
+ modelMatrix: scratchMatrix4,
327
+ center: scratchCenter
328
+ };
329
+ createPrimitive(
330
+ options,
331
+ boxes,
332
+ boxBatchIds,
333
+ boxGeometry,
334
+ boxModelMatrixAndBoundingVolume
335
+ );
336
+ createPrimitive(
337
+ options,
338
+ cylinders,
339
+ cylinderBatchIds,
340
+ cylinderGeometry,
341
+ cylinderModelMatrixAndBoundingVolume
342
+ );
343
+ createPrimitive(
344
+ options,
345
+ ellipsoids,
346
+ ellipsoidBatchIds,
347
+ ellipsoidGeometry,
348
+ ellipsoidModelMatrixAndBoundingVolume
349
+ );
350
+ createPrimitive(
351
+ options,
352
+ spheres,
353
+ sphereBatchIds,
354
+ ellipsoidGeometry,
355
+ sphereModelMatrixAndBoundingVolume
356
+ );
357
+ const packedBuffer = packBuffer(
358
+ indices.BYTES_PER_ELEMENT,
359
+ batchedIndices,
360
+ boundingVolumes
361
+ );
362
+ transferableObjects.push(
363
+ positions.buffer,
364
+ vertexBatchIds.buffer,
365
+ indices.buffer
366
+ );
367
+ transferableObjects.push(
368
+ batchIds.buffer,
369
+ indexOffsets.buffer,
370
+ indexCounts.buffer
371
+ );
372
+ transferableObjects.push(packedBuffer.buffer);
373
+ return {
374
+ positions: positions.buffer,
375
+ vertexBatchIds: vertexBatchIds.buffer,
376
+ indices: indices.buffer,
377
+ indexOffsets: indexOffsets.buffer,
378
+ indexCounts: indexCounts.buffer,
379
+ batchIds: batchIds.buffer,
380
+ packedBuffer: packedBuffer.buffer
381
+ };
382
+ }
383
+ var createVectorTileGeometries_default = createTaskProcessorWorker_default(createVectorTileGeometries);
384
+ export {
385
+ createVectorTileGeometries_default as default
386
+ };