@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,72 +1,127 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', './Transforms-a2a85221', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-ff5b4fb1', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-b9f2810a', './RectangleGeometryLibrary-c35a7356', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, Matrix2, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype, Math$1, PolygonPipeline, RectangleGeometryLibrary, RuntimeError, combine, WebGLConstants, EllipsoidRhumbLine) { 'use strict';
2
-
3
- const bottomBoundingSphere = new Transforms.BoundingSphere();
4
- const topBoundingSphere = new Transforms.BoundingSphere();
5
- const positionScratch = new Matrix3.Cartesian3();
6
- const rectangleScratch = new Matrix2.Rectangle();
7
-
8
- function constructRectangle(geometry, computedOptions) {
9
- const ellipsoid = geometry._ellipsoid;
10
- const height = computedOptions.height;
11
- const width = computedOptions.width;
12
- const northCap = computedOptions.northCap;
13
- const southCap = computedOptions.southCap;
14
-
15
- let rowHeight = height;
16
- let widthMultiplier = 2;
17
- let size = 0;
18
- let corners = 4;
19
- if (northCap) {
20
- widthMultiplier -= 1;
21
- rowHeight -= 1;
22
- size += 1;
23
- corners -= 2;
24
- }
25
- if (southCap) {
26
- widthMultiplier -= 1;
27
- rowHeight -= 1;
28
- size += 1;
29
- corners -= 2;
30
- }
31
- size += widthMultiplier * width + 2 * rowHeight - corners;
32
-
33
- const positions = new Float64Array(size * 3);
34
-
35
- let posIndex = 0;
36
- let row = 0;
37
- let col;
38
- const position = positionScratch;
39
- if (northCap) {
40
- RectangleGeometryLibrary.RectangleGeometryLibrary.computePosition(
41
- computedOptions,
42
- ellipsoid,
43
- false,
44
- row,
45
- 0,
46
- position
47
- );
48
- positions[posIndex++] = position.x;
49
- positions[posIndex++] = position.y;
50
- positions[posIndex++] = position.z;
51
- } else {
52
- for (col = 0; col < width; col++) {
53
- RectangleGeometryLibrary.RectangleGeometryLibrary.computePosition(
54
- computedOptions,
55
- ellipsoid,
56
- false,
57
- row,
58
- col,
59
- position
60
- );
61
- positions[posIndex++] = position.x;
62
- positions[posIndex++] = position.y;
63
- positions[posIndex++] = position.z;
64
- }
65
- }
66
-
67
- col = width - 1;
68
- for (row = 1; row < height; row++) {
69
- RectangleGeometryLibrary.RectangleGeometryLibrary.computePosition(
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
+ RectangleGeometryLibrary_default
28
+ } from "./chunk-HARLBUOL.js";
29
+ import {
30
+ GeometryOffsetAttribute_default
31
+ } from "./chunk-MPAZH4BF.js";
32
+ import {
33
+ PolygonPipeline_default
34
+ } from "./chunk-J3JY6I2C.js";
35
+ import "./chunk-K36FEYS7.js";
36
+ import {
37
+ IndexDatatype_default
38
+ } from "./chunk-RW6LU2CJ.js";
39
+ import {
40
+ GeometryAttributes_default
41
+ } from "./chunk-EW2GWJYB.js";
42
+ import {
43
+ GeometryAttribute_default,
44
+ Geometry_default,
45
+ PrimitiveType_default
46
+ } from "./chunk-X4SU25DT.js";
47
+ import {
48
+ BoundingSphere_default
49
+ } from "./chunk-PFQBCKBM.js";
50
+ import "./chunk-QJ3DFBH3.js";
51
+ import {
52
+ Rectangle_default
53
+ } from "./chunk-DUHWWBQQ.js";
54
+ import {
55
+ ComponentDatatype_default
56
+ } from "./chunk-LLUNNUJV.js";
57
+ import {
58
+ Cartesian3_default,
59
+ Cartographic_default,
60
+ Ellipsoid_default
61
+ } from "./chunk-PCJWUS4M.js";
62
+ import {
63
+ Math_default
64
+ } from "./chunk-N3JIFFX2.js";
65
+ import "./chunk-AHKEZ2OE.js";
66
+ import "./chunk-ABADGKYE.js";
67
+ import {
68
+ defaultValue_default
69
+ } from "./chunk-WXTV4ATB.js";
70
+ import {
71
+ DeveloperError_default
72
+ } from "./chunk-4MFFIWUA.js";
73
+ import {
74
+ defined_default
75
+ } from "./chunk-6BTKZDRG.js";
76
+
77
+ // packages/engine/Source/Core/RectangleOutlineGeometry.js
78
+ var bottomBoundingSphere = new BoundingSphere_default();
79
+ var topBoundingSphere = new BoundingSphere_default();
80
+ var positionScratch = new Cartesian3_default();
81
+ var rectangleScratch = new Rectangle_default();
82
+ function constructRectangle(geometry, computedOptions) {
83
+ const ellipsoid = geometry._ellipsoid;
84
+ const height = computedOptions.height;
85
+ const width = computedOptions.width;
86
+ const northCap = computedOptions.northCap;
87
+ const southCap = computedOptions.southCap;
88
+ let rowHeight = height;
89
+ let widthMultiplier = 2;
90
+ let size = 0;
91
+ let corners = 4;
92
+ if (northCap) {
93
+ widthMultiplier -= 1;
94
+ rowHeight -= 1;
95
+ size += 1;
96
+ corners -= 2;
97
+ }
98
+ if (southCap) {
99
+ widthMultiplier -= 1;
100
+ rowHeight -= 1;
101
+ size += 1;
102
+ corners -= 2;
103
+ }
104
+ size += widthMultiplier * width + 2 * rowHeight - corners;
105
+ const positions = new Float64Array(size * 3);
106
+ let posIndex = 0;
107
+ let row = 0;
108
+ let col;
109
+ const position = positionScratch;
110
+ if (northCap) {
111
+ RectangleGeometryLibrary_default.computePosition(
112
+ computedOptions,
113
+ ellipsoid,
114
+ false,
115
+ row,
116
+ 0,
117
+ position
118
+ );
119
+ positions[posIndex++] = position.x;
120
+ positions[posIndex++] = position.y;
121
+ positions[posIndex++] = position.z;
122
+ } else {
123
+ for (col = 0; col < width; col++) {
124
+ RectangleGeometryLibrary_default.computePosition(
70
125
  computedOptions,
71
126
  ellipsoid,
72
127
  false,
@@ -78,28 +133,25 @@ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', '
78
133
  positions[posIndex++] = position.y;
79
134
  positions[posIndex++] = position.z;
80
135
  }
81
-
82
- row = height - 1;
83
- if (!southCap) {
84
- // if southCap is true, we dont need to add any more points because the south pole point was added by the iteration above
85
- for (col = width - 2; col >= 0; col--) {
86
- RectangleGeometryLibrary.RectangleGeometryLibrary.computePosition(
87
- computedOptions,
88
- ellipsoid,
89
- false,
90
- row,
91
- col,
92
- position
93
- );
94
- positions[posIndex++] = position.x;
95
- positions[posIndex++] = position.y;
96
- positions[posIndex++] = position.z;
97
- }
98
- }
99
-
100
- col = 0;
101
- for (row = height - 2; row > 0; row--) {
102
- RectangleGeometryLibrary.RectangleGeometryLibrary.computePosition(
136
+ }
137
+ col = width - 1;
138
+ for (row = 1; row < height; row++) {
139
+ RectangleGeometryLibrary_default.computePosition(
140
+ computedOptions,
141
+ ellipsoid,
142
+ false,
143
+ row,
144
+ col,
145
+ position
146
+ );
147
+ positions[posIndex++] = position.x;
148
+ positions[posIndex++] = position.y;
149
+ positions[posIndex++] = position.z;
150
+ }
151
+ row = height - 1;
152
+ if (!southCap) {
153
+ for (col = width - 2; col >= 0; col--) {
154
+ RectangleGeometryLibrary_default.computePosition(
103
155
  computedOptions,
104
156
  ellipsoid,
105
157
  false,
@@ -111,425 +163,318 @@ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', '
111
163
  positions[posIndex++] = position.y;
112
164
  positions[posIndex++] = position.z;
113
165
  }
114
-
115
- const indicesSize = (positions.length / 3) * 2;
116
- const indices = IndexDatatype.IndexDatatype.createTypedArray(
117
- positions.length / 3,
118
- indicesSize
119
- );
120
-
121
- let index = 0;
122
- for (let i = 0; i < positions.length / 3 - 1; i++) {
123
- indices[index++] = i;
124
- indices[index++] = i + 1;
125
- }
126
- indices[index++] = positions.length / 3 - 1;
127
- indices[index++] = 0;
128
-
129
- const geo = new GeometryAttribute.Geometry({
130
- attributes: new GeometryAttributes.GeometryAttributes(),
131
- primitiveType: GeometryAttribute.PrimitiveType.LINES,
132
- });
133
-
134
- geo.attributes.position = new GeometryAttribute.GeometryAttribute({
135
- componentDatatype: ComponentDatatype.ComponentDatatype.DOUBLE,
136
- componentsPerAttribute: 3,
137
- values: positions,
138
- });
139
- geo.indices = indices;
140
-
141
- return geo;
142
166
  }
143
-
144
- function constructExtrudedRectangle(rectangleGeometry, computedOptions) {
145
- const surfaceHeight = rectangleGeometry._surfaceHeight;
146
- const extrudedHeight = rectangleGeometry._extrudedHeight;
147
- const ellipsoid = rectangleGeometry._ellipsoid;
148
- const minHeight = extrudedHeight;
149
- const maxHeight = surfaceHeight;
150
- const geo = constructRectangle(rectangleGeometry, computedOptions);
151
-
152
- const height = computedOptions.height;
153
- const width = computedOptions.width;
154
-
155
- const topPositions = PolygonPipeline.PolygonPipeline.scaleToGeodeticHeight(
156
- geo.attributes.position.values,
157
- maxHeight,
167
+ col = 0;
168
+ for (row = height - 2; row > 0; row--) {
169
+ RectangleGeometryLibrary_default.computePosition(
170
+ computedOptions,
158
171
  ellipsoid,
159
- false
160
- );
161
- let length = topPositions.length;
162
- const positions = new Float64Array(length * 2);
163
- positions.set(topPositions);
164
- const bottomPositions = PolygonPipeline.PolygonPipeline.scaleToGeodeticHeight(
165
- geo.attributes.position.values,
166
- minHeight,
167
- ellipsoid
172
+ false,
173
+ row,
174
+ col,
175
+ position
168
176
  );
169
- positions.set(bottomPositions, length);
170
- geo.attributes.position.values = positions;
171
-
172
- const northCap = computedOptions.northCap;
173
- const southCap = computedOptions.southCap;
174
- let corners = 4;
175
- if (northCap) {
176
- corners -= 1;
177
- }
178
- if (southCap) {
179
- corners -= 1;
180
- }
181
-
182
- const indicesSize = (positions.length / 3 + corners) * 2;
183
- const indices = IndexDatatype.IndexDatatype.createTypedArray(
184
- positions.length / 3,
185
- indicesSize
186
- );
187
- length = positions.length / 6;
188
- let index = 0;
189
- for (let i = 0; i < length - 1; i++) {
190
- indices[index++] = i;
191
- indices[index++] = i + 1;
192
- indices[index++] = i + length;
193
- indices[index++] = i + length + 1;
194
- }
195
- indices[index++] = length - 1;
196
- indices[index++] = 0;
197
- indices[index++] = length + length - 1;
198
- indices[index++] = length;
199
-
200
- indices[index++] = 0;
201
- indices[index++] = length;
202
-
203
- let bottomCorner;
204
- if (northCap) {
205
- bottomCorner = height - 1;
206
- } else {
207
- const topRightCorner = width - 1;
208
- indices[index++] = topRightCorner;
209
- indices[index++] = topRightCorner + length;
210
- bottomCorner = width + height - 2;
211
- }
212
-
213
- indices[index++] = bottomCorner;
214
- indices[index++] = bottomCorner + length;
215
-
216
- if (!southCap) {
217
- const bottomLeftCorner = width + bottomCorner - 1;
218
- indices[index++] = bottomLeftCorner;
219
- indices[index] = bottomLeftCorner + length;
220
- }
221
-
222
- geo.indices = indices;
223
-
224
- return geo;
177
+ positions[posIndex++] = position.x;
178
+ positions[posIndex++] = position.y;
179
+ positions[posIndex++] = position.z;
225
180
  }
226
-
227
- /**
228
- * A description of the outline of a a cartographic rectangle on an ellipsoid centered at the origin.
229
- *
230
- * @alias RectangleOutlineGeometry
231
- * @constructor
232
- *
233
- * @param {object} options Object with the following properties:
234
- * @param {Rectangle} options.rectangle A cartographic rectangle with north, south, east and west properties in radians.
235
- * @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the rectangle lies.
236
- * @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.
237
- * @param {number} [options.height=0.0] The distance in meters between the rectangle and the ellipsoid surface.
238
- * @param {number} [options.rotation=0.0] The rotation of the rectangle, in radians. A positive rotation is counter-clockwise.
239
- * @param {number} [options.extrudedHeight] The distance in meters between the rectangle's extruded face and the ellipsoid surface.
240
- *
241
- * @exception {DeveloperError} <code>options.rectangle.north</code> must be in the interval [<code>-Pi/2</code>, <code>Pi/2</code>].
242
- * @exception {DeveloperError} <code>options.rectangle.south</code> must be in the interval [<code>-Pi/2</code>, <code>Pi/2</code>].
243
- * @exception {DeveloperError} <code>options.rectangle.east</code> must be in the interval [<code>-Pi</code>, <code>Pi</code>].
244
- * @exception {DeveloperError} <code>options.rectangle.west</code> must be in the interval [<code>-Pi</code>, <code>Pi</code>].
245
- * @exception {DeveloperError} <code>options.rectangle.north</code> must be greater than <code>rectangle.south</code>.
246
- *
247
- * @see RectangleOutlineGeometry#createGeometry
248
- *
249
- * @example
250
- * const rectangle = new Cesium.RectangleOutlineGeometry({
251
- * ellipsoid : Cesium.Ellipsoid.WGS84,
252
- * rectangle : Cesium.Rectangle.fromDegrees(-80.0, 39.0, -74.0, 42.0),
253
- * height : 10000.0
254
- * });
255
- * const geometry = Cesium.RectangleOutlineGeometry.createGeometry(rectangle);
256
- */
257
- function RectangleOutlineGeometry(options) {
258
- options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
259
-
260
- const rectangle = options.rectangle;
261
- const granularity = defaultValue.defaultValue(
262
- options.granularity,
263
- Math$1.CesiumMath.RADIANS_PER_DEGREE
181
+ const indicesSize = positions.length / 3 * 2;
182
+ const indices = IndexDatatype_default.createTypedArray(
183
+ positions.length / 3,
184
+ indicesSize
185
+ );
186
+ let index = 0;
187
+ for (let i = 0; i < positions.length / 3 - 1; i++) {
188
+ indices[index++] = i;
189
+ indices[index++] = i + 1;
190
+ }
191
+ indices[index++] = positions.length / 3 - 1;
192
+ indices[index++] = 0;
193
+ const geo = new Geometry_default({
194
+ attributes: new GeometryAttributes_default(),
195
+ primitiveType: PrimitiveType_default.LINES
196
+ });
197
+ geo.attributes.position = new GeometryAttribute_default({
198
+ componentDatatype: ComponentDatatype_default.DOUBLE,
199
+ componentsPerAttribute: 3,
200
+ values: positions
201
+ });
202
+ geo.indices = indices;
203
+ return geo;
204
+ }
205
+ function constructExtrudedRectangle(rectangleGeometry, computedOptions) {
206
+ const surfaceHeight = rectangleGeometry._surfaceHeight;
207
+ const extrudedHeight = rectangleGeometry._extrudedHeight;
208
+ const ellipsoid = rectangleGeometry._ellipsoid;
209
+ const minHeight = extrudedHeight;
210
+ const maxHeight = surfaceHeight;
211
+ const geo = constructRectangle(rectangleGeometry, computedOptions);
212
+ const height = computedOptions.height;
213
+ const width = computedOptions.width;
214
+ const topPositions = PolygonPipeline_default.scaleToGeodeticHeight(
215
+ geo.attributes.position.values,
216
+ maxHeight,
217
+ ellipsoid,
218
+ false
219
+ );
220
+ let length = topPositions.length;
221
+ const positions = new Float64Array(length * 2);
222
+ positions.set(topPositions);
223
+ const bottomPositions = PolygonPipeline_default.scaleToGeodeticHeight(
224
+ geo.attributes.position.values,
225
+ minHeight,
226
+ ellipsoid
227
+ );
228
+ positions.set(bottomPositions, length);
229
+ geo.attributes.position.values = positions;
230
+ const northCap = computedOptions.northCap;
231
+ const southCap = computedOptions.southCap;
232
+ let corners = 4;
233
+ if (northCap) {
234
+ corners -= 1;
235
+ }
236
+ if (southCap) {
237
+ corners -= 1;
238
+ }
239
+ const indicesSize = (positions.length / 3 + corners) * 2;
240
+ const indices = IndexDatatype_default.createTypedArray(
241
+ positions.length / 3,
242
+ indicesSize
243
+ );
244
+ length = positions.length / 6;
245
+ let index = 0;
246
+ for (let i = 0; i < length - 1; i++) {
247
+ indices[index++] = i;
248
+ indices[index++] = i + 1;
249
+ indices[index++] = i + length;
250
+ indices[index++] = i + length + 1;
251
+ }
252
+ indices[index++] = length - 1;
253
+ indices[index++] = 0;
254
+ indices[index++] = length + length - 1;
255
+ indices[index++] = length;
256
+ indices[index++] = 0;
257
+ indices[index++] = length;
258
+ let bottomCorner;
259
+ if (northCap) {
260
+ bottomCorner = height - 1;
261
+ } else {
262
+ const topRightCorner = width - 1;
263
+ indices[index++] = topRightCorner;
264
+ indices[index++] = topRightCorner + length;
265
+ bottomCorner = width + height - 2;
266
+ }
267
+ indices[index++] = bottomCorner;
268
+ indices[index++] = bottomCorner + length;
269
+ if (!southCap) {
270
+ const bottomLeftCorner = width + bottomCorner - 1;
271
+ indices[index++] = bottomLeftCorner;
272
+ indices[index] = bottomLeftCorner + length;
273
+ }
274
+ geo.indices = indices;
275
+ return geo;
276
+ }
277
+ function RectangleOutlineGeometry(options) {
278
+ options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
279
+ const rectangle = options.rectangle;
280
+ const granularity = defaultValue_default(
281
+ options.granularity,
282
+ Math_default.RADIANS_PER_DEGREE
283
+ );
284
+ const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84);
285
+ const rotation = defaultValue_default(options.rotation, 0);
286
+ if (!defined_default(rectangle)) {
287
+ throw new DeveloperError_default("rectangle is required.");
288
+ }
289
+ Rectangle_default.validate(rectangle);
290
+ if (rectangle.north < rectangle.south) {
291
+ throw new DeveloperError_default(
292
+ "options.rectangle.north must be greater than options.rectangle.south"
264
293
  );
265
- const ellipsoid = defaultValue.defaultValue(options.ellipsoid, Matrix3.Ellipsoid.WGS84);
266
- const rotation = defaultValue.defaultValue(options.rotation, 0.0);
267
-
268
- //>>includeStart('debug', pragmas.debug);
269
- if (!defaultValue.defined(rectangle)) {
270
- throw new Check.DeveloperError("rectangle is required.");
271
- }
272
- Matrix2.Rectangle.validate(rectangle);
273
- if (rectangle.north < rectangle.south) {
274
- throw new Check.DeveloperError(
275
- "options.rectangle.north must be greater than options.rectangle.south"
276
- );
277
- }
278
- //>>includeEnd('debug');
279
-
280
- const height = defaultValue.defaultValue(options.height, 0.0);
281
- const extrudedHeight = defaultValue.defaultValue(options.extrudedHeight, height);
282
-
283
- this._rectangle = Matrix2.Rectangle.clone(rectangle);
284
- this._granularity = granularity;
285
- this._ellipsoid = ellipsoid;
286
- this._surfaceHeight = Math.max(height, extrudedHeight);
287
- this._rotation = rotation;
288
- this._extrudedHeight = Math.min(height, extrudedHeight);
289
- this._offsetAttribute = options.offsetAttribute;
290
- this._workerName = "createRectangleOutlineGeometry";
291
294
  }
292
-
293
- /**
294
- * The number of elements used to pack the object into an array.
295
- * @type {number}
296
- */
297
- RectangleOutlineGeometry.packedLength =
298
- Matrix2.Rectangle.packedLength + Matrix3.Ellipsoid.packedLength + 5;
299
-
300
- /**
301
- * Stores the provided instance into the provided array.
302
- *
303
- * @param {RectangleOutlineGeometry} value The value to pack.
304
- * @param {number[]} array The array to pack into.
305
- * @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
306
- *
307
- * @returns {number[]} The array that was packed into
308
- */
309
- RectangleOutlineGeometry.pack = function (value, array, startingIndex) {
310
- //>>includeStart('debug', pragmas.debug);
311
- if (!defaultValue.defined(value)) {
312
- throw new Check.DeveloperError("value is required");
313
- }
314
-
315
- if (!defaultValue.defined(array)) {
316
- throw new Check.DeveloperError("array is required");
317
- }
318
- //>>includeEnd('debug');
319
-
320
- startingIndex = defaultValue.defaultValue(startingIndex, 0);
321
-
322
- Matrix2.Rectangle.pack(value._rectangle, array, startingIndex);
323
- startingIndex += Matrix2.Rectangle.packedLength;
324
-
325
- Matrix3.Ellipsoid.pack(value._ellipsoid, array, startingIndex);
326
- startingIndex += Matrix3.Ellipsoid.packedLength;
327
-
328
- array[startingIndex++] = value._granularity;
329
- array[startingIndex++] = value._surfaceHeight;
330
- array[startingIndex++] = value._rotation;
331
- array[startingIndex++] = value._extrudedHeight;
332
- array[startingIndex] = defaultValue.defaultValue(value._offsetAttribute, -1);
333
-
334
- return array;
335
- };
336
-
337
- const scratchRectangle = new Matrix2.Rectangle();
338
- const scratchEllipsoid = Matrix3.Ellipsoid.clone(Matrix3.Ellipsoid.UNIT_SPHERE);
339
- const scratchOptions = {
340
- rectangle: scratchRectangle,
341
- ellipsoid: scratchEllipsoid,
342
- granularity: undefined,
343
- height: undefined,
344
- rotation: undefined,
345
- extrudedHeight: undefined,
346
- offsetAttribute: undefined,
347
- };
348
-
349
- /**
350
- * Retrieves an instance from a packed array.
351
- *
352
- * @param {number[]} array The packed array.
353
- * @param {number} [startingIndex=0] The starting index of the element to be unpacked.
354
- * @param {RectangleOutlineGeometry} [result] The object into which to store the result.
355
- * @returns {RectangleOutlineGeometry} The modified result parameter or a new Quaternion instance if one was not provided.
356
- */
357
- RectangleOutlineGeometry.unpack = function (array, startingIndex, result) {
358
- //>>includeStart('debug', pragmas.debug);
359
- if (!defaultValue.defined(array)) {
360
- throw new Check.DeveloperError("array is required");
361
- }
362
- //>>includeEnd('debug');
363
-
364
- startingIndex = defaultValue.defaultValue(startingIndex, 0);
365
-
366
- const rectangle = Matrix2.Rectangle.unpack(array, startingIndex, scratchRectangle);
367
- startingIndex += Matrix2.Rectangle.packedLength;
368
-
369
- const ellipsoid = Matrix3.Ellipsoid.unpack(array, startingIndex, scratchEllipsoid);
370
- startingIndex += Matrix3.Ellipsoid.packedLength;
371
-
372
- const granularity = array[startingIndex++];
373
- const height = array[startingIndex++];
374
- const rotation = array[startingIndex++];
375
- const extrudedHeight = array[startingIndex++];
376
- const offsetAttribute = array[startingIndex];
377
-
378
- if (!defaultValue.defined(result)) {
379
- scratchOptions.granularity = granularity;
380
- scratchOptions.height = height;
381
- scratchOptions.rotation = rotation;
382
- scratchOptions.extrudedHeight = extrudedHeight;
383
- scratchOptions.offsetAttribute =
384
- offsetAttribute === -1 ? undefined : offsetAttribute;
385
-
386
- return new RectangleOutlineGeometry(scratchOptions);
295
+ const height = defaultValue_default(options.height, 0);
296
+ const extrudedHeight = defaultValue_default(options.extrudedHeight, height);
297
+ this._rectangle = Rectangle_default.clone(rectangle);
298
+ this._granularity = granularity;
299
+ this._ellipsoid = ellipsoid;
300
+ this._surfaceHeight = Math.max(height, extrudedHeight);
301
+ this._rotation = rotation;
302
+ this._extrudedHeight = Math.min(height, extrudedHeight);
303
+ this._offsetAttribute = options.offsetAttribute;
304
+ this._workerName = "createRectangleOutlineGeometry";
305
+ }
306
+ RectangleOutlineGeometry.packedLength = Rectangle_default.packedLength + Ellipsoid_default.packedLength + 5;
307
+ RectangleOutlineGeometry.pack = function(value, array, startingIndex) {
308
+ if (!defined_default(value)) {
309
+ throw new DeveloperError_default("value is required");
310
+ }
311
+ if (!defined_default(array)) {
312
+ throw new DeveloperError_default("array is required");
313
+ }
314
+ startingIndex = defaultValue_default(startingIndex, 0);
315
+ Rectangle_default.pack(value._rectangle, array, startingIndex);
316
+ startingIndex += Rectangle_default.packedLength;
317
+ Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
318
+ startingIndex += Ellipsoid_default.packedLength;
319
+ array[startingIndex++] = value._granularity;
320
+ array[startingIndex++] = value._surfaceHeight;
321
+ array[startingIndex++] = value._rotation;
322
+ array[startingIndex++] = value._extrudedHeight;
323
+ array[startingIndex] = defaultValue_default(value._offsetAttribute, -1);
324
+ return array;
325
+ };
326
+ var scratchRectangle = new Rectangle_default();
327
+ var scratchEllipsoid = Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE);
328
+ var scratchOptions = {
329
+ rectangle: scratchRectangle,
330
+ ellipsoid: scratchEllipsoid,
331
+ granularity: void 0,
332
+ height: void 0,
333
+ rotation: void 0,
334
+ extrudedHeight: void 0,
335
+ offsetAttribute: void 0
336
+ };
337
+ RectangleOutlineGeometry.unpack = function(array, startingIndex, result) {
338
+ if (!defined_default(array)) {
339
+ throw new DeveloperError_default("array is required");
340
+ }
341
+ startingIndex = defaultValue_default(startingIndex, 0);
342
+ const rectangle = Rectangle_default.unpack(array, startingIndex, scratchRectangle);
343
+ startingIndex += Rectangle_default.packedLength;
344
+ const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
345
+ startingIndex += Ellipsoid_default.packedLength;
346
+ const granularity = array[startingIndex++];
347
+ const height = array[startingIndex++];
348
+ const rotation = array[startingIndex++];
349
+ const extrudedHeight = array[startingIndex++];
350
+ const offsetAttribute = array[startingIndex];
351
+ if (!defined_default(result)) {
352
+ scratchOptions.granularity = granularity;
353
+ scratchOptions.height = height;
354
+ scratchOptions.rotation = rotation;
355
+ scratchOptions.extrudedHeight = extrudedHeight;
356
+ scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
357
+ return new RectangleOutlineGeometry(scratchOptions);
358
+ }
359
+ result._rectangle = Rectangle_default.clone(rectangle, result._rectangle);
360
+ result._ellipsoid = Ellipsoid_default.clone(ellipsoid, result._ellipsoid);
361
+ result._surfaceHeight = height;
362
+ result._rotation = rotation;
363
+ result._extrudedHeight = extrudedHeight;
364
+ result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
365
+ return result;
366
+ };
367
+ var nwScratch = new Cartographic_default();
368
+ RectangleOutlineGeometry.createGeometry = function(rectangleGeometry) {
369
+ const rectangle = rectangleGeometry._rectangle;
370
+ const ellipsoid = rectangleGeometry._ellipsoid;
371
+ const computedOptions = RectangleGeometryLibrary_default.computeOptions(
372
+ rectangle,
373
+ rectangleGeometry._granularity,
374
+ rectangleGeometry._rotation,
375
+ 0,
376
+ rectangleScratch,
377
+ nwScratch
378
+ );
379
+ let geometry;
380
+ let boundingSphere;
381
+ if (Math_default.equalsEpsilon(
382
+ rectangle.north,
383
+ rectangle.south,
384
+ Math_default.EPSILON10
385
+ ) || Math_default.equalsEpsilon(
386
+ rectangle.east,
387
+ rectangle.west,
388
+ Math_default.EPSILON10
389
+ )) {
390
+ return void 0;
391
+ }
392
+ const surfaceHeight = rectangleGeometry._surfaceHeight;
393
+ const extrudedHeight = rectangleGeometry._extrudedHeight;
394
+ const extrude = !Math_default.equalsEpsilon(
395
+ surfaceHeight,
396
+ extrudedHeight,
397
+ 0,
398
+ Math_default.EPSILON2
399
+ );
400
+ let offsetValue;
401
+ if (extrude) {
402
+ geometry = constructExtrudedRectangle(rectangleGeometry, computedOptions);
403
+ if (defined_default(rectangleGeometry._offsetAttribute)) {
404
+ const size = geometry.attributes.position.values.length / 3;
405
+ let offsetAttribute = new Uint8Array(size);
406
+ if (rectangleGeometry._offsetAttribute === GeometryOffsetAttribute_default.TOP) {
407
+ offsetAttribute = offsetAttribute.fill(1, 0, size / 2);
408
+ } else {
409
+ offsetValue = rectangleGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
410
+ offsetAttribute = offsetAttribute.fill(offsetValue);
411
+ }
412
+ geometry.attributes.applyOffset = new GeometryAttribute_default({
413
+ componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
414
+ componentsPerAttribute: 1,
415
+ values: offsetAttribute
416
+ });
387
417
  }
388
-
389
- result._rectangle = Matrix2.Rectangle.clone(rectangle, result._rectangle);
390
- result._ellipsoid = Matrix3.Ellipsoid.clone(ellipsoid, result._ellipsoid);
391
- result._surfaceHeight = height;
392
- result._rotation = rotation;
393
- result._extrudedHeight = extrudedHeight;
394
- result._offsetAttribute =
395
- offsetAttribute === -1 ? undefined : offsetAttribute;
396
-
397
- return result;
398
- };
399
-
400
- const nwScratch = new Matrix3.Cartographic();
401
- /**
402
- * Computes the geometric representation of an outline of a rectangle, including its vertices, indices, and a bounding sphere.
403
- *
404
- * @param {RectangleOutlineGeometry} rectangleGeometry A description of the rectangle outline.
405
- * @returns {Geometry|undefined} The computed vertices and indices.
406
- *
407
- * @exception {DeveloperError} Rotated rectangle is invalid.
408
- */
409
- RectangleOutlineGeometry.createGeometry = function (rectangleGeometry) {
410
- const rectangle = rectangleGeometry._rectangle;
411
- const ellipsoid = rectangleGeometry._ellipsoid;
412
- const computedOptions = RectangleGeometryLibrary.RectangleGeometryLibrary.computeOptions(
418
+ const topBS = BoundingSphere_default.fromRectangle3D(
413
419
  rectangle,
414
- rectangleGeometry._granularity,
415
- rectangleGeometry._rotation,
416
- 0,
417
- rectangleScratch,
418
- nwScratch
419
- );
420
-
421
- let geometry;
422
- let boundingSphere;
423
-
424
- if (
425
- Math$1.CesiumMath.equalsEpsilon(
426
- rectangle.north,
427
- rectangle.south,
428
- Math$1.CesiumMath.EPSILON10
429
- ) ||
430
- Math$1.CesiumMath.equalsEpsilon(
431
- rectangle.east,
432
- rectangle.west,
433
- Math$1.CesiumMath.EPSILON10
434
- )
435
- ) {
436
- return undefined;
437
- }
438
-
439
- const surfaceHeight = rectangleGeometry._surfaceHeight;
440
- const extrudedHeight = rectangleGeometry._extrudedHeight;
441
- const extrude = !Math$1.CesiumMath.equalsEpsilon(
420
+ ellipsoid,
442
421
  surfaceHeight,
422
+ topBoundingSphere
423
+ );
424
+ const bottomBS = BoundingSphere_default.fromRectangle3D(
425
+ rectangle,
426
+ ellipsoid,
443
427
  extrudedHeight,
444
- 0,
445
- Math$1.CesiumMath.EPSILON2
428
+ bottomBoundingSphere
446
429
  );
447
- let offsetValue;
448
- if (extrude) {
449
- geometry = constructExtrudedRectangle(rectangleGeometry, computedOptions);
450
- if (defaultValue.defined(rectangleGeometry._offsetAttribute)) {
451
- const size = geometry.attributes.position.values.length / 3;
452
- let offsetAttribute = new Uint8Array(size);
453
- if (rectangleGeometry._offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.TOP) {
454
- offsetAttribute = offsetAttribute.fill(1, 0, size / 2);
455
- } else {
456
- offsetValue =
457
- rectangleGeometry._offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.NONE
458
- ? 0
459
- : 1;
460
- offsetAttribute = offsetAttribute.fill(offsetValue);
461
- }
462
-
463
- geometry.attributes.applyOffset = new GeometryAttribute.GeometryAttribute({
464
- componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
465
- componentsPerAttribute: 1,
466
- values: offsetAttribute,
467
- });
468
- }
469
- const topBS = Transforms.BoundingSphere.fromRectangle3D(
470
- rectangle,
471
- ellipsoid,
472
- surfaceHeight,
473
- topBoundingSphere
474
- );
475
- const bottomBS = Transforms.BoundingSphere.fromRectangle3D(
476
- rectangle,
477
- ellipsoid,
478
- extrudedHeight,
479
- bottomBoundingSphere
480
- );
481
- boundingSphere = Transforms.BoundingSphere.union(topBS, bottomBS);
482
- } else {
483
- geometry = constructRectangle(rectangleGeometry, computedOptions);
484
- geometry.attributes.position.values = PolygonPipeline.PolygonPipeline.scaleToGeodeticHeight(
485
- geometry.attributes.position.values,
486
- surfaceHeight,
487
- ellipsoid,
488
- false
489
- );
490
-
491
- if (defaultValue.defined(rectangleGeometry._offsetAttribute)) {
492
- const length = geometry.attributes.position.values.length;
493
- offsetValue =
494
- rectangleGeometry._offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.NONE
495
- ? 0
496
- : 1;
497
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
498
- geometry.attributes.applyOffset = new GeometryAttribute.GeometryAttribute({
499
- componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
500
- componentsPerAttribute: 1,
501
- values: applyOffset,
502
- });
503
- }
504
-
505
- boundingSphere = Transforms.BoundingSphere.fromRectangle3D(
506
- rectangle,
507
- ellipsoid,
508
- surfaceHeight
509
- );
510
- }
511
-
512
- return new GeometryAttribute.Geometry({
513
- attributes: geometry.attributes,
514
- indices: geometry.indices,
515
- primitiveType: GeometryAttribute.PrimitiveType.LINES,
516
- boundingSphere: boundingSphere,
517
- offsetAttribute: rectangleGeometry._offsetAttribute,
518
- });
519
- };
520
-
521
- function createRectangleOutlineGeometry(rectangleGeometry, offset) {
522
- if (defaultValue.defined(offset)) {
523
- rectangleGeometry = RectangleOutlineGeometry.unpack(
524
- rectangleGeometry,
525
- offset
526
- );
430
+ boundingSphere = BoundingSphere_default.union(topBS, bottomBS);
431
+ } else {
432
+ geometry = constructRectangle(rectangleGeometry, computedOptions);
433
+ geometry.attributes.position.values = PolygonPipeline_default.scaleToGeodeticHeight(
434
+ geometry.attributes.position.values,
435
+ surfaceHeight,
436
+ ellipsoid,
437
+ false
438
+ );
439
+ if (defined_default(rectangleGeometry._offsetAttribute)) {
440
+ const length = geometry.attributes.position.values.length;
441
+ offsetValue = rectangleGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
442
+ const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
443
+ geometry.attributes.applyOffset = new GeometryAttribute_default({
444
+ componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
445
+ componentsPerAttribute: 1,
446
+ values: applyOffset
447
+ });
527
448
  }
528
- rectangleGeometry._ellipsoid = Matrix3.Ellipsoid.clone(rectangleGeometry._ellipsoid);
529
- rectangleGeometry._rectangle = Matrix2.Rectangle.clone(rectangleGeometry._rectangle);
530
- return RectangleOutlineGeometry.createGeometry(rectangleGeometry);
449
+ boundingSphere = BoundingSphere_default.fromRectangle3D(
450
+ rectangle,
451
+ ellipsoid,
452
+ surfaceHeight
453
+ );
531
454
  }
532
-
533
- return createRectangleOutlineGeometry;
534
-
535
- }));
455
+ return new Geometry_default({
456
+ attributes: geometry.attributes,
457
+ indices: geometry.indices,
458
+ primitiveType: PrimitiveType_default.LINES,
459
+ boundingSphere,
460
+ offsetAttribute: rectangleGeometry._offsetAttribute
461
+ });
462
+ };
463
+ var RectangleOutlineGeometry_default = RectangleOutlineGeometry;
464
+
465
+ // packages/engine/Source/Workers/createRectangleOutlineGeometry.js
466
+ function createRectangleOutlineGeometry(rectangleGeometry, offset) {
467
+ if (defined_default(offset)) {
468
+ rectangleGeometry = RectangleOutlineGeometry_default.unpack(
469
+ rectangleGeometry,
470
+ offset
471
+ );
472
+ }
473
+ rectangleGeometry._ellipsoid = Ellipsoid_default.clone(rectangleGeometry._ellipsoid);
474
+ rectangleGeometry._rectangle = Rectangle_default.clone(rectangleGeometry._rectangle);
475
+ return RectangleOutlineGeometry_default.createGeometry(rectangleGeometry);
476
+ }
477
+ var createRectangleOutlineGeometry_default = createRectangleOutlineGeometry;
478
+ export {
479
+ createRectangleOutlineGeometry_default as default
480
+ };