@mapgis/cesium 17.0.4 → 17.2.2

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 (881) 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 +68 -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 +17 -17
  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 +16 -54
  99. package/Documentation/CutFillAnalysis.html +17 -17
  100. package/Documentation/CuttingTool.html +11 -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 +34 -6
  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 +94 -4
  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 +88 -28
  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 +319 -311
  260. package/Documentation/MapGISM3DTileContent.html +3 -3
  261. package/Documentation/MapGISMapServerImageryProvider.html +4 -4
  262. package/Documentation/MapGISTerrainProvider.html +297 -297
  263. package/Documentation/MapGISTileAvailability.html +1098 -0
  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 +244 -17
  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 +98 -33
  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 +120 -21
  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 +119 -119
  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 +98 -33
  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 +130 -33
  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 +190 -10
  474. package/Documentation/VisiblityAnalysis.html +13 -13
  475. package/Documentation/VisualAnalysisManager.html +179 -7
  476. package/Documentation/Visualizer.html +4 -4
  477. package/Documentation/VoxelPrimitive.html +9 -9
  478. package/Documentation/WallGeometry.html +6 -6
  479. package/Documentation/WallGeometryUpdater.html +3 -3
  480. package/Documentation/WallGraphics.html +17 -17
  481. package/Documentation/WallOutlineGeometry.html +6 -6
  482. package/Documentation/WaterReflection.html +9 -9
  483. package/Documentation/WeatherEffect.html +8 -8
  484. package/Documentation/WebMapServiceImageryProvider.html +36 -36
  485. package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
  486. package/Documentation/WebMercatorProjection.html +97 -7
  487. package/Documentation/WebMercatorTilingScheme.html +10 -10
  488. package/Documentation/WeightSpline.html +7 -7
  489. package/Documentation/WfsProvider.html +9 -9
  490. package/Documentation/Wind3D.html +13 -13
  491. package/Documentation/WindowLightEffect.html +4 -4
  492. package/Documentation/ZoomNavigationControl.html +5 -5
  493. package/Documentation/global.html +141 -141
  494. package/Documentation/global.html#ArcType +4 -4
  495. package/Documentation/global.html#Axis +11 -11
  496. package/Documentation/global.html#BaiduProject +19 -19
  497. package/Documentation/global.html#BingMapsStyle +11 -11
  498. package/Documentation/global.html#BlendEquation +6 -6
  499. package/Documentation/global.html#BlendFunction +16 -16
  500. package/Documentation/global.html#BlendOption +4 -4
  501. package/Documentation/global.html#CameraEventType +6 -6
  502. package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
  503. package/Documentation/global.html#ClassificationType +4 -4
  504. package/Documentation/global.html#ClippingGeometryType +8 -8
  505. package/Documentation/global.html#ClockRange +4 -4
  506. package/Documentation/global.html#ClockStep +4 -4
  507. package/Documentation/global.html#ColorBlendMode +4 -4
  508. package/Documentation/global.html#ComponentDatatype +15 -15
  509. package/Documentation/global.html#CoordnateTransform +6 -6
  510. package/Documentation/global.html#CornerType +4 -4
  511. package/Documentation/global.html#CullFace +4 -4
  512. package/Documentation/global.html#DepthFunction +9 -9
  513. package/Documentation/global.html#ExtrapolationType +4 -4
  514. package/Documentation/global.html#GeocodeType +3 -3
  515. package/Documentation/global.html#HeightReference +4 -4
  516. package/Documentation/global.html#HeightmapEncoding +3 -3
  517. package/Documentation/global.html#HorizontalOrigin +4 -4
  518. package/Documentation/global.html#ImagerySplitDirection +4 -4
  519. package/Documentation/global.html#IndexDatatype +9 -9
  520. package/Documentation/global.html#InterceptorsUtil +1 -1
  521. package/Documentation/global.html#Intersect +4 -4
  522. package/Documentation/global.html#IonWorldImageryStyle +4 -4
  523. package/Documentation/global.html#KeyboardEventModifier +4 -4
  524. package/Documentation/global.html#LabelStyle +4 -4
  525. package/Documentation/global.html#LightingMode +3 -3
  526. package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
  527. package/Documentation/global.html#MapMode2D +3 -3
  528. package/Documentation/global.html#ModelAnimationLoop +4 -4
  529. package/Documentation/global.html#ModelExplosionType +5 -5
  530. package/Documentation/global.html#OutlineRenderMode +4 -4
  531. package/Documentation/global.html#Pass +17 -17
  532. package/Documentation/global.html#PixelDatatype +10 -10
  533. package/Documentation/global.html#PixelFormat +21 -21
  534. package/Documentation/global.html#PointLight +1 -1
  535. package/Documentation/global.html#PostProcessStageSampleMode +3 -3
  536. package/Documentation/global.html#PrimitiveType +8 -8
  537. package/Documentation/global.html#ReferenceFrame +3 -3
  538. package/Documentation/global.html#RequestState +7 -7
  539. package/Documentation/global.html#RequestType +5 -5
  540. package/Documentation/global.html#SceneMode +6 -6
  541. package/Documentation/global.html#ScreenSpaceEventType +16 -16
  542. package/Documentation/global.html#SectionRender +1 -1
  543. package/Documentation/global.html#ShadowMode +5 -5
  544. package/Documentation/global.html#ShadowRateDrawCommand +3 -3
  545. package/Documentation/global.html#SpotLight +1 -1
  546. package/Documentation/global.html#Spyglass +1 -1
  547. package/Documentation/global.html#StencilFunction +9 -9
  548. package/Documentation/global.html#StencilOperation +9 -9
  549. package/Documentation/global.html#StripeOrientation +3 -3
  550. package/Documentation/global.html#SwipeModeType +7 -7
  551. package/Documentation/global.html#SwiperController +1 -1
  552. package/Documentation/global.html#TextureMagnificationFilter +3 -3
  553. package/Documentation/global.html#TextureMinificationFilter +7 -7
  554. package/Documentation/global.html#TimeStandard +3 -3
  555. package/Documentation/global.html#TopoJSONUtil +1 -1
  556. package/Documentation/global.html#UrlUtil +1 -1
  557. package/Documentation/global.html#VerticalOrigin +5 -5
  558. package/Documentation/global.html#Visibility +4 -4
  559. package/Documentation/global.html#WebGLConstants +583 -583
  560. package/Documentation/global.html#WindingOrder +3 -3
  561. package/Documentation/global.html#XmlUtil +137 -2
  562. package/Documentation/global.html#angle +1 -1
  563. package/Documentation/global.html#barycentricCoordinates +1 -1
  564. package/Documentation/global.html#binarySearch +1 -1
  565. package/Documentation/global.html#binarySearchComparator +1 -1
  566. package/Documentation/global.html#buildModuleUrl +3 -3
  567. package/Documentation/global.html#cancelAnimationFrame +1 -1
  568. package/Documentation/global.html#clippingFillImage +1 -1
  569. package/Documentation/global.html#clone +1 -1
  570. package/Documentation/global.html#color +3 -3
  571. package/Documentation/global.html#combine +1 -1
  572. package/Documentation/global.html#createCommand +1 -1
  573. package/Documentation/global.html#createCommonTileInfo +3 -1
  574. package/Documentation/global.html#createElevationBandMaterial +1 -1
  575. package/Documentation/global.html#createElevationBandMaterialBand +1 -1
  576. package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
  577. package/Documentation/global.html#createGuid +1 -1
  578. package/Documentation/global.html#createOsmBuildings +1 -1
  579. package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
  580. package/Documentation/global.html#createWorldImagery +1 -1
  581. package/Documentation/global.html#createWorldTerrain +1 -1
  582. package/Documentation/global.html#decay +2 -2
  583. package/Documentation/global.html#defaultValue +2 -2
  584. package/Documentation/global.html#defined +1 -1
  585. package/Documentation/global.html#destroyObject +1 -1
  586. package/Documentation/global.html#direction +2 -2
  587. package/Documentation/global.html#distance +2 -2
  588. package/Documentation/global.html#enableExplosion +1 -1
  589. package/Documentation/global.html#exportKml +1 -1
  590. package/Documentation/global.html#exportKmlModelCallback +1 -1
  591. package/Documentation/global.html#exportKmlResultKml +1 -1
  592. package/Documentation/global.html#exportKmlResultKmz +1 -1
  593. package/Documentation/global.html#formatError +1 -1
  594. package/Documentation/global.html#getAbsoluteUri +1 -1
  595. package/Documentation/global.html#getBaseUri +1 -1
  596. package/Documentation/global.html#getExtensionFromUri +1 -1
  597. package/Documentation/global.html#getFilenameFromUri +1 -1
  598. package/Documentation/global.html#getImagePixels +1 -1
  599. package/Documentation/global.html#getLayerToUse +150 -0
  600. package/Documentation/global.html#getTimestamp +1 -1
  601. package/Documentation/global.html#getViewModel +1 -1
  602. package/Documentation/global.html#hasText +1 -1
  603. package/Documentation/global.html#id +3 -3
  604. package/Documentation/global.html#intensity +3 -3
  605. package/Documentation/global.html#isGeographic +1 -1
  606. package/Documentation/global.html#isLeapYear +1 -1
  607. package/Documentation/global.html#mergeSort +1 -1
  608. package/Documentation/global.html#mergeSortComparator +1 -1
  609. package/Documentation/global.html#objectToQuery +1 -1
  610. package/Documentation/global.html#penumbra +1 -1
  611. package/Documentation/global.html#pointInsideTriangle +1 -1
  612. package/Documentation/global.html#position +2 -2
  613. package/Documentation/global.html#queryToObject +1 -1
  614. package/Documentation/global.html#requestAnimationFrame +1 -1
  615. package/Documentation/global.html#requestAnimationFrameCallback +1 -1
  616. package/Documentation/global.html#sampleTerrain +1 -1
  617. package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
  618. package/Documentation/global.html#show +1 -1
  619. package/Documentation/global.html#startTime +1 -1
  620. package/Documentation/global.html#subdivideArray +1 -1
  621. package/Documentation/global.html#terrainProvider +1 -1
  622. package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
  623. package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
  624. package/Documentation/global.html#viewerDragDropMixin +8 -8
  625. package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
  626. package/Documentation/global.html#writeTextToCanvas +1 -1
  627. package/Documentation/types.txt +1 -1
  628. package/README.md +91 -25
  629. package/dist/Cesium.d.ts +719 -84
  630. package/dist/Cesium.js +298 -19
  631. package/dist/Workers/Color-ff1fdef4.js +1 -0
  632. package/dist/Workers/PrimitivePipeline-a7cf99d1.js +1 -0
  633. package/dist/Workers/combineGeometry.js +1 -1
  634. package/dist/Workers/createBoxGeometry.js +1 -1
  635. package/dist/Workers/createBoxOutlineGeometry.js +1 -1
  636. package/dist/Workers/createCircleGeometry.js +1 -1
  637. package/dist/Workers/createCircleOutlineGeometry.js +1 -1
  638. package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
  639. package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  640. package/dist/Workers/createCorridorGeometry.js +1 -1
  641. package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
  642. package/dist/Workers/createCylinderGeometry.js +1 -1
  643. package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
  644. package/dist/Workers/createEllipseGeometry.js +1 -1
  645. package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
  646. package/dist/Workers/createEllipsoidGeometry.js +1 -1
  647. package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
  648. package/dist/Workers/createFrustumGeometry.js +1 -1
  649. package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
  650. package/dist/Workers/createGeometry.js +1 -1
  651. package/dist/Workers/createGroundPolylineGeometry.js +1 -1
  652. package/dist/Workers/createPlaneGeometry.js +1 -1
  653. package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
  654. package/dist/Workers/createPolygonGeometry.js +1 -1
  655. package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
  656. package/dist/Workers/createPolylineGeometry.js +1 -1
  657. package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
  658. package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  659. package/dist/Workers/createRectangleGeometry.js +1 -1
  660. package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
  661. package/dist/Workers/createSimplePolylineGeometry.js +1 -1
  662. package/dist/Workers/createSphereGeometry.js +1 -1
  663. package/dist/Workers/createSphereOutlineGeometry.js +1 -1
  664. package/dist/Workers/createVectorTileGeometries.js +1 -1
  665. package/dist/Workers/createVectorTilePolygons.js +1 -1
  666. package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  667. package/dist/Workers/createVerticesFromHeightmap.js +1 -1
  668. package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  669. package/dist/Workers/createWallGeometry.js +1 -1
  670. package/dist/Workers/createWallOutlineGeometry.js +1 -1
  671. package/dist/Workers/uncompressZip.js +1 -1
  672. package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  673. package/package.json +1 -1
  674. package/Documentation/M3DTile.html +0 -854
  675. package/Documentation/M3DTileFeature.html +0 -1113
  676. package/Documentation/M3DTileset.html +0 -4589
  677. package/Documentation/global.html#inherits +0 -150
  678. package/dist/ThirdParty/unzip.min.js +0 -1
  679. package/dist/Workers/AttributeCompression-7a920947.js +0 -1
  680. package/dist/Workers/AttributeCompression-b9605c73.js +0 -1
  681. package/dist/Workers/AttributeCompression-ceaf1f7d.js +0 -1
  682. package/dist/Workers/AxisAlignedBoundingBox-3005be1a.js +0 -1
  683. package/dist/Workers/AxisAlignedBoundingBox-6524b214.js +0 -1
  684. package/dist/Workers/AxisAlignedBoundingBox-73a9d462.js +0 -1
  685. package/dist/Workers/AxisAlignedBoundingBox-cf02d6c7.js +0 -1
  686. package/dist/Workers/AxisAlignedBoundingBox-d2a93b66.js +0 -1
  687. package/dist/Workers/AxisAlignedBoundingBox-fe8fad3e.js +0 -1
  688. package/dist/Workers/BoundingRectangle-2bb5d73d.js +0 -1
  689. package/dist/Workers/BoundingRectangle-487613f3.js +0 -1
  690. package/dist/Workers/BoundingRectangle-7f4e0022.js +0 -1
  691. package/dist/Workers/BoundingRectangle-8d042be0.js +0 -1
  692. package/dist/Workers/BoundingRectangle-b3ae8525.js +0 -1
  693. package/dist/Workers/BoundingRectangle-ce593811.js +0 -1
  694. package/dist/Workers/BoxGeometry-2d60329e.js +0 -1
  695. package/dist/Workers/BoxGeometry-3726be8b.js +0 -1
  696. package/dist/Workers/BoxGeometry-76f70c3f.js +0 -1
  697. package/dist/Workers/BoxGeometry-91ce90fe.js +0 -1
  698. package/dist/Workers/BoxGeometry-d1b4ef4f.js +0 -1
  699. package/dist/Workers/BoxGeometry-f55ff093.js +0 -1
  700. package/dist/Workers/Cartesian2-078e6458.js +0 -1
  701. package/dist/Workers/Cartesian2-c1eb9da0.js +0 -1
  702. package/dist/Workers/Check-f996273c.js +0 -1
  703. package/dist/Workers/Color-3aa21182.js +0 -1
  704. package/dist/Workers/Color-527894a9.js +0 -1
  705. package/dist/Workers/Color-68105b00.js +0 -1
  706. package/dist/Workers/Color-d7f86623.js +0 -1
  707. package/dist/Workers/Color-e9b0b56b.js +0 -1
  708. package/dist/Workers/Color-fb7b0391.js +0 -1
  709. package/dist/Workers/ComponentDatatype-e44126e4.js +0 -1
  710. package/dist/Workers/CoplanarPolygonGeometryLibrary-4529853e.js +0 -1
  711. package/dist/Workers/CoplanarPolygonGeometryLibrary-bd04145a.js +0 -1
  712. package/dist/Workers/CoplanarPolygonGeometryLibrary-c9ea5c4a.js +0 -1
  713. package/dist/Workers/CoplanarPolygonGeometryLibrary-cd63dc83.js +0 -1
  714. package/dist/Workers/CoplanarPolygonGeometryLibrary-df225097.js +0 -1
  715. package/dist/Workers/CoplanarPolygonGeometryLibrary-ed9489b1.js +0 -1
  716. package/dist/Workers/CorridorGeometryLibrary-259dc831.js +0 -1
  717. package/dist/Workers/CorridorGeometryLibrary-353eec0a.js +0 -1
  718. package/dist/Workers/CorridorGeometryLibrary-4c3150e8.js +0 -1
  719. package/dist/Workers/CorridorGeometryLibrary-6546be88.js +0 -1
  720. package/dist/Workers/CorridorGeometryLibrary-83c470f2.js +0 -1
  721. package/dist/Workers/CorridorGeometryLibrary-90fffecc.js +0 -1
  722. package/dist/Workers/CylinderGeometry-325283f2.js +0 -1
  723. package/dist/Workers/CylinderGeometry-5f25fc13.js +0 -1
  724. package/dist/Workers/CylinderGeometry-6c32efdc.js +0 -1
  725. package/dist/Workers/CylinderGeometry-7cfc0752.js +0 -1
  726. package/dist/Workers/CylinderGeometry-a8375e63.js +0 -1
  727. package/dist/Workers/CylinderGeometry-c16b0480.js +0 -1
  728. package/dist/Workers/CylinderGeometryLibrary-88cb80d2.js +0 -1
  729. package/dist/Workers/EllipseGeometry-4dc2f3cd.js +0 -1
  730. package/dist/Workers/EllipseGeometry-5bc7efb7.js +0 -1
  731. package/dist/Workers/EllipseGeometry-7ba3aa6f.js +0 -1
  732. package/dist/Workers/EllipseGeometry-9a5145f6.js +0 -1
  733. package/dist/Workers/EllipseGeometry-a00d9fde.js +0 -1
  734. package/dist/Workers/EllipseGeometry-d5153296.js +0 -1
  735. package/dist/Workers/EllipseGeometryLibrary-46efe941.js +0 -1
  736. package/dist/Workers/EllipseGeometryLibrary-4c7e22bb.js +0 -1
  737. package/dist/Workers/EllipseGeometryLibrary-716ccbc1.js +0 -1
  738. package/dist/Workers/EllipseGeometryLibrary-8b1f8e47.js +0 -1
  739. package/dist/Workers/EllipseGeometryLibrary-9dd8ed16.js +0 -1
  740. package/dist/Workers/EllipseGeometryLibrary-cde71e7f.js +0 -1
  741. package/dist/Workers/EllipseOutlineGeometry-18088f7f.js +0 -1
  742. package/dist/Workers/EllipseOutlineGeometry-5b7ad7d6.js +0 -1
  743. package/dist/Workers/EllipseOutlineGeometry-72c1fd73.js +0 -1
  744. package/dist/Workers/EllipseOutlineGeometry-97648130.js +0 -1
  745. package/dist/Workers/EllipseOutlineGeometry-c0b0a9a4.js +0 -1
  746. package/dist/Workers/EllipseOutlineGeometry-e46b4af5.js +0 -1
  747. package/dist/Workers/EllipsoidGeodesic-2992081b.js +0 -1
  748. package/dist/Workers/EllipsoidGeodesic-a0581819.js +0 -1
  749. package/dist/Workers/EllipsoidGeodesic-e1197ec2.js +0 -1
  750. package/dist/Workers/EllipsoidGeometry-5af792d2.js +0 -1
  751. package/dist/Workers/EllipsoidGeometry-751dd3dc.js +0 -1
  752. package/dist/Workers/EllipsoidGeometry-9c399bf7.js +0 -1
  753. package/dist/Workers/EllipsoidGeometry-ad61339f.js +0 -1
  754. package/dist/Workers/EllipsoidGeometry-d0a3d570.js +0 -1
  755. package/dist/Workers/EllipsoidGeometry-d28fa7b5.js +0 -1
  756. package/dist/Workers/EllipsoidOutlineGeometry-14372733.js +0 -1
  757. package/dist/Workers/EllipsoidOutlineGeometry-34940155.js +0 -1
  758. package/dist/Workers/EllipsoidOutlineGeometry-8ca051b2.js +0 -1
  759. package/dist/Workers/EllipsoidOutlineGeometry-aa49f341.js +0 -1
  760. package/dist/Workers/EllipsoidOutlineGeometry-bf6fec74.js +0 -1
  761. package/dist/Workers/EllipsoidOutlineGeometry-f557c9da.js +0 -1
  762. package/dist/Workers/EllipsoidRhumbLine-2fd480f5.js +0 -1
  763. package/dist/Workers/EllipsoidRhumbLine-809f5074.js +0 -1
  764. package/dist/Workers/EllipsoidRhumbLine-d9133c69.js +0 -1
  765. package/dist/Workers/EllipsoidTangentPlane-2b15994f.js +0 -1
  766. package/dist/Workers/EllipsoidTangentPlane-67eb8fd7.js +0 -1
  767. package/dist/Workers/EllipsoidTangentPlane-7e7cce04.js +0 -1
  768. package/dist/Workers/EllipsoidTangentPlane-badcc339.js +0 -1
  769. package/dist/Workers/EllipsoidTangentPlane-d5fd24ed.js +0 -1
  770. package/dist/Workers/EllipsoidTangentPlane-eed317db.js +0 -1
  771. package/dist/Workers/EncodedCartesian3-6f721b97.js +0 -1
  772. package/dist/Workers/EncodedCartesian3-9b5052a5.js +0 -1
  773. package/dist/Workers/EncodedCartesian3-ac19e14b.js +0 -1
  774. package/dist/Workers/FrustumGeometry-38234739.js +0 -1
  775. package/dist/Workers/FrustumGeometry-697158a6.js +0 -1
  776. package/dist/Workers/FrustumGeometry-705dc598.js +0 -1
  777. package/dist/Workers/FrustumGeometry-7cc95152.js +0 -1
  778. package/dist/Workers/FrustumGeometry-a0988373.js +0 -1
  779. package/dist/Workers/FrustumGeometry-bf3f376b.js +0 -1
  780. package/dist/Workers/FullArray.js +0 -1
  781. package/dist/Workers/GeometryAttribute-51995e5a.js +0 -1
  782. package/dist/Workers/GeometryAttribute-8106b887.js +0 -1
  783. package/dist/Workers/GeometryAttribute-9cc31675.js +0 -1
  784. package/dist/Workers/GeometryAttribute-ccf4e0b6.js +0 -1
  785. package/dist/Workers/GeometryAttribute-e03451d8.js +0 -1
  786. package/dist/Workers/GeometryAttribute-e89ef932.js +0 -1
  787. package/dist/Workers/GeometryInstance-083d7584.js +0 -1
  788. package/dist/Workers/GeometryInstance-3287a41d.js +0 -1
  789. package/dist/Workers/GeometryInstance-5729d1a7.js +0 -1
  790. package/dist/Workers/GeometryInstance-75eda02f.js +0 -1
  791. package/dist/Workers/GeometryInstance-a24fc358.js +0 -1
  792. package/dist/Workers/GeometryInstance-a29ed6fd.js +0 -1
  793. package/dist/Workers/GeometryOffsetAttribute-b02d5bb9.js +0 -1
  794. package/dist/Workers/GeometryPipeline-160871a5.js +0 -1
  795. package/dist/Workers/GeometryPipeline-21c7c817.js +0 -1
  796. package/dist/Workers/GeometryPipeline-46833021.js +0 -1
  797. package/dist/Workers/GeometryPipeline-64734a0f.js +0 -1
  798. package/dist/Workers/GeometryPipeline-868a22d5.js +0 -1
  799. package/dist/Workers/GeometryPipeline-dd278883.js +0 -1
  800. package/dist/Workers/IndexDatatype-516320ea.js +0 -1
  801. package/dist/Workers/IntersectionTests-318fd637.js +0 -1
  802. package/dist/Workers/IntersectionTests-46ce3a3a.js +0 -1
  803. package/dist/Workers/IntersectionTests-5403be00.js +0 -1
  804. package/dist/Workers/IntersectionTests-7cdfef0c.js +0 -1
  805. package/dist/Workers/IntersectionTests-ca6d4041.js +0 -1
  806. package/dist/Workers/IntersectionTests-f3d5850d.js +0 -1
  807. package/dist/Workers/Math-5bbcea10.js +0 -1
  808. package/dist/Workers/Matrix2-10a61a55.js +0 -1
  809. package/dist/Workers/OrientedBoundingBox-2f174fe3.js +0 -1
  810. package/dist/Workers/OrientedBoundingBox-6c372bbc.js +0 -1
  811. package/dist/Workers/OrientedBoundingBox-6eb17dbb.js +0 -1
  812. package/dist/Workers/OrientedBoundingBox-6ff47a8a.js +0 -1
  813. package/dist/Workers/OrientedBoundingBox-a6a4c32b.js +0 -1
  814. package/dist/Workers/OrientedBoundingBox-d8d60f95.js +0 -1
  815. package/dist/Workers/Plane-0ec594f2.js +0 -1
  816. package/dist/Workers/Plane-0f30f65b.js +0 -1
  817. package/dist/Workers/Plane-d53c8e90.js +0 -1
  818. package/dist/Workers/Plane-f7823f4c.js +0 -1
  819. package/dist/Workers/Plane-fa12edbb.js +0 -1
  820. package/dist/Workers/Plane-fa98d6ca.js +0 -1
  821. package/dist/Workers/PolygonGeometryLibrary-1b173d8c.js +0 -1
  822. package/dist/Workers/PolygonGeometryLibrary-2394a24c.js +0 -1
  823. package/dist/Workers/PolygonGeometryLibrary-336d42f5.js +0 -1
  824. package/dist/Workers/PolygonGeometryLibrary-5bb2def1.js +0 -1
  825. package/dist/Workers/PolygonGeometryLibrary-c4287ef2.js +0 -1
  826. package/dist/Workers/PolygonGeometryLibrary-e7ef9273.js +0 -1
  827. package/dist/Workers/PolygonPipeline-01006d79.js +0 -1
  828. package/dist/Workers/PolygonPipeline-19b66f06.js +0 -1
  829. package/dist/Workers/PolygonPipeline-37a33a39.js +0 -1
  830. package/dist/Workers/PolygonPipeline-5983aa11.js +0 -1
  831. package/dist/Workers/PolygonPipeline-7c54e19e.js +0 -1
  832. package/dist/Workers/PolygonPipeline-d1b4c320.js +0 -1
  833. package/dist/Workers/PolylinePipeline-45329d56.js +0 -1
  834. package/dist/Workers/PolylinePipeline-6484d4ee.js +0 -1
  835. package/dist/Workers/PolylinePipeline-971ba240.js +0 -1
  836. package/dist/Workers/PolylinePipeline-d5024385.js +0 -1
  837. package/dist/Workers/PolylinePipeline-d59947c4.js +0 -1
  838. package/dist/Workers/PolylinePipeline-eeb6f648.js +0 -1
  839. package/dist/Workers/PolylineVolumeGeometryLibrary-2f82c4db.js +0 -1
  840. package/dist/Workers/PolylineVolumeGeometryLibrary-81481506.js +0 -1
  841. package/dist/Workers/PolylineVolumeGeometryLibrary-955f4335.js +0 -1
  842. package/dist/Workers/PolylineVolumeGeometryLibrary-d57282e3.js +0 -1
  843. package/dist/Workers/PolylineVolumeGeometryLibrary-e2e6c33b.js +0 -1
  844. package/dist/Workers/PolylineVolumeGeometryLibrary-e435332a.js +0 -1
  845. package/dist/Workers/PrimitivePipeline-100ea173.js +0 -1
  846. package/dist/Workers/PrimitivePipeline-757ec521.js +0 -1
  847. package/dist/Workers/PrimitivePipeline-928d43fe.js +0 -1
  848. package/dist/Workers/PrimitivePipeline-986742a6.js +0 -1
  849. package/dist/Workers/PrimitivePipeline-9deb0937.js +0 -1
  850. package/dist/Workers/PrimitivePipeline-b3cc986b.js +0 -1
  851. package/dist/Workers/PrimitivePipeline-ed7c0918.js +0 -1
  852. package/dist/Workers/RectangleGeometryLibrary-02221243.js +0 -1
  853. package/dist/Workers/RectangleGeometryLibrary-336b3589.js +0 -1
  854. package/dist/Workers/RectangleGeometryLibrary-3c449dce.js +0 -1
  855. package/dist/Workers/RectangleGeometryLibrary-44075333.js +0 -1
  856. package/dist/Workers/RectangleGeometryLibrary-9e402320.js +0 -1
  857. package/dist/Workers/RectangleGeometryLibrary-af611323.js +0 -1
  858. package/dist/Workers/RuntimeError-ac2797b4.js +0 -1
  859. package/dist/Workers/TerrainEncoding-03f4779b.js +0 -1
  860. package/dist/Workers/TerrainEncoding-652abf1d.js +0 -1
  861. package/dist/Workers/TerrainEncoding-6f894d6e.js +0 -1
  862. package/dist/Workers/TerrainEncoding-7ea7a6aa.js +0 -1
  863. package/dist/Workers/TerrainEncoding-a621a0f9.js +0 -1
  864. package/dist/Workers/TerrainEncoding-d2f48ea1.js +0 -1
  865. package/dist/Workers/Transforms-1fa85493.js +0 -1
  866. package/dist/Workers/Transforms-5aeb1d5e.js +0 -1
  867. package/dist/Workers/Transforms-70ded1e8.js +0 -1
  868. package/dist/Workers/Transforms-713e2e92.js +0 -1
  869. package/dist/Workers/Transforms-8c8e0c6f.js +0 -1
  870. package/dist/Workers/Transforms-984eb057.js +0 -1
  871. package/dist/Workers/VertexFormat-90d15264.js +0 -1
  872. package/dist/Workers/WallGeometryLibrary-40d299b6.js +0 -1
  873. package/dist/Workers/WallGeometryLibrary-5386b8d1.js +0 -1
  874. package/dist/Workers/WallGeometryLibrary-62af8286.js +0 -1
  875. package/dist/Workers/WallGeometryLibrary-8e2f0582.js +0 -1
  876. package/dist/Workers/WallGeometryLibrary-c815a7b8.js +0 -1
  877. package/dist/Workers/WallGeometryLibrary-fcee93b1.js +0 -1
  878. package/dist/Workers/WebMercatorProjection-941959a9.js +0 -1
  879. package/dist/Workers/WebMercatorProjection-9d47817f.js +0 -1
  880. package/dist/Workers/WebMercatorProjection-e6de5e67.js +0 -1
  881. package/dist/Workers/arrayRemoveDuplicates-bdf50aa0.js +0 -1
@@ -1 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./GeometryOffsetAttribute-8c0bd3ce","./BoundingRectangle-2fee92a2","./Transforms-3bc98d07","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./EllipsoidGeodesic-640f147e","./EllipsoidTangentPlane-0cf355bc","./GeometryAttribute-dff85b2b","./GeometryInstance-e2137e03","./GeometryPipeline-74305cde","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-047ad96c","./PolygonPipeline-ea1c8d04","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./AxisAlignedBoundingBox-9ec4e335","./IntersectionTests-d0a84f0f","./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-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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-3bc98d07","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./EllipsoidTangentPlane-0cf355bc","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-74305cde","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-047ad96c","./PolygonPipeline-ea1c8d04","./combine-276652d0","./WebGLConstants-35626ea2","./AxisAlignedBoundingBox-9ec4e335","./IntersectionTests-d0a84f0f","./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 c(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}c.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 g=d.Ellipsoid.clone(d.Ellipsoid.UNIT_SPHERE),f={polygonHierarchy:{}};return c.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,g)),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 c(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},c.fromPositions=function(e){return new c({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})},c.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=[],c=A.CesiumMath.chordLength(i,t.maximumRadius),g=e._height,f=e._extrudedHeight;if(e._perPositionHeightExtrude||!A.CesiumMath.equalsEpsilon(g,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?c=O.PolygonGeometryLibrary.subdivideLine(t[b],t[(b+1)%l],i,D):o===E.ArcType.RHUMB&&(c=O.PolygonGeometryLibrary.subdivideRhumbLine(e,t[b],t[(b+1)%l],i,D));for(var c,g=c.length,f=0;f<g;++f)n[y++]=c[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],c,r,o)).geometry=O.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(y.geometry,g,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,c=d.length,g=0;g<c;++g)n[s++]=d[g]}}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],c,r,o)).geometry.attributes.position.values=x.PolygonPipeline.scaleToGeodeticHeight(y.geometry.attributes.position.values,g,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)?c.unpack(e,t):e)._ellipsoid=d.Ellipsoid.clone(e._ellipsoid),c.createGeometry(e)}});
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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./Transforms-3bc98d07","./Color-9d5d2c3d","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolylinePipeline-5ce4be00","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-d0a84f0f","./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 b=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=b.length,A=0;A<B;++A)C[v++]=b[A];else for(A=0;A<_;++A)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 E,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(A=0;A<u;++A){0===A?(J.Cartesian3.subtract(c[0],c[1],E=ae),J.Cartesian3.add(c[0],E,E)):E=c[A-1],J.Cartesian3.clone(E,ie),J.Cartesian3.clone(c[A],ne),A===u-1?(J.Cartesian3.subtract(c[u-1],c[u-2],E=ae),J.Cartesian3.add(c[u-1],E,E)):E=c[A+1],J.Cartesian3.clone(E,le),z.defined(T)&&(P=0===A||i?n[A]:n[A-1],A!==u-1)&&(U=n[A]);for(var Y=A===u-1?2:4,L=0===A?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++]=A/(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(A=0;A<q;++A)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-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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-2fee92a2","./Transforms-3bc98d07","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-aaaa4829","./RuntimeError-24b14c10","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./GeometryPipeline-74305cde","./IndexDatatype-6902a37d","./PolygonPipeline-ea1c8d04","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-0cf355bc","./AxisAlignedBoundingBox-9ec4e335","./IntersectionTests-d0a84f0f","./Plane-43337cee","./PolylinePipeline-5ce4be00","./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-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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-2fee92a2","./Transforms-3bc98d07","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-aaaa4829","./RuntimeError-24b14c10","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-ea1c8d04","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-0cf355bc","./AxisAlignedBoundingBox-9ec4e335","./IntersectionTests-d0a84f0f","./Plane-43337cee","./PolylinePipeline-5ce4be00","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd"],function(d,y,g,h,f,m,E,e,b,P,_,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,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)){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 P.GeometryAttributes,a=(e.position=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:i}),t.length),t=e.position.values.length/3,o=i.length/3/a,r=_.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 b.Geometry({attributes:e,indices:_.IndexDatatype.createTypedArray(t,r),boundingSphere:f.BoundingSphere.fromVertices(i),primitiveType:b.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-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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-3bc98d07","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-74305cde","./IndexDatatype-6902a37d","./PolygonPipeline-ea1c8d04","./RectangleGeometryLibrary-c2148ae2","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IntersectionTests-d0a84f0f","./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
+ 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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-3bc98d07","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-ea1c8d04","./RectangleGeometryLibrary-c2148ae2","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidRhumbLine-535d21cd"],function(d,s,p,c,m,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 b(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,b=0;b<p.length/3-1;b++)h[y++]=b,h[y++]=b+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:m.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,m.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(!m.CesiumMath.equalsEpsilon(l.north,l.south,m.CesiumMath.EPSILON10)&&!m.CesiumMath.equalsEpsilon(l.east,l.west,m.CesiumMath.EPSILON10))return t=e._surfaceHeight,a=!m.CesiumMath.equalsEpsilon(t,n=e._extrudedHeight,0,m.CesiumMath.EPSILON2)?(i=function(e,t){for(var i=e._surfaceHeight,a=e._ellipsoid,n=e._extrudedHeight,e=b(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:m.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=b(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:m.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-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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./ArcType-1275a14e","./Transforms-3bc98d07","./Color-9d5d2c3d","./ComponentDatatype-b7b5db18","./RuntimeError-24b14c10","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolylinePipeline-5ce4be00","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-d0a84f0f","./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
+ 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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./EllipsoidGeometry-1a31720e","./VertexFormat-1fc9746e","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-3bc98d07","./combine-276652d0","./GeometryAttribute-dff85b2b","./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-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 +1 @@
1
- define(["./when-ae2e0b60","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./EllipsoidOutlineGeometry-93d30012","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-3bc98d07","./combine-276652d0","./GeometryAttribute-dff85b2b","./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-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 +1 @@
1
- define(["./Transforms-3bc98d07","./BoxGeometry-8fcc76be","./Matrix2-59fd2efe","./Color-9d5d2c3d","./CylinderGeometry-7839e3a1","./when-ae2e0b60","./EllipsoidGeometry-1a31720e","./IndexDatatype-6902a37d","./createTaskProcessorWorker","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryOffsetAttribute-8c0bd3ce","./GeometryAttribute-dff85b2b","./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
+ 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 +1 @@
1
- define(["./AttributeCompression-2f7b45b7","./Matrix2-59fd2efe","./Color-9d5d2c3d","./when-ae2e0b60","./IndexDatatype-6902a37d","./ComponentDatatype-b7b5db18","./OrientedBoundingBox-6af0398b","./createTaskProcessorWorker","./RuntimeError-24b14c10","./Transforms-3bc98d07","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-0cf355bc","./AxisAlignedBoundingBox-9ec4e335","./IntersectionTests-d0a84f0f","./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-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 +1 @@
1
- define(["./AxisAlignedBoundingBox-9ec4e335","./Transforms-3bc98d07","./Matrix2-59fd2efe","./when-ae2e0b60","./TerrainEncoding-8c672b29","./ComponentDatatype-b7b5db18","./OrientedBoundingBox-6af0398b","./RuntimeError-24b14c10","./WebMercatorProjection-c29584e9","./createTaskProcessorWorker","./combine-276652d0","./AttributeCompression-2f7b45b7","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-0cf355bc","./IntersectionTests-d0a84f0f","./Plane-43337cee"],function(fe,Ce,Me,xe,Ne,be,ve,Se,we,e,t,i,n,r,a,o){var Be=Uint16Array.BYTES_PER_ELEMENT,Pe=Int32Array.BYTES_PER_ELEMENT,Ae=Uint32Array.BYTES_PER_ELEMENT,ye=Float32Array.BYTES_PER_ELEMENT,Re=Float64Array.BYTES_PER_ELEMENT;function _e(e,t,i){i=xe.defaultValue(i,be.CesiumMath);for(var n=e.length,r=0;r<n;++r)if(i.equalsEpsilon(e[r],t,be.CesiumMath.EPSILON12))return r;return-1}var We=new Me.Cartographic,Fe=new Me.Cartesian3,Oe=new Me.Cartesian3,Ye=new Me.Cartesian3,Ue=new Me.Matrix4;function Ve(e,t,i,n,r,a,o,s,u,h,c){for(var d=s.length,g=0;g<d;++g){var l=s[g],m=l.cartographic,p=l.index,I=e.length,E=m.longitude,T=be.CesiumMath.clamp(m.latitude,-be.CesiumMath.PI_OVER_TWO,be.CesiumMath.PI_OVER_TWO),m=m.height-o.skirtHeight,E=(o.hMin=Math.min(o.hMin,m),Me.Cartographic.fromRadians(E,T,m,We),h&&(We.longitude+=u),h?g===d-1?We.latitude+=c:0===g&&(We.latitude-=c):We.latitude+=u,o.ellipsoid.cartographicToCartesian(We)),T=(e.push(E),t.push(m),i.push(Me.Cartesian2.clone(i[p])),0<n.length&&n.push(n[p]),0<r.length&&r.push(r[p]),Me.Matrix4.multiplyByPoint(o.toENU,E,Fe),o.minimum),m=o.maximum,E=(Me.Cartesian3.minimumByComponent(Fe,T,T),Me.Cartesian3.maximumByComponent(Fe,m,m),o.lastBorderPoint);xe.defined(E)&&(T=E.index,a.push(T,I-1,I,I,p,T)),o.lastBorderPoint=l}}return e(function(e,t){e.ellipsoid=Me.Ellipsoid.clone(e.ellipsoid),e.rectangle=Me.Rectangle.clone(e.rectangle);var i=(e=function(O,e,t,i,n,Y,U,r,a,V,k){var o,s,u,h;n=xe.defined(i)?(o=i.west,s=i.south,u=i.east,h=i.north,W=i.width,i.height):(o=be.CesiumMath.toRadians(n.west),s=be.CesiumMath.toRadians(n.south),u=be.CesiumMath.toRadians(n.east),h=be.CesiumMath.toRadians(n.north),W=be.CesiumMath.toRadians(i.width),be.CesiumMath.toRadians(i.height));var H,L,D=[s,h],G=[o,u],j=Ce.Transforms.eastNorthUpToFixedFrame(e,t),z=Me.Matrix4.inverseTransformation(j,Ue);a&&(H=we.WebMercatorProjection.geodeticLatitudeToMercatorAngle(s),L=1/(we.WebMercatorProjection.geodeticLatitudeToMercatorAngle(h)-H));var q,c,J=1!==Y,d=new DataView(O),g=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,m=Oe,p=(m.x=Number.POSITIVE_INFINITY,m.y=Number.POSITIVE_INFINITY,m.z=Number.POSITIVE_INFINITY,Ye),I=(p.x=Number.NEGATIVE_INFINITY,p.y=Number.NEGATIVE_INFINITY,p.z=Number.NEGATIVE_INFINITY,0),E=0,K=0;for(c=0;c<4;++c){var T=I,f=(q=d.getUint32(T,!0),T+=Ae,be.CesiumMath.toRadians(180*d.getFloat64(T,!0))),f=(T+=Re,-1===_e(G,f)&&G.push(f),be.CesiumMath.toRadians(180*d.getFloat64(T,!0))),f=(T+=Re,-1===_e(D,f)&&D.push(f),T+=2*Re,d.getInt32(T,!0));T+=Pe,E+=f,f=d.getInt32(T,!0),K+=3*f,I+=q+Ae}var Q=[],X=[],C=new Array(E),M=new Array(E),x=new Array(E),N=a?new Array(E):[],b=J?new Array(E):[],v=new Array(K),S=[],Z=[],$=[],w=[],B=0,ee=0;for(c=I=0;c<4;++c){q=d.getUint32(I,!0);for(var te=I+=Ae,ie=be.CesiumMath.toRadians(180*d.getFloat64(I,!0)),ne=(I+=Re,be.CesiumMath.toRadians(180*d.getFloat64(I,!0))),re=(I+=Re,be.CesiumMath.toRadians(180*d.getFloat64(I,!0))),ae=.5*re,oe=(I+=Re,be.CesiumMath.toRadians(180*d.getFloat64(I,!0))),se=.5*oe,ue=(I+=Re,d.getInt32(I,!0)),he=(I+=Pe,d.getInt32(I,!0)),ce=(I=I+Pe+Pe,new Array(ue)),de=0;de<ue;++de){var P=ie+d.getUint8(I++)*re,A=(We.longitude=P,ne+d.getUint8(I++)*oe),y=(We.latitude=A,d.getFloat32(I,!0));if(I+=ye,0!==y&&y<k&&(y*=-Math.pow(2,V)),y*=6371010,We.height=y,-1!==_e(G,P)||-1!==_e(D,A)){var R=_e(Q,We,Me.Cartographic);if(-1!==R){ce[de]=X[R];continue}Q.push(Me.Cartographic.clone(We)),X.push(B)}ce[de]=B,Math.abs(P-o)<ae?S.push({index:B,cartographic:Me.Cartographic.clone(We)}):Math.abs(P-u)<ae?$.push({index:B,cartographic:Me.Cartographic.clone(We)}):Math.abs(A-s)<se?Z.push({index:B,cartographic:Me.Cartographic.clone(We)}):Math.abs(A-h)<se&&w.push({index:B,cartographic:Me.Cartographic.clone(We)}),g=Math.min(y,g),l=Math.max(y,l),x[B]=y;R=t.cartographicToCartesian(We),y=(C[B]=R,a&&(N[B]=(we.WebMercatorProjection.geodeticLatitudeToMercatorAngle(A)-H)*L),J&&(y=t.geodeticSurfaceNormal(R),b[B]=y),Me.Matrix4.multiplyByPoint(z,R,Fe),Me.Cartesian3.minimumByComponent(Fe,m,m),Me.Cartesian3.maximumByComponent(Fe,p,p),(P-o)/(u-o)),P=(y=be.CesiumMath.clamp(y,0,1),(A-s)/(h-s));P=be.CesiumMath.clamp(P,0,1),M[B]=new Me.Cartesian2(y,P),++B}for(var ge=3*he,le=0;le<ge;++le,++ee)v[ee]=ce[d.getUint16(I,!0)],I+=Be;if(q!==I-te)throw new Se.RuntimeError("Invalid terrain tile.")}C.length=B,M.length=B,x.length=B,a&&(N.length=B);J&&(b.length=B);var O=B,me=ee,r={hMin:g,lastBorderPoint:void 0,skirtHeight:r,toENU:z,ellipsoid:t,minimum:m,maximum:p},_=(S.sort(function(e,t){return t.cartographic.latitude-e.cartographic.latitude}),Z.sort(function(e,t){return e.cartographic.longitude-t.cartographic.longitude}),$.sort(function(e,t){return e.cartographic.latitude-t.cartographic.latitude}),w.sort(function(e,t){return t.cartographic.longitude-e.cartographic.longitude}),1e-5);Ve(C,x,M,N,b,v,r,S,-_*W,!0,-_*n),Ve(C,x,M,N,b,v,r,Z,-_*n,!1),Ve(C,x,M,N,b,v,r,$,_*W,!0,_*n),Ve(C,x,M,N,b,v,r,w,_*n,!1),0<S.length&&0<w.length&&(W=S[0].index,_=w[w.length-1].index,n=C.length-1,v.push(_,n,O,O,W,_));E=C.length;var pe,n=Ce.BoundingSphere.fromPoints(C);xe.defined(i)&&(pe=ve.OrientedBoundingBox.fromRectangle(i,g,l,t));for(var W=new Ne.EllipsoidalOccluder(t).computeHorizonCullingPointPossiblyUnderEllipsoid(e,C,g),_=new fe.AxisAlignedBoundingBox(m,p,e),Ie=new Ne.TerrainEncoding(e,_,r.hMin,l,j,!1,a,J,Y,U),Ee=new Float32Array(E*Ie.stride),Te=0,F=0;F<E;++F)Te=Ie.encode(Ee,Te,C[F],M[F],x[F],void 0,N[F],b[F]);i=S.map(function(e){return e.index}).reverse(),e=Z.map(function(e){return e.index}).reverse(),_=$.map(function(e){return e.index}).reverse(),r=w.map(function(e){return e.index}).reverse();return e.unshift(_[_.length-1]),e.push(i[0]),r.unshift(i[i.length-1]),r.push(_[0]),{vertices:Ee,indices:new Uint16Array(v),maximumHeight:l,minimumHeight:g,encoding:Ie,boundingSphere3D:n,orientedBoundingBox:pe,occludeePointInScaledSpace:W,vertexCountWithoutSkirts:O,indexCountWithoutSkirts:me,westIndicesSouthToNorth:i,southIndicesEastToWest:e,eastIndicesNorthToSouth:_,northIndicesWestToEast:r}}(e.buffer,e.relativeToCenter,e.ellipsoid,e.rectangle,e.nativeRectangle,e.exaggeration,e.exaggerationRelativeHeight,e.skirtHeight,e.includeWebMercatorT,e.negativeAltitudeExponentBias,e.negativeElevationThreshold)).vertices,n=(t.push(i.buffer),e.indices);return t.push(n.buffer),{vertices:i.buffer,indices:n.buffer,numberOfAttributes:e.encoding.stride,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,boundingSphere3D:e.boundingSphere3D,orientedBoundingBox:e.orientedBoundingBox,occludeePointInScaledSpace:e.occludeePointInScaledSpace,encoding:e.encoding,vertexCountWithoutSkirts:e.vertexCountWithoutSkirts,indexCountWithoutSkirts:e.indexCountWithoutSkirts,westIndicesSouthToNorth:e.westIndicesSouthToNorth,southIndicesEastToWest:e.southIndicesEastToWest,eastIndicesNorthToSouth:e.eastIndicesNorthToSouth,northIndicesWestToEast:e.northIndicesWestToEast}})});
1
+ define(["./AxisAlignedBoundingBox-35efa0e8","./Transforms-ce414632","./Matrix2-59fd2efe","./when-ae2e0b60","./TerrainEncoding-daf44df2","./ComponentDatatype-b7b5db18","./OrientedBoundingBox-f70d01fe","./RuntimeError-24b14c10","./WebMercatorProjection-329b047d","./createTaskProcessorWorker","./combine-276652d0","./AttributeCompression-2f7b45b7","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-da721e0c","./IntersectionTests-f71f97b3","./Plane-43337cee"],function(Te,Ce,Me,xe,Ne,be,ve,Se,we,e,t,i,n,r,a,o){var Be=Uint16Array.BYTES_PER_ELEMENT,Pe=Int32Array.BYTES_PER_ELEMENT,Ae=Uint32Array.BYTES_PER_ELEMENT,ye=Float32Array.BYTES_PER_ELEMENT,Re=Float64Array.BYTES_PER_ELEMENT;function _e(e,t,i){i=xe.defaultValue(i,be.CesiumMath);for(var n=e.length,r=0;r<n;++r)if(i.equalsEpsilon(e[r],t,be.CesiumMath.EPSILON12))return r;return-1}var We=new Me.Cartographic,Fe=new Me.Cartesian3,Oe=new Me.Cartesian3,Ye=new Me.Cartesian3,Ue=new Me.Matrix4;function Ve(e,t,i,n,r,a,o,s,u,h,d){for(var c=s.length,g=0;g<c;++g){var l=s[g],m=l.cartographic,p=l.index,I=e.length,f=m.longitude,E=be.CesiumMath.clamp(m.latitude,-be.CesiumMath.PI_OVER_TWO,be.CesiumMath.PI_OVER_TWO),m=m.height-o.skirtHeight,f=(o.hMin=Math.min(o.hMin,m),Me.Cartographic.fromRadians(f,E,m,We),h&&(We.longitude+=u),h?g===c-1?We.latitude+=d:0===g&&(We.latitude-=d):We.latitude+=u,o.ellipsoid.cartographicToCartesian(We)),E=(e.push(f),t.push(m),i.push(Me.Cartesian2.clone(i[p])),0<n.length&&n.push(n[p]),0<r.length&&r.push(r[p]),Me.Matrix4.multiplyByPoint(o.toENU,f,Fe),o.minimum),m=o.maximum,f=(Me.Cartesian3.minimumByComponent(Fe,E,E),Me.Cartesian3.maximumByComponent(Fe,m,m),o.lastBorderPoint);xe.defined(f)&&(E=f.index,a.push(E,I-1,I,I,p,E)),o.lastBorderPoint=l}}return e(function(e,t){e.ellipsoid=Me.Ellipsoid.clone(e.ellipsoid),e.rectangle=Me.Rectangle.clone(e.rectangle);var i=(e=function(O,e,t,i,n,Y,U,r,a,V,k){var o,s,u,h;n=xe.defined(i)?(o=i.west,s=i.south,u=i.east,h=i.north,W=i.width,i.height):(o=be.CesiumMath.toRadians(n.west),s=be.CesiumMath.toRadians(n.south),u=be.CesiumMath.toRadians(n.east),h=be.CesiumMath.toRadians(n.north),W=be.CesiumMath.toRadians(i.width),be.CesiumMath.toRadians(i.height));var H,L,D=[s,h],G=[o,u],j=Ce.Transforms.eastNorthUpToFixedFrame(e,t),z=Me.Matrix4.inverseTransformation(j,Ue);a&&(H=we.WebMercatorProjection.geodeticLatitudeToMercatorAngle(s),L=1/(we.WebMercatorProjection.geodeticLatitudeToMercatorAngle(h)-H));var q,d,J=1!==Y,c=new DataView(O),g=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,m=Oe,p=(m.x=Number.POSITIVE_INFINITY,m.y=Number.POSITIVE_INFINITY,m.z=Number.POSITIVE_INFINITY,Ye),I=(p.x=Number.NEGATIVE_INFINITY,p.y=Number.NEGATIVE_INFINITY,p.z=Number.NEGATIVE_INFINITY,0),f=0,K=0;for(d=0;d<4;++d){var E=I,T=(q=c.getUint32(E,!0),E+=Ae,be.CesiumMath.toRadians(180*c.getFloat64(E,!0))),T=(E+=Re,-1===_e(G,T)&&G.push(T),be.CesiumMath.toRadians(180*c.getFloat64(E,!0))),T=(E+=Re,-1===_e(D,T)&&D.push(T),E+=2*Re,c.getInt32(E,!0));E+=Pe,f+=T,T=c.getInt32(E,!0),K+=3*T,I+=q+Ae}var Q=[],X=[],C=new Array(f),M=new Array(f),x=new Array(f),N=a?new Array(f):[],b=J?new Array(f):[],v=new Array(K),S=[],Z=[],$=[],w=[],B=0,ee=0;for(d=I=0;d<4;++d){q=c.getUint32(I,!0);for(var te=I+=Ae,ie=be.CesiumMath.toRadians(180*c.getFloat64(I,!0)),ne=(I+=Re,be.CesiumMath.toRadians(180*c.getFloat64(I,!0))),re=(I+=Re,be.CesiumMath.toRadians(180*c.getFloat64(I,!0))),ae=.5*re,oe=(I+=Re,be.CesiumMath.toRadians(180*c.getFloat64(I,!0))),se=.5*oe,ue=(I+=Re,c.getInt32(I,!0)),he=(I+=Pe,c.getInt32(I,!0)),de=(I=I+Pe+Pe,new Array(ue)),ce=0;ce<ue;++ce){var P=ie+c.getUint8(I++)*re,A=(We.longitude=P,ne+c.getUint8(I++)*oe),y=(We.latitude=A,c.getFloat32(I,!0));if(I+=ye,0!==y&&y<k&&(y*=-Math.pow(2,V)),y*=6371010,We.height=y,-1!==_e(G,P)||-1!==_e(D,A)){var R=_e(Q,We,Me.Cartographic);if(-1!==R){de[ce]=X[R];continue}Q.push(Me.Cartographic.clone(We)),X.push(B)}de[ce]=B,Math.abs(P-o)<ae?S.push({index:B,cartographic:Me.Cartographic.clone(We)}):Math.abs(P-u)<ae?$.push({index:B,cartographic:Me.Cartographic.clone(We)}):Math.abs(A-s)<se?Z.push({index:B,cartographic:Me.Cartographic.clone(We)}):Math.abs(A-h)<se&&w.push({index:B,cartographic:Me.Cartographic.clone(We)}),g=Math.min(y,g),l=Math.max(y,l),x[B]=y;R=t.cartographicToCartesian(We),y=(C[B]=R,a&&(N[B]=(we.WebMercatorProjection.geodeticLatitudeToMercatorAngle(A)-H)*L),J&&(y=t.geodeticSurfaceNormal(R),b[B]=y),Me.Matrix4.multiplyByPoint(z,R,Fe),Me.Cartesian3.minimumByComponent(Fe,m,m),Me.Cartesian3.maximumByComponent(Fe,p,p),(P-o)/(u-o)),P=(y=be.CesiumMath.clamp(y,0,1),(A-s)/(h-s));P=be.CesiumMath.clamp(P,0,1),M[B]=new Me.Cartesian2(y,P),++B}for(var ge=3*he,le=0;le<ge;++le,++ee)v[ee]=de[c.getUint16(I,!0)],I+=Be;if(q!==I-te)throw new Se.RuntimeError("Invalid terrain tile.")}C.length=B,M.length=B,x.length=B,a&&(N.length=B);J&&(b.length=B);var O=B,me=ee,r={hMin:g,lastBorderPoint:void 0,skirtHeight:r,toENU:z,ellipsoid:t,minimum:m,maximum:p},_=(S.sort(function(e,t){return t.cartographic.latitude-e.cartographic.latitude}),Z.sort(function(e,t){return e.cartographic.longitude-t.cartographic.longitude}),$.sort(function(e,t){return e.cartographic.latitude-t.cartographic.latitude}),w.sort(function(e,t){return t.cartographic.longitude-e.cartographic.longitude}),1e-5);Ve(C,x,M,N,b,v,r,S,-_*W,!0,-_*n),Ve(C,x,M,N,b,v,r,Z,-_*n,!1),Ve(C,x,M,N,b,v,r,$,_*W,!0,_*n),Ve(C,x,M,N,b,v,r,w,_*n,!1),0<S.length&&0<w.length&&(W=S[0].index,_=w[w.length-1].index,n=C.length-1,v.push(_,n,O,O,W,_));f=C.length;var pe,n=Ce.BoundingSphere.fromPoints(C);xe.defined(i)&&(pe=ve.OrientedBoundingBox.fromRectangle(i,g,l,t));for(var W=new Ne.EllipsoidalOccluder(t).computeHorizonCullingPointPossiblyUnderEllipsoid(e,C,g),_=new Te.AxisAlignedBoundingBox(m,p,e),Ie=new Ne.TerrainEncoding(e,_,r.hMin,l,j,!1,a,J,Y,U),fe=new Float32Array(f*Ie.stride),Ee=0,F=0;F<f;++F)Ee=Ie.encode(fe,Ee,C[F],M[F],x[F],void 0,N[F],b[F]);i=S.map(function(e){return e.index}).reverse(),e=Z.map(function(e){return e.index}).reverse(),_=$.map(function(e){return e.index}).reverse(),r=w.map(function(e){return e.index}).reverse();return e.unshift(_[_.length-1]),e.push(i[0]),r.unshift(i[i.length-1]),r.push(_[0]),{vertices:fe,indices:new Uint16Array(v),maximumHeight:l,minimumHeight:g,encoding:Ie,boundingSphere3D:n,orientedBoundingBox:pe,occludeePointInScaledSpace:W,vertexCountWithoutSkirts:O,indexCountWithoutSkirts:me,westIndicesSouthToNorth:i,southIndicesEastToWest:e,eastIndicesNorthToSouth:_,northIndicesWestToEast:r}}(e.buffer,e.relativeToCenter,e.ellipsoid,e.rectangle,e.nativeRectangle,e.exaggeration,e.exaggerationRelativeHeight,e.skirtHeight,e.includeWebMercatorT,e.negativeAltitudeExponentBias,e.negativeElevationThreshold)).vertices,n=(t.push(i.buffer),e.indices);return t.push(n.buffer),{vertices:i.buffer,indices:n.buffer,numberOfAttributes:e.encoding.stride,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,boundingSphere3D:e.boundingSphere3D,orientedBoundingBox:e.orientedBoundingBox,occludeePointInScaledSpace:e.occludeePointInScaledSpace,encoding:e.encoding,vertexCountWithoutSkirts:e.vertexCountWithoutSkirts,indexCountWithoutSkirts:e.indexCountWithoutSkirts,westIndicesSouthToNorth:e.westIndicesSouthToNorth,southIndicesEastToWest:e.southIndicesEastToWest,eastIndicesNorthToSouth:e.eastIndicesNorthToSouth,northIndicesWestToEast:e.northIndicesWestToEast}})});