@vcmap/ui 5.0.0-rc.30 → 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 (323) hide show
  1. package/build/buildHelpers.js +4 -3
  2. package/config/base.config.json +5 -4
  3. package/config/dev.config.json +4 -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.eaf7cc.js → cesium.77d0f7.js} +8915 -13165
  109. package/dist/assets/cesium.js +1 -1
  110. package/dist/assets/{core.b16511.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.4bbf0f.js → ol.e48649.js} +4 -4
  114. package/dist/assets/ol.js +1 -1
  115. package/dist/assets/{ui.ab815e.css → ui.50452a.css} +1 -1
  116. package/dist/assets/{ui.ab815e.js → ui.50452a.js} +4270 -4355
  117. package/dist/assets/ui.js +1 -1
  118. package/dist/assets/vue.js +2 -2
  119. package/dist/assets/{vuetify.ea3fa8.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/package.json +5 -5
  124. package/plugins/@vcmap-show-case/plugin-editors/PluginEditors.vue +119 -0
  125. package/plugins/@vcmap-show-case/plugin-editors/index.js +41 -0
  126. package/plugins/@vcmap-show-case/plugin-editors/package.json +5 -0
  127. package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ProjectSelectorComponent.vue +1 -1
  128. package/plugins/{@vcmap → @vcmap-show-case}/project-selector/config.json +2 -2
  129. package/plugins/{@vcmap → @vcmap-show-case}/project-selector/package.json +1 -1
  130. package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/package.json +1 -1
  131. package/plugins/@vcmap-show-case/table-example/DataTableExample.vue +1 -1
  132. package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/ThemeChangerComponent.vue +1 -1
  133. package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/config.json +2 -2
  134. package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/package.json +1 -1
  135. package/plugins/@vcmap-show-case/vector-properties-example/vectorPropertiesExample.vue +20 -1
  136. package/plugins/package.json +6 -2
  137. package/src/application/VcsAttributions.vue +27 -20
  138. package/src/components/form-inputs-controls/VcsChipArrayInput.vue +22 -14
  139. package/src/components/form-inputs-controls/VcsSlider.vue +1 -0
  140. package/src/components/icons/2DAreaIcon.vue +2 -17
  141. package/src/components/icons/2DDistanceIcon.vue +0 -3
  142. package/src/components/icons/3DAreaIcon.vue +2 -17
  143. package/src/components/icons/3DDistanceIcon.vue +0 -3
  144. package/src/components/icons/3DHeightIcon.vue +0 -3
  145. package/src/components/icons/AngleIcon.vue +0 -1
  146. package/src/components/icons/AssociationsIcon.vue +1 -3
  147. package/src/components/icons/AxisIcon.vue +0 -4
  148. package/src/components/icons/BoundingBoxIcon.vue +1 -4
  149. package/src/components/icons/CheckboxIcon.vue +0 -2
  150. package/src/components/icons/CheckboxIndeterminateIcon.vue +1 -5
  151. package/src/components/icons/CircleIcon.vue +1 -6
  152. package/src/components/icons/ClippingHorizontalIcon.vue +0 -1
  153. package/src/components/icons/ClippingIcon.vue +0 -1
  154. package/src/components/icons/ClippingVerticalIcon.vue +0 -1
  155. package/src/components/icons/ColorPickerIcon.vue +0 -1
  156. package/src/components/icons/ColorSwatchIcon.vue +0 -2
  157. package/src/components/icons/CommentIcon.vue +0 -1
  158. package/src/components/icons/CompassIcon.vue +0 -2
  159. package/src/components/icons/ComponentsIcon.vue +0 -1
  160. package/src/components/icons/ConeIcon.vue +1 -4
  161. package/src/components/icons/DimensionsHouseIcon.vue +0 -2
  162. package/src/components/icons/EditIcon.vue +0 -1
  163. package/src/components/icons/EditVerticesIcon.vue +0 -4
  164. package/src/components/icons/ElevationProfileIcon.vue +1 -13
  165. package/src/components/icons/ExportAreaIcon.vue +0 -1
  166. package/src/components/icons/ExportFlightIcon.vue +0 -1
  167. package/src/components/icons/ExportIcon.vue +12 -8
  168. package/src/components/icons/ExternalLinkIcon.vue +0 -2
  169. package/src/components/icons/FastForwardIcon.vue +0 -1
  170. package/src/components/icons/FilterIcon.vue +0 -1
  171. package/src/components/icons/GlobeNatureIcon.vue +0 -3
  172. package/src/components/icons/GroundIcon.vue +0 -1
  173. package/src/components/icons/HealthCareIndustriesIcon.vue +1 -11
  174. package/src/components/icons/HideIcon.vue +0 -1
  175. package/src/components/icons/HomePointIcon.vue +0 -1
  176. package/src/components/icons/HospitalsIcon.vue +1 -20
  177. package/src/components/icons/HouseIcon.vue +3 -13
  178. package/src/components/icons/ImportIcon.vue +6 -14
  179. package/src/components/icons/InfoIcon.vue +0 -2
  180. package/src/components/icons/KebabIcon.vue +1 -9
  181. package/src/components/icons/LabelIcon.vue +0 -2
  182. package/src/components/icons/LayersIcon.vue +1 -9
  183. package/src/components/icons/LegendIcon.vue +0 -1
  184. package/src/components/icons/LineIcon.vue +0 -2
  185. package/src/components/icons/LinkIcon.vue +0 -1
  186. package/src/components/icons/LogoutIcon.vue +0 -1
  187. package/src/components/icons/MapIcon.vue +0 -2
  188. package/src/components/icons/MenuIcon.vue +1 -5
  189. package/src/components/icons/MinusIcon.vue +0 -2
  190. package/src/components/icons/ObjectSelectIcon.vue +0 -2
  191. package/src/components/icons/ObliqueViewIcon.vue +0 -1
  192. package/src/components/icons/PdfIcon.vue +0 -1
  193. package/src/components/icons/PedestrianIcon.vue +0 -1
  194. package/src/components/icons/PenIcon.vue +0 -1
  195. package/src/components/icons/PlayCircleIcon.vue +1 -8
  196. package/src/components/icons/PlusIcon.vue +0 -2
  197. package/src/components/icons/PoiIcon.vue +0 -1
  198. package/src/components/icons/PointIcon.vue +2 -6
  199. package/src/components/icons/PointSelectIcon.vue +0 -1
  200. package/src/components/icons/PresentationModeIcon.vue +0 -1
  201. package/src/components/icons/ProgressIcon.vue +1 -1
  202. package/src/components/icons/QueryIcon.vue +0 -1
  203. package/src/components/icons/RectangleIcon.vue +1 -6
  204. package/src/components/icons/ReturnIcon.vue +0 -1
  205. package/src/components/icons/RewindIcon.vue +0 -1
  206. package/src/components/icons/RotateLeftIcon.vue +0 -1
  207. package/src/components/icons/RotateRightIcon.vue +0 -1
  208. package/src/components/icons/ScreenshotIcon.vue +1 -6
  209. package/src/components/icons/SearchIcon.vue +0 -1
  210. package/src/components/icons/ShadowIcon.vue +0 -2
  211. package/src/components/icons/ShapesIcon.vue +1 -4
  212. package/src/components/icons/ShareIcon.vue +0 -1
  213. package/src/components/icons/SimpleCircleFilledIcon.vue +0 -1
  214. package/src/components/icons/SimpleCircleHalfFilledIcon.vue +0 -1
  215. package/src/components/icons/SimpleCircleOutlinedIcon.vue +1 -7
  216. package/src/components/icons/SkipPreviousIcon.vue +1 -6
  217. package/src/components/icons/SplitViewIcon.vue +0 -1
  218. package/src/components/icons/TextStyleIcon.vue +0 -3
  219. package/src/components/icons/ThreeDimensionsIcon.vue +0 -1
  220. package/src/components/icons/ToolsIcon.vue +0 -1
  221. package/src/components/icons/TouchIcon.vue +0 -1
  222. package/src/components/icons/TriangleIcon.vue +0 -3
  223. package/src/components/icons/TwoDimensionsIcon.vue +0 -2
  224. package/src/components/icons/UploadIcon.vue +0 -1
  225. package/src/components/icons/UserProfileIcon.vue +0 -1
  226. package/src/components/icons/UserShareIcon.vue +0 -1
  227. package/src/components/icons/ViewpointFlightIcon.vue +0 -1
  228. package/src/components/icons/ViewpointIcon.vue +0 -1
  229. package/src/components/icons/Viewshed360Icon.vue +0 -1
  230. package/src/components/icons/ViewshedConeIcon.vue +0 -1
  231. package/src/components/icons/ViewshedIcon.vue +0 -1
  232. package/src/components/icons/WalkingIcon.vue +0 -1
  233. package/src/components/icons/WallIcon.vue +1 -4
  234. package/src/components/icons/WandIcon.vue +22 -70
  235. package/src/components/lists/VcsList.vue +18 -12
  236. package/src/components/plugins/AbstractConfigEditor.vue +2 -2
  237. package/src/components/tables/VcsDataTable.vue +1 -1
  238. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +57 -14
  239. package/src/contentTree/contentTreeCollection.js +30 -9
  240. package/src/i18n/de.js +8 -5
  241. package/src/i18n/en.js +8 -5
  242. package/src/i18n/i18nCollection.js +19 -65
  243. package/src/manager/buttonManager.js +4 -0
  244. package/src/manager/contextMenu/contextMenuManager.js +2 -0
  245. package/src/pluginHelper.js +2 -2
  246. package/src/vcsUiApp.js +9 -4
  247. package/src/vuePlugins/i18n.js +0 -8
  248. package/dist/assets/cesium/ThirdParty/Workers/draco_decoder_nodejs.js +0 -117
  249. package/dist/assets/cesium/Workers/ArcType-2d9abbbc.js +0 -37
  250. package/dist/assets/cesium/Workers/AttributeCompression-f9f6c717.js +0 -716
  251. package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-4140c51f.js +0 -258
  252. package/dist/assets/cesium/Workers/BoundingRectangle-c714b156.js +0 -369
  253. package/dist/assets/cesium/Workers/BoxGeometry-6f3da43d.js +0 -884
  254. package/dist/assets/cesium/Workers/Check-6ede7e26.js +0 -290
  255. package/dist/assets/cesium/Workers/Color-8a565ff2.js +0 -2262
  256. package/dist/assets/cesium/Workers/ComponentDatatype-cf1fa08e.js +0 -341
  257. package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-4b4d4096.js +0 -132
  258. package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7b94502b.js +0 -498
  259. package/dist/assets/cesium/Workers/CylinderGeometry-ca070b87.js +0 -467
  260. package/dist/assets/cesium/Workers/CylinderGeometryLibrary-7bf291b4.js +0 -63
  261. package/dist/assets/cesium/Workers/EllipseGeometry-122e51fa.js +0 -1304
  262. package/dist/assets/cesium/Workers/EllipseGeometryLibrary-4d326efc.js +0 -366
  263. package/dist/assets/cesium/Workers/EllipseOutlineGeometry-16cc2bd7.js +0 -443
  264. package/dist/assets/cesium/Workers/EllipsoidGeodesic-5b3623dc.js +0 -520
  265. package/dist/assets/cesium/Workers/EllipsoidGeometry-cb148ca2.js +0 -637
  266. package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-0fa10c79.js +0 -454
  267. package/dist/assets/cesium/Workers/EllipsoidRhumbLine-ef872433.js +0 -741
  268. package/dist/assets/cesium/Workers/EllipsoidTangentPlane-6dd1b7af.js +0 -373
  269. package/dist/assets/cesium/Workers/EncodedCartesian3-57415c8a.js +0 -171
  270. package/dist/assets/cesium/Workers/FrustumGeometry-ee73037c.js +0 -2540
  271. package/dist/assets/cesium/Workers/GeometryAttribute-ff5b4fb1.js +0 -619
  272. package/dist/assets/cesium/Workers/GeometryAttributes-ad136444.js +0 -91
  273. package/dist/assets/cesium/Workers/GeometryInstance-34d9e21e.js +0 -121
  274. package/dist/assets/cesium/Workers/GeometryOffsetAttribute-9ad0019c.js +0 -16
  275. package/dist/assets/cesium/Workers/GeometryPipeline-1f8fbf05.js +0 -3690
  276. package/dist/assets/cesium/Workers/IndexDatatype-2643aa47.js +0 -200
  277. package/dist/assets/cesium/Workers/IntersectionTests-70d39ba9.js +0 -1836
  278. package/dist/assets/cesium/Workers/Math-0a2ac845.js +0 -1340
  279. package/dist/assets/cesium/Workers/Matrix2-e1298525.js +0 -7086
  280. package/dist/assets/cesium/Workers/Matrix3-41c58dde.js +0 -4283
  281. package/dist/assets/cesium/Workers/OrientedBoundingBox-159cf1d6.js +0 -1259
  282. package/dist/assets/cesium/Workers/Plane-4c3d403b.js +0 -309
  283. package/dist/assets/cesium/Workers/PolygonGeometryLibrary-076a5d25.js +0 -1074
  284. package/dist/assets/cesium/Workers/PolygonPipeline-b9f2810a.js +0 -1344
  285. package/dist/assets/cesium/Workers/PolylinePipeline-639192e0.js +0 -573
  286. package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-b73549fb.js +0 -781
  287. package/dist/assets/cesium/Workers/PrimitivePipeline-10ede1b6.js +0 -966
  288. package/dist/assets/cesium/Workers/RectangleGeometryLibrary-c35a7356.js +0 -280
  289. package/dist/assets/cesium/Workers/RuntimeError-ef395448.js +0 -68
  290. package/dist/assets/cesium/Workers/TerrainEncoding-668d242f.js +0 -1227
  291. package/dist/assets/cesium/Workers/Transforms-a2a85221.js +0 -14712
  292. package/dist/assets/cesium/Workers/VertexFormat-030f11ff.js +0 -312
  293. package/dist/assets/cesium/Workers/WallGeometryLibrary-1938bf0d.js +0 -211
  294. package/dist/assets/cesium/Workers/WebGLConstants-0b1ce7ba.js +0 -620
  295. package/dist/assets/cesium/Workers/WebMercatorProjection-13ed1a6e.js +0 -151
  296. package/dist/assets/cesium/Workers/arrayRemoveDuplicates-d2061e85.js +0 -129
  297. package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +0 -1363
  298. package/dist/assets/cesium/Workers/combine-d9581036.js +0 -82
  299. package/dist/assets/cesium/Workers/defaultValue-fe22d8c0.js +0 -51
  300. package/dist/assets/index-c115e3a1.js +0 -1
  301. package/plugins/@vcmap/create-link/fallbackCreateLink.vue +0 -76
  302. package/plugins/@vcmap/create-link/index.js +0 -95
  303. package/plugins/@vcmap/create-link/package.json +0 -6
  304. package/plugins/@vcmap/search-nominatim/LICENSE.md +0 -13
  305. package/plugins/@vcmap/search-nominatim/README.md +0 -3
  306. package/plugins/@vcmap/search-nominatim/SearchNominatimEditor.vue +0 -90
  307. package/plugins/@vcmap/search-nominatim/config.json +0 -3
  308. package/plugins/@vcmap/search-nominatim/index.js +0 -66
  309. package/plugins/@vcmap/search-nominatim/nominatim.js +0 -175
  310. package/plugins/@vcmap/search-nominatim/package.json +0 -9
  311. /package/dist/assets/{vue.67e80f.js → vue.5d696e.js} +0 -0
  312. /package/dist/assets/{vuetify.ea3fa8.css → vuetify.f0a769.css} +0 -0
  313. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ModulesListComponent.vue +0 -0
  314. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/README.md +0 -0
  315. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/de.json +0 -0
  316. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/en.json +0 -0
  317. /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/index.js +0 -0
  318. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/README.md +0 -0
  319. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/SimpleGraphComponent.vue +0 -0
  320. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/index.js +0 -0
  321. /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/simpleGraphView.js +0 -0
  322. /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/README.md +0 -0
  323. /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/index.js +0 -0
@@ -1,120 +1,174 @@
1
- define(['./arrayRemoveDuplicates-d2061e85', './Transforms-a2a85221', './Matrix3-41c58dde', './Check-6ede7e26', './ComponentDatatype-cf1fa08e', './PolylineVolumeGeometryLibrary-b73549fb', './CorridorGeometryLibrary-7b94502b', './defaultValue-fe22d8c0', './GeometryAttribute-ff5b4fb1', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-b9f2810a', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-6dd1b7af', './AxisAlignedBoundingBox-4140c51f', './IntersectionTests-70d39ba9', './Plane-4c3d403b', './PolylinePipeline-639192e0', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433'], (function (arrayRemoveDuplicates, Transforms, Matrix3, Check, ComponentDatatype, PolylineVolumeGeometryLibrary, CorridorGeometryLibrary, defaultValue, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype, Math$1, PolygonPipeline, Matrix2, RuntimeError, combine$1, WebGLConstants, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine) { 'use strict';
2
-
3
- const cartesian1 = new Matrix3.Cartesian3();
4
- const cartesian2 = new Matrix3.Cartesian3();
5
- const cartesian3 = new Matrix3.Cartesian3();
6
-
7
- function scaleToSurface(positions, ellipsoid) {
8
- for (let i = 0; i < positions.length; i++) {
9
- positions[i] = ellipsoid.scaleToGeodeticSurface(positions[i], positions[i]);
10
- }
11
- return positions;
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
+ CorridorGeometryLibrary_default
28
+ } from "./chunk-C3SXRKRW.js";
29
+ import {
30
+ CornerType_default
31
+ } from "./chunk-V3NGATMV.js";
32
+ import "./chunk-GLZBE3ML.js";
33
+ import "./chunk-AFFLIKOH.js";
34
+ import {
35
+ GeometryOffsetAttribute_default
36
+ } from "./chunk-MPAZH4BF.js";
37
+ import "./chunk-RP2A7BR5.js";
38
+ import "./chunk-2R5O53JW.js";
39
+ import {
40
+ PolygonPipeline_default
41
+ } from "./chunk-J3JY6I2C.js";
42
+ import {
43
+ arrayRemoveDuplicates_default
44
+ } from "./chunk-3W63OHNJ.js";
45
+ import "./chunk-K36FEYS7.js";
46
+ import "./chunk-MYZB7C4T.js";
47
+ import "./chunk-OYFCF4PL.js";
48
+ import {
49
+ IndexDatatype_default
50
+ } from "./chunk-RW6LU2CJ.js";
51
+ import {
52
+ GeometryAttributes_default
53
+ } from "./chunk-EW2GWJYB.js";
54
+ import {
55
+ GeometryAttribute_default,
56
+ Geometry_default,
57
+ PrimitiveType_default
58
+ } from "./chunk-X4SU25DT.js";
59
+ import {
60
+ BoundingSphere_default
61
+ } from "./chunk-PFQBCKBM.js";
62
+ import "./chunk-QJ3DFBH3.js";
63
+ import "./chunk-DUHWWBQQ.js";
64
+ import {
65
+ ComponentDatatype_default
66
+ } from "./chunk-LLUNNUJV.js";
67
+ import {
68
+ Cartesian3_default,
69
+ Ellipsoid_default
70
+ } from "./chunk-PCJWUS4M.js";
71
+ import {
72
+ Math_default
73
+ } from "./chunk-N3JIFFX2.js";
74
+ import "./chunk-AHKEZ2OE.js";
75
+ import "./chunk-ABADGKYE.js";
76
+ import {
77
+ defaultValue_default
78
+ } from "./chunk-WXTV4ATB.js";
79
+ import {
80
+ Check_default
81
+ } from "./chunk-4MFFIWUA.js";
82
+ import {
83
+ defined_default
84
+ } from "./chunk-6BTKZDRG.js";
85
+
86
+ // packages/engine/Source/Core/CorridorOutlineGeometry.js
87
+ var cartesian1 = new Cartesian3_default();
88
+ var cartesian2 = new Cartesian3_default();
89
+ var cartesian3 = new Cartesian3_default();
90
+ function scaleToSurface(positions, ellipsoid) {
91
+ for (let i = 0; i < positions.length; i++) {
92
+ positions[i] = ellipsoid.scaleToGeodeticSurface(positions[i], positions[i]);
12
93
  }
13
-
14
- function combine(computedPositions, cornerType) {
15
- const wallIndices = [];
16
- const positions = computedPositions.positions;
17
- const corners = computedPositions.corners;
18
- const endPositions = computedPositions.endPositions;
19
- const attributes = new GeometryAttributes.GeometryAttributes();
20
- let corner;
21
- let leftCount = 0;
22
- let rightCount = 0;
23
- let i;
24
- let indicesLength = 0;
25
- let length;
26
- for (i = 0; i < positions.length; i += 2) {
27
- length = positions[i].length - 3;
28
- leftCount += length; //subtracting 3 to account for duplicate points at corners
29
- indicesLength += (length / 3) * 4;
30
- rightCount += positions[i + 1].length - 3;
31
- }
32
- leftCount += 3; //add back count for end positions
33
- rightCount += 3;
34
- for (i = 0; i < corners.length; i++) {
35
- corner = corners[i];
36
- const leftSide = corners[i].leftPositions;
37
- if (defaultValue.defined(leftSide)) {
38
- length = leftSide.length;
39
- leftCount += length;
40
- indicesLength += (length / 3) * 2;
41
- } else {
42
- length = corners[i].rightPositions.length;
43
- rightCount += length;
44
- indicesLength += (length / 3) * 2;
45
- }
46
- }
47
-
48
- const addEndPositions = defaultValue.defined(endPositions);
49
- let endPositionLength;
50
- if (addEndPositions) {
51
- endPositionLength = endPositions[0].length - 3;
52
- leftCount += endPositionLength;
53
- rightCount += endPositionLength;
54
- endPositionLength /= 3;
55
- indicesLength += endPositionLength * 4;
56
- }
57
- const size = leftCount + rightCount;
58
- const finalPositions = new Float64Array(size);
59
- let front = 0;
60
- let back = size - 1;
61
- let UL, LL, UR, LR;
62
- let rightPos, leftPos;
63
- const halfLength = endPositionLength / 2;
64
-
65
- const indices = IndexDatatype.IndexDatatype.createTypedArray(size / 3, indicesLength + 4);
66
- let index = 0;
67
-
68
- indices[index++] = front / 3;
69
- indices[index++] = (back - 2) / 3;
70
- if (addEndPositions) {
71
- // add rounded end
72
- wallIndices.push(front / 3);
73
- leftPos = cartesian1;
74
- rightPos = cartesian2;
75
- const firstEndPositions = endPositions[0];
76
- for (i = 0; i < halfLength; i++) {
77
- leftPos = Matrix3.Cartesian3.fromArray(
78
- firstEndPositions,
79
- (halfLength - 1 - i) * 3,
80
- leftPos
81
- );
82
- rightPos = Matrix3.Cartesian3.fromArray(
83
- firstEndPositions,
84
- (halfLength + i) * 3,
85
- rightPos
86
- );
87
- CorridorGeometryLibrary.CorridorGeometryLibrary.addAttribute(finalPositions, rightPos, front);
88
- CorridorGeometryLibrary.CorridorGeometryLibrary.addAttribute(
89
- finalPositions,
90
- leftPos,
91
- undefined,
92
- back
93
- );
94
-
95
- LL = front / 3;
96
- LR = LL + 1;
97
- UL = (back - 2) / 3;
98
- UR = UL - 1;
99
- indices[index++] = UL;
100
- indices[index++] = UR;
101
- indices[index++] = LL;
102
- indices[index++] = LR;
103
-
104
- front += 3;
105
- back -= 3;
106
- }
94
+ return positions;
95
+ }
96
+ function combine(computedPositions, cornerType) {
97
+ const wallIndices = [];
98
+ const positions = computedPositions.positions;
99
+ const corners = computedPositions.corners;
100
+ const endPositions = computedPositions.endPositions;
101
+ const attributes = new GeometryAttributes_default();
102
+ let corner;
103
+ let leftCount = 0;
104
+ let rightCount = 0;
105
+ let i;
106
+ let indicesLength = 0;
107
+ let length;
108
+ for (i = 0; i < positions.length; i += 2) {
109
+ length = positions[i].length - 3;
110
+ leftCount += length;
111
+ indicesLength += length / 3 * 4;
112
+ rightCount += positions[i + 1].length - 3;
113
+ }
114
+ leftCount += 3;
115
+ rightCount += 3;
116
+ for (i = 0; i < corners.length; i++) {
117
+ corner = corners[i];
118
+ const leftSide = corners[i].leftPositions;
119
+ if (defined_default(leftSide)) {
120
+ length = leftSide.length;
121
+ leftCount += length;
122
+ indicesLength += length / 3 * 2;
123
+ } else {
124
+ length = corners[i].rightPositions.length;
125
+ rightCount += length;
126
+ indicesLength += length / 3 * 2;
107
127
  }
108
-
109
- let posIndex = 0;
110
- let rightEdge = positions[posIndex++]; //add first two edges
111
- let leftEdge = positions[posIndex++];
112
- finalPositions.set(rightEdge, front);
113
- finalPositions.set(leftEdge, back - leftEdge.length + 1);
114
-
115
- length = leftEdge.length - 3;
116
- wallIndices.push(front / 3, (back - 2) / 3);
117
- for (i = 0; i < length; i += 3) {
128
+ }
129
+ const addEndPositions = defined_default(endPositions);
130
+ let endPositionLength;
131
+ if (addEndPositions) {
132
+ endPositionLength = endPositions[0].length - 3;
133
+ leftCount += endPositionLength;
134
+ rightCount += endPositionLength;
135
+ endPositionLength /= 3;
136
+ indicesLength += endPositionLength * 4;
137
+ }
138
+ const size = leftCount + rightCount;
139
+ const finalPositions = new Float64Array(size);
140
+ let front = 0;
141
+ let back = size - 1;
142
+ let UL, LL, UR, LR;
143
+ let rightPos, leftPos;
144
+ const halfLength = endPositionLength / 2;
145
+ const indices = IndexDatatype_default.createTypedArray(size / 3, indicesLength + 4);
146
+ let index = 0;
147
+ indices[index++] = front / 3;
148
+ indices[index++] = (back - 2) / 3;
149
+ if (addEndPositions) {
150
+ wallIndices.push(front / 3);
151
+ leftPos = cartesian1;
152
+ rightPos = cartesian2;
153
+ const firstEndPositions = endPositions[0];
154
+ for (i = 0; i < halfLength; i++) {
155
+ leftPos = Cartesian3_default.fromArray(
156
+ firstEndPositions,
157
+ (halfLength - 1 - i) * 3,
158
+ leftPos
159
+ );
160
+ rightPos = Cartesian3_default.fromArray(
161
+ firstEndPositions,
162
+ (halfLength + i) * 3,
163
+ rightPos
164
+ );
165
+ CorridorGeometryLibrary_default.addAttribute(finalPositions, rightPos, front);
166
+ CorridorGeometryLibrary_default.addAttribute(
167
+ finalPositions,
168
+ leftPos,
169
+ void 0,
170
+ back
171
+ );
118
172
  LL = front / 3;
119
173
  LR = LL + 1;
120
174
  UL = (back - 2) / 3;
@@ -123,481 +177,391 @@ define(['./arrayRemoveDuplicates-d2061e85', './Transforms-a2a85221', './Matrix3-
123
177
  indices[index++] = UR;
124
178
  indices[index++] = LL;
125
179
  indices[index++] = LR;
126
-
127
180
  front += 3;
128
181
  back -= 3;
129
182
  }
130
-
131
- for (i = 0; i < corners.length; i++) {
132
- let j;
133
- corner = corners[i];
134
- const l = corner.leftPositions;
135
- const r = corner.rightPositions;
136
- let start;
137
- let outsidePoint = cartesian3;
138
- if (defaultValue.defined(l)) {
139
- back -= 3;
140
- start = UR;
141
- wallIndices.push(LR);
142
- for (j = 0; j < l.length / 3; j++) {
143
- outsidePoint = Matrix3.Cartesian3.fromArray(l, j * 3, outsidePoint);
144
- indices[index++] = start - j - 1;
145
- indices[index++] = start - j;
146
- CorridorGeometryLibrary.CorridorGeometryLibrary.addAttribute(
147
- finalPositions,
148
- outsidePoint,
149
- undefined,
150
- back
151
- );
152
- back -= 3;
153
- }
154
- wallIndices.push(start - Math.floor(l.length / 6));
155
- if (cornerType === PolylineVolumeGeometryLibrary.CornerType.BEVELED) {
156
- wallIndices.push((back - 2) / 3 + 1);
157
- }
158
- front += 3;
159
- } else {
160
- front += 3;
161
- start = LR;
162
- wallIndices.push(UR);
163
- for (j = 0; j < r.length / 3; j++) {
164
- outsidePoint = Matrix3.Cartesian3.fromArray(r, j * 3, outsidePoint);
165
- indices[index++] = start + j;
166
- indices[index++] = start + j + 1;
167
- CorridorGeometryLibrary.CorridorGeometryLibrary.addAttribute(
168
- finalPositions,
169
- outsidePoint,
170
- front
171
- );
172
- front += 3;
173
- }
174
- wallIndices.push(start + Math.floor(r.length / 6));
175
- if (cornerType === PolylineVolumeGeometryLibrary.CornerType.BEVELED) {
176
- wallIndices.push(front / 3 - 1);
177
- }
183
+ }
184
+ let posIndex = 0;
185
+ let rightEdge = positions[posIndex++];
186
+ let leftEdge = positions[posIndex++];
187
+ finalPositions.set(rightEdge, front);
188
+ finalPositions.set(leftEdge, back - leftEdge.length + 1);
189
+ length = leftEdge.length - 3;
190
+ wallIndices.push(front / 3, (back - 2) / 3);
191
+ for (i = 0; i < length; i += 3) {
192
+ LL = front / 3;
193
+ LR = LL + 1;
194
+ UL = (back - 2) / 3;
195
+ UR = UL - 1;
196
+ indices[index++] = UL;
197
+ indices[index++] = UR;
198
+ indices[index++] = LL;
199
+ indices[index++] = LR;
200
+ front += 3;
201
+ back -= 3;
202
+ }
203
+ for (i = 0; i < corners.length; i++) {
204
+ let j;
205
+ corner = corners[i];
206
+ const l = corner.leftPositions;
207
+ const r = corner.rightPositions;
208
+ let start;
209
+ let outsidePoint = cartesian3;
210
+ if (defined_default(l)) {
211
+ back -= 3;
212
+ start = UR;
213
+ wallIndices.push(LR);
214
+ for (j = 0; j < l.length / 3; j++) {
215
+ outsidePoint = Cartesian3_default.fromArray(l, j * 3, outsidePoint);
216
+ indices[index++] = start - j - 1;
217
+ indices[index++] = start - j;
218
+ CorridorGeometryLibrary_default.addAttribute(
219
+ finalPositions,
220
+ outsidePoint,
221
+ void 0,
222
+ back
223
+ );
178
224
  back -= 3;
179
225
  }
180
- rightEdge = positions[posIndex++];
181
- leftEdge = positions[posIndex++];
182
- rightEdge.splice(0, 3); //remove duplicate points added by corner
183
- leftEdge.splice(leftEdge.length - 3, 3);
184
- finalPositions.set(rightEdge, front);
185
- finalPositions.set(leftEdge, back - leftEdge.length + 1);
186
- length = leftEdge.length - 3;
187
-
188
- for (j = 0; j < leftEdge.length; j += 3) {
189
- LR = front / 3;
190
- LL = LR - 1;
191
- UR = (back - 2) / 3;
192
- UL = UR + 1;
193
- indices[index++] = UL;
194
- indices[index++] = UR;
195
- indices[index++] = LL;
196
- indices[index++] = LR;
197
- front += 3;
198
- back -= 3;
226
+ wallIndices.push(start - Math.floor(l.length / 6));
227
+ if (cornerType === CornerType_default.BEVELED) {
228
+ wallIndices.push((back - 2) / 3 + 1);
199
229
  }
200
- front -= 3;
201
- back += 3;
202
- wallIndices.push(front / 3, (back - 2) / 3);
203
- }
204
-
205
- if (addEndPositions) {
206
- // add rounded end
207
230
  front += 3;
208
- back -= 3;
209
- leftPos = cartesian1;
210
- rightPos = cartesian2;
211
- const lastEndPositions = endPositions[1];
212
- for (i = 0; i < halfLength; i++) {
213
- leftPos = Matrix3.Cartesian3.fromArray(
214
- lastEndPositions,
215
- (endPositionLength - i - 1) * 3,
216
- leftPos
217
- );
218
- rightPos = Matrix3.Cartesian3.fromArray(lastEndPositions, i * 3, rightPos);
219
- CorridorGeometryLibrary.CorridorGeometryLibrary.addAttribute(
231
+ } else {
232
+ front += 3;
233
+ start = LR;
234
+ wallIndices.push(UR);
235
+ for (j = 0; j < r.length / 3; j++) {
236
+ outsidePoint = Cartesian3_default.fromArray(r, j * 3, outsidePoint);
237
+ indices[index++] = start + j;
238
+ indices[index++] = start + j + 1;
239
+ CorridorGeometryLibrary_default.addAttribute(
220
240
  finalPositions,
221
- leftPos,
222
- undefined,
223
- back
241
+ outsidePoint,
242
+ front
224
243
  );
225
- CorridorGeometryLibrary.CorridorGeometryLibrary.addAttribute(finalPositions, rightPos, front);
226
-
227
- LR = front / 3;
228
- LL = LR - 1;
229
- UR = (back - 2) / 3;
230
- UL = UR + 1;
231
- indices[index++] = UL;
232
- indices[index++] = UR;
233
- indices[index++] = LL;
234
- indices[index++] = LR;
235
-
236
244
  front += 3;
237
- back -= 3;
238
245
  }
239
-
240
- wallIndices.push(front / 3);
241
- } else {
242
- wallIndices.push(front / 3, (back - 2) / 3);
243
- }
244
- indices[index++] = front / 3;
245
- indices[index++] = (back - 2) / 3;
246
-
247
- attributes.position = new GeometryAttribute.GeometryAttribute({
248
- componentDatatype: ComponentDatatype.ComponentDatatype.DOUBLE,
249
- componentsPerAttribute: 3,
250
- values: finalPositions,
251
- });
252
-
253
- return {
254
- attributes: attributes,
255
- indices: indices,
256
- wallIndices: wallIndices,
257
- };
258
- }
259
-
260
- function computePositionsExtruded(params) {
261
- const ellipsoid = params.ellipsoid;
262
- const computedPositions = CorridorGeometryLibrary.CorridorGeometryLibrary.computePositions(params);
263
- const attr = combine(computedPositions, params.cornerType);
264
- const wallIndices = attr.wallIndices;
265
- const height = params.height;
266
- const extrudedHeight = params.extrudedHeight;
267
- const attributes = attr.attributes;
268
- const indices = attr.indices;
269
- let positions = attributes.position.values;
270
- let length = positions.length;
271
- let extrudedPositions = new Float64Array(length);
272
- extrudedPositions.set(positions);
273
- const newPositions = new Float64Array(length * 2);
274
-
275
- positions = PolygonPipeline.PolygonPipeline.scaleToGeodeticHeight(
276
- positions,
277
- height,
278
- ellipsoid
279
- );
280
- extrudedPositions = PolygonPipeline.PolygonPipeline.scaleToGeodeticHeight(
281
- extrudedPositions,
282
- extrudedHeight,
283
- ellipsoid
284
- );
285
- newPositions.set(positions);
286
- newPositions.set(extrudedPositions, length);
287
- attributes.position.values = newPositions;
288
-
289
- length /= 3;
290
- if (defaultValue.defined(params.offsetAttribute)) {
291
- let applyOffset = new Uint8Array(length * 2);
292
- if (params.offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.TOP) {
293
- applyOffset = applyOffset.fill(1, 0, length);
294
- } else {
295
- const applyOffsetValue =
296
- params.offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.NONE ? 0 : 1;
297
- applyOffset = applyOffset.fill(applyOffsetValue);
246
+ wallIndices.push(start + Math.floor(r.length / 6));
247
+ if (cornerType === CornerType_default.BEVELED) {
248
+ wallIndices.push(front / 3 - 1);
298
249
  }
299
-
300
- attributes.applyOffset = new GeometryAttribute.GeometryAttribute({
301
- componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
302
- componentsPerAttribute: 1,
303
- values: applyOffset,
304
- });
305
- }
306
-
307
- let i;
308
- const iLength = indices.length;
309
- const newIndices = IndexDatatype.IndexDatatype.createTypedArray(
310
- newPositions.length / 3,
311
- (iLength + wallIndices.length) * 2
312
- );
313
- newIndices.set(indices);
314
- let index = iLength;
315
- for (i = 0; i < iLength; i += 2) {
316
- // bottom indices
317
- const v0 = indices[i];
318
- const v1 = indices[i + 1];
319
- newIndices[index++] = v0 + length;
320
- newIndices[index++] = v1 + length;
250
+ back -= 3;
321
251
  }
322
-
323
- let UL, LL;
324
- for (i = 0; i < wallIndices.length; i++) {
325
- //wall indices
326
- UL = wallIndices[i];
327
- LL = UL + length;
328
- newIndices[index++] = UL;
329
- newIndices[index++] = LL;
252
+ rightEdge = positions[posIndex++];
253
+ leftEdge = positions[posIndex++];
254
+ rightEdge.splice(0, 3);
255
+ leftEdge.splice(leftEdge.length - 3, 3);
256
+ finalPositions.set(rightEdge, front);
257
+ finalPositions.set(leftEdge, back - leftEdge.length + 1);
258
+ length = leftEdge.length - 3;
259
+ for (j = 0; j < leftEdge.length; j += 3) {
260
+ LR = front / 3;
261
+ LL = LR - 1;
262
+ UR = (back - 2) / 3;
263
+ UL = UR + 1;
264
+ indices[index++] = UL;
265
+ indices[index++] = UR;
266
+ indices[index++] = LL;
267
+ indices[index++] = LR;
268
+ front += 3;
269
+ back -= 3;
330
270
  }
331
-
332
- return {
333
- attributes: attributes,
334
- indices: newIndices,
335
- };
336
- }
337
-
338
- /**
339
- * A description of a corridor outline.
340
- *
341
- * @alias CorridorOutlineGeometry
342
- * @constructor
343
- *
344
- * @param {object} options Object with the following properties:
345
- * @param {Cartesian3[]} options.positions An array of positions that define the center of the corridor outline.
346
- * @param {number} options.width The distance between the edges of the corridor outline.
347
- * @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid to be used as a reference.
348
- * @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
349
- * @param {number} [options.height=0] The distance in meters between the positions and the ellipsoid surface.
350
- * @param {number} [options.extrudedHeight] The distance in meters between the extruded face and the ellipsoid surface.
351
- * @param {CornerType} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
352
- *
353
- * @see CorridorOutlineGeometry.createGeometry
354
- *
355
- * @example
356
- * const corridor = new Cesium.CorridorOutlineGeometry({
357
- * positions : Cesium.Cartesian3.fromDegreesArray([-72.0, 40.0, -70.0, 35.0]),
358
- * width : 100000
359
- * });
360
- */
361
- function CorridorOutlineGeometry(options) {
362
- options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
363
- const positions = options.positions;
364
- const width = options.width;
365
-
366
- //>>includeStart('debug', pragmas.debug);
367
- Check.Check.typeOf.object("options.positions", positions);
368
- Check.Check.typeOf.number("options.width", width);
369
- //>>includeEnd('debug');
370
-
371
- const height = defaultValue.defaultValue(options.height, 0.0);
372
- const extrudedHeight = defaultValue.defaultValue(options.extrudedHeight, height);
373
-
374
- this._positions = positions;
375
- this._ellipsoid = Matrix3.Ellipsoid.clone(
376
- defaultValue.defaultValue(options.ellipsoid, Matrix3.Ellipsoid.WGS84)
377
- );
378
- this._width = width;
379
- this._height = Math.max(height, extrudedHeight);
380
- this._extrudedHeight = Math.min(height, extrudedHeight);
381
- this._cornerType = defaultValue.defaultValue(options.cornerType, PolylineVolumeGeometryLibrary.CornerType.ROUNDED);
382
- this._granularity = defaultValue.defaultValue(
383
- options.granularity,
384
- Math$1.CesiumMath.RADIANS_PER_DEGREE
385
- );
386
- this._offsetAttribute = options.offsetAttribute;
387
- this._workerName = "createCorridorOutlineGeometry";
388
-
389
- /**
390
- * The number of elements used to pack the object into an array.
391
- * @type {number}
392
- */
393
- this.packedLength =
394
- 1 + positions.length * Matrix3.Cartesian3.packedLength + Matrix3.Ellipsoid.packedLength + 6;
271
+ front -= 3;
272
+ back += 3;
273
+ wallIndices.push(front / 3, (back - 2) / 3);
395
274
  }
396
-
397
- /**
398
- * Stores the provided instance into the provided array.
399
- *
400
- * @param {CorridorOutlineGeometry} value The value to pack.
401
- * @param {number[]} array The array to pack into.
402
- * @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
403
- *
404
- * @returns {number[]} The array that was packed into
405
- */
406
- CorridorOutlineGeometry.pack = function (value, array, startingIndex) {
407
- //>>includeStart('debug', pragmas.debug);
408
- Check.Check.typeOf.object("value", value);
409
- Check.Check.typeOf.object("array", array);
410
- //>>includeEnd('debug');
411
-
412
- startingIndex = defaultValue.defaultValue(startingIndex, 0);
413
-
414
- const positions = value._positions;
415
- const length = positions.length;
416
- array[startingIndex++] = length;
417
-
418
- for (let i = 0; i < length; ++i, startingIndex += Matrix3.Cartesian3.packedLength) {
419
- Matrix3.Cartesian3.pack(positions[i], array, startingIndex);
420
- }
421
-
422
- Matrix3.Ellipsoid.pack(value._ellipsoid, array, startingIndex);
423
- startingIndex += Matrix3.Ellipsoid.packedLength;
424
-
425
- array[startingIndex++] = value._width;
426
- array[startingIndex++] = value._height;
427
- array[startingIndex++] = value._extrudedHeight;
428
- array[startingIndex++] = value._cornerType;
429
- array[startingIndex++] = value._granularity;
430
- array[startingIndex] = defaultValue.defaultValue(value._offsetAttribute, -1);
431
-
432
- return array;
433
- };
434
-
435
- const scratchEllipsoid = Matrix3.Ellipsoid.clone(Matrix3.Ellipsoid.UNIT_SPHERE);
436
- const scratchOptions = {
437
- positions: undefined,
438
- ellipsoid: scratchEllipsoid,
439
- width: undefined,
440
- height: undefined,
441
- extrudedHeight: undefined,
442
- cornerType: undefined,
443
- granularity: undefined,
444
- offsetAttribute: undefined,
445
- };
446
-
447
- /**
448
- * Retrieves an instance from a packed array.
449
- *
450
- * @param {number[]} array The packed array.
451
- * @param {number} [startingIndex=0] The starting index of the element to be unpacked.
452
- * @param {CorridorOutlineGeometry} [result] The object into which to store the result.
453
- * @returns {CorridorOutlineGeometry} The modified result parameter or a new CorridorOutlineGeometry instance if one was not provided.
454
- */
455
- CorridorOutlineGeometry.unpack = function (array, startingIndex, result) {
456
- //>>includeStart('debug', pragmas.debug);
457
- Check.Check.typeOf.object("array", array);
458
- //>>includeEnd('debug');
459
-
460
- startingIndex = defaultValue.defaultValue(startingIndex, 0);
461
-
462
- const length = array[startingIndex++];
463
- const positions = new Array(length);
464
-
465
- for (let i = 0; i < length; ++i, startingIndex += Matrix3.Cartesian3.packedLength) {
466
- positions[i] = Matrix3.Cartesian3.unpack(array, startingIndex);
467
- }
468
-
469
- const ellipsoid = Matrix3.Ellipsoid.unpack(array, startingIndex, scratchEllipsoid);
470
- startingIndex += Matrix3.Ellipsoid.packedLength;
471
-
472
- const width = array[startingIndex++];
473
- const height = array[startingIndex++];
474
- const extrudedHeight = array[startingIndex++];
475
- const cornerType = array[startingIndex++];
476
- const granularity = array[startingIndex++];
477
- const offsetAttribute = array[startingIndex];
478
-
479
- if (!defaultValue.defined(result)) {
480
- scratchOptions.positions = positions;
481
- scratchOptions.width = width;
482
- scratchOptions.height = height;
483
- scratchOptions.extrudedHeight = extrudedHeight;
484
- scratchOptions.cornerType = cornerType;
485
- scratchOptions.granularity = granularity;
486
- scratchOptions.offsetAttribute =
487
- offsetAttribute === -1 ? undefined : offsetAttribute;
488
- return new CorridorOutlineGeometry(scratchOptions);
275
+ if (addEndPositions) {
276
+ front += 3;
277
+ back -= 3;
278
+ leftPos = cartesian1;
279
+ rightPos = cartesian2;
280
+ const lastEndPositions = endPositions[1];
281
+ for (i = 0; i < halfLength; i++) {
282
+ leftPos = Cartesian3_default.fromArray(
283
+ lastEndPositions,
284
+ (endPositionLength - i - 1) * 3,
285
+ leftPos
286
+ );
287
+ rightPos = Cartesian3_default.fromArray(lastEndPositions, i * 3, rightPos);
288
+ CorridorGeometryLibrary_default.addAttribute(
289
+ finalPositions,
290
+ leftPos,
291
+ void 0,
292
+ back
293
+ );
294
+ CorridorGeometryLibrary_default.addAttribute(finalPositions, rightPos, front);
295
+ LR = front / 3;
296
+ LL = LR - 1;
297
+ UR = (back - 2) / 3;
298
+ UL = UR + 1;
299
+ indices[index++] = UL;
300
+ indices[index++] = UR;
301
+ indices[index++] = LL;
302
+ indices[index++] = LR;
303
+ front += 3;
304
+ back -= 3;
489
305
  }
490
-
491
- result._positions = positions;
492
- result._ellipsoid = Matrix3.Ellipsoid.clone(ellipsoid, result._ellipsoid);
493
- result._width = width;
494
- result._height = height;
495
- result._extrudedHeight = extrudedHeight;
496
- result._cornerType = cornerType;
497
- result._granularity = granularity;
498
- result._offsetAttribute =
499
- offsetAttribute === -1 ? undefined : offsetAttribute;
500
-
501
- return result;
306
+ wallIndices.push(front / 3);
307
+ } else {
308
+ wallIndices.push(front / 3, (back - 2) / 3);
309
+ }
310
+ indices[index++] = front / 3;
311
+ indices[index++] = (back - 2) / 3;
312
+ attributes.position = new GeometryAttribute_default({
313
+ componentDatatype: ComponentDatatype_default.DOUBLE,
314
+ componentsPerAttribute: 3,
315
+ values: finalPositions
316
+ });
317
+ return {
318
+ attributes,
319
+ indices,
320
+ wallIndices
502
321
  };
503
-
504
- /**
505
- * Computes the geometric representation of a corridor, including its vertices, indices, and a bounding sphere.
506
- *
507
- * @param {CorridorOutlineGeometry} corridorOutlineGeometry A description of the corridor.
508
- * @returns {Geometry|undefined} The computed vertices and indices.
509
- */
510
- CorridorOutlineGeometry.createGeometry = function (corridorOutlineGeometry) {
511
- let positions = corridorOutlineGeometry._positions;
512
- const width = corridorOutlineGeometry._width;
513
- const ellipsoid = corridorOutlineGeometry._ellipsoid;
514
-
515
- positions = scaleToSurface(positions, ellipsoid);
516
- const cleanPositions = arrayRemoveDuplicates.arrayRemoveDuplicates(
517
- positions,
518
- Matrix3.Cartesian3.equalsEpsilon
519
- );
520
-
521
- if (cleanPositions.length < 2 || width <= 0) {
522
- return;
523
- }
524
-
525
- const height = corridorOutlineGeometry._height;
526
- const extrudedHeight = corridorOutlineGeometry._extrudedHeight;
527
- const extrude = !Math$1.CesiumMath.equalsEpsilon(
528
- height,
529
- extrudedHeight,
530
- 0,
531
- Math$1.CesiumMath.EPSILON2
532
- );
533
-
534
- const params = {
535
- ellipsoid: ellipsoid,
536
- positions: cleanPositions,
537
- width: width,
538
- cornerType: corridorOutlineGeometry._cornerType,
539
- granularity: corridorOutlineGeometry._granularity,
540
- saveAttributes: false,
541
- };
542
- let attr;
543
- if (extrude) {
544
- params.height = height;
545
- params.extrudedHeight = extrudedHeight;
546
- params.offsetAttribute = corridorOutlineGeometry._offsetAttribute;
547
- attr = computePositionsExtruded(params);
322
+ }
323
+ function computePositionsExtruded(params) {
324
+ const ellipsoid = params.ellipsoid;
325
+ const computedPositions = CorridorGeometryLibrary_default.computePositions(params);
326
+ const attr = combine(computedPositions, params.cornerType);
327
+ const wallIndices = attr.wallIndices;
328
+ const height = params.height;
329
+ const extrudedHeight = params.extrudedHeight;
330
+ const attributes = attr.attributes;
331
+ const indices = attr.indices;
332
+ let positions = attributes.position.values;
333
+ let length = positions.length;
334
+ let extrudedPositions = new Float64Array(length);
335
+ extrudedPositions.set(positions);
336
+ const newPositions = new Float64Array(length * 2);
337
+ positions = PolygonPipeline_default.scaleToGeodeticHeight(
338
+ positions,
339
+ height,
340
+ ellipsoid
341
+ );
342
+ extrudedPositions = PolygonPipeline_default.scaleToGeodeticHeight(
343
+ extrudedPositions,
344
+ extrudedHeight,
345
+ ellipsoid
346
+ );
347
+ newPositions.set(positions);
348
+ newPositions.set(extrudedPositions, length);
349
+ attributes.position.values = newPositions;
350
+ length /= 3;
351
+ if (defined_default(params.offsetAttribute)) {
352
+ let applyOffset = new Uint8Array(length * 2);
353
+ if (params.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
354
+ applyOffset = applyOffset.fill(1, 0, length);
548
355
  } else {
549
- const computedPositions = CorridorGeometryLibrary.CorridorGeometryLibrary.computePositions(params);
550
- attr = combine(computedPositions, params.cornerType);
551
- attr.attributes.position.values = PolygonPipeline.PolygonPipeline.scaleToGeodeticHeight(
552
- attr.attributes.position.values,
553
- height,
554
- ellipsoid
555
- );
556
-
557
- if (defaultValue.defined(corridorOutlineGeometry._offsetAttribute)) {
558
- const length = attr.attributes.position.values.length;
559
- const offsetValue =
560
- corridorOutlineGeometry._offsetAttribute ===
561
- GeometryOffsetAttribute.GeometryOffsetAttribute.NONE
562
- ? 0
563
- : 1;
564
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
565
- attr.attributes.applyOffset = new GeometryAttribute.GeometryAttribute({
566
- componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
567
- componentsPerAttribute: 1,
568
- values: applyOffset,
569
- });
570
- }
356
+ const applyOffsetValue = params.offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
357
+ applyOffset = applyOffset.fill(applyOffsetValue);
571
358
  }
572
- const attributes = attr.attributes;
573
- const boundingSphere = Transforms.BoundingSphere.fromVertices(
574
- attributes.position.values,
575
- undefined,
576
- 3
577
- );
578
-
579
- return new GeometryAttribute.Geometry({
580
- attributes: attributes,
581
- indices: attr.indices,
582
- primitiveType: GeometryAttribute.PrimitiveType.LINES,
583
- boundingSphere: boundingSphere,
584
- offsetAttribute: corridorOutlineGeometry._offsetAttribute,
359
+ attributes.applyOffset = new GeometryAttribute_default({
360
+ componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
361
+ componentsPerAttribute: 1,
362
+ values: applyOffset
585
363
  });
364
+ }
365
+ let i;
366
+ const iLength = indices.length;
367
+ const newIndices = IndexDatatype_default.createTypedArray(
368
+ newPositions.length / 3,
369
+ (iLength + wallIndices.length) * 2
370
+ );
371
+ newIndices.set(indices);
372
+ let index = iLength;
373
+ for (i = 0; i < iLength; i += 2) {
374
+ const v0 = indices[i];
375
+ const v1 = indices[i + 1];
376
+ newIndices[index++] = v0 + length;
377
+ newIndices[index++] = v1 + length;
378
+ }
379
+ let UL, LL;
380
+ for (i = 0; i < wallIndices.length; i++) {
381
+ UL = wallIndices[i];
382
+ LL = UL + length;
383
+ newIndices[index++] = UL;
384
+ newIndices[index++] = LL;
385
+ }
386
+ return {
387
+ attributes,
388
+ indices: newIndices
586
389
  };
587
-
588
- function createCorridorOutlineGeometry(corridorOutlineGeometry, offset) {
589
- if (defaultValue.defined(offset)) {
590
- corridorOutlineGeometry = CorridorOutlineGeometry.unpack(
591
- corridorOutlineGeometry,
592
- offset
593
- );
390
+ }
391
+ function CorridorOutlineGeometry(options) {
392
+ options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
393
+ const positions = options.positions;
394
+ const width = options.width;
395
+ Check_default.typeOf.object("options.positions", positions);
396
+ Check_default.typeOf.number("options.width", width);
397
+ const height = defaultValue_default(options.height, 0);
398
+ const extrudedHeight = defaultValue_default(options.extrudedHeight, height);
399
+ this._positions = positions;
400
+ this._ellipsoid = Ellipsoid_default.clone(
401
+ defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84)
402
+ );
403
+ this._width = width;
404
+ this._height = Math.max(height, extrudedHeight);
405
+ this._extrudedHeight = Math.min(height, extrudedHeight);
406
+ this._cornerType = defaultValue_default(options.cornerType, CornerType_default.ROUNDED);
407
+ this._granularity = defaultValue_default(
408
+ options.granularity,
409
+ Math_default.RADIANS_PER_DEGREE
410
+ );
411
+ this._offsetAttribute = options.offsetAttribute;
412
+ this._workerName = "createCorridorOutlineGeometry";
413
+ this.packedLength = 1 + positions.length * Cartesian3_default.packedLength + Ellipsoid_default.packedLength + 6;
414
+ }
415
+ CorridorOutlineGeometry.pack = function(value, array, startingIndex) {
416
+ Check_default.typeOf.object("value", value);
417
+ Check_default.typeOf.object("array", array);
418
+ startingIndex = defaultValue_default(startingIndex, 0);
419
+ const positions = value._positions;
420
+ const length = positions.length;
421
+ array[startingIndex++] = length;
422
+ for (let i = 0; i < length; ++i, startingIndex += Cartesian3_default.packedLength) {
423
+ Cartesian3_default.pack(positions[i], array, startingIndex);
424
+ }
425
+ Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
426
+ startingIndex += Ellipsoid_default.packedLength;
427
+ array[startingIndex++] = value._width;
428
+ array[startingIndex++] = value._height;
429
+ array[startingIndex++] = value._extrudedHeight;
430
+ array[startingIndex++] = value._cornerType;
431
+ array[startingIndex++] = value._granularity;
432
+ array[startingIndex] = defaultValue_default(value._offsetAttribute, -1);
433
+ return array;
434
+ };
435
+ var scratchEllipsoid = Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE);
436
+ var scratchOptions = {
437
+ positions: void 0,
438
+ ellipsoid: scratchEllipsoid,
439
+ width: void 0,
440
+ height: void 0,
441
+ extrudedHeight: void 0,
442
+ cornerType: void 0,
443
+ granularity: void 0,
444
+ offsetAttribute: void 0
445
+ };
446
+ CorridorOutlineGeometry.unpack = function(array, startingIndex, result) {
447
+ Check_default.typeOf.object("array", array);
448
+ startingIndex = defaultValue_default(startingIndex, 0);
449
+ const length = array[startingIndex++];
450
+ const positions = new Array(length);
451
+ for (let i = 0; i < length; ++i, startingIndex += Cartesian3_default.packedLength) {
452
+ positions[i] = Cartesian3_default.unpack(array, startingIndex);
453
+ }
454
+ const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
455
+ startingIndex += Ellipsoid_default.packedLength;
456
+ const width = array[startingIndex++];
457
+ const height = array[startingIndex++];
458
+ const extrudedHeight = array[startingIndex++];
459
+ const cornerType = array[startingIndex++];
460
+ const granularity = array[startingIndex++];
461
+ const offsetAttribute = array[startingIndex];
462
+ if (!defined_default(result)) {
463
+ scratchOptions.positions = positions;
464
+ scratchOptions.width = width;
465
+ scratchOptions.height = height;
466
+ scratchOptions.extrudedHeight = extrudedHeight;
467
+ scratchOptions.cornerType = cornerType;
468
+ scratchOptions.granularity = granularity;
469
+ scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
470
+ return new CorridorOutlineGeometry(scratchOptions);
471
+ }
472
+ result._positions = positions;
473
+ result._ellipsoid = Ellipsoid_default.clone(ellipsoid, result._ellipsoid);
474
+ result._width = width;
475
+ result._height = height;
476
+ result._extrudedHeight = extrudedHeight;
477
+ result._cornerType = cornerType;
478
+ result._granularity = granularity;
479
+ result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
480
+ return result;
481
+ };
482
+ CorridorOutlineGeometry.createGeometry = function(corridorOutlineGeometry) {
483
+ let positions = corridorOutlineGeometry._positions;
484
+ const width = corridorOutlineGeometry._width;
485
+ const ellipsoid = corridorOutlineGeometry._ellipsoid;
486
+ positions = scaleToSurface(positions, ellipsoid);
487
+ const cleanPositions = arrayRemoveDuplicates_default(
488
+ positions,
489
+ Cartesian3_default.equalsEpsilon
490
+ );
491
+ if (cleanPositions.length < 2 || width <= 0) {
492
+ return;
493
+ }
494
+ const height = corridorOutlineGeometry._height;
495
+ const extrudedHeight = corridorOutlineGeometry._extrudedHeight;
496
+ const extrude = !Math_default.equalsEpsilon(
497
+ height,
498
+ extrudedHeight,
499
+ 0,
500
+ Math_default.EPSILON2
501
+ );
502
+ const params = {
503
+ ellipsoid,
504
+ positions: cleanPositions,
505
+ width,
506
+ cornerType: corridorOutlineGeometry._cornerType,
507
+ granularity: corridorOutlineGeometry._granularity,
508
+ saveAttributes: false
509
+ };
510
+ let attr;
511
+ if (extrude) {
512
+ params.height = height;
513
+ params.extrudedHeight = extrudedHeight;
514
+ params.offsetAttribute = corridorOutlineGeometry._offsetAttribute;
515
+ attr = computePositionsExtruded(params);
516
+ } else {
517
+ const computedPositions = CorridorGeometryLibrary_default.computePositions(params);
518
+ attr = combine(computedPositions, params.cornerType);
519
+ attr.attributes.position.values = PolygonPipeline_default.scaleToGeodeticHeight(
520
+ attr.attributes.position.values,
521
+ height,
522
+ ellipsoid
523
+ );
524
+ if (defined_default(corridorOutlineGeometry._offsetAttribute)) {
525
+ const length = attr.attributes.position.values.length;
526
+ const offsetValue = corridorOutlineGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
527
+ const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
528
+ attr.attributes.applyOffset = new GeometryAttribute_default({
529
+ componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
530
+ componentsPerAttribute: 1,
531
+ values: applyOffset
532
+ });
594
533
  }
595
- corridorOutlineGeometry._ellipsoid = Matrix3.Ellipsoid.clone(
596
- corridorOutlineGeometry._ellipsoid
534
+ }
535
+ const attributes = attr.attributes;
536
+ const boundingSphere = BoundingSphere_default.fromVertices(
537
+ attributes.position.values,
538
+ void 0,
539
+ 3
540
+ );
541
+ return new Geometry_default({
542
+ attributes,
543
+ indices: attr.indices,
544
+ primitiveType: PrimitiveType_default.LINES,
545
+ boundingSphere,
546
+ offsetAttribute: corridorOutlineGeometry._offsetAttribute
547
+ });
548
+ };
549
+ var CorridorOutlineGeometry_default = CorridorOutlineGeometry;
550
+
551
+ // packages/engine/Source/Workers/createCorridorOutlineGeometry.js
552
+ function createCorridorOutlineGeometry(corridorOutlineGeometry, offset) {
553
+ if (defined_default(offset)) {
554
+ corridorOutlineGeometry = CorridorOutlineGeometry_default.unpack(
555
+ corridorOutlineGeometry,
556
+ offset
597
557
  );
598
- return CorridorOutlineGeometry.createGeometry(corridorOutlineGeometry);
599
558
  }
600
-
601
- return createCorridorOutlineGeometry;
602
-
603
- }));
559
+ corridorOutlineGeometry._ellipsoid = Ellipsoid_default.clone(
560
+ corridorOutlineGeometry._ellipsoid
561
+ );
562
+ return CorridorOutlineGeometry_default.createGeometry(corridorOutlineGeometry);
563
+ }
564
+ var createCorridorOutlineGeometry_default = createCorridorOutlineGeometry;
565
+ export {
566
+ createCorridorOutlineGeometry_default as default
567
+ };