@mapgis/cesium 17.2.3 → 17.2.6

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 (703) hide show
  1. package/Documentation/AlgorithmLib.html +29 -29
  2. package/Documentation/AngulationTool.html +5 -5
  3. package/Documentation/Animation.html +7 -7
  4. package/Documentation/AnimationTool.html +41 -41
  5. package/Documentation/AnimationViewModel.html +23 -23
  6. package/Documentation/Appearance.html +10 -10
  7. package/Documentation/ArcGISTiledElevationTerrainProvider.html +13 -13
  8. package/Documentation/ArcGisMapServerImageryProvider.html +33 -33
  9. package/Documentation/AssociativeArray.html +8 -8
  10. package/Documentation/AttributeSurfacePrimitive.html +7 -7
  11. package/Documentation/AxisAlignedBoundingBox.html +11 -11
  12. package/Documentation/BaiduImageryProvider.html +29 -29
  13. package/Documentation/BaiduMapImagerProvider.html +1 -1
  14. package/Documentation/BaiduProjection.html +7 -7
  15. package/Documentation/BaseLayerPicker.html +5 -5
  16. package/Documentation/BaseLayerPickerViewModel.html +10 -10
  17. package/Documentation/Billboard.html +31 -31
  18. package/Documentation/BillboardCollection.html +17 -17
  19. package/Documentation/BillboardGraphics.html +25 -25
  20. package/Documentation/BillboardVisualizer.html +4 -4
  21. package/Documentation/BingMapsGeocoderService.html +4 -4
  22. package/Documentation/BingMapsImageryProvider.html +35 -35
  23. package/Documentation/BlendingState.html +5 -5
  24. package/Documentation/BloomEffect.html +12 -12
  25. package/Documentation/BoundingRectangle.html +18 -18
  26. package/Documentation/BoundingSphere.html +34 -34
  27. package/Documentation/BoxEmitter.html +2 -2
  28. package/Documentation/BoxGeometry.html +7 -7
  29. package/Documentation/BoxGeometryUpdater.html +3 -3
  30. package/Documentation/BoxGraphics.html +15 -15
  31. package/Documentation/BoxOutlineGeometry.html +7 -7
  32. package/Documentation/CallbackProperty.html +7 -7
  33. package/Documentation/Camera.html +80 -80
  34. package/Documentation/CameraEventAggregator.html +13 -13
  35. package/Documentation/Cartesian2.html +44 -44
  36. package/Documentation/Cartesian3.html +54 -54
  37. package/Documentation/Cartesian4.html +46 -46
  38. package/Documentation/Cartographic.html +16 -16
  39. package/Documentation/CartographicGeocoderService.html +2 -2
  40. package/Documentation/CatmullRomSpline.html +9 -9
  41. package/Documentation/Cesium3DTile.html +12 -12
  42. package/Documentation/Cesium3DTileContent.html +14 -14
  43. package/Documentation/Cesium3DTileCustomContent.html +1 -1
  44. package/Documentation/Cesium3DTileFeature.html +10 -10
  45. package/Documentation/Cesium3DTilePointFeature.html +33 -33
  46. package/Documentation/Cesium3DTileStyle.html +31 -31
  47. package/Documentation/Cesium3DTilesInspector.html +5 -5
  48. package/Documentation/Cesium3DTilesInspectorViewModel.html +70 -70
  49. package/Documentation/Cesium3DTileset.html +91 -91
  50. package/Documentation/Cesium3DTilesetGraphics.html +8 -8
  51. package/Documentation/Cesium3DTilesetVisualizer.html +4 -4
  52. package/Documentation/CesiumHeatmap.html +3 -3
  53. package/Documentation/CesiumInspector.html +5 -5
  54. package/Documentation/CesiumInspectorViewModel.html +52 -52
  55. package/Documentation/CesiumNavigation.html +1 -1
  56. package/Documentation/CesiumTerrainProvider.html +18 -18
  57. package/Documentation/CesiumWidget.html +20 -20
  58. package/Documentation/CheckerboardMaterialProperty.html +9 -9
  59. package/Documentation/CircleEmitter.html +3 -3
  60. package/Documentation/CircleGeometry.html +5 -5
  61. package/Documentation/CircleOutlineGeometry.html +5 -5
  62. package/Documentation/CircleScanEffect.html +1 -1
  63. package/Documentation/CircleWaveMaterialProperty.html +1 -1
  64. package/Documentation/ClassificationPrimitive.html +21 -21
  65. package/Documentation/ClippingGeometry.html +4 -4
  66. package/Documentation/ClippingPlane.html +5 -5
  67. package/Documentation/ClippingPlaneCollection.html +17 -17
  68. package/Documentation/Clock.html +12 -12
  69. package/Documentation/ClockViewModel.html +14 -14
  70. package/Documentation/CollisionDetectionByRender.html +10 -10
  71. package/Documentation/Color.html +185 -185
  72. package/Documentation/ColorGeometryInstanceAttribute.html +8 -8
  73. package/Documentation/ColorMaterialProperty.html +7 -7
  74. package/Documentation/Command.html +4 -4
  75. package/Documentation/CompositeEntityCollection.html +21 -21
  76. package/Documentation/CompositeMaterialProperty.html +7 -7
  77. package/Documentation/CompositePositionProperty.html +8 -8
  78. package/Documentation/CompositeProperty.html +6 -6
  79. package/Documentation/CompressedTextureBuffer.html +8 -8
  80. package/Documentation/ConditionsExpression.html +4 -4
  81. package/Documentation/ConeEmitter.html +1 -1
  82. package/Documentation/ConstantPositionProperty.html +8 -8
  83. package/Documentation/ConstantProperty.html +8 -8
  84. package/Documentation/CoplanarPolygonGeometry.html +6 -6
  85. package/Documentation/CoplanarPolygonOutlineGeometry.html +6 -6
  86. package/Documentation/CorridorGeometry.html +6 -6
  87. package/Documentation/CorridorGeometryUpdater.html +3 -3
  88. package/Documentation/CorridorGraphics.html +23 -23
  89. package/Documentation/CorridorOutlineGeometry.html +5 -5
  90. package/Documentation/Credit.html +7 -7
  91. package/Documentation/CreditDisplay.html +11 -11
  92. package/Documentation/CubicRealPolynomial.html +3 -3
  93. package/Documentation/CullingVolume.html +4 -4
  94. package/Documentation/CustomDataSource.html +11 -11
  95. package/Documentation/CustomHeightmapTerrainProvider.html +15 -15
  96. package/Documentation/CustomProjection.html +5 -5
  97. package/Documentation/CustomShader.html +1 -1
  98. package/Documentation/CustomTilingScheme.html +12 -12
  99. package/Documentation/CutFillAnalysis.html +17 -17
  100. package/Documentation/CuttingTool.html +152 -11
  101. package/Documentation/CylinderGeometry.html +5 -5
  102. package/Documentation/CylinderGeometryUpdater.html +3 -3
  103. package/Documentation/CylinderGraphics.html +19 -19
  104. package/Documentation/CylinderOutlineGeometry.html +5 -5
  105. package/Documentation/CzmlDataSource.html +22 -22
  106. package/Documentation/DataSource.html +11 -11
  107. package/Documentation/DataSourceClock.html +12 -12
  108. package/Documentation/DataSourceCollection.html +18 -18
  109. package/Documentation/DataSourceDisplay.html +10 -10
  110. package/Documentation/DebugAppearance.html +12 -12
  111. package/Documentation/DebugCameraPrimitive.html +5 -5
  112. package/Documentation/DebugModelMatrixPrimitive.html +8 -8
  113. package/Documentation/DefaultProxy.html +2 -2
  114. package/Documentation/DeveloperError.html +4 -4
  115. package/Documentation/DirectionalLight.html +4 -4
  116. package/Documentation/DiscardEmptyTileImagePolicy.html +4 -4
  117. package/Documentation/DiscardMissingTileImagePolicy.html +3 -3
  118. package/Documentation/DistanceDisplayCondition.html +10 -10
  119. package/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html +7 -7
  120. package/Documentation/DrawElement.html +9 -9
  121. package/Documentation/DrawTool.html +4 -4
  122. package/Documentation/DynamicEntityVisualizer.html +1 -1
  123. package/Documentation/DynamicLightLineEffect.html +13 -13
  124. package/Documentation/EasingFunction.html +33 -33
  125. package/Documentation/EditTool.html +15 -15
  126. package/Documentation/EllipseGeometry.html +6 -6
  127. package/Documentation/EllipseGeometryUpdater.html +4 -4
  128. package/Documentation/EllipseGraphics.html +25 -25
  129. package/Documentation/EllipseOutlineGeometry.html +5 -5
  130. package/Documentation/Ellipsoid.html +34 -34
  131. package/Documentation/EllipsoidGeodesic.html +10 -10
  132. package/Documentation/EllipsoidGeometry.html +5 -5
  133. package/Documentation/EllipsoidGeometryUpdater.html +3 -3
  134. package/Documentation/EllipsoidGraphics.html +23 -23
  135. package/Documentation/EllipsoidOutlineGeometry.html +5 -5
  136. package/Documentation/EllipsoidRhumbLine.html +12 -12
  137. package/Documentation/EllipsoidSurfaceAppearance.html +15 -15
  138. package/Documentation/EllipsoidTangentPlane.html +14 -14
  139. package/Documentation/EllipsoidTerrainProvider.html +13 -13
  140. package/Documentation/Entity.html +40 -40
  141. package/Documentation/EntityCluster.html +11 -11
  142. package/Documentation/EntityCollection.html +17 -17
  143. package/Documentation/EntityView.html +7 -7
  144. package/Documentation/Event.html +6 -6
  145. package/Documentation/EventHelper.html +4 -4
  146. package/Documentation/Expression.html +4 -4
  147. package/Documentation/FeatureDetection.html +9 -9
  148. package/Documentation/FlattenTool.html +3 -3
  149. package/Documentation/FloodAnalysis.html +16 -16
  150. package/Documentation/FloodAnalysisReflection.html +9 -9
  151. package/Documentation/Fog.html +5 -5
  152. package/Documentation/FrameRateMonitor.html +16 -16
  153. package/Documentation/FrustumGeometry.html +5 -5
  154. package/Documentation/FrustumOutlineGeometry.html +5 -5
  155. package/Documentation/Fullscreen.html +9 -9
  156. package/Documentation/FullscreenButton.html +5 -5
  157. package/Documentation/FullscreenButtonViewModel.html +8 -8
  158. package/Documentation/GaodeImageryProvider.html +29 -29
  159. package/Documentation/GaodeProjection.html +7 -7
  160. package/Documentation/GeoJsonDataSource.html +27 -27
  161. package/Documentation/Geocoder.html +7 -7
  162. package/Documentation/GeocoderService.html +3 -3
  163. package/Documentation/GeocoderViewModel.html +14 -14
  164. package/Documentation/GeographicProjection.html +5 -5
  165. package/Documentation/GeographicTilingScheme.html +10 -10
  166. package/Documentation/Geometry.html +6 -6
  167. package/Documentation/GeometryAttribute.html +5 -5
  168. package/Documentation/GeometryAttributes.html +7 -7
  169. package/Documentation/GeometryFactory.html +2 -2
  170. package/Documentation/GeometryInstance.html +5 -5
  171. package/Documentation/GeometryInstanceAttribute.html +5 -5
  172. package/Documentation/GeometryPipeline.html +13 -13
  173. package/Documentation/GeometryUpdater.html +22 -22
  174. package/Documentation/GeometryVisualizer.html +4 -4
  175. package/Documentation/GetFeatureInfoFormat.html +1 -1
  176. package/Documentation/Globe.html +47 -47
  177. package/Documentation/GlobeEffect.html +8 -8
  178. package/Documentation/GlobeIndependentTranslucency.html +10 -10
  179. package/Documentation/GlobeTranslucency.html +7 -7
  180. package/Documentation/GoogleEarthEnterpriseImageryProvider.html +29 -29
  181. package/Documentation/GoogleEarthEnterpriseMapsProvider.html +34 -34
  182. package/Documentation/GoogleEarthEnterpriseMetadata.html +14 -14
  183. package/Documentation/GoogleEarthEnterpriseTerrainData.html +7 -7
  184. package/Documentation/GoogleEarthEnterpriseTerrainProvider.html +15 -15
  185. package/Documentation/GoogleMapImageryProvider.html +1 -1
  186. package/Documentation/Graphic.html +31 -31
  187. package/Documentation/GraphicTransformTool.html +7 -7
  188. package/Documentation/GraphicsLayer.html +27 -27
  189. package/Documentation/GregorianDate.html +9 -9
  190. package/Documentation/GridImageryProvider.html +30 -30
  191. package/Documentation/GridMaterialProperty.html +11 -11
  192. package/Documentation/GroundGeometryUpdater.html +3 -3
  193. package/Documentation/GroundPolylineGeometry.html +7 -7
  194. package/Documentation/GroundPolylinePrimitive.html +19 -19
  195. package/Documentation/GroundPrimitive.html +24 -24
  196. package/Documentation/GroundPrimitiveRectangleGenerater.html +3 -3
  197. package/Documentation/HashMap.html +12 -12
  198. package/Documentation/HeadingPitchRange.html +5 -5
  199. package/Documentation/HeadingPitchRoll.html +13 -13
  200. package/Documentation/HeightLimited.html +4 -4
  201. package/Documentation/HeightModelEffect.html +8 -8
  202. package/Documentation/HeightmapTerrainData.html +7 -7
  203. package/Documentation/HermitePolynomialApproximation.html +4 -4
  204. package/Documentation/HermiteSpline.html +12 -12
  205. package/Documentation/HilbertOrder.html +1 -1
  206. package/Documentation/HomeButton.html +5 -5
  207. package/Documentation/HomeButtonViewModel.html +5 -5
  208. package/Documentation/ImageMaterialProperty.html +10 -10
  209. package/Documentation/ImageryLayer.html +34 -34
  210. package/Documentation/ImageryLayerCollection.html +25 -25
  211. package/Documentation/ImageryLayerFeatureInfo.html +8 -8
  212. package/Documentation/ImageryProvider.html +29 -29
  213. package/Documentation/ImprovedNoise.html +1 -1
  214. package/Documentation/InfoBox.html +6 -6
  215. package/Documentation/InfoBoxViewModel.html +11 -11
  216. package/Documentation/IntersectionTests.html +11 -11
  217. package/Documentation/Intersections2D.html +4 -4
  218. package/Documentation/Interval.html +3 -3
  219. package/Documentation/Ion.html +3 -3
  220. package/Documentation/IonGeocoderService.html +2 -2
  221. package/Documentation/IonImageryProvider.html +28 -28
  222. package/Documentation/IonResource.html +39 -39
  223. package/Documentation/Iso8601.html +4 -4
  224. package/Documentation/JulianDate.html +31 -31
  225. package/Documentation/KeyboardCameraController.html +10 -10
  226. package/Documentation/KmlCamera.html +1 -1
  227. package/Documentation/KmlDataSource.html +20 -20
  228. package/Documentation/KmlFeatureData.html +9 -9
  229. package/Documentation/KmlLookAt.html +1 -1
  230. package/Documentation/KmlTour.html +12 -12
  231. package/Documentation/KmlTourFlyTo.html +5 -5
  232. package/Documentation/KmlTourWait.html +4 -4
  233. package/Documentation/Label.html +30 -30
  234. package/Documentation/LabelCollection.html +15 -15
  235. package/Documentation/LabelGraphics.html +26 -26
  236. package/Documentation/LabelVisualizer.html +4 -4
  237. package/Documentation/LagrangePolynomialApproximation.html +3 -3
  238. package/Documentation/Layers.html +56 -56
  239. package/Documentation/LeapSecond.html +3 -3
  240. package/Documentation/Light.html +3 -3
  241. package/Documentation/LineScanEffect.html +6 -6
  242. package/Documentation/LinearApproximation.html +3 -3
  243. package/Documentation/LinearSpline.html +7 -7
  244. package/Documentation/LonlatProjection.html +4 -4
  245. package/Documentation/M3DTree.html +11 -11
  246. package/Documentation/MapGIS3DTile.html +12 -12
  247. package/Documentation/MapGIS3DTileFeature.html +10 -10
  248. package/Documentation/MapGIS3DTileset.html +86 -86
  249. package/Documentation/MapGISCustomImageryProvider.html +29 -29
  250. package/Documentation/MapGISFeatureGeojsonProvider.html +9 -9
  251. package/Documentation/MapGISFeatureLayer.html +52 -52
  252. package/Documentation/MapGISFeatureProvider.html +9 -9
  253. package/Documentation/MapGISFeatureTilePrimitiveCollection.html +16 -16
  254. package/Documentation/MapGISGeojsonLayer.html +38 -38
  255. package/Documentation/MapGISGeojsonProvider.html +8 -8
  256. package/Documentation/MapGISGeojsonTilePrimitiveCollection.html +16 -16
  257. package/Documentation/MapGISLabelLayer.html +18 -18
  258. package/Documentation/MapGISM3D.html +13 -13
  259. package/Documentation/MapGISM3DSet.html +250 -124
  260. package/Documentation/MapGISM3DTileContent.html +3 -3
  261. package/Documentation/MapGISMapServerImageryProvider.html +4 -4
  262. package/Documentation/MapGISTerrainProvider.html +22 -22
  263. package/Documentation/MapGISTileAvailability.html +6 -6
  264. package/Documentation/MapGISTileServerImageProvider.html +5 -5
  265. package/Documentation/MapGISVectorGeojsonProvider.html +9 -9
  266. package/Documentation/MapGISVectorLayer.html +50 -50
  267. package/Documentation/MapGISVectorProvider.html +9 -9
  268. package/Documentation/MapGISVectorTilePrimitiveCollection.html +16 -16
  269. package/Documentation/MapProjection.html +4 -4
  270. package/Documentation/MapboxImageryProvider.html +29 -29
  271. package/Documentation/MapboxStyleImageryProvider.html +29 -29
  272. package/Documentation/Material.html +44 -44
  273. package/Documentation/MaterialAppearance.MaterialSupport.html +4 -4
  274. package/Documentation/MaterialAppearance.html +15 -15
  275. package/Documentation/MaterialProperty.html +6 -6
  276. package/Documentation/Math.html +76 -76
  277. package/Documentation/Matrix2.html +41 -41
  278. package/Documentation/Matrix3.html +56 -56
  279. package/Documentation/Matrix4.html +76 -76
  280. package/Documentation/MeasureAreaTool.html +1 -1
  281. package/Documentation/MeasureLengthTool.html +7 -7
  282. package/Documentation/MeasureSlopeTool.html +5 -5
  283. package/Documentation/Model.html +51 -51
  284. package/Documentation/ModelAnimation.html +12 -12
  285. package/Documentation/ModelAnimationCollection.html +10 -10
  286. package/Documentation/ModelEditor.html +1 -1
  287. package/Documentation/ModelExplosion.html +15 -15
  288. package/Documentation/ModelFilterTool.html +5 -5
  289. package/Documentation/ModelGraphics.html +26 -26
  290. package/Documentation/ModelMaterial.html +5 -5
  291. package/Documentation/ModelMesh.html +4 -4
  292. package/Documentation/ModelNode.html +6 -6
  293. package/Documentation/ModelTransformTool.html +16 -16
  294. package/Documentation/ModelVisualizer.html +4 -4
  295. package/Documentation/Moon.html +7 -7
  296. package/Documentation/NavigationControl.html +1 -1
  297. package/Documentation/NavigationHelpButton.html +5 -5
  298. package/Documentation/NavigationHelpButtonViewModel.html +6 -6
  299. package/Documentation/NavigationTool.html +2 -2
  300. package/Documentation/NearFarScalar.html +12 -12
  301. package/Documentation/NeverTileDiscardPolicy.html +3 -3
  302. package/Documentation/NodeTransformationProperty.html +8 -8
  303. package/Documentation/Occluder.html +10 -10
  304. package/Documentation/OpenCageGeocoderService.html +4 -4
  305. package/Documentation/OpenStreetMapImageryProvider.html +34 -34
  306. package/Documentation/OpenWeatherImageryProvider.html +2 -2
  307. package/Documentation/OrientedBoundingBox.html +20 -20
  308. package/Documentation/OrthographicFrustum.html +14 -14
  309. package/Documentation/OrthographicOffCenterFrustum.html +13 -13
  310. package/Documentation/PackableForInterpolation.html +4 -4
  311. package/Documentation/Particle.html +13 -13
  312. package/Documentation/ParticleBurst.html +5 -5
  313. package/Documentation/ParticleEmitter.html +1 -1
  314. package/Documentation/ParticleSystem.html +29 -29
  315. package/Documentation/PathGraphics.html +12 -12
  316. package/Documentation/PathVisualizer.html +4 -4
  317. package/Documentation/PeliasGeocoderService.html +3 -3
  318. package/Documentation/PerInstanceColorAppearance.html +15 -15
  319. package/Documentation/PerformanceWatchdog.html +5 -5
  320. package/Documentation/PerformanceWatchdogViewModel.html +6 -6
  321. package/Documentation/PerspectiveFrustum.html +18 -18
  322. package/Documentation/PerspectiveOffCenterFrustum.html +14 -14
  323. package/Documentation/PinBuilder.html +5 -5
  324. package/Documentation/Plane.html +13 -13
  325. package/Documentation/PlaneGeometry.html +5 -5
  326. package/Documentation/PlaneGeometryUpdater.html +3 -3
  327. package/Documentation/PlaneGraphics.html +15 -15
  328. package/Documentation/PlaneOutlineGeometry.html +5 -5
  329. package/Documentation/PointCloudShading.html +11 -11
  330. package/Documentation/PointGraphics.html +15 -15
  331. package/Documentation/PointPrimitive.html +14 -14
  332. package/Documentation/PointPrimitiveCollection.html +15 -15
  333. package/Documentation/PointVisualizer.html +4 -4
  334. package/Documentation/PolygonGeometry.html +8 -8
  335. package/Documentation/PolygonGeometryUpdater.html +3 -3
  336. package/Documentation/PolygonGraphics.html +26 -26
  337. package/Documentation/PolygonHierarchy.html +3 -3
  338. package/Documentation/PolygonOutlineGeometry.html +6 -6
  339. package/Documentation/Polyline.html +8 -8
  340. package/Documentation/PolylineArrowMaterialProperty.html +7 -7
  341. package/Documentation/PolylineCollection.html +15 -15
  342. package/Documentation/PolylineColorAppearance.html +12 -12
  343. package/Documentation/PolylineDashMaterialProperty.html +10 -10
  344. package/Documentation/PolylineGeometry.html +5 -5
  345. package/Documentation/PolylineGeometryUpdater.html +25 -25
  346. package/Documentation/PolylineGlowMaterialProperty.html +9 -9
  347. package/Documentation/PolylineGraphics.html +17 -17
  348. package/Documentation/PolylineMaterialAppearance.html +12 -12
  349. package/Documentation/PolylineOutlineMaterialProperty.html +9 -9
  350. package/Documentation/PolylineTrailLinkMaterialProperty.html +1 -1
  351. package/Documentation/PolylineVisualizer.html +4 -4
  352. package/Documentation/PolylineVolumeAnimationGeometry.html +14 -14
  353. package/Documentation/PolylineVolumeGeometry.html +5 -5
  354. package/Documentation/PolylineVolumeGeometryUpdater.html +3 -3
  355. package/Documentation/PolylineVolumeGraphics.html +17 -17
  356. package/Documentation/PolylineVolumeOutlineGeometry.html +5 -5
  357. package/Documentation/PositionProperty.html +7 -7
  358. package/Documentation/PositionPropertyArray.html +8 -8
  359. package/Documentation/PostProcessStage.html +16 -16
  360. package/Documentation/PostProcessStageCollection.html +13 -13
  361. package/Documentation/PostProcessStageComposite.html +11 -11
  362. package/Documentation/PostProcessStageLibrary.html +15 -15
  363. package/Documentation/Primitive.html +22 -22
  364. package/Documentation/PrimitiveCollection.html +15 -15
  365. package/Documentation/ProjectionPicker.html +5 -5
  366. package/Documentation/ProjectionPickerViewModel.html +13 -13
  367. package/Documentation/Property.html +5 -5
  368. package/Documentation/PropertyArray.html +6 -6
  369. package/Documentation/PropertyBag.html +10 -10
  370. package/Documentation/ProviderViewModel.html +7 -7
  371. package/Documentation/Proxy.html +2 -2
  372. package/Documentation/QuadraticRealPolynomial.html +3 -3
  373. package/Documentation/QuantizedMeshTerrainData.html +7 -7
  374. package/Documentation/QuarticRealPolynomial.html +3 -3
  375. package/Documentation/Quaternion.html +45 -45
  376. package/Documentation/QuaternionSpline.html +7 -7
  377. package/Documentation/Queue.html +9 -9
  378. package/Documentation/RadarMaterialProperty.html +1 -1
  379. package/Documentation/RadarScanEffect.html +3 -3
  380. package/Documentation/Ray.html +5 -5
  381. package/Documentation/ReImg.html +2 -2
  382. package/Documentation/Rectangle.html +35 -35
  383. package/Documentation/RectangleGeometry.html +6 -6
  384. package/Documentation/RectangleGeometryUpdater.html +3 -3
  385. package/Documentation/RectangleGraphics.html +23 -23
  386. package/Documentation/RectangleOutlineGeometry.html +5 -5
  387. package/Documentation/ReferenceProperty.html +13 -13
  388. package/Documentation/Request.html +14 -14
  389. package/Documentation/RequestErrorEvent.html +5 -5
  390. package/Documentation/RequestScheduler.html +5 -5
  391. package/Documentation/ResetViewNavigationControl.html +7 -7
  392. package/Documentation/Resource.html +54 -54
  393. package/Documentation/RoamParticle.html +25 -25
  394. package/Documentation/RuntimeError.html +4 -4
  395. package/Documentation/SampleElevationTool.html +2 -2
  396. package/Documentation/SampledPositionProperty.html +20 -20
  397. package/Documentation/SampledProperty.html +19 -19
  398. package/Documentation/Scene.html +115 -115
  399. package/Documentation/SceneLayer.html +31 -31
  400. package/Documentation/SceneModePicker.html +5 -5
  401. package/Documentation/SceneModePickerViewModel.html +15 -15
  402. package/Documentation/SceneProjector.html +30 -30
  403. package/Documentation/SceneProjectorEx.html +19 -19
  404. package/Documentation/SceneTransforms.html +3 -3
  405. package/Documentation/ScreenSpaceCameraController.html +25 -25
  406. package/Documentation/ScreenSpaceEventHandler.html +8 -8
  407. package/Documentation/SearchlightEffect.html +4 -4
  408. package/Documentation/SelectTool.html +4 -4
  409. package/Documentation/SelectionIndicator.html +5 -5
  410. package/Documentation/SelectionIndicatorViewModel.html +12 -12
  411. package/Documentation/ShadowAnalysis.html +12 -12
  412. package/Documentation/ShadowMap.html +8 -8
  413. package/Documentation/ShadowRateAnalysis.html +14 -14
  414. package/Documentation/ShowGeometryInstanceAttribute.html +6 -6
  415. package/Documentation/Simon1994PlanetaryPositions.html +3 -3
  416. package/Documentation/SimplePolylineGeometry.html +5 -5
  417. package/Documentation/SingleTileImageryProvider.html +29 -29
  418. package/Documentation/SkyAtmosphere.html +9 -9
  419. package/Documentation/SkyBox.html +6 -6
  420. package/Documentation/SkyLineAnalysis.html +3 -3
  421. package/Documentation/SphereEmitter.html +2 -2
  422. package/Documentation/SphereGeometry.html +5 -5
  423. package/Documentation/SphereOutlineGeometry.html +5 -5
  424. package/Documentation/Spherical.html +13 -13
  425. package/Documentation/Spline.html +7 -7
  426. package/Documentation/StableParticle.html +28 -28
  427. package/Documentation/StripeMaterialProperty.html +11 -11
  428. package/Documentation/Style.html +26 -26
  429. package/Documentation/StyleExpression.html +3 -3
  430. package/Documentation/Sun.html +5 -5
  431. package/Documentation/SunLight.html +3 -3
  432. package/Documentation/SvgPathBindingHandler.html +2 -2
  433. package/Documentation/TaskProcessor.html +5 -5
  434. package/Documentation/TerrainAnalyse.html +14 -14
  435. package/Documentation/TerrainData.html +7 -7
  436. package/Documentation/TerrainProfile.html +4 -4
  437. package/Documentation/TerrainProvider.html +16 -16
  438. package/Documentation/Texture3D.html +1 -1
  439. package/Documentation/ThemeManager.html +14 -14
  440. package/Documentation/TiandituImageryProvider.html +4 -4
  441. package/Documentation/TileAvailability.html +6 -6
  442. package/Documentation/TileCoordinatesImageryProvider.html +28 -28
  443. package/Documentation/TileDiscardPolicy.html +3 -3
  444. package/Documentation/TileMapServiceImageryProvider.html +34 -34
  445. package/Documentation/TileProviderError.html +12 -12
  446. package/Documentation/TilingScheme.html +10 -10
  447. package/Documentation/TimeDynamicImagery.html +6 -6
  448. package/Documentation/TimeDynamicPointCloud.html +16 -16
  449. package/Documentation/TimeInterval.html +21 -21
  450. package/Documentation/TimeIntervalCollection.html +23 -23
  451. package/Documentation/TimeIntervalCollectionPositionProperty.html +8 -8
  452. package/Documentation/TimeIntervalCollectionProperty.html +6 -6
  453. package/Documentation/Timeline.html +6 -6
  454. package/Documentation/ToggleButtonViewModel.html +4 -4
  455. package/Documentation/Tooltip.html +5 -5
  456. package/Documentation/TransactionImplement.html +5 -5
  457. package/Documentation/Transforms.html +16 -16
  458. package/Documentation/TranslationRotationScale.html +5 -5
  459. package/Documentation/TriangulationTool.html +8 -8
  460. package/Documentation/TridiagonalSystemSolver.html +2 -2
  461. package/Documentation/TrustedServers.html +5 -5
  462. package/Documentation/UrlTemplateImageryProvider.html +34 -34
  463. package/Documentation/UserInterfaceControl.html +10 -10
  464. package/Documentation/VRButton.html +5 -5
  465. package/Documentation/VRButtonViewModel.html +8 -8
  466. package/Documentation/VRTheWorldTerrainProvider.html +13 -13
  467. package/Documentation/VelocityOrientationProperty.html +7 -7
  468. package/Documentation/VelocityVectorProperty.html +7 -7
  469. package/Documentation/VertexFormat.html +18 -18
  470. package/Documentation/VideoSynchronizer.html +7 -7
  471. package/Documentation/Viewer.html +56 -56
  472. package/Documentation/ViewportQuad.html +7 -7
  473. package/Documentation/ViewshedAnalysis.html +13 -13
  474. package/Documentation/VisiblityAnalysis.html +13 -13
  475. package/Documentation/VisualAnalysisManager.html +9 -9
  476. package/Documentation/Visualizer.html +4 -4
  477. package/Documentation/VoxelCell.html +566 -0
  478. package/Documentation/VoxelPrimitive.html +9 -9
  479. package/Documentation/WallGeometry.html +6 -6
  480. package/Documentation/WallGeometryUpdater.html +3 -3
  481. package/Documentation/WallGraphics.html +17 -17
  482. package/Documentation/WallOutlineGeometry.html +6 -6
  483. package/Documentation/WaterReflection.html +9 -9
  484. package/Documentation/WeatherEffect.html +8 -8
  485. package/Documentation/WebMapServiceImageryProvider.html +36 -36
  486. package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
  487. package/Documentation/WebMercatorProjection.html +8 -8
  488. package/Documentation/WebMercatorTilingScheme.html +10 -10
  489. package/Documentation/WeightSpline.html +7 -7
  490. package/Documentation/WfsProvider.html +9 -9
  491. package/Documentation/Wind3D.html +13 -13
  492. package/Documentation/WindowLightEffect.html +4 -4
  493. package/Documentation/ZoomNavigationControl.html +5 -5
  494. package/Documentation/global.html +140 -140
  495. package/Documentation/global.html#ArcType +4 -4
  496. package/Documentation/global.html#Axis +11 -11
  497. package/Documentation/global.html#BaiduProject +19 -19
  498. package/Documentation/global.html#BingMapsStyle +11 -11
  499. package/Documentation/global.html#BlendEquation +6 -6
  500. package/Documentation/global.html#BlendFunction +16 -16
  501. package/Documentation/global.html#BlendOption +4 -4
  502. package/Documentation/global.html#CameraEventType +6 -6
  503. package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
  504. package/Documentation/global.html#ClassificationType +4 -4
  505. package/Documentation/global.html#ClippingGeometryType +8 -8
  506. package/Documentation/global.html#ClockRange +4 -4
  507. package/Documentation/global.html#ClockStep +4 -4
  508. package/Documentation/global.html#ColorBlendMode +4 -4
  509. package/Documentation/global.html#ComponentDatatype +15 -15
  510. package/Documentation/global.html#CoordnateTransform +6 -6
  511. package/Documentation/global.html#CornerType +4 -4
  512. package/Documentation/global.html#CullFace +4 -4
  513. package/Documentation/global.html#DepthFunction +9 -9
  514. package/Documentation/global.html#ExtrapolationType +4 -4
  515. package/Documentation/global.html#GeocodeType +3 -3
  516. package/Documentation/global.html#HeightReference +4 -4
  517. package/Documentation/global.html#HeightmapEncoding +3 -3
  518. package/Documentation/global.html#HorizontalOrigin +4 -4
  519. package/Documentation/global.html#ImagerySplitDirection +4 -4
  520. package/Documentation/global.html#IndexDatatype +9 -9
  521. package/Documentation/global.html#InterceptorsUtil +1 -1
  522. package/Documentation/global.html#Intersect +4 -4
  523. package/Documentation/global.html#IonWorldImageryStyle +4 -4
  524. package/Documentation/global.html#KeyboardEventModifier +4 -4
  525. package/Documentation/global.html#LabelStyle +4 -4
  526. package/Documentation/global.html#LightingMode +3 -3
  527. package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
  528. package/Documentation/global.html#MapMode2D +3 -3
  529. package/Documentation/global.html#ModelAnimationLoop +4 -4
  530. package/Documentation/global.html#ModelExplosionType +5 -5
  531. package/Documentation/global.html#OutlineRenderMode +4 -4
  532. package/Documentation/global.html#Pass +17 -17
  533. package/Documentation/global.html#PixelDatatype +10 -10
  534. package/Documentation/global.html#PixelFormat +21 -21
  535. package/Documentation/global.html#PointLight +1 -1
  536. package/Documentation/global.html#PostProcessStageSampleMode +3 -3
  537. package/Documentation/global.html#PrimitiveType +8 -8
  538. package/Documentation/global.html#ReferenceFrame +3 -3
  539. package/Documentation/global.html#RequestState +7 -7
  540. package/Documentation/global.html#RequestType +5 -5
  541. package/Documentation/global.html#SceneMode +6 -6
  542. package/Documentation/global.html#ScreenSpaceEventType +16 -16
  543. package/Documentation/global.html#SectionRender +1 -1
  544. package/Documentation/global.html#ShadowMode +5 -5
  545. package/Documentation/global.html#ShadowRateDrawCommand +3 -3
  546. package/Documentation/global.html#SpotLight +1 -1
  547. package/Documentation/global.html#Spyglass +1 -1
  548. package/Documentation/global.html#StencilFunction +9 -9
  549. package/Documentation/global.html#StencilOperation +9 -9
  550. package/Documentation/global.html#StripeOrientation +3 -3
  551. package/Documentation/global.html#SwipeModeType +7 -7
  552. package/Documentation/global.html#SwiperController +1 -1
  553. package/Documentation/global.html#TextureMagnificationFilter +3 -3
  554. package/Documentation/global.html#TextureMinificationFilter +7 -7
  555. package/Documentation/global.html#TimeStandard +3 -3
  556. package/Documentation/global.html#TopoJSONUtil +1 -1
  557. package/Documentation/global.html#UrlUtil +1 -1
  558. package/Documentation/global.html#VerticalOrigin +5 -5
  559. package/Documentation/global.html#Visibility +4 -4
  560. package/Documentation/global.html#WebGLConstants +583 -583
  561. package/Documentation/global.html#WindingOrder +3 -3
  562. package/Documentation/global.html#XmlUtil +2 -2
  563. package/Documentation/global.html#angle +1 -1
  564. package/Documentation/global.html#barycentricCoordinates +1 -1
  565. package/Documentation/global.html#binarySearch +1 -1
  566. package/Documentation/global.html#binarySearchComparator +1 -1
  567. package/Documentation/global.html#buildModuleUrl +3 -3
  568. package/Documentation/global.html#cancelAnimationFrame +1 -1
  569. package/Documentation/global.html#clippingFillImage +1 -1
  570. package/Documentation/global.html#clone +1 -1
  571. package/Documentation/global.html#color +3 -3
  572. package/Documentation/global.html#combine +1 -1
  573. package/Documentation/global.html#combineColorStops +150 -0
  574. package/Documentation/global.html#contentReadyCb +150 -0
  575. package/Documentation/global.html#createCommand +1 -1
  576. package/Documentation/global.html#createElevationBandMaterial +1 -1
  577. package/Documentation/global.html#createElevationBandMaterialBand +1 -1
  578. package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
  579. package/Documentation/global.html#createGuid +1 -1
  580. package/Documentation/global.html#createLinearGradientCanvas +150 -0
  581. package/Documentation/global.html#createOsmBuildings +1 -1
  582. package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
  583. package/Documentation/global.html#createValues +150 -0
  584. package/Documentation/global.html#createVoxelContent +150 -0
  585. package/Documentation/global.html#createWorldImagery +1 -1
  586. package/Documentation/global.html#createWorldTerrain +1 -1
  587. package/Documentation/global.html#decay +2 -2
  588. package/Documentation/global.html#defaultValue +2 -2
  589. package/Documentation/global.html#defined +1 -1
  590. package/Documentation/global.html#destroyObject +1 -1
  591. package/Documentation/global.html#direction +2 -2
  592. package/Documentation/global.html#distance +2 -2
  593. package/Documentation/global.html#enableExplosion +1 -1
  594. package/Documentation/global.html#exportKml +1 -1
  595. package/Documentation/global.html#exportKmlModelCallback +1 -1
  596. package/Documentation/global.html#exportKmlResultKml +1 -1
  597. package/Documentation/global.html#exportKmlResultKmz +1 -1
  598. package/Documentation/global.html#formatError +1 -1
  599. package/Documentation/global.html#getAbsoluteUri +1 -1
  600. package/Documentation/global.html#getBaseUri +1 -1
  601. package/Documentation/global.html#getExtensionFromUri +1 -1
  602. package/Documentation/global.html#getFilenameFromUri +1 -1
  603. package/Documentation/global.html#getImagePixels +1 -1
  604. package/Documentation/global.html#getTimestamp +1 -1
  605. package/Documentation/global.html#getViewModel +1 -1
  606. package/Documentation/global.html#getVoxelAttUrl +274 -0
  607. package/Documentation/global.html#hasText +1 -1
  608. package/Documentation/global.html#id +3 -3
  609. package/Documentation/global.html#intensity +3 -3
  610. package/Documentation/global.html#isLeapYear +1 -1
  611. package/Documentation/global.html#mergeSort +1 -1
  612. package/Documentation/global.html#mergeSortComparator +1 -1
  613. package/Documentation/global.html#objectToQuery +1 -1
  614. package/Documentation/global.html#parseVoxelStyles +150 -0
  615. package/Documentation/global.html#penumbra +1 -1
  616. package/Documentation/global.html#pointInsideTriangle +1 -1
  617. package/Documentation/global.html#position +2 -2
  618. package/Documentation/global.html#queryToObject +1 -1
  619. package/Documentation/global.html#requestAnimationFrame +1 -1
  620. package/Documentation/global.html#requestAnimationFrameCallback +1 -1
  621. package/Documentation/global.html#sampleTerrain +1 -1
  622. package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
  623. package/Documentation/global.html#show +1 -1
  624. package/Documentation/global.html#startTime +1 -1
  625. package/Documentation/global.html#subdivideArray +1 -1
  626. package/Documentation/global.html#terrainProvider +1 -1
  627. package/Documentation/global.html#typeArrays +162 -0
  628. package/Documentation/global.html#updateTime +150 -0
  629. package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
  630. package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
  631. package/Documentation/global.html#viewerDragDropMixin +8 -8
  632. package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
  633. package/Documentation/global.html#writeTextToCanvas +1 -1
  634. package/Documentation/types.txt +1 -1
  635. package/README.md +26 -0
  636. package/dist/Cesium.js +19 -31
  637. package/dist/Workers/AxisAlignedBoundingBox-9c01642b.js +1 -0
  638. package/dist/Workers/BoundingRectangle-5a740234.js +1 -0
  639. package/dist/Workers/BoxGeometry-3318157c.js +1 -0
  640. package/dist/Workers/Color-7daaba04.js +1 -0
  641. package/dist/Workers/CoplanarPolygonGeometryLibrary-97ba18e3.js +1 -0
  642. package/dist/Workers/CorridorGeometryLibrary-bdd6155c.js +1 -0
  643. package/dist/Workers/CylinderGeometry-7205275f.js +1 -0
  644. package/dist/Workers/EllipseGeometry-6a90035b.js +1 -0
  645. package/dist/Workers/EllipseGeometryLibrary-c242429c.js +1 -0
  646. package/dist/Workers/EllipseOutlineGeometry-bc6638f3.js +1 -0
  647. package/dist/Workers/EllipsoidGeometry-f9bf5c2c.js +1 -0
  648. package/dist/Workers/EllipsoidOutlineGeometry-05541945.js +1 -0
  649. package/dist/Workers/EllipsoidTangentPlane-4a503a7a.js +1 -0
  650. package/dist/Workers/FrustumGeometry-30e754b7.js +1 -0
  651. package/dist/Workers/GeometryAttribute-3dd6da35.js +1 -0
  652. package/dist/Workers/GeometryPipeline-990a755f.js +1 -0
  653. package/dist/Workers/IntersectionTests-60f10d18.js +1 -0
  654. package/dist/Workers/OrientedBoundingBox-f3e4df94.js +1 -0
  655. package/dist/Workers/PolygonGeometryLibrary-4ad4f4a2.js +1 -0
  656. package/dist/Workers/PolygonPipeline-832a906c.js +1 -0
  657. package/dist/Workers/PolylinePipeline-83139cb3.js +1 -0
  658. package/dist/Workers/PolylineVolumeGeometryLibrary-897b738e.js +1 -0
  659. package/dist/Workers/PrimitivePipeline-7f47a42a.js +1 -0
  660. package/dist/Workers/RectangleGeometryLibrary-3de7d882.js +1 -0
  661. package/dist/Workers/TerrainEncoding-11b6c30f.js +1 -0
  662. package/dist/Workers/Transforms-c1a1d063.js +1 -0
  663. package/dist/Workers/WallGeometryLibrary-7d64d7fc.js +1 -0
  664. package/dist/Workers/combineGeometry.js +1 -1
  665. package/dist/Workers/createBoxGeometry.js +1 -1
  666. package/dist/Workers/createBoxOutlineGeometry.js +1 -1
  667. package/dist/Workers/createCircleGeometry.js +1 -1
  668. package/dist/Workers/createCircleOutlineGeometry.js +1 -1
  669. package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
  670. package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  671. package/dist/Workers/createCorridorGeometry.js +1 -1
  672. package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
  673. package/dist/Workers/createCylinderGeometry.js +1 -1
  674. package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
  675. package/dist/Workers/createEllipseGeometry.js +1 -1
  676. package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
  677. package/dist/Workers/createEllipsoidGeometry.js +1 -1
  678. package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
  679. package/dist/Workers/createFrustumGeometry.js +1 -1
  680. package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
  681. package/dist/Workers/createGeometry.js +1 -1
  682. package/dist/Workers/createGroundPolylineGeometry.js +1 -1
  683. package/dist/Workers/createPlaneGeometry.js +1 -1
  684. package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
  685. package/dist/Workers/createPolygonGeometry.js +1 -1
  686. package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
  687. package/dist/Workers/createPolylineGeometry.js +1 -1
  688. package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
  689. package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  690. package/dist/Workers/createRectangleGeometry.js +1 -1
  691. package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
  692. package/dist/Workers/createSimplePolylineGeometry.js +1 -1
  693. package/dist/Workers/createSphereGeometry.js +1 -1
  694. package/dist/Workers/createSphereOutlineGeometry.js +1 -1
  695. package/dist/Workers/createVectorTileGeometries.js +1 -1
  696. package/dist/Workers/createVectorTilePolygons.js +1 -1
  697. package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  698. package/dist/Workers/createVerticesFromHeightmap.js +1 -1
  699. package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  700. package/dist/Workers/createWallGeometry.js +1 -1
  701. package/dist/Workers/createWallOutlineGeometry.js +1 -1
  702. package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  703. package/package.json +1 -1
@@ -1 +1 @@
1
- define(["./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./EncodedCartesian3-3b6655b5","./GeometryAttribute-5d30d102","./IntersectionTests-f71f97b3","./Plane-43337cee","./WebMercatorProjection-329b047d","./combine-276652d0","./WebGLConstants-35626ea2"],function(sa,oa,a,la,ua,ca,Sa,T,Ca,pa,da,ha,r,t,n,h){function e(e){e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT),this._ellipsoid=la.defaultValue(e.ellipsoid,oa.Ellipsoid.WGS84),this._rectangle=la.defaultValue(e.rectangle,oa.Rectangle.MAX_VALUE),this._projection=new sa.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=la.defaultValue(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=la.defaultValue(e.numberOfLevelZeroTilesY,1)}Object.defineProperties(e.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),e.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},e.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},e.prototype.rectangleToNativeRectangle=function(e,a){var t=ua.CesiumMath.toDegrees(e.west),n=ua.CesiumMath.toDegrees(e.south),i=ua.CesiumMath.toDegrees(e.east),e=ua.CesiumMath.toDegrees(e.north);return la.defined(a)?(a.west=t,a.south=n,a.east=i,a.north=e,a):new oa.Rectangle(t,n,i,e)},e.prototype.tileXYToNativeRectangle=function(e,a,t,n){e=this.tileXYToRectangle(e,a,t,n);return e.west=ua.CesiumMath.toDegrees(e.west),e.south=ua.CesiumMath.toDegrees(e.south),e.east=ua.CesiumMath.toDegrees(e.east),e.north=ua.CesiumMath.toDegrees(e.north),e},e.prototype.tileXYToRectangle=function(e,a,t,n){var i=this._rectangle,r=this.getNumberOfXTilesAtLevel(t),t=this.getNumberOfYTilesAtLevel(t),r=i.width/r,s=e*r+i.west,e=(e+1)*r+i.west,r=i.height/t,t=i.north-a*r,i=i.north-(a+1)*r;return(n=la.defined(n)?n:new oa.Rectangle(s,i,e,t)).west=s,n.south=i,n.east=e,n.north=t,n},e.prototype.positionToTileXY=function(e,a,t){var n,i,r,s,o=this._rectangle;if(oa.Rectangle.contains(o,e))return n=this.getNumberOfXTilesAtLevel(a),a=this.getNumberOfYTilesAtLevel(a),s=o.width/n,i=o.height/a,r=e.longitude,o.east<o.west&&(r+=ua.CesiumMath.TWO_PI),n<=(r=(r-o.west)/s|0)&&(r=n-1),a<=(s=(o.north-e.latitude)/i|0)&&(s=a-1),la.defined(t)?(t.x=r,t.y=s,t):new oa.Cartesian2(r,s)};var s=new oa.Cartesian3,o=new oa.Cartesian3,l=new oa.Cartographic,u=new oa.Cartesian3,g=new oa.Cartesian3,i=new sa.BoundingSphere,m=new e,c=[new oa.Cartographic,new oa.Cartographic,new oa.Cartographic,new oa.Cartographic],C=new oa.Cartesian2,ga={};function f(e){oa.Cartographic.fromRadians(e.east,e.north,0,c[0]),oa.Cartographic.fromRadians(e.west,e.north,0,c[1]),oa.Cartographic.fromRadians(e.east,e.south,0,c[2]),oa.Cartographic.fromRadians(e.west,e.south,0,c[3]);for(var a=0,t=0,n=0,i=0,r=ga._terrainHeightsMaxLevel,s=0;s<=r;++s){for(var o=!1,l=0;l<4;++l)if(m.positionToTileXY(c[l],s,C),0===l)n=C.x,i=C.y;else if(n!==C.x||i!==C.y){o=!0;break}if(o)break;a=n,t=i}if(0!==s)return{x:a,y:t,level:r<s?r:s-1}}ga.initialize=function(){var e=ga._initPromise;return la.defined(e)||(e=sa.Resource.fetchJson(sa.buildModuleUrl("Assets/approximateTerrainHeights.json")).then(function(e){ga._terrainHeights=e}),ga._initPromise=e),e},ga.getMinimumMaximumHeights=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=f(e),n=ga._defaultMinTerrainHeight,i=ga._defaultMaxTerrainHeight;return la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t)&&(n=t[0],i=t[1]),a.cartographicToCartesian(oa.Rectangle.northeast(e,l),s),a.cartographicToCartesian(oa.Rectangle.southwest(e,l),o),oa.Cartesian3.midpoint(o,s,u),t=a.scaleToGeodeticSurface(u,g),n=la.defined(t)?(e=oa.Cartesian3.distance(u,t),Math.min(n,-e)):ga._defaultMinTerrainHeight),{minimumTerrainHeight:n=Math.max(ga._defaultMinTerrainHeight,n),maximumTerrainHeight:i}},ga.getBoundingSphere=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=f(e),n=ga._defaultMaxTerrainHeight,t=(la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t))&&(n=t[1]),sa.BoundingSphere.fromRectangle3D(e,a,0));return sa.BoundingSphere.fromRectangle3D(e,a,n,i),sa.BoundingSphere.union(t,i,t)},ga._terrainHeightsMaxLevel=6,ga._defaultMaxTerrainHeight=9e3,ga._defaultMinTerrainHeight=-1e5,ga._terrainHeights=void 0,ga._initPromise=void 0,Object.defineProperties(ga,{initialized:{get:function(){return la.defined(ga._terrainHeights)}}});var ma=[sa.GeographicProjection,t.WebMercatorProjection],w=ma.length,xa=Math.cos(ua.CesiumMath.toRadians(30)),y=Math.cos(ua.CesiumMath.toRadians(150)),Ia=0,Na=1e3;function p(e){var a=(e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT)).positions;this.width=la.defaultValue(e.width,1),this._positions=a,this.granularity=la.defaultValue(e.granularity,9999),this.loop=la.defaultValue(e.loop,!1),this.arcType=la.defaultValue(e.arcType,ca.ArcType.GEODESIC),this._ellipsoid=oa.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(p.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+oa.Ellipsoid.packedLength+1+1}}}),p.setProjectionAndEllipsoid=function(e,a){for(var t=0,n=0;n<w;n++)if(a instanceof ma[n]){t=n;break}e._projectionIndex=t,e._ellipsoid=a.ellipsoid};var M=new oa.Cartesian3,v=new oa.Cartesian3,E=new oa.Cartesian3;function fa(e,a,t,n,i){var r=ya(n,e,0,M),e=ya(n,e,t,v),t=ya(n,a,0,E),n=Ma(e,r,v),a=Ma(t,r,E);return oa.Cartesian3.cross(a,n,i),oa.Cartesian3.normalize(i,i)}var _=new oa.Cartographic,O=new oa.Cartesian3,b=new oa.Cartesian3,P=new oa.Cartesian3;function wa(e,a,t,n,i,r,s,o,l,u,c){if(0!==i){r===ca.ArcType.GEODESIC?C=new T.EllipsoidGeodesic(e,a,s):r===ca.ArcType.RHUMB&&(C=new Ca.EllipsoidRhumbLine(e,a,s));var C,r=C.surfaceDistance;if(!(r<i))for(var p=fa(e,a,n,s,P),e=Math.ceil(r/i),d=r/e,h=d,g=e-1,m=o.length,f=0;f<g;f++){var w=C.interpolateUsingSurfaceDistance(h,_),y=ya(s,w,t,O),M=ya(s,w,n,b);oa.Cartesian3.pack(p,o,m),oa.Cartesian3.pack(y,l,m),oa.Cartesian3.pack(M,u,m),c.push(w.latitude),c.push(w.longitude),m+=3,h+=d}}}var d=new oa.Cartographic;function ya(e,a,t,n){return oa.Cartographic.clone(a,d),d.height=t,oa.Cartographic.toCartesian(d,e,n)}function Ma(e,a,t){return oa.Cartesian3.subtract(e,a,t),oa.Cartesian3.normalize(t,t),t}function A(e,a,t,n){return n=Ma(e,a,n),n=oa.Cartesian3.cross(n,t,n),n=oa.Cartesian3.normalize(n,n),n=oa.Cartesian3.cross(t,n,n)}p.pack=function(e,a,t){var n=la.defaultValue(t,0),i=e._positions,r=i.length;a[n++]=r;for(var s=0;s<r;++s){var o=i[s];oa.Cartesian3.pack(o,a,n),n+=3}return a[n++]=e.granularity,a[n++]=e.loop?1:0,a[n++]=e.arcType,oa.Ellipsoid.pack(e._ellipsoid,a,n),n+=oa.Ellipsoid.packedLength,a[n++]=e._projectionIndex,a[n++]=e._scene3DOnly?1:0,a},p.unpack=function(e,a,t){for(var n=la.defaultValue(a,0),i=e[n++],r=new Array(i),s=0;s<i;s++)r[s]=oa.Cartesian3.unpack(e,n),n+=3;var a=e[n++],o=1===e[n++],l=e[n++],u=oa.Ellipsoid.unpack(e,n),c=(n+=oa.Ellipsoid.packedLength,e[n++]),C=1===e[n++];return(t=la.defined(t)?t:new p({positions:r}))._positions=r,t.granularity=a,t.loop=o,t.arcType=l,t._ellipsoid=u,t._projectionIndex=c,t._scene3DOnly=C,t};var k=new oa.Cartesian3,L=new oa.Cartesian3,S=new oa.Cartesian3,x=new oa.Cartesian3;function Ta(e,a,t,n,i){t=Ma(t,a,x),e=A(e,a,t,k),n=A(n,a,t,L);if(ua.CesiumMath.equalsEpsilon(oa.Cartesian3.dot(e,n),-1,ua.CesiumMath.EPSILON5))return i=oa.Cartesian3.cross(t,e,i),i=oa.Cartesian3.normalize(i,i);i=oa.Cartesian3.add(n,e,i),i=oa.Cartesian3.normalize(i,i);a=oa.Cartesian3.cross(t,i,S);return i=oa.Cartesian3.dot(n,a)<0?oa.Cartesian3.negate(i,i):i}var va=r.Plane.fromPointNormal(oa.Cartesian3.ZERO,oa.Cartesian3.UNIT_Y),Ra=new oa.Cartesian3,Da=new oa.Cartesian3,za=new oa.Cartesian3,Ha=new oa.Cartesian3,Ba=new oa.Cartesian3,Ea=new oa.Cartesian3,_a=new oa.Cartographic,ja=new oa.Cartographic,Ga=new oa.Cartographic,I=(p.createGeometry=function(e){for(var a,t,n,D,z,i,H,B,j=!e._scene3DOnly,G=e.loop,r=e._ellipsoid,V=e.granularity,Y=e.arcType,F=new ma[e._projectionIndex](r),s=Ia,q=Na,X=e._positions,W=X.length,U=(2===W&&(G=!1),new Ca.EllipsoidRhumbLine(void 0,void 0,r)),Z=[X[0]],o=0;o<W-1;o++)t=X[o],n=X[o+1],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))),Z.push(n);G&&(t=X[W-1],n=X[0],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))));var J=Z.length,l=new Array(J);for(o=0;o<J;o++){var Q=oa.Cartographic.fromCartesian(Z[o],r);Q.height=0,l[o]=Q}if(!((J=(l=Sa.arrayRemoveDuplicates(l,oa.Cartographic.equalsEpsilon)).length)<2)){var u=[],c=[],C=[],p=[],K=Ra,d=Da,h=za,$=Ha,g=Ba,m=l[0],f=l[1];for(K=ya(r,l[J-1],s,K),$=ya(r,f,s,$),d=ya(r,m,s,d),h=ya(r,m,q,h),g=G?Ta(K,d,h,$,g):fa(m,f,q,r,g),oa.Cartesian3.pack(g,c,0),oa.Cartesian3.pack(d,C,0),oa.Cartesian3.pack(h,p,0),u.push(m.latitude),u.push(m.longitude),wa(m,f,s,q,V,Y,r,c,C,p,u),o=1;o<J-1;++o){var K=oa.Cartesian3.clone(d,K),d=oa.Cartesian3.clone($,d),ee=l[o];ya(r,ee,q,h),ya(r,l[o+1],s,$),Ta(K,d,h,$,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(d,C,a),oa.Cartesian3.pack(h,p,a),u.push(ee.latitude),u.push(ee.longitude),wa(l[o],l[o+1],s,q,V,Y,r,c,C,p,u)}var f=l[J-1],ae=l[J-2];if(d=ya(r,f,s,d),h=ya(r,f,q,h),g=G?(M=l[0],Ta(K=ya(r,ae,s,K),d,h,$=ya(r,M,s,$),g)):fa(ae,f,q,r,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(d,C,a),oa.Cartesian3.pack(h,p,a),u.push(f.latitude),u.push(f.longitude),G){for(wa(f,m,s,q,V,Y,r,c,C,p,u),a=c.length,o=0;o<3;++o)c[a+o]=c[o],C[a+o]=C[o],p[a+o]=p[o];u.push(m.latitude),u.push(m.longitude)}var w,y,te,ne,ie,re,M=G,T=F,se=C,oe=p,le=c,v=u,ue=j,ce=T._ellipsoid,Ce=se.length/3-1,ae=8*Ce,f=4*ae,m=36*Ce,pe=new(65535<ae?Uint32Array:Uint16Array)(m),E=new Float64Array(3*ae),de=new Float32Array(f),he=new Float32Array(f),ge=new Float32Array(f),me=new Float32Array(f),fe=new Float32Array(f),we=(ue&&(te=new Float32Array(f),ne=new Float32Array(f),ie=new Float32Array(f),re=new Float32Array(2*ae)),v.length/2),ye=0,_=Fa,O=(_.height=0,qa),Me=(O.height=0,Xa),b=Pa;if(ue)for(y=0,w=1;w<we;w++)_.latitude=v[y],_.longitude=v[y+1],O.latitude=v[y+2],O.longitude=v[y+3],Me=T.project(_,Me),b=T.project(O,b),ye+=oa.Cartesian3.distance(Me,b),y+=2;var P,Te=oe.length/3,ve=(b=oa.Cartesian3.unpack(oe,0,b),0);for(y=3,w=1;w<Te;w++)Me=oa.Cartesian3.clone(b,Me),b=oa.Cartesian3.unpack(oe,y,b),ve+=oa.Cartesian3.distance(Me,b),y+=3;var Ee=0,_e=0,A=0,Oe=0,be=!(y=3),Pe=oa.Cartesian3.unpack(se,0,Ua),Ae=oa.Cartesian3.unpack(oe,0,Pa),k=oa.Cartesian3.unpack(le,0,Ja);M&&(m=oa.Cartesian3.unpack(se,se.length-6,Wa),Va(k,m,Pe,Ae))&&(k=oa.Cartesian3.negate(k,k));var ke,Le,Se,xe,Ie,Ne,Re,De=0,ze=0,He=0;for(w=0;w<Ce;w++){var L=oa.Cartesian3.clone(Pe,Wa),Be=oa.Cartesian3.clone(Ae,Xa),S=oa.Cartesian3.clone(k,Za),je=(be&&(S=oa.Cartesian3.negate(S,S)),Pe=oa.Cartesian3.unpack(se,y,Ua),Ae=oa.Cartesian3.unpack(oe,y,Pa),k=oa.Cartesian3.unpack(le,y,Ja),be=Va(k,L,Pe,Ae),_.latitude=v[Ee],_.longitude=v[Ee+1],O.latitude=v[Ee+2],O.longitude=v[Ee+3],ue&&(Ye=function(e,a){var t=Math.abs(e.longitude),n=Math.abs(a.longitude);{var i;if(ua.CesiumMath.equalsEpsilon(t,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(a.longitude),e.longitude=i*(t-ua.CesiumMath.EPSILON11),1;if(ua.CesiumMath.equalsEpsilon(n,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(e.longitude),a.longitude=i*(n-ua.CesiumMath.EPSILON11),2}return 0}(_,O),ke=T.project(_,nt),(je=Ma(Le=T.project(O,it),ke,dt)).y=Math.abs(je.y),Se=Aa,xe=ka,0===Ye||oa.Cartesian3.dot(je,oa.Cartesian3.UNIT_Y)>xa?(Se=Oa(T,_,S,ke,Aa),xe=Oa(T,O,k,Le,ka)):1===Ye?(xe=Oa(T,O,k,Le,ka),Se.x=0,Se.y=ua.CesiumMath.sign(_.longitude-Math.abs(O.longitude)),Se.z=0):(Se=Oa(T,_,S,ke,Aa),xe.x=0,xe.y=ua.CesiumMath.sign(_.longitude-O.longitude),xe.z=0)),oa.Cartesian3.distance(Be,Ae)),Ge=pa.EncodedCartesian3.fromCartesian(L,Ct),Ve=oa.Cartesian3.subtract(Pe,L,rt),Ye=oa.Cartesian3.normalize(Ve,lt),x=oa.Cartesian3.subtract(Be,L,st),Fe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(Ye,x,lt)),qe=(Fe=oa.Cartesian3.normalize(Fe,Fe),oa.Cartesian3.cross(x,S,ut)),x=(qe=oa.Cartesian3.normalize(qe,qe),oa.Cartesian3.subtract(Ae,Pe,ot)),Xe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(k,x,ct)),We=(Xe=oa.Cartesian3.normalize(Xe,Xe),je/ve),Ue=De/ve,S=0,Ze=0,Je=0;for(ue&&(S=oa.Cartesian3.distance(ke,Le),Ie=pa.EncodedCartesian3.fromCartesian(ke,pt),Ne=oa.Cartesian3.subtract(Le,ke,dt),x=(Re=oa.Cartesian3.normalize(Ne,ht)).x,Re.x=Re.y,Re.y=-x,Ze=S/ye,Je=ze/ye),P=0;P<8;P++){var I=Oe+4*P,Qe=_e+2*P,Ke=I+3,$e=P<4?1:-1,ea=2===P||3===P||6===P||7===P?1:-1,aa=(oa.Cartesian3.pack(Ge.high,de,I),de[Ke]=Ve.x,oa.Cartesian3.pack(Ge.low,he,I),he[Ke]=Ve.y,oa.Cartesian3.pack(qe,ge,I),ge[Ke]=Ve.z,oa.Cartesian3.pack(Xe,me,I),me[Ke]=We*$e,oa.Cartesian3.pack(Fe,fe,I),Ue*ea);0===aa&&ea<0&&(aa=9),fe[Ke]=aa,ue&&(te[I]=Ie.high.x,te[I+1]=Ie.high.y,te[I+2]=Ie.low.x,te[I+3]=Ie.low.y,ie[I]=-Se.y,ie[I+1]=Se.x,ie[I+2]=xe.y,ie[I+3]=-xe.x,ne[I]=Ne.x,ne[I+1]=Ne.y,ne[I+2]=Re.x,ne[I+3]=Re.y,re[Qe]=Ze*$e,0===(aa=Je*ea)&&ea<0&&(aa=9),re[Qe+1]=aa)}var x=at,N=tt,R=$a,ta=et,na=oa.Rectangle.fromCartographicArray(Qa,Ka),na=ga.getMinimumMaximumHeights(na,ce),ia=na.minimumTerrainHeight,na=na.maximumTerrainHeight,L=(He=He+ia+na,Ya(L,Be,ia,na,x,R),Ya(Pe,Ae,ia,na,N,ta),oa.Cartesian3.multiplyByScalar(Fe,ua.CesiumMath.EPSILON5,gt));oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),ba(x,N),ba(R,ta),oa.Cartesian3.pack(x,E,A),oa.Cartesian3.pack(N,E,A+3),oa.Cartesian3.pack(ta,E,A+6),oa.Cartesian3.pack(R,E,A+9),L=oa.Cartesian3.multiplyByScalar(Fe,-2*ua.CesiumMath.EPSILON5,gt),oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),ba(x,N),ba(R,ta),oa.Cartesian3.pack(x,E,A+12),oa.Cartesian3.pack(N,E,A+15),oa.Cartesian3.pack(ta,E,A+18),oa.Cartesian3.pack(R,E,A+21),Ee+=2,y+=3,_e+=16,A+=24,Oe+=32,De+=je,ze+=S}var ra=y=0;for(w=0;w<Ce;w++){for(P=0;P<wt;P++)pe[y+P]=ft[P]+ra;ra+=8,y+=wt}return f=mt,sa.BoundingSphere.fromVertices(se,oa.Cartesian3.ZERO,3,f[0]),sa.BoundingSphere.fromVertices(oe,oa.Cartesian3.ZERO,3,f[1]),(ae=sa.BoundingSphere.fromBoundingSpheres(f)).radius+=He/(2*Ce),M={position:new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:E}),startHiAndForwardOffsetX:La(de),startLoAndForwardOffsetY:La(he),startNormalAndForwardOffsetZ:La(ge),endNormalAndTextureCoordinateNormalizationX:La(me),rightNormalAndTextureCoordinateNormalizationY:La(fe)},ue&&(M.startHiLo2D=La(te),M.offsetAndRight2D=La(ne),M.startEndNormals2D=La(ie),M.texcoordNormalization2D=new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:re})),new da.Geometry({attributes:M,indices:pe,boundingSphere:ae})}},new oa.Cartesian3),N=new oa.Matrix3,R=new sa.Quaternion;function Va(e,a,t,n){var a=Ma(t,a,I),a=oa.Cartesian3.dot(a,e);return(xa<a||a<y)&&(n=Ma(n,t,x),t=a<y?ua.CesiumMath.PI_OVER_TWO:-ua.CesiumMath.PI_OVER_TWO,a=sa.Quaternion.fromAxisAngle(n,t,R),n=oa.Matrix3.fromQuaternion(a,N),oa.Matrix3.multiplyByVector(n,e,e),!0)}var D=new oa.Cartographic,z=new oa.Cartesian3,H=new oa.Cartesian3;function Oa(e,a,t,n,i){var r=oa.Cartographic.toCartesian(a,e._ellipsoid,z),s=oa.Cartesian3.add(r,t,H),o=!1,l=e._ellipsoid,u=l.cartesianToCartographic(s,D),a=(Math.abs(a.longitude-u.longitude)>ua.CesiumMath.PI_OVER_TWO&&(o=!0,s=oa.Cartesian3.subtract(r,t,H),u=l.cartesianToCartographic(s,D)),u.height=0,e.project(u,i));return(i=oa.Cartesian3.subtract(a,n,i)).z=0,i=oa.Cartesian3.normalize(i,i),o&&oa.Cartesian3.negate(i,i),i}var B=new oa.Cartesian3,j=new oa.Cartesian3;function Ya(e,a,t,n,i,r){var s=oa.Cartesian3.subtract(a,e,B),t=(oa.Cartesian3.normalize(s,s),t-Ia),t=oa.Cartesian3.multiplyByScalar(s,t,j),e=(oa.Cartesian3.add(e,t,i),n-Na),t=oa.Cartesian3.multiplyByScalar(s,e,j);oa.Cartesian3.add(a,t,r)}var G=new oa.Cartesian3;function ba(e,a){var t=r.Plane.getPointDistance(va,e),n=r.Plane.getPointDistance(va,a),i=G;ua.CesiumMath.equalsEpsilon(t,0,ua.CesiumMath.EPSILON2)?(i=Ma(a,e,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(e,i,e)):ua.CesiumMath.equalsEpsilon(n,0,ua.CesiumMath.EPSILON2)&&(i=Ma(e,a,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(a,i,a))}var Fa=new oa.Cartographic,qa=new oa.Cartographic,Xa=new oa.Cartesian3,Pa=new oa.Cartesian3,Wa=new oa.Cartesian3,Ua=new oa.Cartesian3,Za=new oa.Cartesian3,Ja=new oa.Cartesian3,Qa=[Fa,qa],Ka=new oa.Rectangle,$a=new oa.Cartesian3,et=new oa.Cartesian3,at=new oa.Cartesian3,tt=new oa.Cartesian3,nt=new oa.Cartesian3,it=new oa.Cartesian3,Aa=new oa.Cartesian3,ka=new oa.Cartesian3,rt=new oa.Cartesian3,st=new oa.Cartesian3,ot=new oa.Cartesian3,lt=new oa.Cartesian3,ut=new oa.Cartesian3,ct=new oa.Cartesian3,Ct=new pa.EncodedCartesian3,pt=new pa.EncodedCartesian3,dt=new oa.Cartesian3,ht=new oa.Cartesian3,gt=new oa.Cartesian3,mt=[new sa.BoundingSphere,new sa.BoundingSphere],ft=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],wt=ft.length;function La(e){return new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return p._projectNormal=Oa,function(e,a){return ga.initialize().then(function(){return la.defined(a)&&(e=p.unpack(e,a)),p.createGeometry(e)})}});
1
+ define(["./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./EncodedCartesian3-3b6655b5","./GeometryAttribute-3dd6da35","./IntersectionTests-60f10d18","./Plane-43337cee","./WebMercatorProjection-329b047d","./combine-276652d0","./WebGLConstants-35626ea2"],function(sa,oa,a,la,ua,ca,Sa,T,Ca,da,pa,ha,r,t,n,h){function e(e){e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT),this._ellipsoid=la.defaultValue(e.ellipsoid,oa.Ellipsoid.WGS84),this._rectangle=la.defaultValue(e.rectangle,oa.Rectangle.MAX_VALUE),this._projection=new sa.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=la.defaultValue(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=la.defaultValue(e.numberOfLevelZeroTilesY,1)}Object.defineProperties(e.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),e.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},e.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},e.prototype.rectangleToNativeRectangle=function(e,a){var t=ua.CesiumMath.toDegrees(e.west),n=ua.CesiumMath.toDegrees(e.south),i=ua.CesiumMath.toDegrees(e.east),e=ua.CesiumMath.toDegrees(e.north);return la.defined(a)?(a.west=t,a.south=n,a.east=i,a.north=e,a):new oa.Rectangle(t,n,i,e)},e.prototype.tileXYToNativeRectangle=function(e,a,t,n){e=this.tileXYToRectangle(e,a,t,n);return e.west=ua.CesiumMath.toDegrees(e.west),e.south=ua.CesiumMath.toDegrees(e.south),e.east=ua.CesiumMath.toDegrees(e.east),e.north=ua.CesiumMath.toDegrees(e.north),e},e.prototype.tileXYToRectangle=function(e,a,t,n){var i=this._rectangle,r=this.getNumberOfXTilesAtLevel(t),t=this.getNumberOfYTilesAtLevel(t),r=i.width/r,s=e*r+i.west,e=(e+1)*r+i.west,r=i.height/t,t=i.north-a*r,i=i.north-(a+1)*r;return(n=la.defined(n)?n:new oa.Rectangle(s,i,e,t)).west=s,n.south=i,n.east=e,n.north=t,n},e.prototype.positionToTileXY=function(e,a,t){var n,i,r,s,o=this._rectangle;if(oa.Rectangle.contains(o,e))return n=this.getNumberOfXTilesAtLevel(a),a=this.getNumberOfYTilesAtLevel(a),s=o.width/n,i=o.height/a,r=e.longitude,o.east<o.west&&(r+=ua.CesiumMath.TWO_PI),n<=(r=(r-o.west)/s|0)&&(r=n-1),a<=(s=(o.north-e.latitude)/i|0)&&(s=a-1),la.defined(t)?(t.x=r,t.y=s,t):new oa.Cartesian2(r,s)};var s=new oa.Cartesian3,o=new oa.Cartesian3,l=new oa.Cartographic,u=new oa.Cartesian3,g=new oa.Cartesian3,i=new sa.BoundingSphere,m=new e,c=[new oa.Cartographic,new oa.Cartographic,new oa.Cartographic,new oa.Cartographic],C=new oa.Cartesian2,ga={};function f(e){oa.Cartographic.fromRadians(e.east,e.north,0,c[0]),oa.Cartographic.fromRadians(e.west,e.north,0,c[1]),oa.Cartographic.fromRadians(e.east,e.south,0,c[2]),oa.Cartographic.fromRadians(e.west,e.south,0,c[3]);for(var a=0,t=0,n=0,i=0,r=ga._terrainHeightsMaxLevel,s=0;s<=r;++s){for(var o=!1,l=0;l<4;++l)if(m.positionToTileXY(c[l],s,C),0===l)n=C.x,i=C.y;else if(n!==C.x||i!==C.y){o=!0;break}if(o)break;a=n,t=i}if(0!==s)return{x:a,y:t,level:r<s?r:s-1}}ga.initialize=function(){var e=ga._initPromise;return la.defined(e)||(e=sa.Resource.fetchJson(sa.buildModuleUrl("Assets/approximateTerrainHeights.json")).then(function(e){ga._terrainHeights=e}),ga._initPromise=e),e},ga.getMinimumMaximumHeights=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=f(e),n=ga._defaultMinTerrainHeight,i=ga._defaultMaxTerrainHeight;return la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t)&&(n=t[0],i=t[1]),a.cartographicToCartesian(oa.Rectangle.northeast(e,l),s),a.cartographicToCartesian(oa.Rectangle.southwest(e,l),o),oa.Cartesian3.midpoint(o,s,u),t=a.scaleToGeodeticSurface(u,g),n=la.defined(t)?(e=oa.Cartesian3.distance(u,t),Math.min(n,-e)):ga._defaultMinTerrainHeight),{minimumTerrainHeight:n=Math.max(ga._defaultMinTerrainHeight,n),maximumTerrainHeight:i}},ga.getBoundingSphere=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=f(e),n=ga._defaultMaxTerrainHeight,t=(la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t))&&(n=t[1]),sa.BoundingSphere.fromRectangle3D(e,a,0));return sa.BoundingSphere.fromRectangle3D(e,a,n,i),sa.BoundingSphere.union(t,i,t)},ga._terrainHeightsMaxLevel=6,ga._defaultMaxTerrainHeight=9e3,ga._defaultMinTerrainHeight=-1e5,ga._terrainHeights=void 0,ga._initPromise=void 0,Object.defineProperties(ga,{initialized:{get:function(){return la.defined(ga._terrainHeights)}}});var ma=[sa.GeographicProjection,t.WebMercatorProjection],w=ma.length,xa=Math.cos(ua.CesiumMath.toRadians(30)),y=Math.cos(ua.CesiumMath.toRadians(150)),Ia=0,Na=1e3;function d(e){var a=(e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT)).positions;this.width=la.defaultValue(e.width,1),this._positions=a,this.granularity=la.defaultValue(e.granularity,9999),this.loop=la.defaultValue(e.loop,!1),this.arcType=la.defaultValue(e.arcType,ca.ArcType.GEODESIC),this._ellipsoid=oa.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(d.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+oa.Ellipsoid.packedLength+1+1}}}),d.setProjectionAndEllipsoid=function(e,a){for(var t=0,n=0;n<w;n++)if(a instanceof ma[n]){t=n;break}e._projectionIndex=t,e._ellipsoid=a.ellipsoid};var M=new oa.Cartesian3,v=new oa.Cartesian3,E=new oa.Cartesian3;function fa(e,a,t,n,i){var r=ya(n,e,0,M),e=ya(n,e,t,v),t=ya(n,a,0,E),n=Ma(e,r,v),a=Ma(t,r,E);return oa.Cartesian3.cross(a,n,i),oa.Cartesian3.normalize(i,i)}var _=new oa.Cartographic,O=new oa.Cartesian3,b=new oa.Cartesian3,P=new oa.Cartesian3;function wa(e,a,t,n,i,r,s,o,l,u,c){if(0!==i){r===ca.ArcType.GEODESIC?C=new T.EllipsoidGeodesic(e,a,s):r===ca.ArcType.RHUMB&&(C=new Ca.EllipsoidRhumbLine(e,a,s));var C,r=C.surfaceDistance;if(!(r<i))for(var d=fa(e,a,n,s,P),e=Math.ceil(r/i),p=r/e,h=p,g=e-1,m=o.length,f=0;f<g;f++){var w=C.interpolateUsingSurfaceDistance(h,_),y=ya(s,w,t,O),M=ya(s,w,n,b);oa.Cartesian3.pack(d,o,m),oa.Cartesian3.pack(y,l,m),oa.Cartesian3.pack(M,u,m),c.push(w.latitude),c.push(w.longitude),m+=3,h+=p}}}var p=new oa.Cartographic;function ya(e,a,t,n){return oa.Cartographic.clone(a,p),p.height=t,oa.Cartographic.toCartesian(p,e,n)}function Ma(e,a,t){return oa.Cartesian3.subtract(e,a,t),oa.Cartesian3.normalize(t,t),t}function A(e,a,t,n){return n=Ma(e,a,n),n=oa.Cartesian3.cross(n,t,n),n=oa.Cartesian3.normalize(n,n),n=oa.Cartesian3.cross(t,n,n)}d.pack=function(e,a,t){var n=la.defaultValue(t,0),i=e._positions,r=i.length;a[n++]=r;for(var s=0;s<r;++s){var o=i[s];oa.Cartesian3.pack(o,a,n),n+=3}return a[n++]=e.granularity,a[n++]=e.loop?1:0,a[n++]=e.arcType,oa.Ellipsoid.pack(e._ellipsoid,a,n),n+=oa.Ellipsoid.packedLength,a[n++]=e._projectionIndex,a[n++]=e._scene3DOnly?1:0,a},d.unpack=function(e,a,t){for(var n=la.defaultValue(a,0),i=e[n++],r=new Array(i),s=0;s<i;s++)r[s]=oa.Cartesian3.unpack(e,n),n+=3;var a=e[n++],o=1===e[n++],l=e[n++],u=oa.Ellipsoid.unpack(e,n),c=(n+=oa.Ellipsoid.packedLength,e[n++]),C=1===e[n++];return(t=la.defined(t)?t:new d({positions:r}))._positions=r,t.granularity=a,t.loop=o,t.arcType=l,t._ellipsoid=u,t._projectionIndex=c,t._scene3DOnly=C,t};var k=new oa.Cartesian3,L=new oa.Cartesian3,S=new oa.Cartesian3,x=new oa.Cartesian3;function Ta(e,a,t,n,i){t=Ma(t,a,x),e=A(e,a,t,k),n=A(n,a,t,L);if(ua.CesiumMath.equalsEpsilon(oa.Cartesian3.dot(e,n),-1,ua.CesiumMath.EPSILON5))return i=oa.Cartesian3.cross(t,e,i),i=oa.Cartesian3.normalize(i,i);i=oa.Cartesian3.add(n,e,i),i=oa.Cartesian3.normalize(i,i);a=oa.Cartesian3.cross(t,i,S);return i=oa.Cartesian3.dot(n,a)<0?oa.Cartesian3.negate(i,i):i}var va=r.Plane.fromPointNormal(oa.Cartesian3.ZERO,oa.Cartesian3.UNIT_Y),Ra=new oa.Cartesian3,Da=new oa.Cartesian3,za=new oa.Cartesian3,Ha=new oa.Cartesian3,Ba=new oa.Cartesian3,Ea=new oa.Cartesian3,_a=new oa.Cartographic,ja=new oa.Cartographic,Ga=new oa.Cartographic,I=(d.createGeometry=function(e){for(var a,t,n,D,z,i,H,B,j=!e._scene3DOnly,G=e.loop,r=e._ellipsoid,V=e.granularity,Y=e.arcType,F=new ma[e._projectionIndex](r),s=Ia,q=Na,X=e._positions,W=X.length,U=(2===W&&(G=!1),new Ca.EllipsoidRhumbLine(void 0,void 0,r)),Z=[X[0]],o=0;o<W-1;o++)t=X[o],n=X[o+1],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))),Z.push(n);G&&(t=X[W-1],n=X[0],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))));var J=Z.length,l=new Array(J);for(o=0;o<J;o++){var Q=oa.Cartographic.fromCartesian(Z[o],r);Q.height=0,l[o]=Q}if(!((J=(l=Sa.arrayRemoveDuplicates(l,oa.Cartographic.equalsEpsilon)).length)<2)){var u=[],c=[],C=[],d=[],K=Ra,p=Da,h=za,$=Ha,g=Ba,m=l[0],f=l[1];for(K=ya(r,l[J-1],s,K),$=ya(r,f,s,$),p=ya(r,m,s,p),h=ya(r,m,q,h),g=G?Ta(K,p,h,$,g):fa(m,f,q,r,g),oa.Cartesian3.pack(g,c,0),oa.Cartesian3.pack(p,C,0),oa.Cartesian3.pack(h,d,0),u.push(m.latitude),u.push(m.longitude),wa(m,f,s,q,V,Y,r,c,C,d,u),o=1;o<J-1;++o){var K=oa.Cartesian3.clone(p,K),p=oa.Cartesian3.clone($,p),ee=l[o];ya(r,ee,q,h),ya(r,l[o+1],s,$),Ta(K,p,h,$,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(p,C,a),oa.Cartesian3.pack(h,d,a),u.push(ee.latitude),u.push(ee.longitude),wa(l[o],l[o+1],s,q,V,Y,r,c,C,d,u)}var f=l[J-1],ae=l[J-2];if(p=ya(r,f,s,p),h=ya(r,f,q,h),g=G?(M=l[0],Ta(K=ya(r,ae,s,K),p,h,$=ya(r,M,s,$),g)):fa(ae,f,q,r,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(p,C,a),oa.Cartesian3.pack(h,d,a),u.push(f.latitude),u.push(f.longitude),G){for(wa(f,m,s,q,V,Y,r,c,C,d,u),a=c.length,o=0;o<3;++o)c[a+o]=c[o],C[a+o]=C[o],d[a+o]=d[o];u.push(m.latitude),u.push(m.longitude)}var w,y,te,ne,ie,re,M=G,T=F,se=C,oe=d,le=c,v=u,ue=j,ce=T._ellipsoid,Ce=se.length/3-1,ae=8*Ce,f=4*ae,m=36*Ce,de=new(65535<ae?Uint32Array:Uint16Array)(m),E=new Float64Array(3*ae),pe=new Float32Array(f),he=new Float32Array(f),ge=new Float32Array(f),me=new Float32Array(f),fe=new Float32Array(f),we=(ue&&(te=new Float32Array(f),ne=new Float32Array(f),ie=new Float32Array(f),re=new Float32Array(2*ae)),v.length/2),ye=0,_=Fa,O=(_.height=0,qa),Me=(O.height=0,Xa),b=Pa;if(ue)for(y=0,w=1;w<we;w++)_.latitude=v[y],_.longitude=v[y+1],O.latitude=v[y+2],O.longitude=v[y+3],Me=T.project(_,Me),b=T.project(O,b),ye+=oa.Cartesian3.distance(Me,b),y+=2;var P,Te=oe.length/3,ve=(b=oa.Cartesian3.unpack(oe,0,b),0);for(y=3,w=1;w<Te;w++)Me=oa.Cartesian3.clone(b,Me),b=oa.Cartesian3.unpack(oe,y,b),ve+=oa.Cartesian3.distance(Me,b),y+=3;var Ee=0,_e=0,A=0,Oe=0,be=!(y=3),Pe=oa.Cartesian3.unpack(se,0,Ua),Ae=oa.Cartesian3.unpack(oe,0,Pa),k=oa.Cartesian3.unpack(le,0,Ja);M&&(m=oa.Cartesian3.unpack(se,se.length-6,Wa),Va(k,m,Pe,Ae))&&(k=oa.Cartesian3.negate(k,k));var ke,Le,Se,xe,Ie,Ne,Re,De=0,ze=0,He=0;for(w=0;w<Ce;w++){var L=oa.Cartesian3.clone(Pe,Wa),Be=oa.Cartesian3.clone(Ae,Xa),S=oa.Cartesian3.clone(k,Za),je=(be&&(S=oa.Cartesian3.negate(S,S)),Pe=oa.Cartesian3.unpack(se,y,Ua),Ae=oa.Cartesian3.unpack(oe,y,Pa),k=oa.Cartesian3.unpack(le,y,Ja),be=Va(k,L,Pe,Ae),_.latitude=v[Ee],_.longitude=v[Ee+1],O.latitude=v[Ee+2],O.longitude=v[Ee+3],ue&&(Ye=function(e,a){var t=Math.abs(e.longitude),n=Math.abs(a.longitude);{var i;if(ua.CesiumMath.equalsEpsilon(t,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(a.longitude),e.longitude=i*(t-ua.CesiumMath.EPSILON11),1;if(ua.CesiumMath.equalsEpsilon(n,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(e.longitude),a.longitude=i*(n-ua.CesiumMath.EPSILON11),2}return 0}(_,O),ke=T.project(_,nt),(je=Ma(Le=T.project(O,it),ke,pt)).y=Math.abs(je.y),Se=Aa,xe=ka,0===Ye||oa.Cartesian3.dot(je,oa.Cartesian3.UNIT_Y)>xa?(Se=Oa(T,_,S,ke,Aa),xe=Oa(T,O,k,Le,ka)):1===Ye?(xe=Oa(T,O,k,Le,ka),Se.x=0,Se.y=ua.CesiumMath.sign(_.longitude-Math.abs(O.longitude)),Se.z=0):(Se=Oa(T,_,S,ke,Aa),xe.x=0,xe.y=ua.CesiumMath.sign(_.longitude-O.longitude),xe.z=0)),oa.Cartesian3.distance(Be,Ae)),Ge=da.EncodedCartesian3.fromCartesian(L,Ct),Ve=oa.Cartesian3.subtract(Pe,L,rt),Ye=oa.Cartesian3.normalize(Ve,lt),x=oa.Cartesian3.subtract(Be,L,st),Fe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(Ye,x,lt)),qe=(Fe=oa.Cartesian3.normalize(Fe,Fe),oa.Cartesian3.cross(x,S,ut)),x=(qe=oa.Cartesian3.normalize(qe,qe),oa.Cartesian3.subtract(Ae,Pe,ot)),Xe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(k,x,ct)),We=(Xe=oa.Cartesian3.normalize(Xe,Xe),je/ve),Ue=De/ve,S=0,Ze=0,Je=0;for(ue&&(S=oa.Cartesian3.distance(ke,Le),Ie=da.EncodedCartesian3.fromCartesian(ke,dt),Ne=oa.Cartesian3.subtract(Le,ke,pt),x=(Re=oa.Cartesian3.normalize(Ne,ht)).x,Re.x=Re.y,Re.y=-x,Ze=S/ye,Je=ze/ye),P=0;P<8;P++){var I=Oe+4*P,Qe=_e+2*P,Ke=I+3,$e=P<4?1:-1,ea=2===P||3===P||6===P||7===P?1:-1,aa=(oa.Cartesian3.pack(Ge.high,pe,I),pe[Ke]=Ve.x,oa.Cartesian3.pack(Ge.low,he,I),he[Ke]=Ve.y,oa.Cartesian3.pack(qe,ge,I),ge[Ke]=Ve.z,oa.Cartesian3.pack(Xe,me,I),me[Ke]=We*$e,oa.Cartesian3.pack(Fe,fe,I),Ue*ea);0===aa&&ea<0&&(aa=9),fe[Ke]=aa,ue&&(te[I]=Ie.high.x,te[I+1]=Ie.high.y,te[I+2]=Ie.low.x,te[I+3]=Ie.low.y,ie[I]=-Se.y,ie[I+1]=Se.x,ie[I+2]=xe.y,ie[I+3]=-xe.x,ne[I]=Ne.x,ne[I+1]=Ne.y,ne[I+2]=Re.x,ne[I+3]=Re.y,re[Qe]=Ze*$e,0===(aa=Je*ea)&&ea<0&&(aa=9),re[Qe+1]=aa)}var x=at,N=tt,R=$a,ta=et,na=oa.Rectangle.fromCartographicArray(Qa,Ka),na=ga.getMinimumMaximumHeights(na,ce),ia=na.minimumTerrainHeight,na=na.maximumTerrainHeight,L=(He=He+ia+na,Ya(L,Be,ia,na,x,R),Ya(Pe,Ae,ia,na,N,ta),oa.Cartesian3.multiplyByScalar(Fe,ua.CesiumMath.EPSILON5,gt));oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),ba(x,N),ba(R,ta),oa.Cartesian3.pack(x,E,A),oa.Cartesian3.pack(N,E,A+3),oa.Cartesian3.pack(ta,E,A+6),oa.Cartesian3.pack(R,E,A+9),L=oa.Cartesian3.multiplyByScalar(Fe,-2*ua.CesiumMath.EPSILON5,gt),oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),ba(x,N),ba(R,ta),oa.Cartesian3.pack(x,E,A+12),oa.Cartesian3.pack(N,E,A+15),oa.Cartesian3.pack(ta,E,A+18),oa.Cartesian3.pack(R,E,A+21),Ee+=2,y+=3,_e+=16,A+=24,Oe+=32,De+=je,ze+=S}var ra=y=0;for(w=0;w<Ce;w++){for(P=0;P<wt;P++)de[y+P]=ft[P]+ra;ra+=8,y+=wt}return f=mt,sa.BoundingSphere.fromVertices(se,oa.Cartesian3.ZERO,3,f[0]),sa.BoundingSphere.fromVertices(oe,oa.Cartesian3.ZERO,3,f[1]),(ae=sa.BoundingSphere.fromBoundingSpheres(f)).radius+=He/(2*Ce),M={position:new pa.GeometryAttribute({componentDatatype:ua.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:E}),startHiAndForwardOffsetX:La(pe),startLoAndForwardOffsetY:La(he),startNormalAndForwardOffsetZ:La(ge),endNormalAndTextureCoordinateNormalizationX:La(me),rightNormalAndTextureCoordinateNormalizationY:La(fe)},ue&&(M.startHiLo2D=La(te),M.offsetAndRight2D=La(ne),M.startEndNormals2D=La(ie),M.texcoordNormalization2D=new pa.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:re})),new pa.Geometry({attributes:M,indices:de,boundingSphere:ae})}},new oa.Cartesian3),N=new oa.Matrix3,R=new sa.Quaternion;function Va(e,a,t,n){var a=Ma(t,a,I),a=oa.Cartesian3.dot(a,e);return(xa<a||a<y)&&(n=Ma(n,t,x),t=a<y?ua.CesiumMath.PI_OVER_TWO:-ua.CesiumMath.PI_OVER_TWO,a=sa.Quaternion.fromAxisAngle(n,t,R),n=oa.Matrix3.fromQuaternion(a,N),oa.Matrix3.multiplyByVector(n,e,e),!0)}var D=new oa.Cartographic,z=new oa.Cartesian3,H=new oa.Cartesian3;function Oa(e,a,t,n,i){var r=oa.Cartographic.toCartesian(a,e._ellipsoid,z),s=oa.Cartesian3.add(r,t,H),o=!1,l=e._ellipsoid,u=l.cartesianToCartographic(s,D),a=(Math.abs(a.longitude-u.longitude)>ua.CesiumMath.PI_OVER_TWO&&(o=!0,s=oa.Cartesian3.subtract(r,t,H),u=l.cartesianToCartographic(s,D)),u.height=0,e.project(u,i));return(i=oa.Cartesian3.subtract(a,n,i)).z=0,i=oa.Cartesian3.normalize(i,i),o&&oa.Cartesian3.negate(i,i),i}var B=new oa.Cartesian3,j=new oa.Cartesian3;function Ya(e,a,t,n,i,r){var s=oa.Cartesian3.subtract(a,e,B),t=(oa.Cartesian3.normalize(s,s),t-Ia),t=oa.Cartesian3.multiplyByScalar(s,t,j),e=(oa.Cartesian3.add(e,t,i),n-Na),t=oa.Cartesian3.multiplyByScalar(s,e,j);oa.Cartesian3.add(a,t,r)}var G=new oa.Cartesian3;function ba(e,a){var t=r.Plane.getPointDistance(va,e),n=r.Plane.getPointDistance(va,a),i=G;ua.CesiumMath.equalsEpsilon(t,0,ua.CesiumMath.EPSILON2)?(i=Ma(a,e,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(e,i,e)):ua.CesiumMath.equalsEpsilon(n,0,ua.CesiumMath.EPSILON2)&&(i=Ma(e,a,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(a,i,a))}var Fa=new oa.Cartographic,qa=new oa.Cartographic,Xa=new oa.Cartesian3,Pa=new oa.Cartesian3,Wa=new oa.Cartesian3,Ua=new oa.Cartesian3,Za=new oa.Cartesian3,Ja=new oa.Cartesian3,Qa=[Fa,qa],Ka=new oa.Rectangle,$a=new oa.Cartesian3,et=new oa.Cartesian3,at=new oa.Cartesian3,tt=new oa.Cartesian3,nt=new oa.Cartesian3,it=new oa.Cartesian3,Aa=new oa.Cartesian3,ka=new oa.Cartesian3,rt=new oa.Cartesian3,st=new oa.Cartesian3,ot=new oa.Cartesian3,lt=new oa.Cartesian3,ut=new oa.Cartesian3,ct=new oa.Cartesian3,Ct=new da.EncodedCartesian3,dt=new da.EncodedCartesian3,pt=new oa.Cartesian3,ht=new oa.Cartesian3,gt=new oa.Cartesian3,mt=[new sa.BoundingSphere,new sa.BoundingSphere],ft=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],wt=ft.length;function La(e){return new pa.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return d._projectNormal=Oa,function(e,a){return ga.initialize().then(function(){return la.defined(a)&&(e=d.unpack(e,a)),d.createGeometry(e)})}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2"],function(r,a,o,e,m,i,u,p,t,n){function y(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT);e=r.defaultValue(e.vertexFormat,p.VertexFormat.DEFAULT);this._vertexFormat=e,this._workerName="createPlaneGeometry"}y.packedLength=p.VertexFormat.packedLength,y.pack=function(e,t,n){return n=r.defaultValue(n,0),p.VertexFormat.pack(e._vertexFormat,t,n),t};var c=new p.VertexFormat,s={vertexFormat:c},A=(y.unpack=function(e,t,n){t=r.defaultValue(t,0);e=p.VertexFormat.unpack(e,t,c);return r.defined(n)?(n._vertexFormat=p.VertexFormat.clone(e,n._vertexFormat),n):new y(s)},new o.Cartesian3(-.5,-.5,0)),b=new o.Cartesian3(.5,.5,0);return y.createGeometry=function(e){var t,e=e._vertexFormat,n=new u.GeometryAttributes;return e.position&&((t=new Float64Array(12))[0]=A.x,t[1]=A.y,t[2]=0,t[3]=b.x,t[4]=A.y,t[5]=0,t[6]=b.x,t[7]=b.y,t[8]=0,t[9]=A.x,t[10]=b.y,t[11]=0,n.position=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t}),e.normal&&((t=new Float32Array(12))[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,n.normal=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),e.st&&((t=new Float32Array(8))[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,n.st=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),e.tangent&&((t=new Float32Array(12))[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,n.tangent=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),e.bitangent&&((t=new Float32Array(12))[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,n.bitangent=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),(t=new Uint16Array(6))[0]=0,t[1]=1,t[2]=2,t[3]=0,t[4]=2,t[5]=3),new i.Geometry({attributes:n,indices:t,primitiveType:i.PrimitiveType.TRIANGLES,boundingSphere:new a.BoundingSphere(o.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2"],function(r,a,o,e,m,i,u,p,t,n){function y(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT);e=r.defaultValue(e.vertexFormat,p.VertexFormat.DEFAULT);this._vertexFormat=e,this._workerName="createPlaneGeometry"}y.packedLength=p.VertexFormat.packedLength,y.pack=function(e,t,n){return n=r.defaultValue(n,0),p.VertexFormat.pack(e._vertexFormat,t,n),t};var c=new p.VertexFormat,s={vertexFormat:c},A=(y.unpack=function(e,t,n){t=r.defaultValue(t,0);e=p.VertexFormat.unpack(e,t,c);return r.defined(n)?(n._vertexFormat=p.VertexFormat.clone(e,n._vertexFormat),n):new y(s)},new o.Cartesian3(-.5,-.5,0)),b=new o.Cartesian3(.5,.5,0);return y.createGeometry=function(e){var t,e=e._vertexFormat,n=new u.GeometryAttributes;return e.position&&((t=new Float64Array(12))[0]=A.x,t[1]=A.y,t[2]=0,t[3]=b.x,t[4]=A.y,t[5]=0,t[6]=b.x,t[7]=b.y,t[8]=0,t[9]=A.x,t[10]=b.y,t[11]=0,n.position=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t}),e.normal&&((t=new Float32Array(12))[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,n.normal=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),e.st&&((t=new Float32Array(8))[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,n.st=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),e.tangent&&((t=new Float32Array(12))[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,n.tangent=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),e.bitangent&&((t=new Float32Array(12))[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,n.bitangent=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),(t=new Uint16Array(6))[0]=0,t[1]=1,t[2]=2,t[3]=0,t[4]=2,t[5]=3),new i.Geometry({attributes:n,indices:t,primitiveType:i.PrimitiveType.TRIANGLES,boundingSphere:new a.BoundingSphere(o.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./combine-276652d0","./WebGLConstants-35626ea2"],function(r,i,a,e,o,u,c,t,n){function y(){this._workerName="createPlaneOutlineGeometry"}y.packedLength=0,y.pack=function(e,t){return t},y.unpack=function(e,t,n){return r.defined(n)?n:new y};var m=new a.Cartesian3(-.5,-.5,0),p=new a.Cartesian3(.5,.5,0);return y.createGeometry=function(){var e=new c.GeometryAttributes,t=new Uint16Array(8),n=new Float64Array(12);return n[0]=m.x,n[1]=m.y,n[2]=m.z,n[3]=p.x,n[4]=m.y,n[5]=m.z,n[6]=p.x,n[7]=p.y,n[8]=m.z,n[9]=m.x,n[10]=p.y,n[11]=m.z,e.position=new u.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n}),t[0]=0,t[1]=1,t[2]=1,t[3]=2,t[4]=2,t[5]=3,t[6]=3,t[7]=0,new u.Geometry({attributes:e,indices:t,primitiveType:u.PrimitiveType.LINES,boundingSphere:new i.BoundingSphere(a.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./combine-276652d0","./WebGLConstants-35626ea2"],function(r,a,i,e,o,u,c,t,n){function y(){this._workerName="createPlaneOutlineGeometry"}y.packedLength=0,y.pack=function(e,t){return t},y.unpack=function(e,t,n){return r.defined(n)?n:new y};var m=new i.Cartesian3(-.5,-.5,0),p=new i.Cartesian3(.5,.5,0);return y.createGeometry=function(){var e=new c.GeometryAttributes,t=new Uint16Array(8),n=new Float64Array(12);return n[0]=m.x,n[1]=m.y,n[2]=m.z,n[3]=p.x,n[4]=m.y,n[5]=m.z,n[6]=p.x,n[7]=p.y,n[8]=m.z,n[9]=m.x,n[10]=p.y,n[11]=m.z,e.position=new u.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n}),t[0]=0,t[1]=1,t[2]=1,t[3]=2,t[4]=2,t[5]=3,t[6]=3,t[7]=0,new u.Geometry({attributes:e,indices:t,primitiveType:u.PrimitiveType.LINES,boundingSphere:new a.BoundingSphere(i.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./GeometryOffsetAttribute-8c0bd3ce","./BoundingRectangle-81d4313c","./Transforms-ce414632","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./EllipsoidGeodesic-640f147e","./EllipsoidTangentPlane-da721e0c","./GeometryAttribute-5d30d102","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-c31243f7","./PolygonPipeline-6d75eac7","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidRhumbLine-535d21cd","./GeometryAttributes-5ce4955a"],function(W,Y,p,U,e,j,t,Q,d,G,q,O,V,F,D,L,f,o,r,a,n,s,l,u,c,h,_){var K=new Y.Cartographic,Z=new Y.Cartographic;var N=new e.BoundingRectangle,J=new Y.Cartesian3,X=new Y.Cartesian3,$=new Y.Cartesian3,ee=new Y.Cartesian3,te=new Y.Cartesian3,oe=new Y.Cartesian3,re=new Y.Cartesian3,ae=new Y.Cartesian3,ie=new Y.Cartesian3,se=new Y.Cartesian2,le=new Y.Cartesian2,ue=new Y.Cartesian3,ne=new j.Quaternion,ce=new Y.Matrix3,pe=new Y.Matrix3;function H(e){var t,H,R,o,r,a=e.vertexFormat,i=e.geometry,n=e.shadowVolume,s=i.attributes.position.values,l=s.length,u=e.wall,c=e.top||u,p=e.bottom||u;if(a.st||a.normal||a.tangent||a.bitangent||n){var d,m,y=e.boundingRectangle,M=e.tangentPlane,g=e.ellipsoid,h=e.stRotation,S=e.st,f=e.perPositionHeight,B=se,b=(B.x=y.x,B.y=y.y,a.st?new Float32Array(l/3*2):void 0),_=(a.normal&&(d=f&&c&&!u?i.attributes.normal.values:new Float32Array(l)),a.tangent?new Float32Array(l):void 0),P=a.bitangent?new Float32Array(l):void 0,v=n?new Float32Array(l):void 0,x=0,w=0,C=X,T=$,I=ee,k=!0,A=ce,E=pe,G=(E=0!==h?(m=j.Quaternion.fromAxisAngle(M._plane.normal,h,ne),A=Y.Matrix3.fromQuaternion(m,A),m=j.Quaternion.fromAxisAngle(M._plane.normal,-h,ne),Y.Matrix3.fromQuaternion(m,E)):(A=Y.Matrix3.clone(Y.Matrix3.IDENTITY,A),Y.Matrix3.clone(Y.Matrix3.IDENTITY,E)),0),z=0;c&&p&&(G=l/2,z=l/3,l/=2);for(var O=0;O<l;O+=3){var V,F,D,L,N=Y.Cartesian3.fromArray(s,O,ue);a.st&&!W.defined(S)&&(F=Y.Matrix3.multiplyByVector(A,N,J),F=g.scaleToGeodeticSurface(F,F),F=M.projectPointOntoPlane(F,le),Y.Cartesian2.subtract(F,B,F),V=Q.CesiumMath.clamp(F.x/y.width,0,1),F=Q.CesiumMath.clamp(F.y/y.height,0,1),p&&(b[x+z]=V,b[x+1+z]=F),c&&(b[x]=V,b[x+1]=F),x+=2),(a.normal||a.tangent||a.bitangent||n)&&(V=w+1,F=w+2,u?(O+3<l&&(D=Y.Cartesian3.fromArray(s,O+3,te),k&&(L=Y.Cartesian3.fromArray(s,O+l,oe),f&&(t=N,H=D,R=L,r=void 0,t=(o=g).cartesianToCartographic(t,K).height,(r=o.cartesianToCartographic(H,Z)).height=t,o.cartographicToCartesian(r,H),(r=o.cartesianToCartographic(R,Z)).height=t-100,o.cartographicToCartesian(r,R)),Y.Cartesian3.subtract(D,N,D),Y.Cartesian3.subtract(L,N,L),C=Y.Cartesian3.normalize(Y.Cartesian3.cross(L,D,C),C),k=!1),Y.Cartesian3.equalsEpsilon(D,N,Q.CesiumMath.EPSILON10))&&(k=!0),(a.tangent||a.bitangent)&&(I=g.geodeticSurfaceNormal(N,I),a.tangent)&&(T=Y.Cartesian3.normalize(Y.Cartesian3.cross(I,C,T),T))):(C=g.geodeticSurfaceNormal(N,C),(a.tangent||a.bitangent)&&(f&&(re=Y.Cartesian3.fromArray(d,w,re),ae=Y.Cartesian3.cross(Y.Cartesian3.UNIT_Z,re,ae),ae=Y.Cartesian3.normalize(Y.Matrix3.multiplyByVector(E,ae,ae),ae),a.bitangent)&&(ie=Y.Cartesian3.normalize(Y.Cartesian3.cross(re,ae,ie),ie)),T=Y.Cartesian3.cross(Y.Cartesian3.UNIT_Z,C,T),T=Y.Cartesian3.normalize(Y.Matrix3.multiplyByVector(E,T,T),T),a.bitangent)&&(I=Y.Cartesian3.normalize(Y.Cartesian3.cross(C,T,I),I))),a.normal&&(e.wall?(d[w+G]=C.x,d[V+G]=C.y,d[F+G]=C.z):p&&(d[w+G]=-C.x,d[V+G]=-C.y,d[F+G]=-C.z),c&&!f||u)&&(d[w]=C.x,d[V]=C.y,d[F]=C.z),n&&(u&&(C=g.geodeticSurfaceNormal(N,C)),v[w+G]=-C.x,v[V+G]=-C.y,v[F+G]=-C.z),a.tangent&&(e.wall?(_[w+G]=T.x,_[V+G]=T.y,_[F+G]=T.z):p&&(_[w+G]=-T.x,_[V+G]=-T.y,_[F+G]=-T.z),c)&&(f?(_[w]=ae.x,_[V]=ae.y,_[F]=ae.z):(_[w]=T.x,_[V]=T.y,_[F]=T.z)),a.bitangent&&(p&&(P[w+G]=I.x,P[V+G]=I.y,P[F+G]=I.z),c)&&(f?(P[w]=ie.x,P[V]=ie.y,P[F]=ie.z):(P[w]=I.x,P[V]=I.y,P[F]=I.z)),w+=3)}W.defined(S)&&(b=S),a.st&&(i.attributes.st=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:b})),a.normal&&(i.attributes.normal=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),a.tangent&&(i.attributes.tangent=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:_})),a.bitangent&&(i.attributes.bitangent=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P})),n&&(i.attributes.extrudeDirection=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:v}))}return e.extrude&&W.defined(e.offsetAttribute)&&(h=s.length/3,m=new Uint8Array(h),e.offsetAttribute===U.GeometryOffsetAttribute.TOP?c&&p||u?m=U.arrayFill(m,1,0,h/2):c&&(m=U.arrayFill(m,1)):(h=e.offsetAttribute===U.GeometryOffsetAttribute.NONE?0:1,m=U.arrayFill(m,h)),i.attributes.applyOffset=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:m})),i}var P=new Y.Cartographic,v=new Y.Cartographic,m={westOverIDL:0,eastOverIDL:0},y=new d.EllipsoidGeodesic;function i(e,t,o,r,a){if(a=W.defaultValue(a,new Y.Rectangle),!W.defined(e)||e.length<3)a.west=0,a.north=0,a.south=0,a.east=0;else{if(o===p.ArcType.RHUMB)return Y.Rectangle.fromCartesianArray(e,t,a);y.ellipsoid.equals(t)||(y=new d.EllipsoidGeodesic(void 0,void 0,t)),a.west=Number.POSITIVE_INFINITY,a.east=Number.NEGATIVE_INFINITY,a.south=Number.POSITIVE_INFINITY,a.north=Number.NEGATIVE_INFINITY,m.westOverIDL=Number.POSITIVE_INFINITY,m.eastOverIDL=Number.NEGATIVE_INFINITY;for(var i,n=1/Q.CesiumMath.chordLength(r,t.maximumRadius),s=e.length,l=t.cartesianToCartographic(e[0],v),u=P,c=1;c<s;c++)i=u,u=l,l=t.cartesianToCartographic(e[c],i),y.setEndPoints(u,l),g(y,n,a,m);i=u,u=l,l=t.cartesianToCartographic(e[0],i),y.setEndPoints(u,l),g(y,n,a,m),a.east-a.west>m.eastOverIDL-m.westOverIDL&&(a.west=m.westOverIDL,a.east=m.eastOverIDL,a.east>Q.CesiumMath.PI&&(a.east=a.east-Q.CesiumMath.TWO_PI),a.west>Q.CesiumMath.PI)&&(a.west=a.west-Q.CesiumMath.TWO_PI)}return a}var x=new Y.Cartographic;function g(e,t,o,r){for(var a=e.surfaceDistance,i=Math.ceil(a*t),n=0<i?a/(i-1):Number.POSITIVE_INFINITY,s=0,l=0;l<i;l++){var u=e.interpolateUsingSurfaceDistance(s,x),c=(s+=n,u.longitude),u=u.latitude,u=(o.west=Math.min(o.west,c),o.east=Math.max(o.east,c),o.south=Math.min(o.south,u),o.north=Math.max(o.north,u),0<=c?c:c+Q.CesiumMath.TWO_PI);r.westOverIDL=Math.min(r.westOverIDL,u),r.eastOverIDL=Math.max(r.eastOverIDL,u)}}var R=[];function b(e){var t,o=e.polygonHierarchy,r=W.defaultValue(e.vertexFormat,f.VertexFormat.DEFAULT),a=W.defaultValue(e.ellipsoid,Y.Ellipsoid.WGS84),i=W.defaultValue(e.granularity,Q.CesiumMath.RADIANS_PER_DEGREE),n=W.defaultValue(e.stRotation,0),s=W.defaultValue(e.perPositionHeight,!1),l=s&&W.defined(e.extrudedHeight),u=W.defaultValue(e.height,0),c=W.defaultValue(e.extrudedHeight,u);l||(t=Math.max(u,c),c=Math.min(u,c),u=t),this._vertexFormat=f.VertexFormat.clone(r),this._ellipsoid=Y.Ellipsoid.clone(a),this._granularity=i,this._indices=e.indices,this._st=e.st,this._stRotation=n,this._height=u,this._extrudedHeight=c,this._closeTop=W.defaultValue(e.closeTop,!0),this._closeBottom=W.defaultValue(e.closeBottom,!0),this._polygonHierarchy=o,this._perPositionHeight=s,this._perPositionHeightExtrude=l,this._shadowVolume=W.defaultValue(e.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=e.offsetAttribute,this._arcType=W.defaultValue(e.arcType,p.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this.packedLength=D.PolygonGeometryLibrary.computeHierarchyPackedLength(o)+Y.Ellipsoid.packedLength+f.VertexFormat.packedLength+12}b.fromPositions=function(e){return new b({polygonHierarchy:{positions:(e=W.defaultValue(e,W.defaultValue.EMPTY_OBJECT)).positions},height:e.height,extrudedHeight:e.extrudedHeight,vertexFormat:e.vertexFormat,indices:e.indices,st:e.st,stRotation:e.stRotation,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,closeTop:e.closeTop,closeBottom:e.closeBottom,offsetAttribute:e.offsetAttribute,arcType:e.arcType})},b.pack=function(e,t,o){return o=W.defaultValue(o,0),o=D.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,o),Y.Ellipsoid.pack(e._ellipsoid,t,o),o+=Y.Ellipsoid.packedLength,f.VertexFormat.pack(e._vertexFormat,t,o),o+=f.VertexFormat.packedLength,t[o++]=e._height,t[o++]=e._extrudedHeight,t[o++]=e._granularity,t[o++]=e._stRotation,t[o++]=e._perPositionHeightExtrude?1:0,t[o++]=e._perPositionHeight?1:0,t[o++]=e._closeTop?1:0,t[o++]=e._closeBottom?1:0,t[o++]=e._shadowVolume?1:0,t[o++]=W.defaultValue(e._offsetAttribute,-1),t[o++]=e._arcType,t[o]=e.packedLength,t};var w=Y.Ellipsoid.clone(Y.Ellipsoid.UNIT_SPHERE),C=new f.VertexFormat,T={polygonHierarchy:{}};return b.unpack=function(e,t,o){t=W.defaultValue(t,0);var r=D.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t),a=(t=r.startingIndex,delete r.startingIndex,Y.Ellipsoid.unpack(e,t,w)),i=(t+=Y.Ellipsoid.packedLength,f.VertexFormat.unpack(e,t,C)),n=(t+=f.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],c=1===e[t++],p=1===e[t++],d=1===e[t++],m=1===e[t++],y=1===e[t++],g=e[t++],h=e[t++],e=e[t];return(o=W.defined(o)?o:new b(T))._polygonHierarchy=r,o._ellipsoid=Y.Ellipsoid.clone(a,o._ellipsoid),o._vertexFormat=f.VertexFormat.clone(i,o._vertexFormat),o._height=n,o._extrudedHeight=s,o._granularity=l,o._stRotation=u,o._perPositionHeightExtrude=c,o._perPositionHeight=p,o._closeTop=d,o._closeBottom=m,o._shadowVolume=y,o._offsetAttribute=-1===g?void 0:g,o._arcType=h,o.packedLength=e,o},b.computeRectangle=function(e,t){var o=W.defaultValue(e.granularity,Q.CesiumMath.RADIANS_PER_DEGREE),r=W.defaultValue(e.arcType,p.ArcType.GEODESIC),a=e.polygonHierarchy,e=W.defaultValue(e.ellipsoid,Y.Ellipsoid.WGS84);return i(a.positions,e,r,o,t)},b.createGeometry=function(e){var t=e._vertexFormat,o=e._ellipsoid,r=e._granularity,a=e._stRotation,i=e._indices,n=e._st,s=e._polygonHierarchy,l=e._perPositionHeight,u=e._closeTop,c=e._closeBottom,p=e._arcType,d=s.positions;if(!(d.length<3)){var m=G.EllipsoidTangentPlane.fromPoints(d,o),s=D.PolygonGeometryLibrary.polygonsFromHierarchy(s,m.projectPointsOntoPlane.bind(m),!l,o),y=s.hierarchy,g=s.polygons;if(0!==y.length){var h,d=y[0].outerRing,s=D.PolygonGeometryLibrary.computeBoundingRectangle(m.plane.normal,m.projectPointOntoPlane.bind(m),d,a,N),f=[],b=e._height,_=e._extrudedHeight,P={perPositionHeight:l,vertexFormat:t,geometry:void 0,tangentPlane:m,boundingRectangle:s,ellipsoid:o,stRotation:a,indices:i,st:n,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:p};if(e._perPositionHeightExtrude||!Q.CesiumMath.equalsEpsilon(b,_,0,Q.CesiumMath.EPSILON2))for(P.extrude=!0,P.top=u,P.bottom=c,P.shadowVolume=e._shadowVolume,P.offsetAttribute=e._offsetAttribute,h=0;h<g.length;h++){var v,x=function(e,t,o,r,a,i,n,s,l){var u={walls:[]};if(i||n){var t=D.PolygonGeometryLibrary.createGeometryFromPositions(e,t,o,a,s,l),c=t.attributes.position.values,p=t.indices;if(i&&n){for(var d,i=c.concat(c),m=i.length/3,y=((d=F.IndexDatatype.createTypedArray(m,2*p.length)).set(p),p.length),g=m/2,h=0;h<y;h+=3){var f=d[h]+g,b=d[h+1]+g,_=d[h+2]+g;d[h+y]=_,d[h+1+y]=b,d[h+2+y]=f}t.attributes.position.values=i,a&&s.normal&&(s=t.attributes.normal.values,t.attributes.normal.values=new Float32Array(i.length),t.attributes.normal.values.set(s)),t.indices=d}else if(n){for(m=c.length/3,d=F.IndexDatatype.createTypedArray(m,p.length),h=0;h<p.length;h+=3)d[h]=p[h+2],d[h+1]=p[h+1],d[h+2]=p[h];t.indices=d}u.topAndBottom=new O.GeometryInstance({geometry:t})}var i=r.outerRing,P=G.EllipsoidTangentPlane.fromPoints(i,e).projectPointsOntoPlane(i,R),v=(L.PolygonPipeline.computeWindingOrder2D(P)===L.WindingOrder.CLOCKWISE&&(i=i.slice().reverse()),D.PolygonGeometryLibrary.computeWallGeometry(i,e,o,a,l)),x=(u.walls.push(new O.GeometryInstance({geometry:v})),r.holes);for(h=0;h<x.length;h++){var w=x[h],P=G.EllipsoidTangentPlane.fromPoints(w,e).projectPointsOntoPlane(w,R);L.PolygonPipeline.computeWindingOrder2D(P)===L.WindingOrder.COUNTER_CLOCKWISE&&(w=w.slice().reverse()),v=D.PolygonGeometryLibrary.computeWallGeometry(w,e,o,a,l),u.walls.push(new O.GeometryInstance({geometry:v}))}return u}(o,g[h],r,y[h],l,u,c,t,p),w=(u&&c?(v=x.topAndBottom,P.geometry=D.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(v.geometry,b,_,o,l)):u?((v=x.topAndBottom).geometry.attributes.position.values=L.PolygonPipeline.scaleToGeodeticHeight(v.geometry.attributes.position.values,b,o,!l),P.geometry=v.geometry):c&&((v=x.topAndBottom).geometry.attributes.position.values=L.PolygonPipeline.scaleToGeodeticHeight(v.geometry.attributes.position.values,_,o,!0),P.geometry=v.geometry),(u||c)&&(P.wall=!1,v.geometry=H(P),f.push(v)),x.walls);P.wall=!0;for(var C=0;C<w.length;C++){var T=w[C];P.geometry=D.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(T.geometry,b,_,o,l),T.geometry=H(P),f.push(T)}}else for(h=0;h<g.length;h++){var I,A,E=new O.GeometryInstance({geometry:D.PolygonGeometryLibrary.createGeometryFromPositions(o,g[h],r,l,t,p)});E.geometry.attributes.position.values=L.PolygonPipeline.scaleToGeodeticHeight(E.geometry.attributes.position.values,b,o,!l),P.indices&&l&&(E.geometry.indices=P.indices),P.geometry=E.geometry,E.geometry=H(P),W.defined(e._offsetAttribute)&&(I=E.geometry.attributes.position.values.length,I=new Uint8Array(I/3),A=e._offsetAttribute===U.GeometryOffsetAttribute.NONE?0:1,U.arrayFill(I,A),E.geometry.attributes.applyOffset=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:I})),f.push(E)}d=V.GeometryPipeline.combineInstances(f)[0],m=(d.attributes.position.values=new Float64Array(d.attributes.position.values),d.indices=F.IndexDatatype.createTypedArray(d.attributes.position.values.length/3,d.indices),d.attributes),s=j.BoundingSphere.fromVertices(m.position.values);return t.position||delete m.position,new q.Geometry({attributes:m,indices:d.indices,primitiveType:d.primitiveType,boundingSphere:s,offsetAttribute:e._offsetAttribute})}}},b.createShadowVolume=function(e,t,o){var r=e._granularity,a=e._ellipsoid,t=t(r,a),o=o(r,a);return new b({polygonHierarchy:e._polygonHierarchy,ellipsoid:a,stRotation:e._stRotation,granularity:r,perPositionHeight:!1,extrudedHeight:t,height:o,vertexFormat:f.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:e._arcType})},Object.defineProperties(b.prototype,{rectangle:{get:function(){var e;return W.defined(this._rectangle)||(e=this._polygonHierarchy.positions,this._rectangle=i(e,this._ellipsoid,this._arcType,this._granularity)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){var e,t,o;return W.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=0==(o=-(e=this)._stRotation)?[0,0,0,1,1,0]:(t=e._polygonHierarchy.positions,q.Geometry._textureCoordinateRotationPoints(t,o,e._ellipsoid,e.rectangle))),this._textureCoordinateRotationPoints}}}),function(e,t){return(e=W.defined(t)?b.unpack(e,t):e)._ellipsoid=Y.Ellipsoid.clone(e._ellipsoid),b.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./GeometryOffsetAttribute-8c0bd3ce","./BoundingRectangle-5a740234","./Transforms-c1a1d063","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./EllipsoidGeodesic-640f147e","./EllipsoidTangentPlane-4a503a7a","./GeometryAttribute-3dd6da35","./GeometryInstance-e2137e03","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-4ad4f4a2","./PolygonPipeline-832a906c","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./AxisAlignedBoundingBox-9c01642b","./IntersectionTests-60f10d18","./Plane-43337cee","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidRhumbLine-535d21cd","./GeometryAttributes-5ce4955a"],function(W,Y,p,U,e,j,t,Q,d,G,q,O,V,F,D,L,f,o,r,a,n,s,l,u,c,h,_){var K=new Y.Cartographic,Z=new Y.Cartographic;var N=new e.BoundingRectangle,J=new Y.Cartesian3,X=new Y.Cartesian3,$=new Y.Cartesian3,ee=new Y.Cartesian3,te=new Y.Cartesian3,oe=new Y.Cartesian3,re=new Y.Cartesian3,ae=new Y.Cartesian3,ie=new Y.Cartesian3,se=new Y.Cartesian2,le=new Y.Cartesian2,ue=new Y.Cartesian3,ne=new j.Quaternion,ce=new Y.Matrix3,pe=new Y.Matrix3;function H(e){var t,H,R,o,r,a=e.vertexFormat,i=e.geometry,n=e.shadowVolume,s=i.attributes.position.values,l=s.length,u=e.wall,c=e.top||u,p=e.bottom||u;if(a.st||a.normal||a.tangent||a.bitangent||n){var d,m,y=e.boundingRectangle,M=e.tangentPlane,g=e.ellipsoid,h=e.stRotation,S=e.st,f=e.perPositionHeight,B=se,b=(B.x=y.x,B.y=y.y,a.st?new Float32Array(l/3*2):void 0),_=(a.normal&&(d=f&&c&&!u?i.attributes.normal.values:new Float32Array(l)),a.tangent?new Float32Array(l):void 0),P=a.bitangent?new Float32Array(l):void 0,v=n?new Float32Array(l):void 0,x=0,w=0,C=X,T=$,I=ee,k=!0,A=ce,E=pe,G=(E=0!==h?(m=j.Quaternion.fromAxisAngle(M._plane.normal,h,ne),A=Y.Matrix3.fromQuaternion(m,A),m=j.Quaternion.fromAxisAngle(M._plane.normal,-h,ne),Y.Matrix3.fromQuaternion(m,E)):(A=Y.Matrix3.clone(Y.Matrix3.IDENTITY,A),Y.Matrix3.clone(Y.Matrix3.IDENTITY,E)),0),z=0;c&&p&&(G=l/2,z=l/3,l/=2);for(var O=0;O<l;O+=3){var V,F,D,L,N=Y.Cartesian3.fromArray(s,O,ue);a.st&&!W.defined(S)&&(F=Y.Matrix3.multiplyByVector(A,N,J),F=g.scaleToGeodeticSurface(F,F),F=M.projectPointOntoPlane(F,le),Y.Cartesian2.subtract(F,B,F),V=Q.CesiumMath.clamp(F.x/y.width,0,1),F=Q.CesiumMath.clamp(F.y/y.height,0,1),p&&(b[x+z]=V,b[x+1+z]=F),c&&(b[x]=V,b[x+1]=F),x+=2),(a.normal||a.tangent||a.bitangent||n)&&(V=w+1,F=w+2,u?(O+3<l&&(D=Y.Cartesian3.fromArray(s,O+3,te),k&&(L=Y.Cartesian3.fromArray(s,O+l,oe),f&&(t=N,H=D,R=L,r=void 0,t=(o=g).cartesianToCartographic(t,K).height,(r=o.cartesianToCartographic(H,Z)).height=t,o.cartographicToCartesian(r,H),(r=o.cartesianToCartographic(R,Z)).height=t-100,o.cartographicToCartesian(r,R)),Y.Cartesian3.subtract(D,N,D),Y.Cartesian3.subtract(L,N,L),C=Y.Cartesian3.normalize(Y.Cartesian3.cross(L,D,C),C),k=!1),Y.Cartesian3.equalsEpsilon(D,N,Q.CesiumMath.EPSILON10))&&(k=!0),(a.tangent||a.bitangent)&&(I=g.geodeticSurfaceNormal(N,I),a.tangent)&&(T=Y.Cartesian3.normalize(Y.Cartesian3.cross(I,C,T),T))):(C=g.geodeticSurfaceNormal(N,C),(a.tangent||a.bitangent)&&(f&&(re=Y.Cartesian3.fromArray(d,w,re),ae=Y.Cartesian3.cross(Y.Cartesian3.UNIT_Z,re,ae),ae=Y.Cartesian3.normalize(Y.Matrix3.multiplyByVector(E,ae,ae),ae),a.bitangent)&&(ie=Y.Cartesian3.normalize(Y.Cartesian3.cross(re,ae,ie),ie)),T=Y.Cartesian3.cross(Y.Cartesian3.UNIT_Z,C,T),T=Y.Cartesian3.normalize(Y.Matrix3.multiplyByVector(E,T,T),T),a.bitangent)&&(I=Y.Cartesian3.normalize(Y.Cartesian3.cross(C,T,I),I))),a.normal&&(e.wall?(d[w+G]=C.x,d[V+G]=C.y,d[F+G]=C.z):p&&(d[w+G]=-C.x,d[V+G]=-C.y,d[F+G]=-C.z),c&&!f||u)&&(d[w]=C.x,d[V]=C.y,d[F]=C.z),n&&(u&&(C=g.geodeticSurfaceNormal(N,C)),v[w+G]=-C.x,v[V+G]=-C.y,v[F+G]=-C.z),a.tangent&&(e.wall?(_[w+G]=T.x,_[V+G]=T.y,_[F+G]=T.z):p&&(_[w+G]=-T.x,_[V+G]=-T.y,_[F+G]=-T.z),c)&&(f?(_[w]=ae.x,_[V]=ae.y,_[F]=ae.z):(_[w]=T.x,_[V]=T.y,_[F]=T.z)),a.bitangent&&(p&&(P[w+G]=I.x,P[V+G]=I.y,P[F+G]=I.z),c)&&(f?(P[w]=ie.x,P[V]=ie.y,P[F]=ie.z):(P[w]=I.x,P[V]=I.y,P[F]=I.z)),w+=3)}W.defined(S)&&(b=S),a.st&&(i.attributes.st=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:b})),a.normal&&(i.attributes.normal=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),a.tangent&&(i.attributes.tangent=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:_})),a.bitangent&&(i.attributes.bitangent=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P})),n&&(i.attributes.extrudeDirection=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:v}))}return e.extrude&&W.defined(e.offsetAttribute)&&(h=s.length/3,m=new Uint8Array(h),e.offsetAttribute===U.GeometryOffsetAttribute.TOP?c&&p||u?m=U.arrayFill(m,1,0,h/2):c&&(m=U.arrayFill(m,1)):(h=e.offsetAttribute===U.GeometryOffsetAttribute.NONE?0:1,m=U.arrayFill(m,h)),i.attributes.applyOffset=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:m})),i}var P=new Y.Cartographic,v=new Y.Cartographic,m={westOverIDL:0,eastOverIDL:0},y=new d.EllipsoidGeodesic;function i(e,t,o,r,a){if(a=W.defaultValue(a,new Y.Rectangle),!W.defined(e)||e.length<3)a.west=0,a.north=0,a.south=0,a.east=0;else{if(o===p.ArcType.RHUMB)return Y.Rectangle.fromCartesianArray(e,t,a);y.ellipsoid.equals(t)||(y=new d.EllipsoidGeodesic(void 0,void 0,t)),a.west=Number.POSITIVE_INFINITY,a.east=Number.NEGATIVE_INFINITY,a.south=Number.POSITIVE_INFINITY,a.north=Number.NEGATIVE_INFINITY,m.westOverIDL=Number.POSITIVE_INFINITY,m.eastOverIDL=Number.NEGATIVE_INFINITY;for(var i,n=1/Q.CesiumMath.chordLength(r,t.maximumRadius),s=e.length,l=t.cartesianToCartographic(e[0],v),u=P,c=1;c<s;c++)i=u,u=l,l=t.cartesianToCartographic(e[c],i),y.setEndPoints(u,l),g(y,n,a,m);i=u,u=l,l=t.cartesianToCartographic(e[0],i),y.setEndPoints(u,l),g(y,n,a,m),a.east-a.west>m.eastOverIDL-m.westOverIDL&&(a.west=m.westOverIDL,a.east=m.eastOverIDL,a.east>Q.CesiumMath.PI&&(a.east=a.east-Q.CesiumMath.TWO_PI),a.west>Q.CesiumMath.PI)&&(a.west=a.west-Q.CesiumMath.TWO_PI)}return a}var x=new Y.Cartographic;function g(e,t,o,r){for(var a=e.surfaceDistance,i=Math.ceil(a*t),n=0<i?a/(i-1):Number.POSITIVE_INFINITY,s=0,l=0;l<i;l++){var u=e.interpolateUsingSurfaceDistance(s,x),c=(s+=n,u.longitude),u=u.latitude,u=(o.west=Math.min(o.west,c),o.east=Math.max(o.east,c),o.south=Math.min(o.south,u),o.north=Math.max(o.north,u),0<=c?c:c+Q.CesiumMath.TWO_PI);r.westOverIDL=Math.min(r.westOverIDL,u),r.eastOverIDL=Math.max(r.eastOverIDL,u)}}var R=[];function b(e){var t,o=e.polygonHierarchy,r=W.defaultValue(e.vertexFormat,f.VertexFormat.DEFAULT),a=W.defaultValue(e.ellipsoid,Y.Ellipsoid.WGS84),i=W.defaultValue(e.granularity,Q.CesiumMath.RADIANS_PER_DEGREE),n=W.defaultValue(e.stRotation,0),s=W.defaultValue(e.perPositionHeight,!1),l=s&&W.defined(e.extrudedHeight),u=W.defaultValue(e.height,0),c=W.defaultValue(e.extrudedHeight,u);l||(t=Math.max(u,c),c=Math.min(u,c),u=t),this._vertexFormat=f.VertexFormat.clone(r),this._ellipsoid=Y.Ellipsoid.clone(a),this._granularity=i,this._indices=e.indices,this._st=e.st,this._stRotation=n,this._height=u,this._extrudedHeight=c,this._closeTop=W.defaultValue(e.closeTop,!0),this._closeBottom=W.defaultValue(e.closeBottom,!0),this._polygonHierarchy=o,this._perPositionHeight=s,this._perPositionHeightExtrude=l,this._shadowVolume=W.defaultValue(e.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=e.offsetAttribute,this._arcType=W.defaultValue(e.arcType,p.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this.packedLength=D.PolygonGeometryLibrary.computeHierarchyPackedLength(o)+Y.Ellipsoid.packedLength+f.VertexFormat.packedLength+12}b.fromPositions=function(e){return new b({polygonHierarchy:{positions:(e=W.defaultValue(e,W.defaultValue.EMPTY_OBJECT)).positions},height:e.height,extrudedHeight:e.extrudedHeight,vertexFormat:e.vertexFormat,indices:e.indices,st:e.st,stRotation:e.stRotation,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,closeTop:e.closeTop,closeBottom:e.closeBottom,offsetAttribute:e.offsetAttribute,arcType:e.arcType})},b.pack=function(e,t,o){return o=W.defaultValue(o,0),o=D.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,o),Y.Ellipsoid.pack(e._ellipsoid,t,o),o+=Y.Ellipsoid.packedLength,f.VertexFormat.pack(e._vertexFormat,t,o),o+=f.VertexFormat.packedLength,t[o++]=e._height,t[o++]=e._extrudedHeight,t[o++]=e._granularity,t[o++]=e._stRotation,t[o++]=e._perPositionHeightExtrude?1:0,t[o++]=e._perPositionHeight?1:0,t[o++]=e._closeTop?1:0,t[o++]=e._closeBottom?1:0,t[o++]=e._shadowVolume?1:0,t[o++]=W.defaultValue(e._offsetAttribute,-1),t[o++]=e._arcType,t[o]=e.packedLength,t};var w=Y.Ellipsoid.clone(Y.Ellipsoid.UNIT_SPHERE),C=new f.VertexFormat,T={polygonHierarchy:{}};return b.unpack=function(e,t,o){t=W.defaultValue(t,0);var r=D.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t),a=(t=r.startingIndex,delete r.startingIndex,Y.Ellipsoid.unpack(e,t,w)),i=(t+=Y.Ellipsoid.packedLength,f.VertexFormat.unpack(e,t,C)),n=(t+=f.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],c=1===e[t++],p=1===e[t++],d=1===e[t++],m=1===e[t++],y=1===e[t++],g=e[t++],h=e[t++],e=e[t];return(o=W.defined(o)?o:new b(T))._polygonHierarchy=r,o._ellipsoid=Y.Ellipsoid.clone(a,o._ellipsoid),o._vertexFormat=f.VertexFormat.clone(i,o._vertexFormat),o._height=n,o._extrudedHeight=s,o._granularity=l,o._stRotation=u,o._perPositionHeightExtrude=c,o._perPositionHeight=p,o._closeTop=d,o._closeBottom=m,o._shadowVolume=y,o._offsetAttribute=-1===g?void 0:g,o._arcType=h,o.packedLength=e,o},b.computeRectangle=function(e,t){var o=W.defaultValue(e.granularity,Q.CesiumMath.RADIANS_PER_DEGREE),r=W.defaultValue(e.arcType,p.ArcType.GEODESIC),a=e.polygonHierarchy,e=W.defaultValue(e.ellipsoid,Y.Ellipsoid.WGS84);return i(a.positions,e,r,o,t)},b.createGeometry=function(e){var t=e._vertexFormat,o=e._ellipsoid,r=e._granularity,a=e._stRotation,i=e._indices,n=e._st,s=e._polygonHierarchy,l=e._perPositionHeight,u=e._closeTop,c=e._closeBottom,p=e._arcType,d=s.positions;if(!(d.length<3)){var m=G.EllipsoidTangentPlane.fromPoints(d,o),s=D.PolygonGeometryLibrary.polygonsFromHierarchy(s,m.projectPointsOntoPlane.bind(m),!l,o),y=s.hierarchy,g=s.polygons;if(0!==y.length){var h,d=y[0].outerRing,s=D.PolygonGeometryLibrary.computeBoundingRectangle(m.plane.normal,m.projectPointOntoPlane.bind(m),d,a,N),f=[],b=e._height,_=e._extrudedHeight,P={perPositionHeight:l,vertexFormat:t,geometry:void 0,tangentPlane:m,boundingRectangle:s,ellipsoid:o,stRotation:a,indices:i,st:n,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:p};if(e._perPositionHeightExtrude||!Q.CesiumMath.equalsEpsilon(b,_,0,Q.CesiumMath.EPSILON2))for(P.extrude=!0,P.top=u,P.bottom=c,P.shadowVolume=e._shadowVolume,P.offsetAttribute=e._offsetAttribute,h=0;h<g.length;h++){var v,x=function(e,t,o,r,a,i,n,s,l){var u={walls:[]};if(i||n){var t=D.PolygonGeometryLibrary.createGeometryFromPositions(e,t,o,a,s,l),c=t.attributes.position.values,p=t.indices;if(i&&n){for(var d,i=c.concat(c),m=i.length/3,y=((d=F.IndexDatatype.createTypedArray(m,2*p.length)).set(p),p.length),g=m/2,h=0;h<y;h+=3){var f=d[h]+g,b=d[h+1]+g,_=d[h+2]+g;d[h+y]=_,d[h+1+y]=b,d[h+2+y]=f}t.attributes.position.values=i,a&&s.normal&&(s=t.attributes.normal.values,t.attributes.normal.values=new Float32Array(i.length),t.attributes.normal.values.set(s)),t.indices=d}else if(n){for(m=c.length/3,d=F.IndexDatatype.createTypedArray(m,p.length),h=0;h<p.length;h+=3)d[h]=p[h+2],d[h+1]=p[h+1],d[h+2]=p[h];t.indices=d}u.topAndBottom=new O.GeometryInstance({geometry:t})}var i=r.outerRing,P=G.EllipsoidTangentPlane.fromPoints(i,e).projectPointsOntoPlane(i,R),v=(L.PolygonPipeline.computeWindingOrder2D(P)===L.WindingOrder.CLOCKWISE&&(i=i.slice().reverse()),D.PolygonGeometryLibrary.computeWallGeometry(i,e,o,a,l)),x=(u.walls.push(new O.GeometryInstance({geometry:v})),r.holes);for(h=0;h<x.length;h++){var w=x[h],P=G.EllipsoidTangentPlane.fromPoints(w,e).projectPointsOntoPlane(w,R);L.PolygonPipeline.computeWindingOrder2D(P)===L.WindingOrder.COUNTER_CLOCKWISE&&(w=w.slice().reverse()),v=D.PolygonGeometryLibrary.computeWallGeometry(w,e,o,a,l),u.walls.push(new O.GeometryInstance({geometry:v}))}return u}(o,g[h],r,y[h],l,u,c,t,p),w=(u&&c?(v=x.topAndBottom,P.geometry=D.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(v.geometry,b,_,o,l)):u?((v=x.topAndBottom).geometry.attributes.position.values=L.PolygonPipeline.scaleToGeodeticHeight(v.geometry.attributes.position.values,b,o,!l),P.geometry=v.geometry):c&&((v=x.topAndBottom).geometry.attributes.position.values=L.PolygonPipeline.scaleToGeodeticHeight(v.geometry.attributes.position.values,_,o,!0),P.geometry=v.geometry),(u||c)&&(P.wall=!1,v.geometry=H(P),f.push(v)),x.walls);P.wall=!0;for(var C=0;C<w.length;C++){var T=w[C];P.geometry=D.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(T.geometry,b,_,o,l),T.geometry=H(P),f.push(T)}}else for(h=0;h<g.length;h++){var I,A,E=new O.GeometryInstance({geometry:D.PolygonGeometryLibrary.createGeometryFromPositions(o,g[h],r,l,t,p)});E.geometry.attributes.position.values=L.PolygonPipeline.scaleToGeodeticHeight(E.geometry.attributes.position.values,b,o,!l),P.indices&&l&&(E.geometry.indices=P.indices),P.geometry=E.geometry,E.geometry=H(P),W.defined(e._offsetAttribute)&&(I=E.geometry.attributes.position.values.length,I=new Uint8Array(I/3),A=e._offsetAttribute===U.GeometryOffsetAttribute.NONE?0:1,U.arrayFill(I,A),E.geometry.attributes.applyOffset=new q.GeometryAttribute({componentDatatype:Q.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:I})),f.push(E)}d=V.GeometryPipeline.combineInstances(f)[0],m=(d.attributes.position.values=new Float64Array(d.attributes.position.values),d.indices=F.IndexDatatype.createTypedArray(d.attributes.position.values.length/3,d.indices),d.attributes),s=j.BoundingSphere.fromVertices(m.position.values);return t.position||delete m.position,new q.Geometry({attributes:m,indices:d.indices,primitiveType:d.primitiveType,boundingSphere:s,offsetAttribute:e._offsetAttribute})}}},b.createShadowVolume=function(e,t,o){var r=e._granularity,a=e._ellipsoid,t=t(r,a),o=o(r,a);return new b({polygonHierarchy:e._polygonHierarchy,ellipsoid:a,stRotation:e._stRotation,granularity:r,perPositionHeight:!1,extrudedHeight:t,height:o,vertexFormat:f.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:e._arcType})},Object.defineProperties(b.prototype,{rectangle:{get:function(){var e;return W.defined(this._rectangle)||(e=this._polygonHierarchy.positions,this._rectangle=i(e,this._ellipsoid,this._arcType,this._granularity)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){var e,t,o;return W.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=0==(o=-(e=this)._stRotation)?[0,0,0,1,1,0]:(t=e._polygonHierarchy.positions,q.Geometry._textureCoordinateRotationPoints(t,o,e._ellipsoid,e.rectangle))),this._textureCoordinateRotationPoints}}}),function(e,t){return(e=W.defined(t)?b.unpack(e,t):e)._ellipsoid=Y.Ellipsoid.clone(e._ellipsoid),b.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./EllipsoidTangentPlane-da721e0c","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-c31243f7","./PolygonPipeline-6d75eac7","./combine-276652d0","./WebGLConstants-35626ea2","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidRhumbLine-535d21cd"],function(h,d,E,b,P,e,A,_,G,v,L,T,H,O,x,t,i,r,o,n,a,l,s,y){var C=[],D=[];function g(e){var t,i=e.polygonHierarchy,r=h.defaultValue(e.ellipsoid,d.Ellipsoid.WGS84),o=h.defaultValue(e.granularity,A.CesiumMath.RADIANS_PER_DEGREE),n=h.defaultValue(e.perPositionHeight,!1),a=n&&h.defined(e.extrudedHeight),l=h.defaultValue(e.arcType,E.ArcType.GEODESIC),s=h.defaultValue(e.height,0),y=h.defaultValue(e.extrudedHeight,s);a||(t=Math.max(s,y),y=Math.min(s,y),s=t),this._ellipsoid=d.Ellipsoid.clone(r),this._granularity=o,this._height=s,this._extrudedHeight=y,this._arcType=l,this._polygonHierarchy=i,this._perPositionHeight=n,this._perPositionHeightExtrude=a,this._offsetAttribute=e.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=O.PolygonGeometryLibrary.computeHierarchyPackedLength(i)+d.Ellipsoid.packedLength+8}g.pack=function(e,t,i){return i=h.defaultValue(i,0),i=O.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,i),d.Ellipsoid.pack(e._ellipsoid,t,i),i+=d.Ellipsoid.packedLength,t[i++]=e._height,t[i++]=e._extrudedHeight,t[i++]=e._granularity,t[i++]=e._perPositionHeightExtrude?1:0,t[i++]=e._perPositionHeight?1:0,t[i++]=e._arcType,t[i++]=h.defaultValue(e._offsetAttribute,-1),t[i]=e.packedLength,t};var c=d.Ellipsoid.clone(d.Ellipsoid.UNIT_SPHERE),f={polygonHierarchy:{}};return g.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=O.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t),o=(t=r.startingIndex,delete r.startingIndex,d.Ellipsoid.unpack(e,t,c)),n=(t+=d.Ellipsoid.packedLength,e[t++]),a=e[t++],l=e[t++],s=1===e[t++],y=1===e[t++],u=e[t++],p=e[t++],e=e[t];return(i=h.defined(i)?i:new g(f))._polygonHierarchy=r,i._ellipsoid=d.Ellipsoid.clone(o,i._ellipsoid),i._height=n,i._extrudedHeight=a,i._granularity=l,i._perPositionHeight=y,i._perPositionHeightExtrude=s,i._arcType=u,i._offsetAttribute=-1===p?void 0:p,i.packedLength=e,i},g.fromPositions=function(e){return new g({polygonHierarchy:{positions:(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).positions},height:e.height,extrudedHeight:e.extrudedHeight,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,arcType:e.arcType,offsetAttribute:e.offsetAttribute})},g.createGeometry=function(e){var t=e._ellipsoid,i=e._granularity,r=e._perPositionHeight,o=e._arcType,n=O.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(e._polygonHierarchy,!r,t);if(0!==n.length){var a,l,s,y,u,p,d=[],g=A.CesiumMath.chordLength(i,t.maximumRadius),c=e._height,f=e._extrudedHeight;if(e._perPositionHeightExtrude||!A.CesiumMath.equalsEpsilon(c,f,0,A.CesiumMath.EPSILON2))for(a=0;a<n.length;a++)(y=function(e,t,i,r,o){var n,a=_.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,C),l=(x.PolygonPipeline.computeWindingOrder2D(a)===x.WindingOrder.CLOCKWISE&&(a.reverse(),t=t.slice().reverse()),t.length),s=new Array(l),y=0;if(r)for(n=new Float64Array(2*l*3*2),b=0;b<l;++b){s[b]=y/3;var u=t[b],p=t[(b+1)%l];n[y++]=u.x,n[y++]=u.y,n[y++]=u.z,n[y++]=p.x,n[y++]=p.y,n[y++]=p.z}else{var d=0;if(o===E.ArcType.GEODESIC)for(b=0;b<l;b++)d+=O.PolygonGeometryLibrary.subdivideLineCount(t[b],t[(b+1)%l],i);else if(o===E.ArcType.RHUMB)for(b=0;b<l;b++)d+=O.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[b],t[(b+1)%l],i);for(n=new Float64Array(3*d*2),b=0;b<l;++b){s[b]=y/3,o===E.ArcType.GEODESIC?g=O.PolygonGeometryLibrary.subdivideLine(t[b],t[(b+1)%l],i,D):o===E.ArcType.RHUMB&&(g=O.PolygonGeometryLibrary.subdivideRhumbLine(e,t[b],t[(b+1)%l],i,D));for(var g,c=g.length,f=0;f<c;++f)n[y++]=g[f]}}for(var l=n.length/6,m=s.length,h=H.IndexDatatype.createTypedArray(l+m,2*(2*l+m)),y=0,b=0;b<l;++b)h[y++]=b,h[y++]=(b+1)%l,h[y++]=b+l,h[y++]=(b+1)%l+l;for(b=0;b<m;b++){var P=s[b];h[y++]=P,h[y++]=P+l}return new L.GeometryInstance({geometry:new G.Geometry({attributes:new v.GeometryAttributes({position:new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n})}),indices:h,primitiveType:G.PrimitiveType.LINES})})}(t,n[a],g,r,o)).geometry=O.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(y.geometry,c,f,t,r),h.defined(e._offsetAttribute)&&(l=y.geometry.attributes.position.values.length/3,s=new Uint8Array(l),s=e._offsetAttribute===b.GeometryOffsetAttribute.TOP?b.arrayFill(s,1,0,l/2):(p=e._offsetAttribute===b.GeometryOffsetAttribute.NONE?0:1,b.arrayFill(s,p)),y.geometry.attributes.applyOffset=new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:s})),d.push(y);else for(a=0;a<n.length;a++)(y=function(e,t,i,r,o){var n,a=_.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,C),l=(x.PolygonPipeline.computeWindingOrder2D(a)===x.WindingOrder.CLOCKWISE&&(a.reverse(),t=t.slice().reverse()),t.length),s=0;if(r)for(n=new Float64Array(2*l*3),m=0;m<l;m++){var y=t[m],u=t[(m+1)%l];n[s++]=y.x,n[s++]=y.y,n[s++]=y.z,n[s++]=u.x,n[s++]=u.y,n[s++]=u.z}else{var p=0;if(o===E.ArcType.GEODESIC)for(m=0;m<l;m++)p+=O.PolygonGeometryLibrary.subdivideLineCount(t[m],t[(m+1)%l],i);else if(o===E.ArcType.RHUMB)for(m=0;m<l;m++)p+=O.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[m],t[(m+1)%l],i);for(n=new Float64Array(3*p),m=0;m<l;m++){o===E.ArcType.GEODESIC?d=O.PolygonGeometryLibrary.subdivideLine(t[m],t[(m+1)%l],i,D):o===E.ArcType.RHUMB&&(d=O.PolygonGeometryLibrary.subdivideRhumbLine(e,t[m],t[(m+1)%l],i,D));for(var d,g=d.length,c=0;c<g;++c)n[s++]=d[c]}}for(var l=n.length/3,f=H.IndexDatatype.createTypedArray(l,2*l),s=0,m=0;m<l-1;m++)f[s++]=m,f[s++]=m+1;return f[s++]=l-1,f[s++]=0,new L.GeometryInstance({geometry:new G.Geometry({attributes:new v.GeometryAttributes({position:new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n})}),indices:f,primitiveType:G.PrimitiveType.LINES})})}(t,n[a],g,r,o)).geometry.attributes.position.values=x.PolygonPipeline.scaleToGeodeticHeight(y.geometry.attributes.position.values,c,t,!r),h.defined(e._offsetAttribute)&&(u=y.geometry.attributes.position.values.length,u=new Uint8Array(u/3),p=e._offsetAttribute===b.GeometryOffsetAttribute.NONE?0:1,b.arrayFill(u,p),y.geometry.attributes.applyOffset=new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:u})),d.push(y);var i=T.GeometryPipeline.combineInstances(d)[0],m=P.BoundingSphere.fromVertices(i.attributes.position.values);return new G.Geometry({attributes:i.attributes,indices:i.indices,primitiveType:i.primitiveType,boundingSphere:m,offsetAttribute:e._offsetAttribute})}},function(e,t){return(e=h.defined(t)?g.unpack(e,t):e)._ellipsoid=d.Ellipsoid.clone(e._ellipsoid),g.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./EllipsoidTangentPlane-4a503a7a","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-4ad4f4a2","./PolygonPipeline-832a906c","./combine-276652d0","./WebGLConstants-35626ea2","./AxisAlignedBoundingBox-9c01642b","./IntersectionTests-60f10d18","./Plane-43337cee","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidRhumbLine-535d21cd"],function(h,d,E,b,P,e,A,_,G,v,L,T,H,O,x,t,i,r,o,n,a,l,s,y){var C=[],D=[];function g(e){var t,i=e.polygonHierarchy,r=h.defaultValue(e.ellipsoid,d.Ellipsoid.WGS84),o=h.defaultValue(e.granularity,A.CesiumMath.RADIANS_PER_DEGREE),n=h.defaultValue(e.perPositionHeight,!1),a=n&&h.defined(e.extrudedHeight),l=h.defaultValue(e.arcType,E.ArcType.GEODESIC),s=h.defaultValue(e.height,0),y=h.defaultValue(e.extrudedHeight,s);a||(t=Math.max(s,y),y=Math.min(s,y),s=t),this._ellipsoid=d.Ellipsoid.clone(r),this._granularity=o,this._height=s,this._extrudedHeight=y,this._arcType=l,this._polygonHierarchy=i,this._perPositionHeight=n,this._perPositionHeightExtrude=a,this._offsetAttribute=e.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=O.PolygonGeometryLibrary.computeHierarchyPackedLength(i)+d.Ellipsoid.packedLength+8}g.pack=function(e,t,i){return i=h.defaultValue(i,0),i=O.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,i),d.Ellipsoid.pack(e._ellipsoid,t,i),i+=d.Ellipsoid.packedLength,t[i++]=e._height,t[i++]=e._extrudedHeight,t[i++]=e._granularity,t[i++]=e._perPositionHeightExtrude?1:0,t[i++]=e._perPositionHeight?1:0,t[i++]=e._arcType,t[i++]=h.defaultValue(e._offsetAttribute,-1),t[i]=e.packedLength,t};var c=d.Ellipsoid.clone(d.Ellipsoid.UNIT_SPHERE),f={polygonHierarchy:{}};return g.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=O.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t),o=(t=r.startingIndex,delete r.startingIndex,d.Ellipsoid.unpack(e,t,c)),n=(t+=d.Ellipsoid.packedLength,e[t++]),a=e[t++],l=e[t++],s=1===e[t++],y=1===e[t++],u=e[t++],p=e[t++],e=e[t];return(i=h.defined(i)?i:new g(f))._polygonHierarchy=r,i._ellipsoid=d.Ellipsoid.clone(o,i._ellipsoid),i._height=n,i._extrudedHeight=a,i._granularity=l,i._perPositionHeight=y,i._perPositionHeightExtrude=s,i._arcType=u,i._offsetAttribute=-1===p?void 0:p,i.packedLength=e,i},g.fromPositions=function(e){return new g({polygonHierarchy:{positions:(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).positions},height:e.height,extrudedHeight:e.extrudedHeight,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,arcType:e.arcType,offsetAttribute:e.offsetAttribute})},g.createGeometry=function(e){var t=e._ellipsoid,i=e._granularity,r=e._perPositionHeight,o=e._arcType,n=O.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(e._polygonHierarchy,!r,t);if(0!==n.length){var a,l,s,y,u,p,d=[],g=A.CesiumMath.chordLength(i,t.maximumRadius),c=e._height,f=e._extrudedHeight;if(e._perPositionHeightExtrude||!A.CesiumMath.equalsEpsilon(c,f,0,A.CesiumMath.EPSILON2))for(a=0;a<n.length;a++)(y=function(e,t,i,r,o){var n,a=_.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,C),l=(x.PolygonPipeline.computeWindingOrder2D(a)===x.WindingOrder.CLOCKWISE&&(a.reverse(),t=t.slice().reverse()),t.length),s=new Array(l),y=0;if(r)for(n=new Float64Array(2*l*3*2),b=0;b<l;++b){s[b]=y/3;var u=t[b],p=t[(b+1)%l];n[y++]=u.x,n[y++]=u.y,n[y++]=u.z,n[y++]=p.x,n[y++]=p.y,n[y++]=p.z}else{var d=0;if(o===E.ArcType.GEODESIC)for(b=0;b<l;b++)d+=O.PolygonGeometryLibrary.subdivideLineCount(t[b],t[(b+1)%l],i);else if(o===E.ArcType.RHUMB)for(b=0;b<l;b++)d+=O.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[b],t[(b+1)%l],i);for(n=new Float64Array(3*d*2),b=0;b<l;++b){s[b]=y/3,o===E.ArcType.GEODESIC?g=O.PolygonGeometryLibrary.subdivideLine(t[b],t[(b+1)%l],i,D):o===E.ArcType.RHUMB&&(g=O.PolygonGeometryLibrary.subdivideRhumbLine(e,t[b],t[(b+1)%l],i,D));for(var g,c=g.length,f=0;f<c;++f)n[y++]=g[f]}}for(var l=n.length/6,m=s.length,h=H.IndexDatatype.createTypedArray(l+m,2*(2*l+m)),y=0,b=0;b<l;++b)h[y++]=b,h[y++]=(b+1)%l,h[y++]=b+l,h[y++]=(b+1)%l+l;for(b=0;b<m;b++){var P=s[b];h[y++]=P,h[y++]=P+l}return new L.GeometryInstance({geometry:new G.Geometry({attributes:new v.GeometryAttributes({position:new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n})}),indices:h,primitiveType:G.PrimitiveType.LINES})})}(t,n[a],g,r,o)).geometry=O.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(y.geometry,c,f,t,r),h.defined(e._offsetAttribute)&&(l=y.geometry.attributes.position.values.length/3,s=new Uint8Array(l),s=e._offsetAttribute===b.GeometryOffsetAttribute.TOP?b.arrayFill(s,1,0,l/2):(p=e._offsetAttribute===b.GeometryOffsetAttribute.NONE?0:1,b.arrayFill(s,p)),y.geometry.attributes.applyOffset=new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:s})),d.push(y);else for(a=0;a<n.length;a++)(y=function(e,t,i,r,o){var n,a=_.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,C),l=(x.PolygonPipeline.computeWindingOrder2D(a)===x.WindingOrder.CLOCKWISE&&(a.reverse(),t=t.slice().reverse()),t.length),s=0;if(r)for(n=new Float64Array(2*l*3),m=0;m<l;m++){var y=t[m],u=t[(m+1)%l];n[s++]=y.x,n[s++]=y.y,n[s++]=y.z,n[s++]=u.x,n[s++]=u.y,n[s++]=u.z}else{var p=0;if(o===E.ArcType.GEODESIC)for(m=0;m<l;m++)p+=O.PolygonGeometryLibrary.subdivideLineCount(t[m],t[(m+1)%l],i);else if(o===E.ArcType.RHUMB)for(m=0;m<l;m++)p+=O.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[m],t[(m+1)%l],i);for(n=new Float64Array(3*p),m=0;m<l;m++){o===E.ArcType.GEODESIC?d=O.PolygonGeometryLibrary.subdivideLine(t[m],t[(m+1)%l],i,D):o===E.ArcType.RHUMB&&(d=O.PolygonGeometryLibrary.subdivideRhumbLine(e,t[m],t[(m+1)%l],i,D));for(var d,g=d.length,c=0;c<g;++c)n[s++]=d[c]}}for(var l=n.length/3,f=H.IndexDatatype.createTypedArray(l,2*l),s=0,m=0;m<l-1;m++)f[s++]=m,f[s++]=m+1;return f[s++]=l-1,f[s++]=0,new L.GeometryInstance({geometry:new G.Geometry({attributes:new v.GeometryAttributes({position:new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n})}),indices:f,primitiveType:G.PrimitiveType.LINES})})}(t,n[a],g,r,o)).geometry.attributes.position.values=x.PolygonPipeline.scaleToGeodeticHeight(y.geometry.attributes.position.values,c,t,!r),h.defined(e._offsetAttribute)&&(u=y.geometry.attributes.position.values.length,u=new Uint8Array(u/3),p=e._offsetAttribute===b.GeometryOffsetAttribute.NONE?0:1,b.arrayFill(u,p),y.geometry.attributes.applyOffset=new G.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:u})),d.push(y);var i=T.GeometryPipeline.combineInstances(d)[0],m=P.BoundingSphere.fromVertices(i.attributes.position.values);return new G.Geometry({attributes:i.attributes,indices:i.indices,primitiveType:i.primitiveType,boundingSphere:m,offsetAttribute:e._offsetAttribute})}},function(e,t){return(e=h.defined(t)?g.unpack(e,t):e)._ellipsoid=d.Ellipsoid.clone(e._ellipsoid),g.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./Transforms-ce414632","./Color-ff1fdef4","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolylinePipeline-7389d81d","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-f71f97b3","./Plane-43337cee"],function(z,J,j,K,Q,X,Z,e,$,ee,te,re,y,t,r,o,a,n,i){var oe=[];function m(e){var t=(e=z.defaultValue(e,z.defaultValue.EMPTY_OBJECT)).positions,r=e.colors,o=z.defaultValue(e.width,1),a=z.defaultValue(e.colorsPerVertex,!1),o=(this._positions=t,this._colors=r,this._width=o,this._colorsPerVertex=a,this._vertexFormat=y.VertexFormat.clone(z.defaultValue(e.vertexFormat,y.VertexFormat.DEFAULT)),this._arcType=z.defaultValue(e.arcType,j.ArcType.GEODESIC),this._granularity=z.defaultValue(e.granularity,Z.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=J.Ellipsoid.clone(z.defaultValue(e.ellipsoid,J.Ellipsoid.WGS84)),this._workerName="createPolylineGeometry",1+t.length*J.Cartesian3.packedLength);o+=z.defined(r)?1+r.length*X.Color.packedLength:1,this.packedLength=o+J.Ellipsoid.packedLength+y.VertexFormat.packedLength+4}m.pack=function(e,t,r){r=z.defaultValue(r,0);var o,a=e._positions,n=a.length;for(t[r++]=n,o=0;o<n;++o,r+=J.Cartesian3.packedLength)J.Cartesian3.pack(a[o],t,r);var i=e._colors,n=z.defined(i)?i.length:0;for(t[r++]=n,o=0;o<n;++o,r+=X.Color.packedLength)X.Color.pack(i[o],t,r);return J.Ellipsoid.pack(e._ellipsoid,t,r),r+=J.Ellipsoid.packedLength,y.VertexFormat.pack(e._vertexFormat,t,r),r+=y.VertexFormat.packedLength,t[r++]=e._width,t[r++]=e._colorsPerVertex?1:0,t[r++]=e._arcType,t[r]=e._granularity,t};var f=J.Ellipsoid.clone(J.Ellipsoid.UNIT_SPHERE),h=new y.VertexFormat,C={positions:void 0,colors:void 0,ellipsoid:f,vertexFormat:h,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0},ae=(m.unpack=function(e,t,r){t=z.defaultValue(t,0);for(var o=e[t++],a=new Array(o),n=0;n<o;++n,t+=J.Cartesian3.packedLength)a[n]=J.Cartesian3.unpack(e,t);var i=0<(o=e[t++])?new Array(o):void 0;for(n=0;n<o;++n,t+=X.Color.packedLength)i[n]=X.Color.unpack(e,t);var l=J.Ellipsoid.unpack(e,t,f),s=(t+=J.Ellipsoid.packedLength,y.VertexFormat.unpack(e,t,h)),p=(t+=y.VertexFormat.packedLength,e[t++]),d=1===e[t++],c=e[t++],u=e[t];return z.defined(r)?(r._positions=a,r._colors=i,r._ellipsoid=J.Ellipsoid.clone(l,r._ellipsoid),r._vertexFormat=y.VertexFormat.clone(s,r._vertexFormat),r._width=p,r._colorsPerVertex=d,r._arcType=c,r._granularity=u,r):(C.positions=a,C.colors=i,C.width=p,C.colorsPerVertex=d,C.arcType=c,C.granularity=u,new m(C))},new J.Cartesian3),ne=new J.Cartesian3,ie=new J.Cartesian3,le=new J.Cartesian3;return m.createGeometry=function(e){var r,o,t=e._width,a=e._vertexFormat,n=e._colors,i=e._colorsPerVertex,l=e._arcType,s=e._granularity,p=e._ellipsoid,d=[],c=K.arrayRemoveDuplicates(e._positions,J.Cartesian3.equalsEpsilon,!1,d),u=(z.defined(n)&&0<d.length&&(o=d[r=0],n=n.filter(function(e,t){return(i?t!==o&&(0!==t||1!==o):t+1!==o)||(o=d[++r],!1)})),c.length);if(!(u<2||t<=0)){if(l===j.ArcType.GEODESIC||l===j.ArcType.RHUMB){var y,m=l===j.ArcType.GEODESIC?(y=Z.CesiumMath.chordLength(s,p.maximumRadius),re.PolylinePipeline.numberOfPoints):(y=s,re.PolylinePipeline.numberOfPointsRhumbLine),e=re.PolylinePipeline.extractHeights(c,p);if(z.defined(n)){for(var f=1,h=0;h<u-1;++h)f+=m(c[h],c[h+1],y);var C=new Array(f),v=0;for(h=0;h<u-1;++h){var I=c[h],S=c[h+1],g=n[h],_=m(I,S,y);if(i&&h<f)for(var A=function(e,t,r){var o=oe,a=(o.length=r,e.red),n=e.green,i=e.blue,l=e.alpha,s=t.red,p=t.green,d=t.blue,c=t.alpha;if(X.Color.equals(e,t))for(h=0;h<r;h++)o[h]=X.Color.clone(e);else for(var u=(s-a)/r,y=(p-n)/r,m=(d-i)/r,f=(c-l)/r,h=0;h<r;h++)o[h]=new X.Color(a+h*u,n+h*y,i+h*m,l+h*f);return o}(g,n[h+1],_),B=A.length,E=0;E<B;++E)C[v++]=A[E];else for(E=0;E<_;++E)C[v++]=X.Color.clone(g)}C[v]=X.Color.clone(n[n.length-1]),n=C,oe.length=0}c=l===j.ArcType.GEODESIC?re.PolylinePipeline.generateCartesianArc({positions:c,minDistance:y,ellipsoid:p,height:e}):re.PolylinePipeline.generateCartesianRhumbArc({positions:c,granularity:y,ellipsoid:p,height:e})}var b,P,U,s=4*(u=c.length)-4,N=new Float64Array(3*s),M=new Float64Array(3*s),H=new Float64Array(3*s),w=new Float32Array(2*s),x=a.st?new Float32Array(2*s):void 0,T=z.defined(n)?new Uint8Array(4*s):void 0,D=0,k=0,W=0,V=0;for(E=0;E<u;++E){0===E?(J.Cartesian3.subtract(c[0],c[1],b=ae),J.Cartesian3.add(c[0],b,b)):b=c[E-1],J.Cartesian3.clone(b,ie),J.Cartesian3.clone(c[E],ne),E===u-1?(J.Cartesian3.subtract(c[u-1],c[u-2],b=ae),J.Cartesian3.add(c[u-1],b,b)):b=c[E+1],J.Cartesian3.clone(b,le),z.defined(T)&&(P=0===E||i?n[E]:n[E-1],E!==u-1)&&(U=n[E]);for(var Y=E===u-1?2:4,L=0===E?2:0;L<Y;++L){J.Cartesian3.pack(ne,N,D),J.Cartesian3.pack(ie,M,D),J.Cartesian3.pack(le,H,D),D+=3;var F=L-2<0?-1:1;w[k++]=L%2*2-1,w[k++]=F*t,a.st&&(x[W++]=E/(u-1),x[W++]=Math.max(w[k-2],0)),z.defined(T)&&(T[V++]=X.Color.floatToByte((F=L<2?P:U).red),T[V++]=X.Color.floatToByte(F.green),T[V++]=X.Color.floatToByte(F.blue),T[V++]=X.Color.floatToByte(F.alpha))}}var l=new ee.GeometryAttributes,G=(l.position=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:N}),l.prevPosition=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:M}),l.nextPosition=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:H}),l.expandAndWidth=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:w}),a.st&&(l.st=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:x})),z.defined(T)&&(l.color=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:T,normalize:!0})),te.IndexDatatype.createTypedArray(s,6*u-6)),O=0,R=0,q=u-1;for(E=0;E<q;++E)G[R++]=O,G[R++]=O+2,G[R++]=O+1,G[R++]=O+1,G[R++]=O+2,G[R++]=O+3,O+=4;return new $.Geometry({attributes:l,indices:G,primitiveType:$.PrimitiveType.TRIANGLES,boundingSphere:Q.BoundingSphere.fromPoints(c),geometryType:$.GeometryType.POLYLINES})}},function(e,t){return(e=z.defined(t)?m.unpack(e,t):e)._ellipsoid=J.Ellipsoid.clone(e._ellipsoid),m.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./Transforms-c1a1d063","./Color-7daaba04","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolylinePipeline-83139cb3","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-60f10d18","./Plane-43337cee"],function(z,J,j,K,Q,X,Z,e,$,ee,te,re,y,t,r,o,a,n,i){var oe=[];function m(e){var t=(e=z.defaultValue(e,z.defaultValue.EMPTY_OBJECT)).positions,r=e.colors,o=z.defaultValue(e.width,1),a=z.defaultValue(e.colorsPerVertex,!1),o=(this._positions=t,this._colors=r,this._width=o,this._colorsPerVertex=a,this._vertexFormat=y.VertexFormat.clone(z.defaultValue(e.vertexFormat,y.VertexFormat.DEFAULT)),this._arcType=z.defaultValue(e.arcType,j.ArcType.GEODESIC),this._granularity=z.defaultValue(e.granularity,Z.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=J.Ellipsoid.clone(z.defaultValue(e.ellipsoid,J.Ellipsoid.WGS84)),this._workerName="createPolylineGeometry",1+t.length*J.Cartesian3.packedLength);o+=z.defined(r)?1+r.length*X.Color.packedLength:1,this.packedLength=o+J.Ellipsoid.packedLength+y.VertexFormat.packedLength+4}m.pack=function(e,t,r){r=z.defaultValue(r,0);var o,a=e._positions,n=a.length;for(t[r++]=n,o=0;o<n;++o,r+=J.Cartesian3.packedLength)J.Cartesian3.pack(a[o],t,r);var i=e._colors,n=z.defined(i)?i.length:0;for(t[r++]=n,o=0;o<n;++o,r+=X.Color.packedLength)X.Color.pack(i[o],t,r);return J.Ellipsoid.pack(e._ellipsoid,t,r),r+=J.Ellipsoid.packedLength,y.VertexFormat.pack(e._vertexFormat,t,r),r+=y.VertexFormat.packedLength,t[r++]=e._width,t[r++]=e._colorsPerVertex?1:0,t[r++]=e._arcType,t[r]=e._granularity,t};var f=J.Ellipsoid.clone(J.Ellipsoid.UNIT_SPHERE),h=new y.VertexFormat,C={positions:void 0,colors:void 0,ellipsoid:f,vertexFormat:h,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0},ae=(m.unpack=function(e,t,r){t=z.defaultValue(t,0);for(var o=e[t++],a=new Array(o),n=0;n<o;++n,t+=J.Cartesian3.packedLength)a[n]=J.Cartesian3.unpack(e,t);var i=0<(o=e[t++])?new Array(o):void 0;for(n=0;n<o;++n,t+=X.Color.packedLength)i[n]=X.Color.unpack(e,t);var l=J.Ellipsoid.unpack(e,t,f),s=(t+=J.Ellipsoid.packedLength,y.VertexFormat.unpack(e,t,h)),p=(t+=y.VertexFormat.packedLength,e[t++]),d=1===e[t++],c=e[t++],u=e[t];return z.defined(r)?(r._positions=a,r._colors=i,r._ellipsoid=J.Ellipsoid.clone(l,r._ellipsoid),r._vertexFormat=y.VertexFormat.clone(s,r._vertexFormat),r._width=p,r._colorsPerVertex=d,r._arcType=c,r._granularity=u,r):(C.positions=a,C.colors=i,C.width=p,C.colorsPerVertex=d,C.arcType=c,C.granularity=u,new m(C))},new J.Cartesian3),ne=new J.Cartesian3,ie=new J.Cartesian3,le=new J.Cartesian3;return m.createGeometry=function(e){var r,o,t=e._width,a=e._vertexFormat,n=e._colors,i=e._colorsPerVertex,l=e._arcType,s=e._granularity,p=e._ellipsoid,d=[],c=K.arrayRemoveDuplicates(e._positions,J.Cartesian3.equalsEpsilon,!1,d),u=(z.defined(n)&&0<d.length&&(o=d[r=0],n=n.filter(function(e,t){return(i?t!==o&&(0!==t||1!==o):t+1!==o)||(o=d[++r],!1)})),c.length);if(!(u<2||t<=0)){if(l===j.ArcType.GEODESIC||l===j.ArcType.RHUMB){var y,m=l===j.ArcType.GEODESIC?(y=Z.CesiumMath.chordLength(s,p.maximumRadius),re.PolylinePipeline.numberOfPoints):(y=s,re.PolylinePipeline.numberOfPointsRhumbLine),e=re.PolylinePipeline.extractHeights(c,p);if(z.defined(n)){for(var f=1,h=0;h<u-1;++h)f+=m(c[h],c[h+1],y);var C=new Array(f),v=0;for(h=0;h<u-1;++h){var I=c[h],S=c[h+1],g=n[h],_=m(I,S,y);if(i&&h<f)for(var A=function(e,t,r){var o=oe,a=(o.length=r,e.red),n=e.green,i=e.blue,l=e.alpha,s=t.red,p=t.green,d=t.blue,c=t.alpha;if(X.Color.equals(e,t))for(h=0;h<r;h++)o[h]=X.Color.clone(e);else for(var u=(s-a)/r,y=(p-n)/r,m=(d-i)/r,f=(c-l)/r,h=0;h<r;h++)o[h]=new X.Color(a+h*u,n+h*y,i+h*m,l+h*f);return o}(g,n[h+1],_),B=A.length,E=0;E<B;++E)C[v++]=A[E];else for(E=0;E<_;++E)C[v++]=X.Color.clone(g)}C[v]=X.Color.clone(n[n.length-1]),n=C,oe.length=0}c=l===j.ArcType.GEODESIC?re.PolylinePipeline.generateCartesianArc({positions:c,minDistance:y,ellipsoid:p,height:e}):re.PolylinePipeline.generateCartesianRhumbArc({positions:c,granularity:y,ellipsoid:p,height:e})}var b,P,U,s=4*(u=c.length)-4,N=new Float64Array(3*s),M=new Float64Array(3*s),H=new Float64Array(3*s),w=new Float32Array(2*s),x=a.st?new Float32Array(2*s):void 0,T=z.defined(n)?new Uint8Array(4*s):void 0,D=0,k=0,W=0,V=0;for(E=0;E<u;++E){0===E?(J.Cartesian3.subtract(c[0],c[1],b=ae),J.Cartesian3.add(c[0],b,b)):b=c[E-1],J.Cartesian3.clone(b,ie),J.Cartesian3.clone(c[E],ne),E===u-1?(J.Cartesian3.subtract(c[u-1],c[u-2],b=ae),J.Cartesian3.add(c[u-1],b,b)):b=c[E+1],J.Cartesian3.clone(b,le),z.defined(T)&&(P=0===E||i?n[E]:n[E-1],E!==u-1)&&(U=n[E]);for(var Y=E===u-1?2:4,L=0===E?2:0;L<Y;++L){J.Cartesian3.pack(ne,N,D),J.Cartesian3.pack(ie,M,D),J.Cartesian3.pack(le,H,D),D+=3;var F=L-2<0?-1:1;w[k++]=L%2*2-1,w[k++]=F*t,a.st&&(x[W++]=E/(u-1),x[W++]=Math.max(w[k-2],0)),z.defined(T)&&(T[V++]=X.Color.floatToByte((F=L<2?P:U).red),T[V++]=X.Color.floatToByte(F.green),T[V++]=X.Color.floatToByte(F.blue),T[V++]=X.Color.floatToByte(F.alpha))}}var l=new ee.GeometryAttributes,G=(l.position=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:N}),l.prevPosition=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:M}),l.nextPosition=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:H}),l.expandAndWidth=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:w}),a.st&&(l.st=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:x})),z.defined(T)&&(l.color=new $.GeometryAttribute({componentDatatype:Z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:T,normalize:!0})),te.IndexDatatype.createTypedArray(s,6*u-6)),O=0,R=0,q=u-1;for(E=0;E<q;++E)G[R++]=O,G[R++]=O+2,G[R++]=O+1,G[R++]=O+1,G[R++]=O+2,G[R++]=O+3,O+=4;return new $.Geometry({attributes:l,indices:G,primitiveType:$.PrimitiveType.TRIANGLES,boundingSphere:Q.BoundingSphere.fromPoints(c),geometryType:$.GeometryType.POLYLINES})}},function(e,t){return(e=z.defined(t)?m.unpack(e,t):e)._ellipsoid=J.Ellipsoid.clone(e._ellipsoid),m.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-81d4313c","./Transforms-ce414632","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-22fe2b3f","./RuntimeError-24b14c10","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./PolygonPipeline-6d75eac7","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./PolylinePipeline-7389d81d","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5"],function(c,T,G,D,w,R,B,e,S,I,O,N,W,u,t,n,i,a,o,r,l,s,p,d,m){function y(e){var t=(e=c.defaultValue(e,c.defaultValue.EMPTY_OBJECT)).polylinePositions,n=e.shapePositions,e=(this._positions=t,this._shape=n,this._ellipsoid=T.Ellipsoid.clone(c.defaultValue(e.ellipsoid,T.Ellipsoid.WGS84)),this._cornerType=c.defaultValue(e.cornerType,B.CornerType.ROUNDED),this._vertexFormat=u.VertexFormat.clone(c.defaultValue(e.vertexFormat,u.VertexFormat.DEFAULT)),this._granularity=c.defaultValue(e.granularity,R.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry",1+t.length*T.Cartesian3.packedLength);e+=1+n.length*T.Cartesian2.packedLength,this.packedLength=e+T.Ellipsoid.packedLength+u.VertexFormat.packedLength+2}y.pack=function(e,t,n){n=c.defaultValue(n,0);var i,a=e._positions,o=a.length;for(t[n++]=o,i=0;i<o;++i,n+=T.Cartesian3.packedLength)T.Cartesian3.pack(a[i],t,n);var r=e._shape,o=r.length;for(t[n++]=o,i=0;i<o;++i,n+=T.Cartesian2.packedLength)T.Cartesian2.pack(r[i],t,n);return T.Ellipsoid.pack(e._ellipsoid,t,n),n+=T.Ellipsoid.packedLength,u.VertexFormat.pack(e._vertexFormat,t,n),n+=u.VertexFormat.packedLength,t[n++]=e._cornerType,t[n]=e._granularity,t};var g=T.Ellipsoid.clone(T.Ellipsoid.UNIT_SPHERE),h=new u.VertexFormat,f={polylinePositions:void 0,shapePositions:void 0,ellipsoid:g,vertexFormat:h,cornerType:void 0,granularity:void 0},U=(y.unpack=function(e,t,n){t=c.defaultValue(t,0);for(var i=e[t++],a=new Array(i),o=0;o<i;++o,t+=T.Cartesian3.packedLength)a[o]=T.Cartesian3.unpack(e,t);var i=e[t++],r=new Array(i);for(o=0;o<i;++o,t+=T.Cartesian2.packedLength)r[o]=T.Cartesian2.unpack(e,t);var l=T.Ellipsoid.unpack(e,t,g),s=(t+=T.Ellipsoid.packedLength,u.VertexFormat.unpack(e,t,h)),p=(t+=u.VertexFormat.packedLength,e[t++]),d=e[t];return c.defined(n)?(n._positions=a,n._shape=r,n._ellipsoid=T.Ellipsoid.clone(l,n._ellipsoid),n._vertexFormat=u.VertexFormat.clone(s,n._vertexFormat),n._cornerType=p,n._granularity=d,n):(f.polylinePositions=a,f.shapePositions=r,f.cornerType=p,f.granularity=d,new y(f))},new D.BoundingRectangle);return y.createGeometry=function(e){var t=e._positions,t=G.arrayRemoveDuplicates(t,T.Cartesian3.equalsEpsilon),n=e._shape,n=B.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(n);if(!(t.length<2||n.length<3)){W.PolygonPipeline.computeWindingOrder2D(n)===W.WindingOrder.CLOCKWISE&&n.reverse();var i,a,o,r,l,s=D.BoundingRectangle.fromPoints(n,U),t=B.PolylineVolumeGeometryLibrary.computePositions(t,n,s,e,!0),p=n,n=s,s=e._vertexFormat,e=new I.GeometryAttributes,d=(s.position&&(e.position=new S.GeometryAttribute({componentDatatype:R.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t})),p.length),c=t.length/3,u=(c-2*d)/(2*d),m=W.PolygonPipeline.triangulate(p),y=(u-1)*d*6+2*m.length,g=N.IndexDatatype.createTypedArray(c,y),h=2*d,f=0;for(V=0;V<u-1;V++){for(i=0;i<d-1;i++)l=(a=2*i+V*d*2)+h,r=(o=a+1)+h,g[f++]=o,g[f++]=a,g[f++]=r,g[f++]=r,g[f++]=a,g[f++]=l;r=(o=(a=2*d-2+V*d*2)+1)+h,l=a+h,g[f++]=o,g[f++]=a,g[f++]=r,g[f++]=r,g[f++]=a,g[f++]=l}if(s.st||s.tangent||s.bitangent){for(var b,v,P=new Float32Array(2*c),E=1/(u-1),_=1/n.height,k=n.height/2,L=0,V=0;V<u;V++){for(v=_*(p[0].y+k),P[L++]=b=V*E,P[L++]=v,i=1;i<d;i++)v=_*(p[i].y+k),P[L++]=b,P[L++]=v,P[L++]=b,P[L++]=v;v=_*(p[0].y+k),P[L++]=b,P[L++]=v}for(i=0;i<d;i++)v=_*(p[i].y+k),P[L++]=b=0,P[L++]=v;for(i=0;i<d;i++)v=_*(p[i].y+k),P[L++]=b=(u-1)*E,P[L++]=v;e.st=new S.GeometryAttribute({componentDatatype:R.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(P)})}var x=c-2*d;for(V=0;V<m.length;V+=3){var C=m[V]+x,F=m[V+1]+x,A=m[V+2]+x;g[f++]=C,g[f++]=F,g[f++]=A,g[f++]=A+d,g[f++]=F+d,g[f++]=C+d}if(y=new S.Geometry({attributes:e,indices:g,boundingSphere:w.BoundingSphere.fromVertices(t),primitiveType:S.PrimitiveType.TRIANGLES}),s.normal&&(y=O.GeometryPipeline.computeNormal(y)),s.tangent||s.bitangent){try{y=O.GeometryPipeline.computeTangentAndBitangent(y)}catch(e){B.oneTimeWarning("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}s.tangent||(y.attributes.tangent=void 0),s.bitangent||(y.attributes.bitangent=void 0),s.st||(y.attributes.st=void 0)}return y}},function(e,t){return(e=c.defined(t)?y.unpack(e,t):e)._ellipsoid=T.Ellipsoid.clone(e._ellipsoid),y.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-5a740234","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-897b738e","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./PolygonPipeline-832a906c","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-4a503a7a","./AxisAlignedBoundingBox-9c01642b","./IntersectionTests-60f10d18","./Plane-43337cee","./PolylinePipeline-83139cb3","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5"],function(c,T,G,D,w,R,B,e,S,I,O,N,W,u,t,n,a,i,o,r,l,s,p,d,m){function y(e){var t=(e=c.defaultValue(e,c.defaultValue.EMPTY_OBJECT)).polylinePositions,n=e.shapePositions,e=(this._positions=t,this._shape=n,this._ellipsoid=T.Ellipsoid.clone(c.defaultValue(e.ellipsoid,T.Ellipsoid.WGS84)),this._cornerType=c.defaultValue(e.cornerType,B.CornerType.ROUNDED),this._vertexFormat=u.VertexFormat.clone(c.defaultValue(e.vertexFormat,u.VertexFormat.DEFAULT)),this._granularity=c.defaultValue(e.granularity,R.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry",1+t.length*T.Cartesian3.packedLength);e+=1+n.length*T.Cartesian2.packedLength,this.packedLength=e+T.Ellipsoid.packedLength+u.VertexFormat.packedLength+2}y.pack=function(e,t,n){n=c.defaultValue(n,0);var a,i=e._positions,o=i.length;for(t[n++]=o,a=0;a<o;++a,n+=T.Cartesian3.packedLength)T.Cartesian3.pack(i[a],t,n);var r=e._shape,o=r.length;for(t[n++]=o,a=0;a<o;++a,n+=T.Cartesian2.packedLength)T.Cartesian2.pack(r[a],t,n);return T.Ellipsoid.pack(e._ellipsoid,t,n),n+=T.Ellipsoid.packedLength,u.VertexFormat.pack(e._vertexFormat,t,n),n+=u.VertexFormat.packedLength,t[n++]=e._cornerType,t[n]=e._granularity,t};var g=T.Ellipsoid.clone(T.Ellipsoid.UNIT_SPHERE),h=new u.VertexFormat,f={polylinePositions:void 0,shapePositions:void 0,ellipsoid:g,vertexFormat:h,cornerType:void 0,granularity:void 0},U=(y.unpack=function(e,t,n){t=c.defaultValue(t,0);for(var a=e[t++],i=new Array(a),o=0;o<a;++o,t+=T.Cartesian3.packedLength)i[o]=T.Cartesian3.unpack(e,t);var a=e[t++],r=new Array(a);for(o=0;o<a;++o,t+=T.Cartesian2.packedLength)r[o]=T.Cartesian2.unpack(e,t);var l=T.Ellipsoid.unpack(e,t,g),s=(t+=T.Ellipsoid.packedLength,u.VertexFormat.unpack(e,t,h)),p=(t+=u.VertexFormat.packedLength,e[t++]),d=e[t];return c.defined(n)?(n._positions=i,n._shape=r,n._ellipsoid=T.Ellipsoid.clone(l,n._ellipsoid),n._vertexFormat=u.VertexFormat.clone(s,n._vertexFormat),n._cornerType=p,n._granularity=d,n):(f.polylinePositions=i,f.shapePositions=r,f.cornerType=p,f.granularity=d,new y(f))},new D.BoundingRectangle);return y.createGeometry=function(e){var t=e._positions,t=G.arrayRemoveDuplicates(t,T.Cartesian3.equalsEpsilon),n=e._shape,n=B.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(n);if(!(t.length<2||n.length<3)){W.PolygonPipeline.computeWindingOrder2D(n)===W.WindingOrder.CLOCKWISE&&n.reverse();var a,i,o,r,l,s=D.BoundingRectangle.fromPoints(n,U),t=B.PolylineVolumeGeometryLibrary.computePositions(t,n,s,e,!0),p=n,n=s,s=e._vertexFormat,e=new I.GeometryAttributes,d=(s.position&&(e.position=new S.GeometryAttribute({componentDatatype:R.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t})),p.length),c=t.length/3,u=(c-2*d)/(2*d),m=W.PolygonPipeline.triangulate(p),y=(u-1)*d*6+2*m.length,g=N.IndexDatatype.createTypedArray(c,y),h=2*d,f=0;for(V=0;V<u-1;V++){for(a=0;a<d-1;a++)l=(i=2*a+V*d*2)+h,r=(o=i+1)+h,g[f++]=o,g[f++]=i,g[f++]=r,g[f++]=r,g[f++]=i,g[f++]=l;r=(o=(i=2*d-2+V*d*2)+1)+h,l=i+h,g[f++]=o,g[f++]=i,g[f++]=r,g[f++]=r,g[f++]=i,g[f++]=l}if(s.st||s.tangent||s.bitangent){for(var b,v,P=new Float32Array(2*c),E=1/(u-1),_=1/n.height,k=n.height/2,L=0,V=0;V<u;V++){for(v=_*(p[0].y+k),P[L++]=b=V*E,P[L++]=v,a=1;a<d;a++)v=_*(p[a].y+k),P[L++]=b,P[L++]=v,P[L++]=b,P[L++]=v;v=_*(p[0].y+k),P[L++]=b,P[L++]=v}for(a=0;a<d;a++)v=_*(p[a].y+k),P[L++]=b=0,P[L++]=v;for(a=0;a<d;a++)v=_*(p[a].y+k),P[L++]=b=(u-1)*E,P[L++]=v;e.st=new S.GeometryAttribute({componentDatatype:R.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(P)})}var x=c-2*d;for(V=0;V<m.length;V+=3){var C=m[V]+x,F=m[V+1]+x,A=m[V+2]+x;g[f++]=C,g[f++]=F,g[f++]=A,g[f++]=A+d,g[f++]=F+d,g[f++]=C+d}if(y=new S.Geometry({attributes:e,indices:g,boundingSphere:w.BoundingSphere.fromVertices(t),primitiveType:S.PrimitiveType.TRIANGLES}),s.normal&&(y=O.GeometryPipeline.computeNormal(y)),s.tangent||s.bitangent){try{y=O.GeometryPipeline.computeTangentAndBitangent(y)}catch(e){B.oneTimeWarning("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}s.tangent||(y.attributes.tangent=void 0),s.bitangent||(y.attributes.bitangent=void 0),s.st||(y.attributes.st=void 0)}return y}},function(e,t){return(e=c.defined(t)?y.unpack(e,t):e)._ellipsoid=T.Ellipsoid.clone(e._ellipsoid),y.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-81d4313c","./Transforms-ce414632","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-22fe2b3f","./RuntimeError-24b14c10","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-6d75eac7","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./PolylinePipeline-7389d81d","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd"],function(d,y,g,h,f,m,E,e,P,_,v,b,i,n,t,a,o,r,l,s,p){function c(e){var i=(e=d.defaultValue(e,d.defaultValue.EMPTY_OBJECT)).polylinePositions,n=e.shapePositions,e=(this._positions=i,this._shape=n,this._ellipsoid=y.Ellipsoid.clone(d.defaultValue(e.ellipsoid,y.Ellipsoid.WGS84)),this._cornerType=d.defaultValue(e.cornerType,E.CornerType.ROUNDED),this._granularity=d.defaultValue(e.granularity,m.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry",1+i.length*y.Cartesian3.packedLength);e+=1+n.length*y.Cartesian2.packedLength,this.packedLength=e+y.Ellipsoid.packedLength+2}c.pack=function(e,i,n){n=d.defaultValue(n,0);var t,a=e._positions,o=a.length;for(i[n++]=o,t=0;t<o;++t,n+=y.Cartesian3.packedLength)y.Cartesian3.pack(a[t],i,n);var r=e._shape,o=r.length;for(i[n++]=o,t=0;t<o;++t,n+=y.Cartesian2.packedLength)y.Cartesian2.pack(r[t],i,n);return y.Ellipsoid.pack(e._ellipsoid,i,n),n+=y.Ellipsoid.packedLength,i[n++]=e._cornerType,i[n]=e._granularity,i};var u=y.Ellipsoid.clone(y.Ellipsoid.UNIT_SPHERE),k={polylinePositions:void 0,shapePositions:void 0,ellipsoid:u,height:void 0,cornerType:void 0,granularity:void 0},C=(c.unpack=function(e,i,n){i=d.defaultValue(i,0);for(var t=e[i++],a=new Array(t),o=0;o<t;++o,i+=y.Cartesian3.packedLength)a[o]=y.Cartesian3.unpack(e,i);var t=e[i++],r=new Array(t);for(o=0;o<t;++o,i+=y.Cartesian2.packedLength)r[o]=y.Cartesian2.unpack(e,i);var l=y.Ellipsoid.unpack(e,i,u),s=(i+=y.Ellipsoid.packedLength,e[i++]),p=e[i];return d.defined(n)?(n._positions=a,n._shape=r,n._ellipsoid=y.Ellipsoid.clone(l,n._ellipsoid),n._cornerType=s,n._granularity=p,n):(k.polylinePositions=a,k.shapePositions=r,k.cornerType=s,k.granularity=p,new c(k))},new h.BoundingRectangle);return c.createGeometry=function(e){var i=e._positions,i=g.arrayRemoveDuplicates(i,y.Cartesian3.equalsEpsilon),n=e._shape,n=E.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(n);if(!(i.length<2||n.length<3)){b.PolygonPipeline.computeWindingOrder2D(n)===b.WindingOrder.CLOCKWISE&&n.reverse();var t=h.BoundingRectangle.fromPoints(n,C),i=E.PolylineVolumeGeometryLibrary.computePositions(i,n,t,e,!1),t=n,e=new _.GeometryAttributes,a=(e.position=new P.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:i}),t.length),t=e.position.values.length/3,o=i.length/3/a,r=v.IndexDatatype.createTypedArray(t,2*a*(1+o)),l=0,s=0,p=s*a;for(u=0;u<a-1;u++)r[l++]=u+p,r[l++]=u+p+1;for(r[l++]=a-1+p,r[l++]=p,p=(s=o-1)*a,u=0;u<a-1;u++)r[l++]=u+p,r[l++]=u+p+1;for(r[l++]=a-1+p,r[l++]=p,s=0;s<o-1;s++)for(var d=a*s,c=d+a,u=0;u<a;u++)r[l++]=u+d,r[l++]=u+c;return new P.Geometry({attributes:e,indices:v.IndexDatatype.createTypedArray(t,r),boundingSphere:f.BoundingSphere.fromVertices(i),primitiveType:P.PrimitiveType.LINES})}},function(e,i){return(e=d.defined(i)?c.unpack(e,i):e)._ellipsoid=y.Ellipsoid.clone(e._ellipsoid),c.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-5a740234","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-897b738e","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-832a906c","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-4a503a7a","./AxisAlignedBoundingBox-9c01642b","./IntersectionTests-60f10d18","./Plane-43337cee","./PolylinePipeline-83139cb3","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd"],function(d,y,g,h,m,f,E,e,P,_,b,v,i,n,t,a,o,r,l,s,p){function c(e){var i=(e=d.defaultValue(e,d.defaultValue.EMPTY_OBJECT)).polylinePositions,n=e.shapePositions,e=(this._positions=i,this._shape=n,this._ellipsoid=y.Ellipsoid.clone(d.defaultValue(e.ellipsoid,y.Ellipsoid.WGS84)),this._cornerType=d.defaultValue(e.cornerType,E.CornerType.ROUNDED),this._granularity=d.defaultValue(e.granularity,f.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry",1+i.length*y.Cartesian3.packedLength);e+=1+n.length*y.Cartesian2.packedLength,this.packedLength=e+y.Ellipsoid.packedLength+2}c.pack=function(e,i,n){n=d.defaultValue(n,0);var t,a=e._positions,o=a.length;for(i[n++]=o,t=0;t<o;++t,n+=y.Cartesian3.packedLength)y.Cartesian3.pack(a[t],i,n);var r=e._shape,o=r.length;for(i[n++]=o,t=0;t<o;++t,n+=y.Cartesian2.packedLength)y.Cartesian2.pack(r[t],i,n);return y.Ellipsoid.pack(e._ellipsoid,i,n),n+=y.Ellipsoid.packedLength,i[n++]=e._cornerType,i[n]=e._granularity,i};var u=y.Ellipsoid.clone(y.Ellipsoid.UNIT_SPHERE),k={polylinePositions:void 0,shapePositions:void 0,ellipsoid:u,height:void 0,cornerType:void 0,granularity:void 0},C=(c.unpack=function(e,i,n){i=d.defaultValue(i,0);for(var t=e[i++],a=new Array(t),o=0;o<t;++o,i+=y.Cartesian3.packedLength)a[o]=y.Cartesian3.unpack(e,i);var t=e[i++],r=new Array(t);for(o=0;o<t;++o,i+=y.Cartesian2.packedLength)r[o]=y.Cartesian2.unpack(e,i);var l=y.Ellipsoid.unpack(e,i,u),s=(i+=y.Ellipsoid.packedLength,e[i++]),p=e[i];return d.defined(n)?(n._positions=a,n._shape=r,n._ellipsoid=y.Ellipsoid.clone(l,n._ellipsoid),n._cornerType=s,n._granularity=p,n):(k.polylinePositions=a,k.shapePositions=r,k.cornerType=s,k.granularity=p,new c(k))},new h.BoundingRectangle);return c.createGeometry=function(e){var i=e._positions,i=g.arrayRemoveDuplicates(i,y.Cartesian3.equalsEpsilon),n=e._shape,n=E.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(n);if(!(i.length<2||n.length<3)){v.PolygonPipeline.computeWindingOrder2D(n)===v.WindingOrder.CLOCKWISE&&n.reverse();var t=h.BoundingRectangle.fromPoints(n,C),i=E.PolylineVolumeGeometryLibrary.computePositions(i,n,t,e,!1),t=n,e=new _.GeometryAttributes,a=(e.position=new P.GeometryAttribute({componentDatatype:f.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:i}),t.length),t=e.position.values.length/3,o=i.length/3/a,r=b.IndexDatatype.createTypedArray(t,2*a*(1+o)),l=0,s=0,p=s*a;for(u=0;u<a-1;u++)r[l++]=u+p,r[l++]=u+p+1;for(r[l++]=a-1+p,r[l++]=p,p=(s=o-1)*a,u=0;u<a-1;u++)r[l++]=u+p,r[l++]=u+p+1;for(r[l++]=a-1+p,r[l++]=p,s=0;s<o-1;s++)for(var d=a*s,c=d+a,u=0;u<a;u++)r[l++]=u+d,r[l++]=u+c;return new P.Geometry({attributes:e,indices:b.IndexDatatype.createTypedArray(t,r),boundingSphere:m.BoundingSphere.fromVertices(i),primitiveType:P.PrimitiveType.LINES})}},function(e,i){return(e=d.defined(i)?c.unpack(e,i):e)._ellipsoid=y.Ellipsoid.clone(e._ellipsoid),c.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./PolygonPipeline-6d75eac7","./RectangleGeometryLibrary-3b4bc438","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IntersectionTests-f71f97b3","./Plane-43337cee","./EllipsoidRhumbLine-535d21cd"],function(X,Q,W,c,t,J,j,r,Z,K,$,tt,S,et,e,a,n,o,i,s,l){var at=new Q.Cartesian3,rt=new Q.Cartesian3,nt=new Q.Cartesian3,ot=new Q.Cartesian3,m=new Q.Rectangle,I=new Q.Cartesian2,p=new c.BoundingSphere,d=new c.BoundingSphere;function it(t,e){var a=new j.Geometry({attributes:new r.GeometryAttributes,primitiveType:j.PrimitiveType.TRIANGLES});return a.attributes.position=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(a.attributes.normal=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(a.attributes.tangent=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(a.attributes.bitangent=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.bitangents})),a}var st=new Q.Cartesian3,lt=new Q.Cartesian3;function ut(t,e){for(var a=t._vertexFormat,r=t._ellipsoid,t=e.height,n=e.width,o=e.northCap,i=e.southCap,s=0,l=t,u=t,c=0,m=(o&&(--u,c+=s=1),i&&(--l,--u,c+=1),c+=n*u,a.position?new Float64Array(3*c):void 0),p=a.st?new Float32Array(2*c):void 0,d=0,g=0,y=at,f=I,h=Number.MAX_VALUE,b=Number.MAX_VALUE,v=-Number.MAX_VALUE,_=-Number.MAX_VALUE,A=s;A<l;++A)for(var x=0;x<n;++x)S.RectangleGeometryLibrary.computePosition(e,r,a.st,A,x,y,f),m[d++]=y.x,m[d++]=y.y,m[d++]=y.z,a.st&&(p[g++]=f.x,p[g++]=f.y,h=Math.min(h,f.x),b=Math.min(b,f.y),v=Math.max(v,f.x),_=Math.max(_,f.y));if(o&&(S.RectangleGeometryLibrary.computePosition(e,r,a.st,0,0,y,f),m[d++]=y.x,m[d++]=y.y,m[d++]=y.z,a.st)&&(p[g++]=f.x,p[g++]=f.y,h=f.x,b=f.y,v=f.x,_=f.y),i&&(S.RectangleGeometryLibrary.computePosition(e,r,a.st,t-1,0,y,f),m[d++]=y.x,m[d++]=y.y,m[d]=y.z,a.st)&&(p[g++]=f.x,p[g]=f.y,h=Math.min(h,f.x),b=Math.min(b,f.y),v=Math.max(v,f.x),_=Math.max(_,f.y)),a.st&&(h<0||b<0||1<v||1<_))for(var w=0;w<p.length;w+=2)p[w]=(p[w]-h)/(v-h),p[w+1]=(p[w+1]-b)/(_-b);for(var s=function(t,e,a,r){var n=t.length,o=e.normal?new Float32Array(n):void 0,i=e.tangent?new Float32Array(n):void 0,s=e.bitangent?new Float32Array(n):void 0,l=0,u=ot,c=nt,m=rt;if(e.normal||e.tangent||e.bitangent)for(var p=0;p<n;p+=3){var d=Q.Cartesian3.fromArray(t,p,at),g=l+1,y=l+2,m=a.geodeticSurfaceNormal(d,m);(e.tangent||e.bitangent)&&(Q.Cartesian3.cross(Q.Cartesian3.UNIT_Z,m,c),Q.Matrix3.multiplyByVector(r,c,c),Q.Cartesian3.normalize(c,c),e.bitangent)&&Q.Cartesian3.normalize(Q.Cartesian3.cross(m,c,u),u),e.normal&&(o[l]=m.x,o[g]=m.y,o[y]=m.z),e.tangent&&(i[l]=c.x,i[g]=c.y,i[y]=c.z),e.bitangent&&(s[l]=u.x,s[g]=u.y,s[y]=u.z),l+=3}return it(e,{positions:t,normals:o,tangents:i,bitangents:s})}(m,a,r,e.tangentRotationMatrix),t=6*(n-1)*(u-1),C=(o&&(t+=3*(n-1)),i&&(t+=3*(n-1)),$.IndexDatatype.createTypedArray(c,t)),R=0,E=0,F=0;F<u-1;++F){for(var G=0;G<n-1;++G){var P=R,V=P+n,L=V+1,D=P+1;C[E++]=P,C[E++]=V,C[E++]=D,C[E++]=D,C[E++]=V,C[E++]=L,++R}++R}if(o||i){var M,T,O=c-1,N=c-1;if(o&&i&&(O=c-2),R=0,o)for(F=0;F<n-1;F++)T=(M=R)+1,C[E++]=O,C[E++]=M,C[E++]=T,++R;if(i)for(R=(u-1)*n,F=0;F<n-1;F++)T=(M=R)+1,C[E++]=M,C[E++]=N,C[E++]=T,++R}return s.indices=C,a.st&&(s.attributes.st=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),s}function ct(t,e,a,r,n){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a+2],t[e++]=n[a],t[e++]=n[a+1],t[e]=n[a+2],t}function mt(t,e,a,r){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a],t[e]=r[a+1],t}var pt=new et.VertexFormat;function x(t,e){var a,r,N,n=t._shadowVolume,o=t._offsetAttribute,i=t._vertexFormat,s=t._extrudedHeight,l=t._surfaceHeight,S=t._ellipsoid,u=e.height,c=e.width,m=(n&&((m=et.VertexFormat.clone(i,pt)).normal=!0,t._vertexFormat=m),ut(t,e)),p=(n&&(t._vertexFormat=i),tt.PolygonPipeline.scaleToGeodeticHeight(m.attributes.position.values,l,S,!1)),t=2*(T=(p=new Float64Array(p)).length),l=new Float64Array(t),d=(l.set(p),tt.PolygonPipeline.scaleToGeodeticHeight(m.attributes.position.values,s,S)),s=(l.set(d,T),m.attributes.position.values=l,i.normal?new Float32Array(t):void 0),l=i.tangent?new Float32Array(t):void 0,g=i.bitangent?new Float32Array(t):void 0,y=i.st?new Float32Array(t/3*2):void 0;if(i.normal){for(r=m.attributes.normal.values,s.set(r),f=0;f<T;f++)r[f]=-r[f];s.set(r,T),m.attributes.normal.values=s}if(n){r=m.attributes.normal.values,i.normal||(m.attributes.normal=void 0);for(var s=new Float32Array(t),f=0;f<T;f++)r[f]=-r[f];s.set(r,T),m.attributes.extrudeDirection=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:s})}s=X.defined(o);if(s&&(A=T/3*2,_=new Uint8Array(A),_=o===W.GeometryOffsetAttribute.TOP?W.arrayFill(_,1,0,A/2):(N=o===W.GeometryOffsetAttribute.NONE?0:1,W.arrayFill(_,N)),m.attributes.applyOffset=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),i.tangent){var I=m.attributes.tangent.values;for(l.set(I),f=0;f<T;f++)I[f]=-I[f];l.set(I,T),m.attributes.tangent.values=l}i.bitangent&&(A=m.attributes.bitangent.values,g.set(A),g.set(A,T),m.attributes.bitangent.values=g),i.st&&(a=m.attributes.st.values,y.set(a),y.set(a,T/3*2),m.attributes.st.values=y);var h=m.indices,b=h.length,k=T/3,v=$.IndexDatatype.createTypedArray(t/3,2*b);for(v.set(h),f=0;f<b;f+=3)v[f+b]=h[f+2]+k,v[f+1+b]=h[f+1]+k,v[f+2+b]=h[f]+k;m.indices=v;var _=e.northCap,l=e.southCap,A=u,g=2,y=0,t=4,e=4,u=(_&&(--g,--A,y+=1,t-=2,--e),l&&(--g,--A,y+=1,t-=2,--e),2*((y+=g*c+2*A-t)+e)),x=new Float64Array(3*u),w=n?new Float32Array(3*u):void 0,C=s?new Uint8Array(u):void 0,R=i.st?new Float32Array(2*u):void 0,E=o===W.GeometryOffsetAttribute.TOP,F=(s&&!E&&(N=o===W.GeometryOffsetAttribute.ALL?1:0,C=W.arrayFill(C,N)),0),G=0,P=0,V=0,L=c*A;for(f=0;f<L;f+=c)x=ct(x,F,D=3*f,p,d),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);if(l){var H=_?1+L:L,D=3*H;for(f=0;f<2;f++)x=ct(x,F,D,p,d),F+=6,i.st&&(R=mt(R,G,2*H,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1)}else for(f=L-c;f<L;f++)x=ct(x,F,D=3*f,p,d),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);for(f=L-1;0<f;f-=c)x=ct(x,F,D=3*f,p,d),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);if(_){var z=L;for(D=3*z,f=0;f<2;f++)x=ct(x,F,D,p,d),F+=6,i.st&&(R=mt(R,G,2*z,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1)}else for(f=c-1;0<=f;f--)x=ct(x,F,D=3*f,p,d),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);var g=function(t,e,a){var r=t.length,n=e.normal?new Float32Array(r):void 0,o=e.tangent?new Float32Array(r):void 0,i=e.bitangent?new Float32Array(r):void 0,s=0,l=0,u=0,c=!0,m=ot,p=nt,d=rt;if(e.normal||e.tangent||e.bitangent)for(var g=0;g<r;g+=6){var y,f=Q.Cartesian3.fromArray(t,g,at),h=Q.Cartesian3.fromArray(t,(g+6)%r,st);c&&(y=Q.Cartesian3.fromArray(t,(g+3)%r,lt),Q.Cartesian3.subtract(h,f,h),Q.Cartesian3.subtract(y,f,y),d=Q.Cartesian3.normalize(Q.Cartesian3.cross(y,h,d),d),c=!1),Q.Cartesian3.equalsEpsilon(h,f,J.CesiumMath.EPSILON10)&&(c=!0),(e.tangent||e.bitangent)&&(m=a.geodeticSurfaceNormal(f,m),e.tangent)&&(p=Q.Cartesian3.normalize(Q.Cartesian3.cross(m,d,p),p)),e.normal&&(n[s++]=d.x,n[s++]=d.y,n[s++]=d.z,n[s++]=d.x,n[s++]=d.y,n[s++]=d.z),e.tangent&&(o[l++]=p.x,o[l++]=p.y,o[l++]=p.z,o[l++]=p.x,o[l++]=p.y,o[l++]=p.z),e.bitangent&&(i[u++]=m.x,i[u++]=m.y,i[u++]=m.z,i[u++]=m.x,i[u++]=m.y,i[u++]=m.z)}return it(e,{positions:t,normals:n,tangents:o,bitangents:i})}(x,i,S),M=(i.st&&(g.attributes.st=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),n&&(g.attributes.extrudeDirection=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),s&&(g.attributes.applyOffset=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:C})),$.IndexDatatype.createTypedArray(u,6*y)),T=x.length/3,O=0;for(f=0;f<T-1;f+=2){var B,U=((B=f)+2)%T,Y=Q.Cartesian3.fromArray(x,3*B,st),q=Q.Cartesian3.fromArray(x,3*U,lt);Q.Cartesian3.equalsEpsilon(Y,q,J.CesiumMath.EPSILON10)||(q=(2+(Y=(B+1)%T))%T,M[O++]=B,M[O++]=Y,M[O++]=U,M[O++]=U,M[O++]=Y,M[O++]=q)}return g.indices=M,(g=K.GeometryPipeline.combineInstances([new Z.GeometryInstance({geometry:m}),new Z.GeometryInstance({geometry:g})]))[0]}var u=[new Q.Cartesian3,new Q.Cartesian3,new Q.Cartesian3,new Q.Cartesian3],g=new Q.Cartographic,w=new Q.Cartographic;function y(t,e,a,r,n){var o;return 0===a?Q.Rectangle.clone(t,n):(e=(t=S.RectangleGeometryLibrary.computeOptions(t,e,a,0,m,g)).height,a=t.width,S.RectangleGeometryLibrary.computePosition(t,r,!1,0,0,(o=u)[0]),S.RectangleGeometryLibrary.computePosition(t,r,!1,0,a-1,o[1]),S.RectangleGeometryLibrary.computePosition(t,r,!1,e-1,0,o[2]),S.RectangleGeometryLibrary.computePosition(t,r,!1,e-1,a-1,o[3]),Q.Rectangle.fromCartesianArray(o,r,n))}function f(t){var e=(t=X.defaultValue(t,X.defaultValue.EMPTY_OBJECT)).rectangle,a=X.defaultValue(t.height,0),r=X.defaultValue(t.extrudedHeight,a);this._rectangle=Q.Rectangle.clone(e),this._granularity=X.defaultValue(t.granularity,J.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=Q.Ellipsoid.clone(X.defaultValue(t.ellipsoid,Q.Ellipsoid.WGS84)),this._surfaceHeight=Math.max(a,r),this._rotation=X.defaultValue(t.rotation,0),this._stRotation=X.defaultValue(t.stRotation,0),this._vertexFormat=et.VertexFormat.clone(X.defaultValue(t.vertexFormat,et.VertexFormat.DEFAULT)),this._extrudedHeight=Math.min(a,r),this._shadowVolume=X.defaultValue(t.shadowVolume,!1),this._workerName="createRectangleGeometry",this._offsetAttribute=t.offsetAttribute,this._rotatedRectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=Q.Rectangle.packedLength+Q.Ellipsoid.packedLength+et.VertexFormat.packedLength+7,f.pack=function(t,e,a){return a=X.defaultValue(a,0),Q.Rectangle.pack(t._rectangle,e,a),a+=Q.Rectangle.packedLength,Q.Ellipsoid.pack(t._ellipsoid,e,a),a+=Q.Ellipsoid.packedLength,et.VertexFormat.pack(t._vertexFormat,e,a),a+=et.VertexFormat.packedLength,e[a++]=t._granularity,e[a++]=t._surfaceHeight,e[a++]=t._rotation,e[a++]=t._stRotation,e[a++]=t._extrudedHeight,e[a++]=t._shadowVolume?1:0,e[a]=X.defaultValue(t._offsetAttribute,-1),e};var h=new Q.Rectangle,b=Q.Ellipsoid.clone(Q.Ellipsoid.UNIT_SPHERE),v={rectangle:h,ellipsoid:b,vertexFormat:pt,granularity:void 0,height:void 0,rotation:void 0,stRotation:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0},C=(f.unpack=function(t,e,a){e=X.defaultValue(e,0);var r=Q.Rectangle.unpack(t,e,h),n=(e+=Q.Rectangle.packedLength,Q.Ellipsoid.unpack(t,e,b)),o=(e+=Q.Ellipsoid.packedLength,et.VertexFormat.unpack(t,e,pt)),i=(e+=et.VertexFormat.packedLength,t[e++]),s=t[e++],l=t[e++],u=t[e++],c=t[e++],m=1===t[e++],t=t[e];return X.defined(a)?(a._rectangle=Q.Rectangle.clone(r,a._rectangle),a._ellipsoid=Q.Ellipsoid.clone(n,a._ellipsoid),a._vertexFormat=et.VertexFormat.clone(o,a._vertexFormat),a._granularity=i,a._surfaceHeight=s,a._rotation=l,a._stRotation=u,a._extrudedHeight=c,a._shadowVolume=m,a._offsetAttribute=-1===t?void 0:t,a):(v.granularity=i,v.height=s,v.rotation=l,v.stRotation=u,v.extrudedHeight=c,v.shadowVolume=m,v.offsetAttribute=-1===t?void 0:t,new f(v))},f.computeRectangle=function(t,e){var a=(t=X.defaultValue(t,X.defaultValue.EMPTY_OBJECT)).rectangle,r=X.defaultValue(t.granularity,J.CesiumMath.RADIANS_PER_DEGREE),n=X.defaultValue(t.ellipsoid,Q.Ellipsoid.WGS84);return y(a,r,X.defaultValue(t.rotation,0),n,e)},new Q.Matrix3),_=new c.Quaternion,R=new Q.Cartographic,A=(f.createGeometry=function(t){var e,a,r,n,o,i,s,l,u;if(!J.CesiumMath.equalsEpsilon(t._rectangle.north,t._rectangle.south,J.CesiumMath.EPSILON10)&&!J.CesiumMath.equalsEpsilon(t._rectangle.east,t._rectangle.west,J.CesiumMath.EPSILON10))return e=t._rectangle,a=t._ellipsoid,r=t._vertexFormat,i=S.RectangleGeometryLibrary.computeOptions(e,t._granularity,n=t._rotation,s=t._stRotation,m,g,w),l=C,0!==s||0!==n?(n=Q.Rectangle.center(e,R),n=a.geodeticSurfaceNormalCartographic(n,st),c.Quaternion.fromAxisAngle(n,-s,_),Q.Matrix3.fromQuaternion(_,l)):Q.Matrix3.clone(Q.Matrix3.IDENTITY,l),n=t._surfaceHeight,u=!J.CesiumMath.equalsEpsilon(n,s=t._extrudedHeight,0,J.CesiumMath.EPSILON2),i.lonScalar=1/t._rectangle.width,i.latScalar=1/t._rectangle.height,i.tangentRotationMatrix=l,e=t._rectangle,i=u?(o=x(t,i),l=c.BoundingSphere.fromRectangle3D(e,a,n,d),u=c.BoundingSphere.fromRectangle3D(e,a,s,p),c.BoundingSphere.union(l,u)):((o=ut(t,i)).attributes.position.values=tt.PolygonPipeline.scaleToGeodeticHeight(o.attributes.position.values,n,a,!1),X.defined(t._offsetAttribute)&&(s=o.attributes.position.values.length,l=new Uint8Array(s/3),u=t._offsetAttribute===W.GeometryOffsetAttribute.NONE?0:1,W.arrayFill(l,u),o.attributes.applyOffset=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:l})),c.BoundingSphere.fromRectangle3D(e,a,n)),r.position||delete o.attributes.position,new j.Geometry({attributes:o.attributes,indices:o.indices,primitiveType:o.primitiveType,boundingSphere:i,offsetAttribute:t._offsetAttribute})},f.createShadowVolume=function(t,e,a){var r=t._granularity,n=t._ellipsoid,e=e(r,n),a=a(r,n);return new f({rectangle:t._rectangle,rotation:t._rotation,ellipsoid:n,stRotation:t._stRotation,granularity:r,extrudedHeight:a,height:e,vertexFormat:et.VertexFormat.POSITION_ONLY,shadowVolume:!0})},new Q.Rectangle),E=[new Q.Cartesian2,new Q.Cartesian2,new Q.Cartesian2],F=new Q.Matrix2,G=new Q.Cartographic;return Object.defineProperties(f.prototype,{rectangle:{get:function(){return X.defined(this._rotatedRectangle)||(this._rotatedRectangle=y(this._rectangle,this._granularity,this._rotation,this._ellipsoid)),this._rotatedRectangle}},textureCoordinateRotationPoints:{get:function(){return X.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(t){if(0===t._stRotation)return[0,0,0,1,1,0];for(var e=y(Q.Rectangle.clone(t._rectangle,A),t._granularity,t._rotation-t._stRotation,t._ellipsoid,A),a=E,r=(a[0].x=e.west,a[0].y=e.south,a[1].x=e.west,a[1].y=e.north,a[2].x=e.east,a[2].y=e.south,t.rectangle),n=Q.Matrix2.fromRotation(t._stRotation,F),o=Q.Rectangle.center(r,G),i=0;i<3;++i){var s=a[i];s.x-=o.longitude,s.y-=o.latitude,Q.Matrix2.multiplyByVector(n,s,s),s.x+=o.longitude,s.y+=o.latitude,s.x=(s.x-r.west)/r.width,s.y=(s.y-r.south)/r.height}var e=a[0],t=a[1],l=a[2],u=new Array(6);return Q.Cartesian2.pack(e,u),Q.Cartesian2.pack(t,u,2),Q.Cartesian2.pack(l,u,4),u}(this)),this._textureCoordinateRotationPoints}}}),function(t,e){return(t=X.defined(e)?f.unpack(t,e):t)._ellipsoid=Q.Ellipsoid.clone(t._ellipsoid),t._rectangle=Q.Rectangle.clone(t._rectangle),f.createGeometry(t)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./PolygonPipeline-832a906c","./RectangleGeometryLibrary-3de7d882","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IntersectionTests-60f10d18","./Plane-43337cee","./EllipsoidRhumbLine-535d21cd"],function(X,Q,W,c,t,J,j,r,Z,K,$,tt,S,et,e,a,n,o,i,s,l){var at=new Q.Cartesian3,rt=new Q.Cartesian3,nt=new Q.Cartesian3,ot=new Q.Cartesian3,m=new Q.Rectangle,I=new Q.Cartesian2,d=new c.BoundingSphere,p=new c.BoundingSphere;function it(t,e){var a=new j.Geometry({attributes:new r.GeometryAttributes,primitiveType:j.PrimitiveType.TRIANGLES});return a.attributes.position=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(a.attributes.normal=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(a.attributes.tangent=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(a.attributes.bitangent=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.bitangents})),a}var st=new Q.Cartesian3,lt=new Q.Cartesian3;function ut(t,e){for(var a=t._vertexFormat,r=t._ellipsoid,t=e.height,n=e.width,o=e.northCap,i=e.southCap,s=0,l=t,u=t,c=0,m=(o&&(--u,c+=s=1),i&&(--l,--u,c+=1),c+=n*u,a.position?new Float64Array(3*c):void 0),d=a.st?new Float32Array(2*c):void 0,p=0,g=0,y=at,f=I,h=Number.MAX_VALUE,b=Number.MAX_VALUE,v=-Number.MAX_VALUE,_=-Number.MAX_VALUE,A=s;A<l;++A)for(var x=0;x<n;++x)S.RectangleGeometryLibrary.computePosition(e,r,a.st,A,x,y,f),m[p++]=y.x,m[p++]=y.y,m[p++]=y.z,a.st&&(d[g++]=f.x,d[g++]=f.y,h=Math.min(h,f.x),b=Math.min(b,f.y),v=Math.max(v,f.x),_=Math.max(_,f.y));if(o&&(S.RectangleGeometryLibrary.computePosition(e,r,a.st,0,0,y,f),m[p++]=y.x,m[p++]=y.y,m[p++]=y.z,a.st)&&(d[g++]=f.x,d[g++]=f.y,h=f.x,b=f.y,v=f.x,_=f.y),i&&(S.RectangleGeometryLibrary.computePosition(e,r,a.st,t-1,0,y,f),m[p++]=y.x,m[p++]=y.y,m[p]=y.z,a.st)&&(d[g++]=f.x,d[g]=f.y,h=Math.min(h,f.x),b=Math.min(b,f.y),v=Math.max(v,f.x),_=Math.max(_,f.y)),a.st&&(h<0||b<0||1<v||1<_))for(var w=0;w<d.length;w+=2)d[w]=(d[w]-h)/(v-h),d[w+1]=(d[w+1]-b)/(_-b);for(var s=function(t,e,a,r){var n=t.length,o=e.normal?new Float32Array(n):void 0,i=e.tangent?new Float32Array(n):void 0,s=e.bitangent?new Float32Array(n):void 0,l=0,u=ot,c=nt,m=rt;if(e.normal||e.tangent||e.bitangent)for(var d=0;d<n;d+=3){var p=Q.Cartesian3.fromArray(t,d,at),g=l+1,y=l+2,m=a.geodeticSurfaceNormal(p,m);(e.tangent||e.bitangent)&&(Q.Cartesian3.cross(Q.Cartesian3.UNIT_Z,m,c),Q.Matrix3.multiplyByVector(r,c,c),Q.Cartesian3.normalize(c,c),e.bitangent)&&Q.Cartesian3.normalize(Q.Cartesian3.cross(m,c,u),u),e.normal&&(o[l]=m.x,o[g]=m.y,o[y]=m.z),e.tangent&&(i[l]=c.x,i[g]=c.y,i[y]=c.z),e.bitangent&&(s[l]=u.x,s[g]=u.y,s[y]=u.z),l+=3}return it(e,{positions:t,normals:o,tangents:i,bitangents:s})}(m,a,r,e.tangentRotationMatrix),t=6*(n-1)*(u-1),C=(o&&(t+=3*(n-1)),i&&(t+=3*(n-1)),$.IndexDatatype.createTypedArray(c,t)),R=0,E=0,F=0;F<u-1;++F){for(var G=0;G<n-1;++G){var P=R,V=P+n,L=V+1,D=P+1;C[E++]=P,C[E++]=V,C[E++]=D,C[E++]=D,C[E++]=V,C[E++]=L,++R}++R}if(o||i){var M,T,O=c-1,N=c-1;if(o&&i&&(O=c-2),R=0,o)for(F=0;F<n-1;F++)T=(M=R)+1,C[E++]=O,C[E++]=M,C[E++]=T,++R;if(i)for(R=(u-1)*n,F=0;F<n-1;F++)T=(M=R)+1,C[E++]=M,C[E++]=N,C[E++]=T,++R}return s.indices=C,a.st&&(s.attributes.st=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:d})),s}function ct(t,e,a,r,n){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a+2],t[e++]=n[a],t[e++]=n[a+1],t[e]=n[a+2],t}function mt(t,e,a,r){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a],t[e]=r[a+1],t}var dt=new et.VertexFormat;function x(t,e){var a,r,N,n=t._shadowVolume,o=t._offsetAttribute,i=t._vertexFormat,s=t._extrudedHeight,l=t._surfaceHeight,S=t._ellipsoid,u=e.height,c=e.width,m=(n&&((m=et.VertexFormat.clone(i,dt)).normal=!0,t._vertexFormat=m),ut(t,e)),d=(n&&(t._vertexFormat=i),tt.PolygonPipeline.scaleToGeodeticHeight(m.attributes.position.values,l,S,!1)),t=2*(T=(d=new Float64Array(d)).length),l=new Float64Array(t),p=(l.set(d),tt.PolygonPipeline.scaleToGeodeticHeight(m.attributes.position.values,s,S)),s=(l.set(p,T),m.attributes.position.values=l,i.normal?new Float32Array(t):void 0),l=i.tangent?new Float32Array(t):void 0,g=i.bitangent?new Float32Array(t):void 0,y=i.st?new Float32Array(t/3*2):void 0;if(i.normal){for(r=m.attributes.normal.values,s.set(r),f=0;f<T;f++)r[f]=-r[f];s.set(r,T),m.attributes.normal.values=s}if(n){r=m.attributes.normal.values,i.normal||(m.attributes.normal=void 0);for(var s=new Float32Array(t),f=0;f<T;f++)r[f]=-r[f];s.set(r,T),m.attributes.extrudeDirection=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:s})}s=X.defined(o);if(s&&(A=T/3*2,_=new Uint8Array(A),_=o===W.GeometryOffsetAttribute.TOP?W.arrayFill(_,1,0,A/2):(N=o===W.GeometryOffsetAttribute.NONE?0:1,W.arrayFill(_,N)),m.attributes.applyOffset=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),i.tangent){var I=m.attributes.tangent.values;for(l.set(I),f=0;f<T;f++)I[f]=-I[f];l.set(I,T),m.attributes.tangent.values=l}i.bitangent&&(A=m.attributes.bitangent.values,g.set(A),g.set(A,T),m.attributes.bitangent.values=g),i.st&&(a=m.attributes.st.values,y.set(a),y.set(a,T/3*2),m.attributes.st.values=y);var h=m.indices,b=h.length,k=T/3,v=$.IndexDatatype.createTypedArray(t/3,2*b);for(v.set(h),f=0;f<b;f+=3)v[f+b]=h[f+2]+k,v[f+1+b]=h[f+1]+k,v[f+2+b]=h[f]+k;m.indices=v;var _=e.northCap,l=e.southCap,A=u,g=2,y=0,t=4,e=4,u=(_&&(--g,--A,y+=1,t-=2,--e),l&&(--g,--A,y+=1,t-=2,--e),2*((y+=g*c+2*A-t)+e)),x=new Float64Array(3*u),w=n?new Float32Array(3*u):void 0,C=s?new Uint8Array(u):void 0,R=i.st?new Float32Array(2*u):void 0,E=o===W.GeometryOffsetAttribute.TOP,F=(s&&!E&&(N=o===W.GeometryOffsetAttribute.ALL?1:0,C=W.arrayFill(C,N)),0),G=0,P=0,V=0,L=c*A;for(f=0;f<L;f+=c)x=ct(x,F,D=3*f,d,p),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);if(l){var H=_?1+L:L,D=3*H;for(f=0;f<2;f++)x=ct(x,F,D,d,p),F+=6,i.st&&(R=mt(R,G,2*H,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1)}else for(f=L-c;f<L;f++)x=ct(x,F,D=3*f,d,p),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);for(f=L-1;0<f;f-=c)x=ct(x,F,D=3*f,d,p),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);if(_){var z=L;for(D=3*z,f=0;f<2;f++)x=ct(x,F,D,d,p),F+=6,i.st&&(R=mt(R,G,2*z,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1)}else for(f=c-1;0<=f;f--)x=ct(x,F,D=3*f,d,p),F+=6,i.st&&(R=mt(R,G,2*f,a),G+=4),n&&(P+=3,w[P++]=r[D],w[P++]=r[D+1],w[P++]=r[D+2]),E&&(C[V++]=1,V+=1);var g=function(t,e,a){var r=t.length,n=e.normal?new Float32Array(r):void 0,o=e.tangent?new Float32Array(r):void 0,i=e.bitangent?new Float32Array(r):void 0,s=0,l=0,u=0,c=!0,m=ot,d=nt,p=rt;if(e.normal||e.tangent||e.bitangent)for(var g=0;g<r;g+=6){var y,f=Q.Cartesian3.fromArray(t,g,at),h=Q.Cartesian3.fromArray(t,(g+6)%r,st);c&&(y=Q.Cartesian3.fromArray(t,(g+3)%r,lt),Q.Cartesian3.subtract(h,f,h),Q.Cartesian3.subtract(y,f,y),p=Q.Cartesian3.normalize(Q.Cartesian3.cross(y,h,p),p),c=!1),Q.Cartesian3.equalsEpsilon(h,f,J.CesiumMath.EPSILON10)&&(c=!0),(e.tangent||e.bitangent)&&(m=a.geodeticSurfaceNormal(f,m),e.tangent)&&(d=Q.Cartesian3.normalize(Q.Cartesian3.cross(m,p,d),d)),e.normal&&(n[s++]=p.x,n[s++]=p.y,n[s++]=p.z,n[s++]=p.x,n[s++]=p.y,n[s++]=p.z),e.tangent&&(o[l++]=d.x,o[l++]=d.y,o[l++]=d.z,o[l++]=d.x,o[l++]=d.y,o[l++]=d.z),e.bitangent&&(i[u++]=m.x,i[u++]=m.y,i[u++]=m.z,i[u++]=m.x,i[u++]=m.y,i[u++]=m.z)}return it(e,{positions:t,normals:n,tangents:o,bitangents:i})}(x,i,S),M=(i.st&&(g.attributes.st=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),n&&(g.attributes.extrudeDirection=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),s&&(g.attributes.applyOffset=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:C})),$.IndexDatatype.createTypedArray(u,6*y)),T=x.length/3,O=0;for(f=0;f<T-1;f+=2){var B,U=((B=f)+2)%T,Y=Q.Cartesian3.fromArray(x,3*B,st),q=Q.Cartesian3.fromArray(x,3*U,lt);Q.Cartesian3.equalsEpsilon(Y,q,J.CesiumMath.EPSILON10)||(q=(2+(Y=(B+1)%T))%T,M[O++]=B,M[O++]=Y,M[O++]=U,M[O++]=U,M[O++]=Y,M[O++]=q)}return g.indices=M,(g=K.GeometryPipeline.combineInstances([new Z.GeometryInstance({geometry:m}),new Z.GeometryInstance({geometry:g})]))[0]}var u=[new Q.Cartesian3,new Q.Cartesian3,new Q.Cartesian3,new Q.Cartesian3],g=new Q.Cartographic,w=new Q.Cartographic;function y(t,e,a,r,n){var o;return 0===a?Q.Rectangle.clone(t,n):(e=(t=S.RectangleGeometryLibrary.computeOptions(t,e,a,0,m,g)).height,a=t.width,S.RectangleGeometryLibrary.computePosition(t,r,!1,0,0,(o=u)[0]),S.RectangleGeometryLibrary.computePosition(t,r,!1,0,a-1,o[1]),S.RectangleGeometryLibrary.computePosition(t,r,!1,e-1,0,o[2]),S.RectangleGeometryLibrary.computePosition(t,r,!1,e-1,a-1,o[3]),Q.Rectangle.fromCartesianArray(o,r,n))}function f(t){var e=(t=X.defaultValue(t,X.defaultValue.EMPTY_OBJECT)).rectangle,a=X.defaultValue(t.height,0),r=X.defaultValue(t.extrudedHeight,a);this._rectangle=Q.Rectangle.clone(e),this._granularity=X.defaultValue(t.granularity,J.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=Q.Ellipsoid.clone(X.defaultValue(t.ellipsoid,Q.Ellipsoid.WGS84)),this._surfaceHeight=Math.max(a,r),this._rotation=X.defaultValue(t.rotation,0),this._stRotation=X.defaultValue(t.stRotation,0),this._vertexFormat=et.VertexFormat.clone(X.defaultValue(t.vertexFormat,et.VertexFormat.DEFAULT)),this._extrudedHeight=Math.min(a,r),this._shadowVolume=X.defaultValue(t.shadowVolume,!1),this._workerName="createRectangleGeometry",this._offsetAttribute=t.offsetAttribute,this._rotatedRectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=Q.Rectangle.packedLength+Q.Ellipsoid.packedLength+et.VertexFormat.packedLength+7,f.pack=function(t,e,a){return a=X.defaultValue(a,0),Q.Rectangle.pack(t._rectangle,e,a),a+=Q.Rectangle.packedLength,Q.Ellipsoid.pack(t._ellipsoid,e,a),a+=Q.Ellipsoid.packedLength,et.VertexFormat.pack(t._vertexFormat,e,a),a+=et.VertexFormat.packedLength,e[a++]=t._granularity,e[a++]=t._surfaceHeight,e[a++]=t._rotation,e[a++]=t._stRotation,e[a++]=t._extrudedHeight,e[a++]=t._shadowVolume?1:0,e[a]=X.defaultValue(t._offsetAttribute,-1),e};var h=new Q.Rectangle,b=Q.Ellipsoid.clone(Q.Ellipsoid.UNIT_SPHERE),v={rectangle:h,ellipsoid:b,vertexFormat:dt,granularity:void 0,height:void 0,rotation:void 0,stRotation:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0},C=(f.unpack=function(t,e,a){e=X.defaultValue(e,0);var r=Q.Rectangle.unpack(t,e,h),n=(e+=Q.Rectangle.packedLength,Q.Ellipsoid.unpack(t,e,b)),o=(e+=Q.Ellipsoid.packedLength,et.VertexFormat.unpack(t,e,dt)),i=(e+=et.VertexFormat.packedLength,t[e++]),s=t[e++],l=t[e++],u=t[e++],c=t[e++],m=1===t[e++],t=t[e];return X.defined(a)?(a._rectangle=Q.Rectangle.clone(r,a._rectangle),a._ellipsoid=Q.Ellipsoid.clone(n,a._ellipsoid),a._vertexFormat=et.VertexFormat.clone(o,a._vertexFormat),a._granularity=i,a._surfaceHeight=s,a._rotation=l,a._stRotation=u,a._extrudedHeight=c,a._shadowVolume=m,a._offsetAttribute=-1===t?void 0:t,a):(v.granularity=i,v.height=s,v.rotation=l,v.stRotation=u,v.extrudedHeight=c,v.shadowVolume=m,v.offsetAttribute=-1===t?void 0:t,new f(v))},f.computeRectangle=function(t,e){var a=(t=X.defaultValue(t,X.defaultValue.EMPTY_OBJECT)).rectangle,r=X.defaultValue(t.granularity,J.CesiumMath.RADIANS_PER_DEGREE),n=X.defaultValue(t.ellipsoid,Q.Ellipsoid.WGS84);return y(a,r,X.defaultValue(t.rotation,0),n,e)},new Q.Matrix3),_=new c.Quaternion,R=new Q.Cartographic,A=(f.createGeometry=function(t){var e,a,r,n,o,i,s,l,u;if(!J.CesiumMath.equalsEpsilon(t._rectangle.north,t._rectangle.south,J.CesiumMath.EPSILON10)&&!J.CesiumMath.equalsEpsilon(t._rectangle.east,t._rectangle.west,J.CesiumMath.EPSILON10))return e=t._rectangle,a=t._ellipsoid,r=t._vertexFormat,i=S.RectangleGeometryLibrary.computeOptions(e,t._granularity,n=t._rotation,s=t._stRotation,m,g,w),l=C,0!==s||0!==n?(n=Q.Rectangle.center(e,R),n=a.geodeticSurfaceNormalCartographic(n,st),c.Quaternion.fromAxisAngle(n,-s,_),Q.Matrix3.fromQuaternion(_,l)):Q.Matrix3.clone(Q.Matrix3.IDENTITY,l),n=t._surfaceHeight,u=!J.CesiumMath.equalsEpsilon(n,s=t._extrudedHeight,0,J.CesiumMath.EPSILON2),i.lonScalar=1/t._rectangle.width,i.latScalar=1/t._rectangle.height,i.tangentRotationMatrix=l,e=t._rectangle,i=u?(o=x(t,i),l=c.BoundingSphere.fromRectangle3D(e,a,n,p),u=c.BoundingSphere.fromRectangle3D(e,a,s,d),c.BoundingSphere.union(l,u)):((o=ut(t,i)).attributes.position.values=tt.PolygonPipeline.scaleToGeodeticHeight(o.attributes.position.values,n,a,!1),X.defined(t._offsetAttribute)&&(s=o.attributes.position.values.length,l=new Uint8Array(s/3),u=t._offsetAttribute===W.GeometryOffsetAttribute.NONE?0:1,W.arrayFill(l,u),o.attributes.applyOffset=new j.GeometryAttribute({componentDatatype:J.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:l})),c.BoundingSphere.fromRectangle3D(e,a,n)),r.position||delete o.attributes.position,new j.Geometry({attributes:o.attributes,indices:o.indices,primitiveType:o.primitiveType,boundingSphere:i,offsetAttribute:t._offsetAttribute})},f.createShadowVolume=function(t,e,a){var r=t._granularity,n=t._ellipsoid,e=e(r,n),a=a(r,n);return new f({rectangle:t._rectangle,rotation:t._rotation,ellipsoid:n,stRotation:t._stRotation,granularity:r,extrudedHeight:a,height:e,vertexFormat:et.VertexFormat.POSITION_ONLY,shadowVolume:!0})},new Q.Rectangle),E=[new Q.Cartesian2,new Q.Cartesian2,new Q.Cartesian2],F=new Q.Matrix2,G=new Q.Cartographic;return Object.defineProperties(f.prototype,{rectangle:{get:function(){return X.defined(this._rotatedRectangle)||(this._rotatedRectangle=y(this._rectangle,this._granularity,this._rotation,this._ellipsoid)),this._rotatedRectangle}},textureCoordinateRotationPoints:{get:function(){return X.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(t){if(0===t._stRotation)return[0,0,0,1,1,0];for(var e=y(Q.Rectangle.clone(t._rectangle,A),t._granularity,t._rotation-t._stRotation,t._ellipsoid,A),a=E,r=(a[0].x=e.west,a[0].y=e.south,a[1].x=e.west,a[1].y=e.north,a[2].x=e.east,a[2].y=e.south,t.rectangle),n=Q.Matrix2.fromRotation(t._stRotation,F),o=Q.Rectangle.center(r,G),i=0;i<3;++i){var s=a[i];s.x-=o.longitude,s.y-=o.latitude,Q.Matrix2.multiplyByVector(n,s,s),s.x+=o.longitude,s.y+=o.latitude,s.x=(s.x-r.west)/r.width,s.y=(s.y-r.south)/r.height}var e=a[0],t=a[1],l=a[2],u=new Array(6);return Q.Cartesian2.pack(e,u),Q.Cartesian2.pack(t,u,2),Q.Cartesian2.pack(l,u,4),u}(this)),this._textureCoordinateRotationPoints}}}),function(t,e){return(t=X.defined(e)?f.unpack(t,e):t)._ellipsoid=Q.Ellipsoid.clone(t._ellipsoid),t._rectangle=Q.Rectangle.clone(t._rectangle),f.createGeometry(t)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-6d75eac7","./RectangleGeometryLibrary-3b4bc438","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidRhumbLine-535d21cd"],function(d,s,p,c,b,e,_,E,A,g,G,t,i,a){var f=new c.BoundingSphere,h=new c.BoundingSphere,v=new s.Cartesian3,y=new s.Rectangle;function m(e,t){var i,a=e._ellipsoid,n=t.height,r=t.width,e=t.northCap,o=t.southCap,l=n,u=2,s=0,d=4,p=(e&&(--u,--l,s+=1,d-=2),o&&(--u,--l,s+=1,d-=2),s+=u*r+2*l-d,new Float64Array(3*s)),c=0,g=0,f=v;if(e)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,0,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;else for(i=0;i<r;i++)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;for(i=r-1,g=1;g<n;g++)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;if(g=n-1,!o)for(i=r-2;0<=i;i--)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;for(i=0,g=n-2;0<g;g--)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;for(var u=p.length/3*2,h=A.IndexDatatype.createTypedArray(p.length/3,u),y=0,m=0;m<p.length/3-1;m++)h[y++]=m,h[y++]=m+1;h[y++]=p.length/3-1,h[y++]=0;l=new _.Geometry({attributes:new E.GeometryAttributes,primitiveType:_.PrimitiveType.LINES});return l.attributes.position=new _.GeometryAttribute({componentDatatype:b.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p}),l.indices=h,l}function R(e){var t=(e=d.defaultValue(e,d.defaultValue.EMPTY_OBJECT)).rectangle,i=d.defaultValue(e.granularity,b.CesiumMath.RADIANS_PER_DEGREE),a=d.defaultValue(e.ellipsoid,s.Ellipsoid.WGS84),n=d.defaultValue(e.rotation,0),r=d.defaultValue(e.height,0),o=d.defaultValue(e.extrudedHeight,r);this._rectangle=s.Rectangle.clone(t),this._granularity=i,this._ellipsoid=a,this._surfaceHeight=Math.max(r,o),this._rotation=n,this._extrudedHeight=Math.min(r,o),this._offsetAttribute=e.offsetAttribute,this._workerName="createRectangleOutlineGeometry"}R.packedLength=s.Rectangle.packedLength+s.Ellipsoid.packedLength+5,R.pack=function(e,t,i){return i=d.defaultValue(i,0),s.Rectangle.pack(e._rectangle,t,i),i+=s.Rectangle.packedLength,s.Ellipsoid.pack(e._ellipsoid,t,i),i+=s.Ellipsoid.packedLength,t[i++]=e._granularity,t[i++]=e._surfaceHeight,t[i++]=e._rotation,t[i++]=e._extrudedHeight,t[i]=d.defaultValue(e._offsetAttribute,-1),t};var P=new s.Rectangle,w=s.Ellipsoid.clone(s.Ellipsoid.UNIT_SPHERE),L={rectangle:P,ellipsoid:w,granularity:void 0,height:void 0,rotation:void 0,extrudedHeight:void 0,offsetAttribute:void 0},C=(R.unpack=function(e,t,i){t=d.defaultValue(t,0);var a=s.Rectangle.unpack(e,t,P),n=(t+=s.Rectangle.packedLength,s.Ellipsoid.unpack(e,t,w)),r=(t+=s.Ellipsoid.packedLength,e[t++]),o=e[t++],l=e[t++],u=e[t++],e=e[t];return d.defined(i)?(i._rectangle=s.Rectangle.clone(a,i._rectangle),i._ellipsoid=s.Ellipsoid.clone(n,i._ellipsoid),i._surfaceHeight=o,i._rotation=l,i._extrudedHeight=u,i._offsetAttribute=-1===e?void 0:e,i):(L.granularity=r,L.height=o,L.rotation=l,L.extrudedHeight=u,L.offsetAttribute=-1===e?void 0:e,new R(L))},new s.Cartographic);return R.createGeometry=function(e){var t,i,a,n,r,o,l=e._rectangle,u=e._ellipsoid,s=G.RectangleGeometryLibrary.computeOptions(l,e._granularity,e._rotation,0,y,C);if(!b.CesiumMath.equalsEpsilon(l.north,l.south,b.CesiumMath.EPSILON10)&&!b.CesiumMath.equalsEpsilon(l.east,l.west,b.CesiumMath.EPSILON10))return t=e._surfaceHeight,a=!b.CesiumMath.equalsEpsilon(t,n=e._extrudedHeight,0,b.CesiumMath.EPSILON2)?(i=function(e,t){for(var i=e._surfaceHeight,a=e._ellipsoid,n=e._extrudedHeight,e=m(e,t),r=t.height,o=t.width,l=(i=g.PolygonPipeline.scaleToGeodeticHeight(e.attributes.position.values,i,a,!1)).length,u=new Float64Array(2*l),i=(u.set(i),g.PolygonPipeline.scaleToGeodeticHeight(e.attributes.position.values,n,a)),n=(u.set(i,l),e.attributes.position.values=u,t.northCap),i=4,t=(n&&--i,(a=t.southCap)&&--i,2*(u.length/3+i)),s=A.IndexDatatype.createTypedArray(u.length/3,t),l=u.length/6,d=0,p=0;p<l-1;p++)s[d++]=p,s[d++]=p+1,s[d++]=p+l,s[d++]=p+l+1;return s[d++]=l-1,s[d++]=0,s[d++]=l+l-1,s[d++]=l,s[d++]=0,s[d++]=l,t=n?r-1:(s[d++]=i=o-1,s[d++]=i+l,o+r-2),s[d++]=t,s[d++]=t+l,a||(s[d++]=u=o+t-1,s[d]=u+l),e.indices=s,e}(e,s),d.defined(e._offsetAttribute)&&(r=i.attributes.position.values.length/3,a=new Uint8Array(r),a=e._offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(a,1,0,r/2):(o=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(a,o)),i.attributes.applyOffset=new _.GeometryAttribute({componentDatatype:b.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),r=c.BoundingSphere.fromRectangle3D(l,u,t,h),a=c.BoundingSphere.fromRectangle3D(l,u,n,f),c.BoundingSphere.union(r,a)):((i=m(e,s)).attributes.position.values=g.PolygonPipeline.scaleToGeodeticHeight(i.attributes.position.values,t,u,!1),d.defined(e._offsetAttribute)&&(n=i.attributes.position.values.length,r=new Uint8Array(n/3),o=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,o),i.attributes.applyOffset=new _.GeometryAttribute({componentDatatype:b.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),c.BoundingSphere.fromRectangle3D(l,u,t)),new _.Geometry({attributes:i.attributes,indices:i.indices,primitiveType:_.PrimitiveType.LINES,boundingSphere:a,offsetAttribute:e._offsetAttribute})},function(e,t){return(e=d.defined(t)?R.unpack(e,t):e)._ellipsoid=s.Ellipsoid.clone(e._ellipsoid),e._rectangle=s.Rectangle.clone(e._rectangle),R.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-832a906c","./RectangleGeometryLibrary-3de7d882","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidRhumbLine-535d21cd"],function(d,s,p,c,b,e,_,E,A,g,G,t,i,a){var f=new c.BoundingSphere,h=new c.BoundingSphere,v=new s.Cartesian3,y=new s.Rectangle;function m(e,t){var i,a=e._ellipsoid,n=t.height,r=t.width,e=t.northCap,o=t.southCap,l=n,u=2,s=0,d=4,p=(e&&(--u,--l,s+=1,d-=2),o&&(--u,--l,s+=1,d-=2),s+=u*r+2*l-d,new Float64Array(3*s)),c=0,g=0,f=v;if(e)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,0,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;else for(i=0;i<r;i++)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;for(i=r-1,g=1;g<n;g++)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;if(g=n-1,!o)for(i=r-2;0<=i;i--)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;for(i=0,g=n-2;0<g;g--)G.RectangleGeometryLibrary.computePosition(t,a,!1,g,i,f),p[c++]=f.x,p[c++]=f.y,p[c++]=f.z;for(var u=p.length/3*2,h=A.IndexDatatype.createTypedArray(p.length/3,u),y=0,m=0;m<p.length/3-1;m++)h[y++]=m,h[y++]=m+1;h[y++]=p.length/3-1,h[y++]=0;l=new _.Geometry({attributes:new E.GeometryAttributes,primitiveType:_.PrimitiveType.LINES});return l.attributes.position=new _.GeometryAttribute({componentDatatype:b.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p}),l.indices=h,l}function R(e){var t=(e=d.defaultValue(e,d.defaultValue.EMPTY_OBJECT)).rectangle,i=d.defaultValue(e.granularity,b.CesiumMath.RADIANS_PER_DEGREE),a=d.defaultValue(e.ellipsoid,s.Ellipsoid.WGS84),n=d.defaultValue(e.rotation,0),r=d.defaultValue(e.height,0),o=d.defaultValue(e.extrudedHeight,r);this._rectangle=s.Rectangle.clone(t),this._granularity=i,this._ellipsoid=a,this._surfaceHeight=Math.max(r,o),this._rotation=n,this._extrudedHeight=Math.min(r,o),this._offsetAttribute=e.offsetAttribute,this._workerName="createRectangleOutlineGeometry"}R.packedLength=s.Rectangle.packedLength+s.Ellipsoid.packedLength+5,R.pack=function(e,t,i){return i=d.defaultValue(i,0),s.Rectangle.pack(e._rectangle,t,i),i+=s.Rectangle.packedLength,s.Ellipsoid.pack(e._ellipsoid,t,i),i+=s.Ellipsoid.packedLength,t[i++]=e._granularity,t[i++]=e._surfaceHeight,t[i++]=e._rotation,t[i++]=e._extrudedHeight,t[i]=d.defaultValue(e._offsetAttribute,-1),t};var P=new s.Rectangle,w=s.Ellipsoid.clone(s.Ellipsoid.UNIT_SPHERE),L={rectangle:P,ellipsoid:w,granularity:void 0,height:void 0,rotation:void 0,extrudedHeight:void 0,offsetAttribute:void 0},C=(R.unpack=function(e,t,i){t=d.defaultValue(t,0);var a=s.Rectangle.unpack(e,t,P),n=(t+=s.Rectangle.packedLength,s.Ellipsoid.unpack(e,t,w)),r=(t+=s.Ellipsoid.packedLength,e[t++]),o=e[t++],l=e[t++],u=e[t++],e=e[t];return d.defined(i)?(i._rectangle=s.Rectangle.clone(a,i._rectangle),i._ellipsoid=s.Ellipsoid.clone(n,i._ellipsoid),i._surfaceHeight=o,i._rotation=l,i._extrudedHeight=u,i._offsetAttribute=-1===e?void 0:e,i):(L.granularity=r,L.height=o,L.rotation=l,L.extrudedHeight=u,L.offsetAttribute=-1===e?void 0:e,new R(L))},new s.Cartographic);return R.createGeometry=function(e){var t,i,a,n,r,o,l=e._rectangle,u=e._ellipsoid,s=G.RectangleGeometryLibrary.computeOptions(l,e._granularity,e._rotation,0,y,C);if(!b.CesiumMath.equalsEpsilon(l.north,l.south,b.CesiumMath.EPSILON10)&&!b.CesiumMath.equalsEpsilon(l.east,l.west,b.CesiumMath.EPSILON10))return t=e._surfaceHeight,a=!b.CesiumMath.equalsEpsilon(t,n=e._extrudedHeight,0,b.CesiumMath.EPSILON2)?(i=function(e,t){for(var i=e._surfaceHeight,a=e._ellipsoid,n=e._extrudedHeight,e=m(e,t),r=t.height,o=t.width,l=(i=g.PolygonPipeline.scaleToGeodeticHeight(e.attributes.position.values,i,a,!1)).length,u=new Float64Array(2*l),i=(u.set(i),g.PolygonPipeline.scaleToGeodeticHeight(e.attributes.position.values,n,a)),n=(u.set(i,l),e.attributes.position.values=u,t.northCap),i=4,t=(n&&--i,(a=t.southCap)&&--i,2*(u.length/3+i)),s=A.IndexDatatype.createTypedArray(u.length/3,t),l=u.length/6,d=0,p=0;p<l-1;p++)s[d++]=p,s[d++]=p+1,s[d++]=p+l,s[d++]=p+l+1;return s[d++]=l-1,s[d++]=0,s[d++]=l+l-1,s[d++]=l,s[d++]=0,s[d++]=l,t=n?r-1:(s[d++]=i=o-1,s[d++]=i+l,o+r-2),s[d++]=t,s[d++]=t+l,a||(s[d++]=u=o+t-1,s[d]=u+l),e.indices=s,e}(e,s),d.defined(e._offsetAttribute)&&(r=i.attributes.position.values.length/3,a=new Uint8Array(r),a=e._offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(a,1,0,r/2):(o=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(a,o)),i.attributes.applyOffset=new _.GeometryAttribute({componentDatatype:b.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),r=c.BoundingSphere.fromRectangle3D(l,u,t,h),a=c.BoundingSphere.fromRectangle3D(l,u,n,f),c.BoundingSphere.union(r,a)):((i=m(e,s)).attributes.position.values=g.PolygonPipeline.scaleToGeodeticHeight(i.attributes.position.values,t,u,!1),d.defined(e._offsetAttribute)&&(n=i.attributes.position.values.length,r=new Uint8Array(n/3),o=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,o),i.attributes.applyOffset=new _.GeometryAttribute({componentDatatype:b.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),c.BoundingSphere.fromRectangle3D(l,u,t)),new _.Geometry({attributes:i.attributes,indices:i.indices,primitiveType:_.PrimitiveType.LINES,boundingSphere:a,offsetAttribute:e._offsetAttribute})},function(e,t){return(e=d.defined(t)?R.unpack(e,t):e)._ellipsoid=s.Ellipsoid.clone(e._ellipsoid),e._rectangle=s.Rectangle.clone(e._rectangle),R.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./Transforms-ce414632","./Color-ff1fdef4","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolylinePipeline-7389d81d","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-f71f97b3","./Plane-43337cee"],function(D,L,V,x,S,I,e,R,O,M,U,o,t,r,a,l,i){function f(e){var o=(e=D.defaultValue(e,D.defaultValue.EMPTY_OBJECT)).positions,t=e.colors,r=D.defaultValue(e.colorsPerVertex,!1),r=(this._positions=o,this._colors=t,this._colorsPerVertex=r,this._arcType=D.defaultValue(e.arcType,V.ArcType.GEODESIC),this._granularity=D.defaultValue(e.granularity,I.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=D.defaultValue(e.ellipsoid,L.Ellipsoid.WGS84),this._workerName="createSimplePolylineGeometry",1+o.length*L.Cartesian3.packedLength);r+=D.defined(t)?1+t.length*S.Color.packedLength:1,this.packedLength=r+L.Ellipsoid.packedLength+3}f.pack=function(e,o,t){t=D.defaultValue(t,0);var r,a=e._positions,l=a.length;for(o[t++]=l,r=0;r<l;++r,t+=L.Cartesian3.packedLength)L.Cartesian3.pack(a[r],o,t);var i=e._colors,l=D.defined(i)?i.length:0;for(o[t++]=l,r=0;r<l;++r,t+=S.Color.packedLength)S.Color.pack(i[r],o,t);return L.Ellipsoid.pack(e._ellipsoid,o,t),t+=L.Ellipsoid.packedLength,o[t++]=e._colorsPerVertex?1:0,o[t++]=e._arcType,o[t]=e._granularity,o},f.unpack=function(e,o,t){o=D.defaultValue(o,0);for(var r=e[o++],a=new Array(r),l=0;l<r;++l,o+=L.Cartesian3.packedLength)a[l]=L.Cartesian3.unpack(e,o);var i=0<(r=e[o++])?new Array(r):void 0;for(l=0;l<r;++l,o+=S.Color.packedLength)i[l]=S.Color.unpack(e,o);var n=L.Ellipsoid.unpack(e,o),s=(o+=L.Ellipsoid.packedLength,1===e[o++]),p=e[o++],d=e[o];return D.defined(t)?(t._positions=a,t._colors=i,t._ellipsoid=n,t._colorsPerVertex=s,t._arcType=p,t._granularity=d,t):new f({positions:a,colors:i,ellipsoid:n,colorsPerVertex:s,arcType:p,granularity:d})};var N=new Array(2),F=new Array(2),H={positions:N,height:F,ellipsoid:void 0,minDistance:void 0,granularity:void 0};return f.createGeometry=function(e){var o=e._positions,t=e._colors,r=e._colorsPerVertex,a=e._arcType,l=e._granularity,e=e._ellipsoid,i=I.CesiumMath.chordLength(l,e.maximumRadius),n=D.defined(t)&&!r,s=o.length,p=0;if(a===V.ArcType.GEODESIC||a===V.ArcType.RHUMB){var d,f,y=a===V.ArcType.GEODESIC?(d=I.CesiumMath.chordLength(l,e.maximumRadius),f=U.PolylinePipeline.numberOfPoints,U.PolylinePipeline.generateArc):(d=l,f=U.PolylinePipeline.numberOfPointsRhumbLine,U.PolylinePipeline.generateRhumbArc),c=U.PolylinePipeline.extractHeights(o,e),u=H;if(a===V.ArcType.GEODESIC?u.minDistance=i:u.granularity=l,u.ellipsoid=e,n){for(var h=0,C=0;C<s-1;C++)h+=f(o[C],o[C+1],d)+1;B=new Float64Array(3*h),A=new Uint8Array(4*h),u.positions=N,u.height=F;var T=0;for(C=0;C<s-1;++C){N[0]=o[C],N[1]=o[C+1],F[0]=c[C],F[1]=c[C+1];var g=y(u);if(D.defined(t))for(var m=g.length/3,P=t[C],_=0;_<m;++_)A[T++]=S.Color.floatToByte(P.red),A[T++]=S.Color.floatToByte(P.green),A[T++]=S.Color.floatToByte(P.blue),A[T++]=S.Color.floatToByte(P.alpha);B.set(g,p),p+=g.length}}else if(u.positions=o,u.height=c,B=new Float64Array(y(u)),D.defined(t)){for(A=new Uint8Array(B.length/3*4),C=0;C<s-1;++C)p=function(e,o,t,r,a,l,i){var n=U.PolylinePipeline.numberOfPoints(e,o,a),s=t.red,p=t.green,d=t.blue,f=t.alpha,e=r.red,o=r.green,a=r.blue,y=r.alpha;if(S.Color.equals(t,r)){for(g=0;g<n;g++)l[i++]=S.Color.floatToByte(s),l[i++]=S.Color.floatToByte(p),l[i++]=S.Color.floatToByte(d),l[i++]=S.Color.floatToByte(f);return i}for(var c=(e-s)/n,u=(o-p)/n,h=(a-d)/n,C=(y-f)/n,T=i,g=0;g<n;g++)l[T++]=S.Color.floatToByte(s+g*c),l[T++]=S.Color.floatToByte(p+g*u),l[T++]=S.Color.floatToByte(d+g*h),l[T++]=S.Color.floatToByte(f+g*C);return T}(o[C],o[C+1],t[C],t[C+1],i,A,p);r=t[s-1];A[p++]=S.Color.floatToByte(r.red),A[p++]=S.Color.floatToByte(r.green),A[p++]=S.Color.floatToByte(r.blue),A[p++]=S.Color.floatToByte(r.alpha)}}else{var b=n?2*s-2:s,B=new Float64Array(3*b),A=D.defined(t)?new Uint8Array(4*b):void 0,E=0,v=0;for(C=0;C<s;++C){var k=o[C];if(n&&0<C&&(L.Cartesian3.pack(k,B,E),E+=3,P=t[C-1],A[v++]=S.Color.floatToByte(P.red),A[v++]=S.Color.floatToByte(P.green),A[v++]=S.Color.floatToByte(P.blue),A[v++]=S.Color.floatToByte(P.alpha)),n&&C===s-1)break;L.Cartesian3.pack(k,B,E),E+=3,D.defined(t)&&(P=t[C],A[v++]=S.Color.floatToByte(P.red),A[v++]=S.Color.floatToByte(P.green),A[v++]=S.Color.floatToByte(P.blue),A[v++]=S.Color.floatToByte(P.alpha))}}var a=new O.GeometryAttributes,l=(a.position=new R.GeometryAttribute({componentDatatype:I.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:B}),D.defined(t)&&(a.color=new R.GeometryAttribute({componentDatatype:I.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:A,normalize:!0})),2*((b=B.length/3)-1)),G=M.IndexDatatype.createTypedArray(b,l),w=0;for(C=0;C<b-1;++C)G[w++]=C,G[w++]=C+1;return new R.Geometry({attributes:a,indices:G,primitiveType:R.PrimitiveType.LINES,boundingSphere:x.BoundingSphere.fromPoints(o)})},function(e,o){return(e=D.defined(o)?f.unpack(e,o):e)._ellipsoid=L.Ellipsoid.clone(e._ellipsoid),f.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./Transforms-c1a1d063","./Color-7daaba04","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolylinePipeline-83139cb3","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-60f10d18","./Plane-43337cee"],function(D,L,V,x,S,I,e,R,O,M,U,o,t,r,a,l,i){function y(e){var o=(e=D.defaultValue(e,D.defaultValue.EMPTY_OBJECT)).positions,t=e.colors,r=D.defaultValue(e.colorsPerVertex,!1),r=(this._positions=o,this._colors=t,this._colorsPerVertex=r,this._arcType=D.defaultValue(e.arcType,V.ArcType.GEODESIC),this._granularity=D.defaultValue(e.granularity,I.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=D.defaultValue(e.ellipsoid,L.Ellipsoid.WGS84),this._workerName="createSimplePolylineGeometry",1+o.length*L.Cartesian3.packedLength);r+=D.defined(t)?1+t.length*S.Color.packedLength:1,this.packedLength=r+L.Ellipsoid.packedLength+3}y.pack=function(e,o,t){t=D.defaultValue(t,0);var r,a=e._positions,l=a.length;for(o[t++]=l,r=0;r<l;++r,t+=L.Cartesian3.packedLength)L.Cartesian3.pack(a[r],o,t);var i=e._colors,l=D.defined(i)?i.length:0;for(o[t++]=l,r=0;r<l;++r,t+=S.Color.packedLength)S.Color.pack(i[r],o,t);return L.Ellipsoid.pack(e._ellipsoid,o,t),t+=L.Ellipsoid.packedLength,o[t++]=e._colorsPerVertex?1:0,o[t++]=e._arcType,o[t]=e._granularity,o},y.unpack=function(e,o,t){o=D.defaultValue(o,0);for(var r=e[o++],a=new Array(r),l=0;l<r;++l,o+=L.Cartesian3.packedLength)a[l]=L.Cartesian3.unpack(e,o);var i=0<(r=e[o++])?new Array(r):void 0;for(l=0;l<r;++l,o+=S.Color.packedLength)i[l]=S.Color.unpack(e,o);var n=L.Ellipsoid.unpack(e,o),s=(o+=L.Ellipsoid.packedLength,1===e[o++]),p=e[o++],d=e[o];return D.defined(t)?(t._positions=a,t._colors=i,t._ellipsoid=n,t._colorsPerVertex=s,t._arcType=p,t._granularity=d,t):new y({positions:a,colors:i,ellipsoid:n,colorsPerVertex:s,arcType:p,granularity:d})};var N=new Array(2),F=new Array(2),H={positions:N,height:F,ellipsoid:void 0,minDistance:void 0,granularity:void 0};return y.createGeometry=function(e){var o=e._positions,t=e._colors,r=e._colorsPerVertex,a=e._arcType,l=e._granularity,e=e._ellipsoid,i=I.CesiumMath.chordLength(l,e.maximumRadius),n=D.defined(t)&&!r,s=o.length,p=0;if(a===V.ArcType.GEODESIC||a===V.ArcType.RHUMB){var d,y,c=a===V.ArcType.GEODESIC?(d=I.CesiumMath.chordLength(l,e.maximumRadius),y=U.PolylinePipeline.numberOfPoints,U.PolylinePipeline.generateArc):(d=l,y=U.PolylinePipeline.numberOfPointsRhumbLine,U.PolylinePipeline.generateRhumbArc),f=U.PolylinePipeline.extractHeights(o,e),u=H;if(a===V.ArcType.GEODESIC?u.minDistance=i:u.granularity=l,u.ellipsoid=e,n){for(var h=0,C=0;C<s-1;C++)h+=y(o[C],o[C+1],d)+1;B=new Float64Array(3*h),A=new Uint8Array(4*h),u.positions=N,u.height=F;var T=0;for(C=0;C<s-1;++C){N[0]=o[C],N[1]=o[C+1],F[0]=f[C],F[1]=f[C+1];var g=c(u);if(D.defined(t))for(var m=g.length/3,b=t[C],P=0;P<m;++P)A[T++]=S.Color.floatToByte(b.red),A[T++]=S.Color.floatToByte(b.green),A[T++]=S.Color.floatToByte(b.blue),A[T++]=S.Color.floatToByte(b.alpha);B.set(g,p),p+=g.length}}else if(u.positions=o,u.height=f,B=new Float64Array(c(u)),D.defined(t)){for(A=new Uint8Array(B.length/3*4),C=0;C<s-1;++C)p=function(e,o,t,r,a,l,i){var n=U.PolylinePipeline.numberOfPoints(e,o,a),s=t.red,p=t.green,d=t.blue,y=t.alpha,e=r.red,o=r.green,a=r.blue,c=r.alpha;if(S.Color.equals(t,r)){for(g=0;g<n;g++)l[i++]=S.Color.floatToByte(s),l[i++]=S.Color.floatToByte(p),l[i++]=S.Color.floatToByte(d),l[i++]=S.Color.floatToByte(y);return i}for(var f=(e-s)/n,u=(o-p)/n,h=(a-d)/n,C=(c-y)/n,T=i,g=0;g<n;g++)l[T++]=S.Color.floatToByte(s+g*f),l[T++]=S.Color.floatToByte(p+g*u),l[T++]=S.Color.floatToByte(d+g*h),l[T++]=S.Color.floatToByte(y+g*C);return T}(o[C],o[C+1],t[C],t[C+1],i,A,p);r=t[s-1];A[p++]=S.Color.floatToByte(r.red),A[p++]=S.Color.floatToByte(r.green),A[p++]=S.Color.floatToByte(r.blue),A[p++]=S.Color.floatToByte(r.alpha)}}else{var _=n?2*s-2:s,B=new Float64Array(3*_),A=D.defined(t)?new Uint8Array(4*_):void 0,E=0,v=0;for(C=0;C<s;++C){var k=o[C];if(n&&0<C&&(L.Cartesian3.pack(k,B,E),E+=3,b=t[C-1],A[v++]=S.Color.floatToByte(b.red),A[v++]=S.Color.floatToByte(b.green),A[v++]=S.Color.floatToByte(b.blue),A[v++]=S.Color.floatToByte(b.alpha)),n&&C===s-1)break;L.Cartesian3.pack(k,B,E),E+=3,D.defined(t)&&(b=t[C],A[v++]=S.Color.floatToByte(b.red),A[v++]=S.Color.floatToByte(b.green),A[v++]=S.Color.floatToByte(b.blue),A[v++]=S.Color.floatToByte(b.alpha))}}var a=new O.GeometryAttributes,l=(a.position=new R.GeometryAttribute({componentDatatype:I.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:B}),D.defined(t)&&(a.color=new R.GeometryAttribute({componentDatatype:I.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:A,normalize:!0})),2*((_=B.length/3)-1)),G=M.IndexDatatype.createTypedArray(_,l),w=0;for(C=0;C<_-1;++C)G[w++]=C,G[w++]=C+1;return new R.Geometry({attributes:a,indices:G,primitiveType:R.PrimitiveType.LINES,boundingSphere:x.BoundingSphere.fromPoints(o)})},function(e,o){return(e=D.defined(o)?y.unpack(e,o):e)._ellipsoid=L.Ellipsoid.clone(e._ellipsoid),y.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./EllipsoidGeometry-3210644c","./VertexFormat-1fc9746e","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(i,o,e,a,n,t,r,s,d,c,l,m,p){function u(e){var t=i.defaultValue(e.radius,1),t={radii:new o.Cartesian3(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,vertexFormat:e.vertexFormat};this._ellipsoidGeometry=new a.EllipsoidGeometry(t),this._workerName="createSphereGeometry"}u.packedLength=a.EllipsoidGeometry.packedLength,u.pack=function(e,t,r){return a.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,r)};var y=new a.EllipsoidGeometry,G={radius:void 0,radii:new o.Cartesian3,vertexFormat:new n.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return u.unpack=function(e,t,r){e=a.EllipsoidGeometry.unpack(e,t,y);return G.vertexFormat=n.VertexFormat.clone(e._vertexFormat,G.vertexFormat),G.stackPartitions=e._stackPartitions,G.slicePartitions=e._slicePartitions,i.defined(r)?(o.Cartesian3.clone(e._radii,G.radii),r._ellipsoidGeometry=new a.EllipsoidGeometry(G),r):(G.radius=e._radii.x,new u(G))},u.createGeometry=function(e){return a.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(e,t){return i.defined(t)&&(e=u.unpack(e,t)),u.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./EllipsoidGeometry-f9bf5c2c","./VertexFormat-1fc9746e","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./combine-276652d0","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(i,o,e,a,n,t,r,s,d,c,l,m,p){function u(e){var t=i.defaultValue(e.radius,1),t={radii:new o.Cartesian3(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,vertexFormat:e.vertexFormat};this._ellipsoidGeometry=new a.EllipsoidGeometry(t),this._workerName="createSphereGeometry"}u.packedLength=a.EllipsoidGeometry.packedLength,u.pack=function(e,t,r){return a.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,r)};var y=new a.EllipsoidGeometry,G={radius:void 0,radii:new o.Cartesian3,vertexFormat:new n.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return u.unpack=function(e,t,r){e=a.EllipsoidGeometry.unpack(e,t,y);return G.vertexFormat=n.VertexFormat.clone(e._vertexFormat,G.vertexFormat),G.stackPartitions=e._stackPartitions,G.slicePartitions=e._slicePartitions,i.defined(r)?(o.Cartesian3.clone(e._radii,G.radii),r._ellipsoidGeometry=new a.EllipsoidGeometry(G),r):(G.radius=e._radii.x,new u(G))},u.createGeometry=function(e){return a.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(e,t){return i.defined(t)&&(e=u.unpack(e,t)),u.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./EllipsoidOutlineGeometry-74494de3","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(n,r,e,o,i,t,s,a,d,l,u,c){function m(e){var i=n.defaultValue(e.radius,1),i={radii:new r.Cartesian3(i,i,i),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,subdivisions:e.subdivisions};this._ellipsoidGeometry=new o.EllipsoidOutlineGeometry(i),this._workerName="createSphereOutlineGeometry"}m.packedLength=o.EllipsoidOutlineGeometry.packedLength,m.pack=function(e,i,t){return o.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};var p=new o.EllipsoidOutlineGeometry,y={radius:void 0,radii:new r.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return m.unpack=function(e,i,t){e=o.EllipsoidOutlineGeometry.unpack(e,i,p);return y.stackPartitions=e._stackPartitions,y.slicePartitions=e._slicePartitions,y.subdivisions=e._subdivisions,n.defined(t)?(r.Cartesian3.clone(e._radii,y.radii),t._ellipsoidGeometry=new o.EllipsoidOutlineGeometry(y),t):(y.radius=e._radii.x,new m(y))},m.createGeometry=function(e){return o.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(e,i){return n.defined(i)&&(e=m.unpack(e,i)),m.createGeometry(e)}});
1
+ define(["./when-ae2e0b60","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./EllipsoidOutlineGeometry-05541945","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./combine-276652d0","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(n,r,e,o,i,t,s,a,d,l,u,c){function m(e){var i=n.defaultValue(e.radius,1),i={radii:new r.Cartesian3(i,i,i),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,subdivisions:e.subdivisions};this._ellipsoidGeometry=new o.EllipsoidOutlineGeometry(i),this._workerName="createSphereOutlineGeometry"}m.packedLength=o.EllipsoidOutlineGeometry.packedLength,m.pack=function(e,i,t){return o.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};var p=new o.EllipsoidOutlineGeometry,y={radius:void 0,radii:new r.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return m.unpack=function(e,i,t){e=o.EllipsoidOutlineGeometry.unpack(e,i,p);return y.stackPartitions=e._stackPartitions,y.slicePartitions=e._slicePartitions,y.subdivisions=e._subdivisions,n.defined(t)?(r.Cartesian3.clone(e._radii,y.radii),t._ellipsoidGeometry=new o.EllipsoidOutlineGeometry(y),t):(y.radius=e._radii.x,new m(y))},m.createGeometry=function(e){return o.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(e,i){return n.defined(i)&&(e=m.unpack(e,i)),m.createGeometry(e)}});
@@ -1 +1 @@
1
- define(["./Transforms-ce414632","./BoxGeometry-ff79c7c4","./Matrix2-59fd2efe","./Color-ff1fdef4","./CylinderGeometry-f85e3294","./when-ae2e0b60","./EllipsoidGeometry-3210644c","./IndexDatatype-6902a37d","./createTaskProcessorWorker","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryOffsetAttribute-8c0bd3ce","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e","./CylinderGeometryLibrary-7afd8cad"],function(S,k,T,V,M,F,B,w,e,t,n,r,a,i,o,d,s,c){function R(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var f=new T.Cartesian3,l=T.Matrix4.packedLength+T.Cartesian3.packedLength,u=T.Matrix4.packedLength+2,h=T.Matrix4.packedLength+T.Cartesian3.packedLength,p=T.Cartesian3.packedLength+1,b={modelMatrix:new T.Matrix4,boundingVolume:new S.BoundingSphere};function A(e,t){var t=t*l,n=T.Cartesian3.unpack(e,t,f),e=(t+=T.Cartesian3.packedLength,T.Matrix4.unpack(e,t,b.modelMatrix)),t=(T.Matrix4.multiplyByScale(e,n,e),b.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,t.center),t.radius=Math.sqrt(3),b}function O(e,t){var t=t*u,n=e[t++],r=e[t++],n=T.Cartesian3.fromElements(n,n,r,f),r=T.Matrix4.unpack(e,t,b.modelMatrix),e=(T.Matrix4.multiplyByScale(r,n,r),b.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,e.center),e.radius=Math.sqrt(2),b}function L(e,t){var t=t*h,n=T.Cartesian3.unpack(e,t,f),e=(t+=T.Cartesian3.packedLength,T.Matrix4.unpack(e,t,b.modelMatrix)),t=(T.Matrix4.multiplyByScale(e,n,e),b.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,t.center),t.radius=1,b}function E(e,t){var t=t*p,n=e[t++],e=T.Cartesian3.unpack(e,t,f),t=T.Matrix4.fromTranslation(e,b.modelMatrix),e=(T.Matrix4.multiplyByUniformScale(t,n,t),b.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,e.center),e.radius=1,b}var Z=new T.Cartesian3;function U(e,t,n,r,a){if(F.defined(t)){for(var i=n.length,o=r.attributes.position.values,d=r.indices,s=e.positions,c=e.vertexBatchIds,f=e.indices,l=e.batchIds,u=e.batchTableColors,h=e.batchedIndices,p=e.indexOffsets,b=e.indexCounts,y=e.boundingVolumes,x=e.modelMatrix,g=e.center,m=e.positionOffset,C=e.batchIdIndex,v=e.indexOffset,I=e.batchedIndicesOffset,k=0;k<i;++k){for(var M=a(t,k),B=M.modelMatrix,w=(T.Matrix4.multiply(x,B,B),n[k]),A=o.length,O=0;O<A;O+=3){var L=T.Cartesian3.unpack(o,O,Z);T.Matrix4.multiplyByPoint(B,L,L),T.Cartesian3.subtract(L,g,L),T.Cartesian3.pack(L,s,3*m+O),c[C++]=w}for(var E=d.length,U=0;U<E;++U)f[v+U]=d[U]+m;var G=k+I;h[G]=new R({offset:v,count:E,color:V.Color.fromRgba(u[w]),batchIds:[w]}),l[G]=w,p[G]=v,b[G]=E,y[G]=S.BoundingSphere.transform(M.boundingVolume,B),m+=A/3,v+=E}e.positionOffset=m,e.batchIdIndex=C,e.indexOffset=v,e.batchedIndicesOffset+=i}}var G=new T.Cartesian3,D=new T.Matrix4;function P(e,t,n){var r=n.length,a=2+r*S.BoundingSphere.packedLength+1+function(e){for(var t=e.length,n=0,r=0;r<t;++r)n+=V.Color.packedLength+3+e[r].batchIds.length;return n}(t),i=new Float64Array(a),o=0;i[o++]=e,i[o++]=r;for(var d=0;d<r;++d)S.BoundingSphere.pack(n[d],i,o),o+=S.BoundingSphere.packedLength;var s=t.length;i[o++]=s;for(var c=0;c<s;++c){var f=t[c],l=(V.Color.pack(f.color,i,o),o+=V.Color.packedLength,i[o++]=f.offset,i[o++]=f.count,f.batchIds),u=l.length;i[o++]=u;for(var h=0;h<u;++h)i[o++]=l[h]}return i}return e(function(e,t){var n=F.defined(e.boxes)?new Float32Array(e.boxes):void 0,r=F.defined(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,a=F.defined(e.cylinders)?new Float32Array(e.cylinders):void 0,i=F.defined(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,o=F.defined(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,d=F.defined(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,s=F.defined(e.spheres)?new Float32Array(e.spheres):void 0,c=F.defined(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,f=F.defined(n)?r.length:0,l=F.defined(a)?i.length:0,u=F.defined(o)?d.length:0,h=F.defined(s)?c.length:0,p=k.BoxGeometry.getUnitBox(),b=M.CylinderGeometry.getUnitCylinder(),y=B.EllipsoidGeometry.getUnitEllipsoid(),x=p.attributes.position.values,g=b.attributes.position.values,m=y.attributes.position.values,x=x.length*f,g=(x=(x+=g.length*l)+m.length*(u+h),p.indices),m=b.indices,g=g.length*f,m=(g=(g+=m.length*l)+y.indices.length*(u+h),new Float32Array(x)),C=new Uint16Array(x/3),x=w.IndexDatatype.createTypedArray(x/3,g),g=f+l+u+h,f=new Uint16Array(g),l=new Array(g),u=new Uint32Array(g),h=new Uint32Array(g),g=new Array(g);v=e.packedBuffer,v=new Float64Array(v),I=0,T.Cartesian3.unpack(v,0,G),I+=T.Cartesian3.packedLength,T.Matrix4.unpack(v,I,D);U(v={batchTableColors:new Uint32Array(e.batchTableColors),positions:m,vertexBatchIds:C,indices:x,batchIds:f,batchedIndices:l,indexOffsets:u,indexCounts:h,boundingVolumes:g,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:D,center:G},n,r,p,A),U(v,a,i,b,O),U(v,o,d,y,L),U(v,s,c,y,E);var v,I=P(x.BYTES_PER_ELEMENT,l,g);return t.push(m.buffer,C.buffer,x.buffer),t.push(f.buffer,u.buffer,h.buffer),t.push(I.buffer),{positions:m.buffer,vertexBatchIds:C.buffer,indices:x.buffer,indexOffsets:u.buffer,indexCounts:h.buffer,batchIds:f.buffer,packedBuffer:I.buffer}})});
1
+ define(["./Transforms-c1a1d063","./BoxGeometry-3318157c","./Matrix2-59fd2efe","./Color-7daaba04","./CylinderGeometry-7205275f","./when-ae2e0b60","./EllipsoidGeometry-f9bf5c2c","./IndexDatatype-6902a37d","./createTaskProcessorWorker","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryOffsetAttribute-8c0bd3ce","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e","./CylinderGeometryLibrary-7afd8cad"],function(S,k,T,V,M,F,B,w,e,t,n,r,a,i,o,d,s,c){function R(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var f=new T.Cartesian3,l=T.Matrix4.packedLength+T.Cartesian3.packedLength,u=T.Matrix4.packedLength+2,h=T.Matrix4.packedLength+T.Cartesian3.packedLength,b=T.Cartesian3.packedLength+1,p={modelMatrix:new T.Matrix4,boundingVolume:new S.BoundingSphere};function A(e,t){var t=t*l,n=T.Cartesian3.unpack(e,t,f),e=(t+=T.Cartesian3.packedLength,T.Matrix4.unpack(e,t,p.modelMatrix)),t=(T.Matrix4.multiplyByScale(e,n,e),p.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,t.center),t.radius=Math.sqrt(3),p}function O(e,t){var t=t*u,n=e[t++],r=e[t++],n=T.Cartesian3.fromElements(n,n,r,f),r=T.Matrix4.unpack(e,t,p.modelMatrix),e=(T.Matrix4.multiplyByScale(r,n,r),p.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,e.center),e.radius=Math.sqrt(2),p}function L(e,t){var t=t*h,n=T.Cartesian3.unpack(e,t,f),e=(t+=T.Cartesian3.packedLength,T.Matrix4.unpack(e,t,p.modelMatrix)),t=(T.Matrix4.multiplyByScale(e,n,e),p.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,t.center),t.radius=1,p}function E(e,t){var t=t*b,n=e[t++],e=T.Cartesian3.unpack(e,t,f),t=T.Matrix4.fromTranslation(e,p.modelMatrix),e=(T.Matrix4.multiplyByUniformScale(t,n,t),p.boundingVolume);return T.Cartesian3.clone(T.Cartesian3.ZERO,e.center),e.radius=1,p}var Z=new T.Cartesian3;function U(e,t,n,r,a){if(F.defined(t)){for(var i=n.length,o=r.attributes.position.values,d=r.indices,s=e.positions,c=e.vertexBatchIds,f=e.indices,l=e.batchIds,u=e.batchTableColors,h=e.batchedIndices,b=e.indexOffsets,p=e.indexCounts,y=e.boundingVolumes,x=e.modelMatrix,g=e.center,m=e.positionOffset,C=e.batchIdIndex,v=e.indexOffset,I=e.batchedIndicesOffset,k=0;k<i;++k){for(var M=a(t,k),B=M.modelMatrix,w=(T.Matrix4.multiply(x,B,B),n[k]),A=o.length,O=0;O<A;O+=3){var L=T.Cartesian3.unpack(o,O,Z);T.Matrix4.multiplyByPoint(B,L,L),T.Cartesian3.subtract(L,g,L),T.Cartesian3.pack(L,s,3*m+O),c[C++]=w}for(var E=d.length,U=0;U<E;++U)f[v+U]=d[U]+m;var G=k+I;h[G]=new R({offset:v,count:E,color:V.Color.fromRgba(u[w]),batchIds:[w]}),l[G]=w,b[G]=v,p[G]=E,y[G]=S.BoundingSphere.transform(M.boundingVolume,B),m+=A/3,v+=E}e.positionOffset=m,e.batchIdIndex=C,e.indexOffset=v,e.batchedIndicesOffset+=i}}var G=new T.Cartesian3,D=new T.Matrix4;function P(e,t,n){var r=n.length,a=2+r*S.BoundingSphere.packedLength+1+function(e){for(var t=e.length,n=0,r=0;r<t;++r)n+=V.Color.packedLength+3+e[r].batchIds.length;return n}(t),i=new Float64Array(a),o=0;i[o++]=e,i[o++]=r;for(var d=0;d<r;++d)S.BoundingSphere.pack(n[d],i,o),o+=S.BoundingSphere.packedLength;var s=t.length;i[o++]=s;for(var c=0;c<s;++c){var f=t[c],l=(V.Color.pack(f.color,i,o),o+=V.Color.packedLength,i[o++]=f.offset,i[o++]=f.count,f.batchIds),u=l.length;i[o++]=u;for(var h=0;h<u;++h)i[o++]=l[h]}return i}return e(function(e,t){var n=F.defined(e.boxes)?new Float32Array(e.boxes):void 0,r=F.defined(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,a=F.defined(e.cylinders)?new Float32Array(e.cylinders):void 0,i=F.defined(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,o=F.defined(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,d=F.defined(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,s=F.defined(e.spheres)?new Float32Array(e.spheres):void 0,c=F.defined(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,f=F.defined(n)?r.length:0,l=F.defined(a)?i.length:0,u=F.defined(o)?d.length:0,h=F.defined(s)?c.length:0,b=k.BoxGeometry.getUnitBox(),p=M.CylinderGeometry.getUnitCylinder(),y=B.EllipsoidGeometry.getUnitEllipsoid(),x=b.attributes.position.values,g=p.attributes.position.values,m=y.attributes.position.values,x=x.length*f,g=(x=(x+=g.length*l)+m.length*(u+h),b.indices),m=p.indices,g=g.length*f,m=(g=(g+=m.length*l)+y.indices.length*(u+h),new Float32Array(x)),C=new Uint16Array(x/3),x=w.IndexDatatype.createTypedArray(x/3,g),g=f+l+u+h,f=new Uint16Array(g),l=new Array(g),u=new Uint32Array(g),h=new Uint32Array(g),g=new Array(g);v=e.packedBuffer,v=new Float64Array(v),I=0,T.Cartesian3.unpack(v,0,G),I+=T.Cartesian3.packedLength,T.Matrix4.unpack(v,I,D);U(v={batchTableColors:new Uint32Array(e.batchTableColors),positions:m,vertexBatchIds:C,indices:x,batchIds:f,batchedIndices:l,indexOffsets:u,indexCounts:h,boundingVolumes:g,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:D,center:G},n,r,b,A),U(v,a,i,p,O),U(v,o,d,y,L),U(v,s,c,y,E);var v,I=P(x.BYTES_PER_ELEMENT,l,g);return t.push(m.buffer,C.buffer,x.buffer),t.push(f.buffer,u.buffer,h.buffer),t.push(I.buffer),{positions:m.buffer,vertexBatchIds:C.buffer,indices:x.buffer,indexOffsets:u.buffer,indexCounts:h.buffer,batchIds:f.buffer,packedBuffer:I.buffer}})});
@@ -1 +1 @@
1
- define(["./AttributeCompression-2f7b45b7","./Matrix2-59fd2efe","./Color-ff1fdef4","./when-ae2e0b60","./IndexDatatype-6902a37d","./ComponentDatatype-b7b5db18","./OrientedBoundingBox-f70d01fe","./createTaskProcessorWorker","./RuntimeError-24b14c10","./Transforms-ce414632","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee"],function(ye,Ce,Ie,xe,we,ve,Ae,e,n,a,r,t,i,o,s,f){var Ee=new Ce.Cartesian3,Ne=new Ce.Ellipsoid,Te=new Ce.Rectangle,Be={min:void 0,max:void 0,indexBytesPerElement:void 0};function ke(e,n,a){var r=n.length,t=2+r*Ae.OrientedBoundingBox.packedLength+1+function(e){for(var n=e.length,a=0,r=0;r<n;++r)a+=Ie.Color.packedLength+3+e[r].batchIds.length;return a}(a),i=new Float64Array(t),o=0;i[o++]=e,i[o++]=r;for(var s=0;s<r;++s)Ae.OrientedBoundingBox.pack(n[s],i,o),o+=Ae.OrientedBoundingBox.packedLength;var f=a.length;i[o++]=f;for(var d=0;d<f;++d){var c=a[d],u=(Ie.Color.pack(c.color,i,o),o+=Ie.Color.packedLength,i[o++]=c.offset,i[o++]=c.count,c.batchIds),h=u.length;i[o++]=h;for(var l=0;l<h;++l)i[o++]=u[l]}return i}var Le=new Ce.Cartesian3,Oe=new Ce.Cartesian3,Ue=new Ce.Cartesian3,Pe=new Ce.Cartesian3,Fe=new Ce.Cartesian3,Se=new Ce.Cartographic,De=new Ce.Rectangle;return e(function(e,D){a=e.packedBuffer,a=new Float64Array(a),S=0,Be.indexBytesPerElement=a[S++],Be.min=a[S++],Be.max=a[S++],Ce.Cartesian3.unpack(a,3,Ee),S+=Ce.Cartesian3.packedLength,Ce.Ellipsoid.unpack(a,S,Ne),S+=Ce.Ellipsoid.packedLength,Ce.Rectangle.unpack(a,S,Te);for(var n=new(2===Be.indexBytesPerElement?Uint16Array:Uint32Array)(e.indices),a=new Uint16Array(e.positions),r=new Uint32Array(e.counts),t=new Uint32Array(e.indexCounts),R=new Uint32Array(e.batchIds),M=new Uint32Array(e.batchTableColors),_=new Array(r.length),G=Ee,i=Ne,o=Te,Y=Be.min,V=Be.max,s=e.minimumHeights,f=e.maximumHeights,d=(xe.defined(s)&&xe.defined(f)&&(s=new Float32Array(s),f=new Float32Array(f)),a.length/2),H=a.subarray(0,d),W=a.subarray(d,2*d),z=(ye.AttributeCompression.zigZagDeltaDecode(H,W),new Float64Array(3*d)),c=0;c<d;++c){var u=H[c],h=W[c],u=ve.CesiumMath.lerp(o.west,o.east,u/32767),h=ve.CesiumMath.lerp(o.south,o.north,h/32767),u=Ce.Cartographic.fromRadians(u,h,0,Se),h=i.cartographicToCartesian(u,Le);Ce.Cartesian3.pack(h,z,3*c)}var l=r.length,Z=new Array(l),g=new Array(l),j=0,q=0;for(c=0;c<l;++c)Z[c]=j,g[c]=q,j+=r[c],q+=t[c];var p=new Float32Array(3*d*2),b=new Uint16Array(2*d),m=new Uint32Array(g.length),y=new Uint32Array(t.length),C=[],I={};for(c=0;c<l;++c)w=M[c],xe.defined(I[w])?(I[w].positionLength+=r[c],I[w].indexLength+=t[c],I[w].batchIds.push(c)):I[w]={positionLength:r[c],indexLength:t[c],offset:0,indexOffset:0,batchIds:[c]};var J,K=0,Q=0;for(w in I)I.hasOwnProperty(w)&&((v=I[w]).offset=K,v.indexOffset=Q,K+=2*v.positionLength,Q+=J=2*v.indexLength+6*v.positionLength,v.indexLength=J);var x=[];for(w in I)I.hasOwnProperty(w)&&(v=I[w],x.push({color:Ie.Color.fromRgba(parseInt(w)),offset:v.indexOffset,count:v.indexLength,batchIds:v.batchIds}));for(c=0;c<l;++c){for(var w,v,A=(v=I[w=M[c]]).offset,E=3*A,N=A,T=Z[c],B=r[c],X=R[c],$=Y,ee=V,ne=(xe.defined(s)&&xe.defined(f)&&($=s[c],ee=f[c]),Number.POSITIVE_INFINITY),ae=Number.NEGATIVE_INFINITY,re=Number.POSITIVE_INFINITY,te=Number.NEGATIVE_INFINITY,k=0;k<B;++k){var L=Ce.Cartesian3.unpack(z,3*T+3*k,Le),O=(i.scaleToGeodeticSurface(L,L),i.cartesianToCartographic(L,Se)),U=O.latitude,O=O.longitude,ne=Math.min(U,ne),ae=Math.max(U,ae),re=Math.min(O,re),te=Math.max(O,te),U=i.geodeticSurfaceNormal(L,Oe),O=Ce.Cartesian3.multiplyByScalar(U,$,Ue),ie=Ce.Cartesian3.add(L,O,Pe),O=Ce.Cartesian3.multiplyByScalar(U,ee,O),U=Ce.Cartesian3.add(L,O,Fe);Ce.Cartesian3.subtract(U,G,U),Ce.Cartesian3.subtract(ie,G,ie),Ce.Cartesian3.pack(U,p,E),Ce.Cartesian3.pack(ie,p,E+3),b[N]=X,b[N+1]=X,E+=6,N+=2}(o=De).west=re,o.east=te,o.south=ne,o.north=ae,_[c]=Ae.OrientedBoundingBox.fromRectangle(o,Y,V,i);var P=v.indexOffset,oe=g[c],se=t[c];for(m[c]=P,k=0;k<se;k+=3){var fe=n[oe+k]-T,de=n[oe+k+1]-T,ce=n[oe+k+2]-T;C[P++]=2*fe+A,C[P++]=2*de+A,C[P++]=2*ce+A,C[P++]=2*ce+1+A,C[P++]=2*de+1+A,C[P++]=2*fe+1+A}for(k=0;k<B;++k){var ue=k,he=(k+1)%B;C[P++]=2*ue+1+A,C[P++]=2*he+A,C[P++]=2*ue+A,C[P++]=2*ue+1+A,C[P++]=2*he+1+A,C[P++]=2*he+A}v.offset+=2*B,v.indexOffset=P,y[c]=P-m[c]}for(var C=we.IndexDatatype.createTypedArray(p.length/3,C),le=x.length,F=0;F<le;++F){for(var ge=x[F].batchIds,pe=0,be=ge.length,me=0;me<be;++me)pe+=y[ge[me]];x[F].count=pe}var S=ke(2===C.BYTES_PER_ELEMENT?we.IndexDatatype.UNSIGNED_SHORT:we.IndexDatatype.UNSIGNED_INT,_,x);return D.push(p.buffer,C.buffer,m.buffer,y.buffer,b.buffer,S.buffer),{positions:p.buffer,indices:C.buffer,indexOffsets:m.buffer,indexCounts:y.buffer,batchIds:b.buffer,packedBuffer:S.buffer}})});
1
+ define(["./AttributeCompression-2f7b45b7","./Matrix2-59fd2efe","./Color-7daaba04","./when-ae2e0b60","./IndexDatatype-6902a37d","./ComponentDatatype-b7b5db18","./OrientedBoundingBox-f3e4df94","./createTaskProcessorWorker","./RuntimeError-24b14c10","./Transforms-c1a1d063","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-4a503a7a","./AxisAlignedBoundingBox-9c01642b","./IntersectionTests-60f10d18","./Plane-43337cee"],function(ye,Ce,Ie,xe,we,ve,Ae,e,n,a,r,t,i,o,s,f){var Ee=new Ce.Cartesian3,Ne=new Ce.Ellipsoid,Te=new Ce.Rectangle,Be={min:void 0,max:void 0,indexBytesPerElement:void 0};function ke(e,n,a){var r=n.length,t=2+r*Ae.OrientedBoundingBox.packedLength+1+function(e){for(var n=e.length,a=0,r=0;r<n;++r)a+=Ie.Color.packedLength+3+e[r].batchIds.length;return a}(a),i=new Float64Array(t),o=0;i[o++]=e,i[o++]=r;for(var s=0;s<r;++s)Ae.OrientedBoundingBox.pack(n[s],i,o),o+=Ae.OrientedBoundingBox.packedLength;var f=a.length;i[o++]=f;for(var d=0;d<f;++d){var c=a[d],u=(Ie.Color.pack(c.color,i,o),o+=Ie.Color.packedLength,i[o++]=c.offset,i[o++]=c.count,c.batchIds),h=u.length;i[o++]=h;for(var l=0;l<h;++l)i[o++]=u[l]}return i}var Le=new Ce.Cartesian3,Oe=new Ce.Cartesian3,Ue=new Ce.Cartesian3,Pe=new Ce.Cartesian3,Fe=new Ce.Cartesian3,Se=new Ce.Cartographic,De=new Ce.Rectangle;return e(function(e,D){a=e.packedBuffer,a=new Float64Array(a),S=0,Be.indexBytesPerElement=a[S++],Be.min=a[S++],Be.max=a[S++],Ce.Cartesian3.unpack(a,3,Ee),S+=Ce.Cartesian3.packedLength,Ce.Ellipsoid.unpack(a,S,Ne),S+=Ce.Ellipsoid.packedLength,Ce.Rectangle.unpack(a,S,Te);for(var n=new(2===Be.indexBytesPerElement?Uint16Array:Uint32Array)(e.indices),a=new Uint16Array(e.positions),r=new Uint32Array(e.counts),t=new Uint32Array(e.indexCounts),R=new Uint32Array(e.batchIds),M=new Uint32Array(e.batchTableColors),_=new Array(r.length),G=Ee,i=Ne,o=Te,Y=Be.min,V=Be.max,s=e.minimumHeights,f=e.maximumHeights,d=(xe.defined(s)&&xe.defined(f)&&(s=new Float32Array(s),f=new Float32Array(f)),a.length/2),H=a.subarray(0,d),W=a.subarray(d,2*d),z=(ye.AttributeCompression.zigZagDeltaDecode(H,W),new Float64Array(3*d)),c=0;c<d;++c){var u=H[c],h=W[c],u=ve.CesiumMath.lerp(o.west,o.east,u/32767),h=ve.CesiumMath.lerp(o.south,o.north,h/32767),u=Ce.Cartographic.fromRadians(u,h,0,Se),h=i.cartographicToCartesian(u,Le);Ce.Cartesian3.pack(h,z,3*c)}var l=r.length,Z=new Array(l),g=new Array(l),j=0,q=0;for(c=0;c<l;++c)Z[c]=j,g[c]=q,j+=r[c],q+=t[c];var p=new Float32Array(3*d*2),b=new Uint16Array(2*d),m=new Uint32Array(g.length),y=new Uint32Array(t.length),C=[],I={};for(c=0;c<l;++c)w=M[c],xe.defined(I[w])?(I[w].positionLength+=r[c],I[w].indexLength+=t[c],I[w].batchIds.push(c)):I[w]={positionLength:r[c],indexLength:t[c],offset:0,indexOffset:0,batchIds:[c]};var J,K=0,Q=0;for(w in I)I.hasOwnProperty(w)&&((v=I[w]).offset=K,v.indexOffset=Q,K+=2*v.positionLength,Q+=J=2*v.indexLength+6*v.positionLength,v.indexLength=J);var x=[];for(w in I)I.hasOwnProperty(w)&&(v=I[w],x.push({color:Ie.Color.fromRgba(parseInt(w)),offset:v.indexOffset,count:v.indexLength,batchIds:v.batchIds}));for(c=0;c<l;++c){for(var w,v,A=(v=I[w=M[c]]).offset,E=3*A,N=A,T=Z[c],B=r[c],X=R[c],$=Y,ee=V,ne=(xe.defined(s)&&xe.defined(f)&&($=s[c],ee=f[c]),Number.POSITIVE_INFINITY),ae=Number.NEGATIVE_INFINITY,re=Number.POSITIVE_INFINITY,te=Number.NEGATIVE_INFINITY,k=0;k<B;++k){var L=Ce.Cartesian3.unpack(z,3*T+3*k,Le),O=(i.scaleToGeodeticSurface(L,L),i.cartesianToCartographic(L,Se)),U=O.latitude,O=O.longitude,ne=Math.min(U,ne),ae=Math.max(U,ae),re=Math.min(O,re),te=Math.max(O,te),U=i.geodeticSurfaceNormal(L,Oe),O=Ce.Cartesian3.multiplyByScalar(U,$,Ue),ie=Ce.Cartesian3.add(L,O,Pe),O=Ce.Cartesian3.multiplyByScalar(U,ee,O),U=Ce.Cartesian3.add(L,O,Fe);Ce.Cartesian3.subtract(U,G,U),Ce.Cartesian3.subtract(ie,G,ie),Ce.Cartesian3.pack(U,p,E),Ce.Cartesian3.pack(ie,p,E+3),b[N]=X,b[N+1]=X,E+=6,N+=2}(o=De).west=re,o.east=te,o.south=ne,o.north=ae,_[c]=Ae.OrientedBoundingBox.fromRectangle(o,Y,V,i);var P=v.indexOffset,oe=g[c],se=t[c];for(m[c]=P,k=0;k<se;k+=3){var fe=n[oe+k]-T,de=n[oe+k+1]-T,ce=n[oe+k+2]-T;C[P++]=2*fe+A,C[P++]=2*de+A,C[P++]=2*ce+A,C[P++]=2*ce+1+A,C[P++]=2*de+1+A,C[P++]=2*fe+1+A}for(k=0;k<B;++k){var ue=k,he=(k+1)%B;C[P++]=2*ue+1+A,C[P++]=2*he+A,C[P++]=2*ue+A,C[P++]=2*ue+1+A,C[P++]=2*he+1+A,C[P++]=2*he+A}v.offset+=2*B,v.indexOffset=P,y[c]=P-m[c]}for(var C=we.IndexDatatype.createTypedArray(p.length/3,C),le=x.length,F=0;F<le;++F){for(var ge=x[F].batchIds,pe=0,be=ge.length,me=0;me<be;++me)pe+=y[ge[me]];x[F].count=pe}var S=ke(2===C.BYTES_PER_ELEMENT?we.IndexDatatype.UNSIGNED_SHORT:we.IndexDatatype.UNSIGNED_INT,_,x);return D.push(p.buffer,C.buffer,m.buffer,y.buffer,b.buffer,S.buffer),{positions:p.buffer,indices:C.buffer,indexOffsets:m.buffer,indexCounts:y.buffer,batchIds:b.buffer,packedBuffer:S.buffer}})});