@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 +0,0 @@
1
- define(["exports","./Transforms-8c8e0c6f","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./Cartesian2-c1eb9da0","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./GeometryPipeline-21c7c817","./IndexDatatype-516320ea","./WebMercatorProjection-e6de5e67"],function(e,w,A,V,t,c,P,k,D,C,f){"use strict";function m(e,t,r){e=V.defaultValue(e,0),t=V.defaultValue(t,0),r=V.defaultValue(r,0),this.value=new Float32Array([e,t,r])}function O(e,t){for(var e=e.attributes,r=e.position,n=r.values.length/r.componentsPerAttribute,i=(e.batchId=new P.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(n)}),e.batchId.values),o=0;o<n;++o)i[o]=t}function l(e){var t=e.instances,r=e.projection,n=e.elementIndexUintSupported,i=e.scene3DOnly,o=e.vertexCacheOptimize,a=e.compressVertices,e=e.modelMatrix,s=t.length;for(C=0;C<s;++C)if(V.defined(t[C].geometry)){t[C].geometry.primitiveType;break}var d=t,p=!i,u=d.length;if(!p&&1<u)for(var c=d[0].modelMatrix,f=1;f<u;++f)if(!w.Matrix4.equals(c,d[f].modelMatrix)){p=!0;break}if(p)for(f=0;f<u;++f)V.defined(d[f].geometry)&&D.GeometryPipeline.transformToWorldCoordinates(d[f]);else w.Matrix4.multiplyTransformation(e,d[0].modelMatrix,e);if(!i)for(C=0;C<s;++C)V.defined(t[C].geometry)&&D.GeometryPipeline.splitLongitude(t[C]);for(var m=t,h=m.length,l=0;l<h;++l){var g=m[l];V.defined(g.geometry)?O(g.geometry,l):V.defined(g.westHemisphereGeometry)&&V.defined(g.eastHemisphereGeometry)&&(O(g.westHemisphereGeometry,l),O(g.eastHemisphereGeometry,l))}if(o)for(C=0;C<s;++C){var y=t[C];V.defined(y.geometry)?(D.GeometryPipeline.reorderForPostVertexCache(y.geometry),D.GeometryPipeline.reorderForPreVertexCache(y.geometry)):V.defined(y.westHemisphereGeometry)&&V.defined(y.eastHemisphereGeometry)&&(D.GeometryPipeline.reorderForPostVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPostVertexCache(y.eastHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.eastHemisphereGeometry))}var b=D.GeometryPipeline.combineInstances(t);for(s=b.length,C=0;C<s;++C){var v,G,x,S,P=(v=b[C]).attributes;if(i)for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&D.GeometryPipeline.encodeAttribute(v,G,G+"3DHigh",G+"3DLow");else for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&(D.GeometryPipeline.projectTo2D(v,G,x=G+"3D",S=G+"2D",r),V.defined(v.boundingSphere)&&"position"===G&&(v.boundingSphereCV=w.BoundingSphere.fromVertices(v.attributes.position2D.values)),D.GeometryPipeline.encodeAttribute(v,x,x+"High",x+"Low"),D.GeometryPipeline.encodeAttribute(v,S,S+"High",S+"Low"));a&&D.GeometryPipeline.compressVertices(v)}if(!n){for(var k=[],s=b.length,C=0;C<s;++C)v=b[C],k=k.concat(D.GeometryPipeline.fitToUnsignedShortIndices(v));b=k}return b}function g(e,t,r,n){for(var i,o,a,s=n.length-1,d=(a=(0<=s?(i=(s=n[s]).offset+s.count,r[o=s.index]):r[o=i=0]).indices.length,e.length),p=0;p<d;++p){var u=e[p][t];V.defined(u)&&(a<i+(u=u.indices.length)&&(i=0,a=r[++o].indices.length),n.push({index:o,offset:i,count:u}),i+=u)}}Object.defineProperties(m.prototype,{componentDatatype:{get:function(){return A.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),m.fromCartesian3=function(e){return new m(e.x,e.y,e.z)},m.toValue=function(e,t){return(t=V.defined(t)?t:new Float32Array([e.x,e.y,e.z]))[0]=e.x,t[1]=e.y,t[2]=e.z,t};var h={};function i(e,t){for(var r=e.length,n=0;n<r;++n){o=i=d=s=a=void 0;var i,o,a=e[n],s=t,d=a.attributes;for(i in d)d.hasOwnProperty(i)&&(o=d[i],V.defined(o))&&V.defined(o.values)&&s.push(o.values.buffer);V.defined(a.indices)&&s.push(a.indices.buffer)}}function o(e){var t=e.length,r=1+(w.BoundingSphere.packedLength+1)*t,n=new Float32Array(r),i=0;n[i++]=t;for(var o=0;o<t;++o){var a=e[o];V.defined(a)?(n[i++]=1,w.BoundingSphere.pack(e[o],n,i)):n[i++]=0,i+=w.BoundingSphere.packedLength}return n}function r(e){for(var t=new Array(e[0]),r=0,n=1;n<e.length;)1===e[n++]&&(t[r]=w.BoundingSphere.unpack(e,n)),++r,n+=w.BoundingSphere.packedLength;return t}h.combineGeometry=function(e){for(var t,r,n,i,o,a,s=e.instances,d=s.length,p=!1,u=(0<d&&(0<(t=l(e)).length&&(r=D.GeometryPipeline.createAttributeLocations(t[0]),e.createPickOffsets)&&(g(i=s,"geometry",o=t,a=[]),g(i,"westHemisphereGeometry",o,a),g(i,"eastHemisphereGeometry",o,a),i=a),V.defined(s[0].attributes))&&V.defined(s[0].attributes.offset)&&(n=new Array(d),p=!0),new Array(d)),c=new Array(d),f=0;f<d;++f){var m=s[f],h=m.geometry,h=(V.defined(h)&&(u[f]=h.boundingSphere,c[f]=h.boundingSphereCV,p)&&(n[f]=m.geometry.offsetAttribute),m.eastHemisphereGeometry),m=m.westHemisphereGeometry;V.defined(h)&&V.defined(m)&&(V.defined(h.boundingSphere)&&V.defined(m.boundingSphere)&&(u[f]=w.BoundingSphere.union(h.boundingSphere,m.boundingSphere)),V.defined(h.boundingSphereCV))&&V.defined(m.boundingSphereCV)&&(c[f]=w.BoundingSphere.union(h.boundingSphereCV,m.boundingSphereCV))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:i,offsetInstanceExtend:n,boundingSpheres:u,boundingSpheresCV:c}},h.packCreateGeometryResults=function(e,t){var r=new Float64Array(function(e){for(var t=1,r=e.length,n=0;n<r;n++){var i=e[n];if(++t,V.defined(i)){var o,a=i.attributes;for(o in t+=7+2*w.BoundingSphere.packedLength+(V.defined(i.indices)?i.indices.length:0),a)a.hasOwnProperty(o)&&V.defined(a[o])&&(t+=5+a[o].values.length)}}return t}(e)),n=[],i={},o=e.length,a=0;r[a++]=o;for(var s=0;s<o;s++){var d=e[s],p=V.defined(d);if(r[a++]=p?1:0,p){r[a++]=d.primitiveType,r[a++]=d.geometryType,r[a++]=V.defaultValue(d.offsetAttribute,-1);var u,p=V.defined(d.boundingSphere)?1:0,p=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphere,r,a),a+=w.BoundingSphere.packedLength,V.defined(d.boundingSphereCV)?1:0),c=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphereCV,r,a),a+=w.BoundingSphere.packedLength,d.attributes),f=[];for(u in c)c.hasOwnProperty(u)&&V.defined(c[u])&&(f.push(u),V.defined(i[u])||(i[u]=n.length,n.push(u)));r[a++]=f.length;for(var m=0;m<f.length;m++){var h=f[m],l=c[h];r[a++]=i[h],r[a++]=l.componentDatatype,r[a++]=l.componentsPerAttribute,r[a++]=l.normalize?1:0,r[a++]=l.values.length,r.set(l.values,a),a+=l.values.length}p=V.defined(d.indices)?d.indices.length:0;0<(r[a++]=p)&&(r.set(d.indices,a),a+=p)}}return t.push(r.buffer),{stringTable:n,packedData:r}},h.unpackCreateGeometryResults=function(e){for(var t=e.stringTable,r=e.packedData,n=new Array(r[0]),i=0,o=1;o<r.length;)if(1===r[o++]){var a,s,d=r[o++],p=r[o++],u=r[o++];-1===u&&(u=void 0),1===r[o++]&&(a=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;1===r[o++]&&(s=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;var c=new k.GeometryAttributes,f=r[o++];for(S=0;S<f;S++){for(var m=t[r[o++]],h=r[o++],l=r[o++],g=0!==r[o++],y=r[o++],b=A.ComponentDatatype.createTypedArray(h,y),v=0;v<y;v++)b[v]=r[o++];c[m]=new P.GeometryAttribute({componentDatatype:h,componentsPerAttribute:l,normalize:g,values:b})}if(0<(y=r[o++]))for(var G=b.length/l,x=C.IndexDatatype.createTypedArray(G,y),S=0;S<y;S++)x[S]=r[o++];n[i++]=new P.Geometry({primitiveType:d,geometryType:p,boundingSphere:a,boundingSphereCV:s,indices:x,attributes:c,offsetAttribute:u})}else n[i++]=void 0;return n},h.packCombineGeometryParameters=function(e,t){for(var r=e.createGeometryResults,n=r.length,i=0;i<n;i++)t.push(r[i].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:function(e,t){var r=e.length,n=new Float64Array(1+19*r),i=0;n[i++]=r;for(var o=0;o<r;o++){var a=e[o];w.Matrix4.pack(a.modelMatrix,n,i),i+=w.Matrix4.packedLength,V.defined(a.attributes)&&V.defined(a.attributes.offset)&&(a=a.attributes.offset.value,n[i]=a[0],n[i+1]=a[1],n[i+2]=a[2]),i+=3}return t.push(n.buffer),n}(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof w.GeographicProjection,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},h.unpackCombineGeometryParameters=function(e){for(var t=function(e){for(var t=e,r=new Array(t[0]),n=0,i=1;i<t.length;){var o,a=w.Matrix4.unpack(t,i);i+=w.Matrix4.packedLength,V.defined(t[i])&&(o={offset:new m(t[i],t[i+1],t[i+2])}),i+=3,r[n++]={modelMatrix:a,attributes:o}}return r}(e.packedInstances),r=e.createGeometryResults,n=r.length,i=0,o=0;o<n;o++)for(var a=h.unpackCreateGeometryResults(r[o]),s=a.length,d=0;d<s;d++){var p=a[d];t[i].geometry=p,++i}var u=c.Ellipsoid.clone(e.ellipsoid);return{instances:t,ellipsoid:u,projection:new(e.isGeographic?w.GeographicProjection:f.WebMercatorProjection)(u),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:w.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},h.packCombineGeometryResults=function(e,t){V.defined(e.geometries)&&i(e.geometries,t);var r=o(e.boundingSpheres),n=o(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},h.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r(e.boundingSpheres),boundingSpheresCV:r(e.boundingSpheresCV)}},e.PrimitivePipeline=h});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-5aeb1d5e","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./Cartesian2-078e6458","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./GeometryPipeline-dd278883","./IndexDatatype-516320ea","./WebMercatorProjection-9d47817f"],function(e,w,A,V,t,f,P,k,D,C,c){"use strict";function m(e,t,r){e=V.defaultValue(e,0),t=V.defaultValue(t,0),r=V.defaultValue(r,0),this.value=new Float32Array([e,t,r])}function O(e,t){for(var e=e.attributes,r=e.position,n=r.values.length/r.componentsPerAttribute,i=(e.batchId=new P.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(n)}),e.batchId.values),o=0;o<n;++o)i[o]=t}function l(e){var t=e.instances,r=e.projection,n=e.elementIndexUintSupported,i=e.scene3DOnly,o=e.vertexCacheOptimize,a=e.compressVertices,e=e.modelMatrix,s=t.length;for(C=0;C<s;++C)if(V.defined(t[C].geometry)){t[C].geometry.primitiveType;break}var d=t,p=!i,u=d.length;if(!p&&1<u)for(var f=d[0].modelMatrix,c=1;c<u;++c)if(!w.Matrix4.equals(f,d[c].modelMatrix)){p=!0;break}if(p)for(c=0;c<u;++c)V.defined(d[c].geometry)&&D.GeometryPipeline.transformToWorldCoordinates(d[c]);else w.Matrix4.multiplyTransformation(e,d[0].modelMatrix,e);if(!i)for(C=0;C<s;++C)V.defined(t[C].geometry)&&D.GeometryPipeline.splitLongitude(t[C]);for(var m=t,h=m.length,l=0;l<h;++l){var g=m[l];V.defined(g.geometry)?O(g.geometry,l):V.defined(g.westHemisphereGeometry)&&V.defined(g.eastHemisphereGeometry)&&(O(g.westHemisphereGeometry,l),O(g.eastHemisphereGeometry,l))}if(o)for(C=0;C<s;++C){var y=t[C];V.defined(y.geometry)?(D.GeometryPipeline.reorderForPostVertexCache(y.geometry),D.GeometryPipeline.reorderForPreVertexCache(y.geometry)):V.defined(y.westHemisphereGeometry)&&V.defined(y.eastHemisphereGeometry)&&(D.GeometryPipeline.reorderForPostVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPostVertexCache(y.eastHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.eastHemisphereGeometry))}var b=D.GeometryPipeline.combineInstances(t);for(s=b.length,C=0;C<s;++C){var v,G,x,S,P=(v=b[C]).attributes;if(i)for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&D.GeometryPipeline.encodeAttribute(v,G,G+"3DHigh",G+"3DLow");else for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&(D.GeometryPipeline.projectTo2D(v,G,x=G+"3D",S=G+"2D",r),V.defined(v.boundingSphere)&&"position"===G&&(v.boundingSphereCV=w.BoundingSphere.fromVertices(v.attributes.position2D.values)),D.GeometryPipeline.encodeAttribute(v,x,x+"High",x+"Low"),D.GeometryPipeline.encodeAttribute(v,S,S+"High",S+"Low"));a&&D.GeometryPipeline.compressVertices(v)}if(!n){for(var k=[],s=b.length,C=0;C<s;++C)v=b[C],k=k.concat(D.GeometryPipeline.fitToUnsignedShortIndices(v));b=k}return b}function g(e,t,r,n){for(var i,o,a,s=n.length-1,d=(a=(0<=s?(i=(s=n[s]).offset+s.count,r[o=s.index]):r[o=i=0]).indices.length,e.length),p=0;p<d;++p){var u=e[p][t];V.defined(u)&&(a<i+(u=u.indices.length)&&(i=0,a=r[++o].indices.length),n.push({index:o,offset:i,count:u}),i+=u)}}Object.defineProperties(m.prototype,{componentDatatype:{get:function(){return A.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),m.fromCartesian3=function(e){return new m(e.x,e.y,e.z)},m.toValue=function(e,t){return(t=V.defined(t)?t:new Float32Array([e.x,e.y,e.z]))[0]=e.x,t[1]=e.y,t[2]=e.z,t};var h={};function i(e,t){for(var r=e.length,n=0;n<r;++n){o=i=d=s=a=void 0;var i,o,a=e[n],s=t,d=a.attributes;for(i in d)d.hasOwnProperty(i)&&(o=d[i],V.defined(o))&&V.defined(o.values)&&s.push(o.values.buffer);V.defined(a.indices)&&s.push(a.indices.buffer)}}function o(e){var t=e.length,r=1+(w.BoundingSphere.packedLength+1)*t,n=new Float32Array(r),i=0;n[i++]=t;for(var o=0;o<t;++o){var a=e[o];V.defined(a)?(n[i++]=1,w.BoundingSphere.pack(e[o],n,i)):n[i++]=0,i+=w.BoundingSphere.packedLength}return n}function r(e){for(var t=new Array(e[0]),r=0,n=1;n<e.length;)1===e[n++]&&(t[r]=w.BoundingSphere.unpack(e,n)),++r,n+=w.BoundingSphere.packedLength;return t}h.combineGeometry=function(e){for(var t,r,n,i,o,a,s=e.instances,d=s.length,p=!1,u=(0<d&&(0<(t=l(e)).length&&(r=D.GeometryPipeline.createAttributeLocations(t[0]),e.createPickOffsets)&&(g(i=s,"geometry",o=t,a=[]),g(i,"westHemisphereGeometry",o,a),g(i,"eastHemisphereGeometry",o,a),i=a),V.defined(s[0].attributes))&&V.defined(s[0].attributes.offset)&&(n=new Array(d),p=!0),new Array(d)),f=new Array(d),c=0;c<d;++c){var m=s[c],h=m.geometry,h=(V.defined(h)&&(u[c]=h.boundingSphere,f[c]=h.boundingSphereCV,p)&&(n[c]=m.geometry.offsetAttribute),m.eastHemisphereGeometry),m=m.westHemisphereGeometry;V.defined(h)&&V.defined(m)&&(V.defined(h.boundingSphere)&&V.defined(m.boundingSphere)&&(u[c]=w.BoundingSphere.union(h.boundingSphere,m.boundingSphere)),V.defined(h.boundingSphereCV))&&V.defined(m.boundingSphereCV)&&(f[c]=w.BoundingSphere.union(h.boundingSphereCV,m.boundingSphereCV))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:i,offsetInstanceExtend:n,boundingSpheres:u,boundingSpheresCV:f}},h.packCreateGeometryResults=function(e,t){var r=new Float64Array(function(e){for(var t=1,r=e.length,n=0;n<r;n++){var i=e[n];if(++t,V.defined(i)){var o,a=i.attributes;for(o in t+=7+2*w.BoundingSphere.packedLength+(V.defined(i.indices)?i.indices.length:0),a)a.hasOwnProperty(o)&&V.defined(a[o])&&(t+=5+a[o].values.length)}}return t}(e)),n=[],i={},o=e.length,a=0;r[a++]=o;for(var s=0;s<o;s++){var d=e[s],p=V.defined(d);if(r[a++]=p?1:0,p){r[a++]=d.primitiveType,r[a++]=d.geometryType,r[a++]=V.defaultValue(d.offsetAttribute,-1);var u,p=V.defined(d.boundingSphere)?1:0,p=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphere,r,a),a+=w.BoundingSphere.packedLength,V.defined(d.boundingSphereCV)?1:0),f=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphereCV,r,a),a+=w.BoundingSphere.packedLength,d.attributes),c=[];for(u in f)f.hasOwnProperty(u)&&V.defined(f[u])&&(c.push(u),V.defined(i[u])||(i[u]=n.length,n.push(u)));r[a++]=c.length;for(var m=0;m<c.length;m++){var h=c[m],l=f[h];r[a++]=i[h],r[a++]=l.componentDatatype,r[a++]=l.componentsPerAttribute,r[a++]=l.normalize?1:0,r[a++]=l.values.length,r.set(l.values,a),a+=l.values.length}p=V.defined(d.indices)?d.indices.length:0;0<(r[a++]=p)&&(r.set(d.indices,a),a+=p)}}return t.push(r.buffer),{stringTable:n,packedData:r}},h.unpackCreateGeometryResults=function(e){for(var t=e.stringTable,r=e.packedData,n=new Array(r[0]),i=0,o=1;o<r.length;)if(1===r[o++]){var a,s,d=r[o++],p=r[o++],u=r[o++];-1===u&&(u=void 0),1===r[o++]&&(a=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;1===r[o++]&&(s=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;var f=new k.GeometryAttributes,c=r[o++];for(S=0;S<c;S++){for(var m=t[r[o++]],h=r[o++],l=r[o++],g=0!==r[o++],y=r[o++],b=A.ComponentDatatype.createTypedArray(h,y),v=0;v<y;v++)b[v]=r[o++];f[m]=new P.GeometryAttribute({componentDatatype:h,componentsPerAttribute:l,normalize:g,values:b})}if(0<(y=r[o++]))for(var G=b.length/l,x=C.IndexDatatype.createTypedArray(G,y),S=0;S<y;S++)x[S]=r[o++];n[i++]=new P.Geometry({primitiveType:d,geometryType:p,boundingSphere:a,boundingSphereCV:s,indices:x,attributes:f,offsetAttribute:u})}else n[i++]=void 0;return n},h.packCombineGeometryParameters=function(e,t){for(var r=e.createGeometryResults,n=r.length,i=0;i<n;i++)t.push(r[i].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:function(e,t){var r=e.length,n=new Float64Array(1+19*r),i=0;n[i++]=r;for(var o=0;o<r;o++){var a=e[o];w.Matrix4.pack(a.modelMatrix,n,i),i+=w.Matrix4.packedLength,V.defined(a.attributes)&&V.defined(a.attributes.offset)&&(a=a.attributes.offset.value,n[i]=a[0],n[i+1]=a[1],n[i+2]=a[2]),i+=3}return t.push(n.buffer),n}(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof w.GeographicProjection,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},h.unpackCombineGeometryParameters=function(e){for(var t=function(e){for(var t=e,r=new Array(t[0]),n=0,i=1;i<t.length;){var o,a=w.Matrix4.unpack(t,i);i+=w.Matrix4.packedLength,V.defined(t[i])&&(o={offset:new m(t[i],t[i+1],t[i+2])}),i+=3,r[n++]={modelMatrix:a,attributes:o}}return r}(e.packedInstances),r=e.createGeometryResults,n=r.length,i=0,o=0;o<n;o++)for(var a=h.unpackCreateGeometryResults(r[o]),s=a.length,d=0;d<s;d++){var p=a[d];t[i].geometry=p,++i}var u=f.Ellipsoid.clone(e.ellipsoid);return{instances:t,ellipsoid:u,projection:new(e.isGeographic?w.GeographicProjection:c.WebMercatorProjection)(u),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:w.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},h.packCombineGeometryResults=function(e,t){V.defined(e.geometries)&&i(e.geometries,t);var r=o(e.boundingSpheres),n=o(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},h.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r(e.boundingSpheres),boundingSpheresCV:r(e.boundingSpheresCV)}},e.PrimitivePipeline=h});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-1fa85493","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./Cartesian2-c1eb9da0","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./GeometryPipeline-64734a0f","./IndexDatatype-516320ea","./WebMercatorProjection-e6de5e67"],function(e,w,A,V,t,f,P,k,D,C,c){"use strict";function m(e,t,r){e=V.defaultValue(e,0),t=V.defaultValue(t,0),r=V.defaultValue(r,0),this.value=new Float32Array([e,t,r])}function O(e,t){for(var e=e.attributes,r=e.position,n=r.values.length/r.componentsPerAttribute,i=(e.batchId=new P.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(n)}),e.batchId.values),o=0;o<n;++o)i[o]=t}function l(e){var t=e.instances,r=e.projection,n=e.elementIndexUintSupported,i=e.scene3DOnly,o=e.vertexCacheOptimize,a=e.compressVertices,e=e.modelMatrix,s=t.length;for(C=0;C<s;++C)if(V.defined(t[C].geometry)){t[C].geometry.primitiveType;break}var d=t,p=!i,u=d.length;if(!p&&1<u)for(var f=d[0].modelMatrix,c=1;c<u;++c)if(!w.Matrix4.equals(f,d[c].modelMatrix)){p=!0;break}if(p)for(c=0;c<u;++c)V.defined(d[c].geometry)&&D.GeometryPipeline.transformToWorldCoordinates(d[c]);else w.Matrix4.multiplyTransformation(e,d[0].modelMatrix,e);if(!i)for(C=0;C<s;++C)V.defined(t[C].geometry)&&D.GeometryPipeline.splitLongitude(t[C]);for(var m=t,h=m.length,l=0;l<h;++l){var g=m[l];V.defined(g.geometry)?O(g.geometry,l):V.defined(g.westHemisphereGeometry)&&V.defined(g.eastHemisphereGeometry)&&(O(g.westHemisphereGeometry,l),O(g.eastHemisphereGeometry,l))}if(o)for(C=0;C<s;++C){var y=t[C];V.defined(y.geometry)?(D.GeometryPipeline.reorderForPostVertexCache(y.geometry),D.GeometryPipeline.reorderForPreVertexCache(y.geometry)):V.defined(y.westHemisphereGeometry)&&V.defined(y.eastHemisphereGeometry)&&(D.GeometryPipeline.reorderForPostVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPostVertexCache(y.eastHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.eastHemisphereGeometry))}var b=D.GeometryPipeline.combineInstances(t);for(s=b.length,C=0;C<s;++C){var v,G,x,S,P=(v=b[C]).attributes;if(i)for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&D.GeometryPipeline.encodeAttribute(v,G,G+"3DHigh",G+"3DLow");else for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&(D.GeometryPipeline.projectTo2D(v,G,x=G+"3D",S=G+"2D",r),V.defined(v.boundingSphere)&&"position"===G&&(v.boundingSphereCV=w.BoundingSphere.fromVertices(v.attributes.position2D.values)),D.GeometryPipeline.encodeAttribute(v,x,x+"High",x+"Low"),D.GeometryPipeline.encodeAttribute(v,S,S+"High",S+"Low"));a&&D.GeometryPipeline.compressVertices(v)}if(!n){for(var k=[],s=b.length,C=0;C<s;++C)v=b[C],k=k.concat(D.GeometryPipeline.fitToUnsignedShortIndices(v));b=k}return b}function g(e,t,r,n){for(var i,o,a,s=n.length-1,d=(a=(0<=s?(i=(s=n[s]).offset+s.count,r[o=s.index]):r[o=i=0]).indices.length,e.length),p=0;p<d;++p){var u=e[p][t];V.defined(u)&&(a<i+(u=u.indices.length)&&(i=0,a=r[++o].indices.length),n.push({index:o,offset:i,count:u}),i+=u)}}Object.defineProperties(m.prototype,{componentDatatype:{get:function(){return A.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),m.fromCartesian3=function(e){return new m(e.x,e.y,e.z)},m.toValue=function(e,t){return(t=V.defined(t)?t:new Float32Array([e.x,e.y,e.z]))[0]=e.x,t[1]=e.y,t[2]=e.z,t};var h={};function i(e,t){for(var r=e.length,n=0;n<r;++n){o=i=d=s=a=void 0;var i,o,a=e[n],s=t,d=a.attributes;for(i in d)d.hasOwnProperty(i)&&(o=d[i],V.defined(o))&&V.defined(o.values)&&s.push(o.values.buffer);V.defined(a.indices)&&s.push(a.indices.buffer)}}function o(e){var t=e.length,r=1+(w.BoundingSphere.packedLength+1)*t,n=new Float32Array(r),i=0;n[i++]=t;for(var o=0;o<t;++o){var a=e[o];V.defined(a)?(n[i++]=1,w.BoundingSphere.pack(e[o],n,i)):n[i++]=0,i+=w.BoundingSphere.packedLength}return n}function r(e){for(var t=new Array(e[0]),r=0,n=1;n<e.length;)1===e[n++]&&(t[r]=w.BoundingSphere.unpack(e,n)),++r,n+=w.BoundingSphere.packedLength;return t}h.combineGeometry=function(e){for(var t,r,n,i,o,a,s=e.instances,d=s.length,p=!1,u=(0<d&&(0<(t=l(e)).length&&(r=D.GeometryPipeline.createAttributeLocations(t[0]),e.createPickOffsets)&&(g(i=s,"geometry",o=t,a=[]),g(i,"westHemisphereGeometry",o,a),g(i,"eastHemisphereGeometry",o,a),i=a),V.defined(s[0].attributes))&&V.defined(s[0].attributes.offset)&&(n=new Array(d),p=!0),new Array(d)),f=new Array(d),c=0;c<d;++c){var m=s[c],h=m.geometry,h=(V.defined(h)&&(u[c]=h.boundingSphere,f[c]=h.boundingSphereCV,p)&&(n[c]=m.geometry.offsetAttribute),m.eastHemisphereGeometry),m=m.westHemisphereGeometry;V.defined(h)&&V.defined(m)&&(V.defined(h.boundingSphere)&&V.defined(m.boundingSphere)&&(u[c]=w.BoundingSphere.union(h.boundingSphere,m.boundingSphere)),V.defined(h.boundingSphereCV))&&V.defined(m.boundingSphereCV)&&(f[c]=w.BoundingSphere.union(h.boundingSphereCV,m.boundingSphereCV))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:i,offsetInstanceExtend:n,boundingSpheres:u,boundingSpheresCV:f}},h.packCreateGeometryResults=function(e,t){var r=new Float64Array(function(e){for(var t=1,r=e.length,n=0;n<r;n++){var i=e[n];if(++t,V.defined(i)){var o,a=i.attributes;for(o in t+=7+2*w.BoundingSphere.packedLength+(V.defined(i.indices)?i.indices.length:0),a)a.hasOwnProperty(o)&&V.defined(a[o])&&(t+=5+a[o].values.length)}}return t}(e)),n=[],i={},o=e.length,a=0;r[a++]=o;for(var s=0;s<o;s++){var d=e[s],p=V.defined(d);if(r[a++]=p?1:0,p){r[a++]=d.primitiveType,r[a++]=d.geometryType,r[a++]=V.defaultValue(d.offsetAttribute,-1);var u,p=V.defined(d.boundingSphere)?1:0,p=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphere,r,a),a+=w.BoundingSphere.packedLength,V.defined(d.boundingSphereCV)?1:0),f=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphereCV,r,a),a+=w.BoundingSphere.packedLength,d.attributes),c=[];for(u in f)f.hasOwnProperty(u)&&V.defined(f[u])&&(c.push(u),V.defined(i[u])||(i[u]=n.length,n.push(u)));r[a++]=c.length;for(var m=0;m<c.length;m++){var h=c[m],l=f[h];r[a++]=i[h],r[a++]=l.componentDatatype,r[a++]=l.componentsPerAttribute,r[a++]=l.normalize?1:0,r[a++]=l.values.length,r.set(l.values,a),a+=l.values.length}p=V.defined(d.indices)?d.indices.length:0;0<(r[a++]=p)&&(r.set(d.indices,a),a+=p)}}return t.push(r.buffer),{stringTable:n,packedData:r}},h.unpackCreateGeometryResults=function(e){for(var t=e.stringTable,r=e.packedData,n=new Array(r[0]),i=0,o=1;o<r.length;)if(1===r[o++]){var a,s,d=r[o++],p=r[o++],u=r[o++];-1===u&&(u=void 0),1===r[o++]&&(a=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;1===r[o++]&&(s=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;var f=new k.GeometryAttributes,c=r[o++];for(S=0;S<c;S++){for(var m=t[r[o++]],h=r[o++],l=r[o++],g=0!==r[o++],y=r[o++],b=A.ComponentDatatype.createTypedArray(h,y),v=0;v<y;v++)b[v]=r[o++];f[m]=new P.GeometryAttribute({componentDatatype:h,componentsPerAttribute:l,normalize:g,values:b})}if(0<(y=r[o++]))for(var G=b.length/l,x=C.IndexDatatype.createTypedArray(G,y),S=0;S<y;S++)x[S]=r[o++];n[i++]=new P.Geometry({primitiveType:d,geometryType:p,boundingSphere:a,boundingSphereCV:s,indices:x,attributes:f,offsetAttribute:u})}else n[i++]=void 0;return n},h.packCombineGeometryParameters=function(e,t){for(var r=e.createGeometryResults,n=r.length,i=0;i<n;i++)t.push(r[i].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:function(e,t){var r=e.length,n=new Float64Array(1+19*r),i=0;n[i++]=r;for(var o=0;o<r;o++){var a=e[o];w.Matrix4.pack(a.modelMatrix,n,i),i+=w.Matrix4.packedLength,V.defined(a.attributes)&&V.defined(a.attributes.offset)&&(a=a.attributes.offset.value,n[i]=a[0],n[i+1]=a[1],n[i+2]=a[2]),i+=3}return t.push(n.buffer),n}(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof w.GeographicProjection,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},h.unpackCombineGeometryParameters=function(e){for(var t=function(e){for(var t=e,r=new Array(t[0]),n=0,i=1;i<t.length;){var o,a=w.Matrix4.unpack(t,i);i+=w.Matrix4.packedLength,V.defined(t[i])&&(o={offset:new m(t[i],t[i+1],t[i+2])}),i+=3,r[n++]={modelMatrix:a,attributes:o}}return r}(e.packedInstances),r=e.createGeometryResults,n=r.length,i=0,o=0;o<n;o++)for(var a=h.unpackCreateGeometryResults(r[o]),s=a.length,d=0;d<s;d++){var p=a[d];t[i].geometry=p,++i}var u=f.Ellipsoid.clone(e.ellipsoid);return{instances:t,ellipsoid:u,projection:new(e.isGeographic?w.GeographicProjection:c.WebMercatorProjection)(u),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:w.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},h.packCombineGeometryResults=function(e,t){V.defined(e.geometries)&&i(e.geometries,t);var r=o(e.boundingSpheres),n=o(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},h.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r(e.boundingSpheres),boundingSpheresCV:r(e.boundingSpheresCV)}},e.PrimitivePipeline=h});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-984eb057","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./Cartesian2-078e6458","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./GeometryPipeline-868a22d5","./IndexDatatype-516320ea","./WebMercatorProjection-9d47817f"],function(e,w,A,V,t,f,P,k,D,C,c){"use strict";function m(e,t,r){e=V.defaultValue(e,0),t=V.defaultValue(t,0),r=V.defaultValue(r,0),this.value=new Float32Array([e,t,r])}function O(e,t){for(var e=e.attributes,r=e.position,n=r.values.length/r.componentsPerAttribute,i=(e.batchId=new P.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(n)}),e.batchId.values),o=0;o<n;++o)i[o]=t}function l(e){var t=e.instances,r=e.projection,n=e.elementIndexUintSupported,i=e.scene3DOnly,o=e.vertexCacheOptimize,a=e.compressVertices,e=e.modelMatrix,s=t.length;for(C=0;C<s;++C)if(V.defined(t[C].geometry)){t[C].geometry.primitiveType;break}var d=t,p=!i,u=d.length;if(!p&&1<u)for(var f=d[0].modelMatrix,c=1;c<u;++c)if(!w.Matrix4.equals(f,d[c].modelMatrix)){p=!0;break}if(p)for(c=0;c<u;++c)V.defined(d[c].geometry)&&D.GeometryPipeline.transformToWorldCoordinates(d[c]);else w.Matrix4.multiplyTransformation(e,d[0].modelMatrix,e);if(!i)for(C=0;C<s;++C)V.defined(t[C].geometry)&&D.GeometryPipeline.splitLongitude(t[C]);for(var m=t,h=m.length,l=0;l<h;++l){var g=m[l];V.defined(g.geometry)?O(g.geometry,l):V.defined(g.westHemisphereGeometry)&&V.defined(g.eastHemisphereGeometry)&&(O(g.westHemisphereGeometry,l),O(g.eastHemisphereGeometry,l))}if(o)for(C=0;C<s;++C){var y=t[C];V.defined(y.geometry)?(D.GeometryPipeline.reorderForPostVertexCache(y.geometry),D.GeometryPipeline.reorderForPreVertexCache(y.geometry)):V.defined(y.westHemisphereGeometry)&&V.defined(y.eastHemisphereGeometry)&&(D.GeometryPipeline.reorderForPostVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.westHemisphereGeometry),D.GeometryPipeline.reorderForPostVertexCache(y.eastHemisphereGeometry),D.GeometryPipeline.reorderForPreVertexCache(y.eastHemisphereGeometry))}var b=D.GeometryPipeline.combineInstances(t);for(s=b.length,C=0;C<s;++C){var v,G,x,S,P=(v=b[C]).attributes;if(i)for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&D.GeometryPipeline.encodeAttribute(v,G,G+"3DHigh",G+"3DLow");else for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&(D.GeometryPipeline.projectTo2D(v,G,x=G+"3D",S=G+"2D",r),V.defined(v.boundingSphere)&&"position"===G&&(v.boundingSphereCV=w.BoundingSphere.fromVertices(v.attributes.position2D.values)),D.GeometryPipeline.encodeAttribute(v,x,x+"High",x+"Low"),D.GeometryPipeline.encodeAttribute(v,S,S+"High",S+"Low"));a&&D.GeometryPipeline.compressVertices(v)}if(!n){for(var k=[],s=b.length,C=0;C<s;++C)v=b[C],k=k.concat(D.GeometryPipeline.fitToUnsignedShortIndices(v));b=k}return b}function g(e,t,r,n){for(var i,o,a,s=n.length-1,d=(a=(0<=s?(i=(s=n[s]).offset+s.count,r[o=s.index]):r[o=i=0]).indices.length,e.length),p=0;p<d;++p){var u=e[p][t];V.defined(u)&&(a<i+(u=u.indices.length)&&(i=0,a=r[++o].indices.length),n.push({index:o,offset:i,count:u}),i+=u)}}Object.defineProperties(m.prototype,{componentDatatype:{get:function(){return A.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),m.fromCartesian3=function(e){return new m(e.x,e.y,e.z)},m.toValue=function(e,t){return(t=V.defined(t)?t:new Float32Array([e.x,e.y,e.z]))[0]=e.x,t[1]=e.y,t[2]=e.z,t};var h={};function i(e,t){for(var r=e.length,n=0;n<r;++n){o=i=d=s=a=void 0;var i,o,a=e[n],s=t,d=a.attributes;for(i in d)d.hasOwnProperty(i)&&(o=d[i],V.defined(o))&&V.defined(o.values)&&s.push(o.values.buffer);V.defined(a.indices)&&s.push(a.indices.buffer)}}function o(e){var t=e.length,r=1+(w.BoundingSphere.packedLength+1)*t,n=new Float32Array(r),i=0;n[i++]=t;for(var o=0;o<t;++o){var a=e[o];V.defined(a)?(n[i++]=1,w.BoundingSphere.pack(e[o],n,i)):n[i++]=0,i+=w.BoundingSphere.packedLength}return n}function r(e){for(var t=new Array(e[0]),r=0,n=1;n<e.length;)1===e[n++]&&(t[r]=w.BoundingSphere.unpack(e,n)),++r,n+=w.BoundingSphere.packedLength;return t}h.combineGeometry=function(e){for(var t,r,n,i,o,a,s=e.instances,d=s.length,p=!1,u=(0<d&&(0<(t=l(e)).length&&(r=D.GeometryPipeline.createAttributeLocations(t[0]),e.createPickOffsets)&&(g(i=s,"geometry",o=t,a=[]),g(i,"westHemisphereGeometry",o,a),g(i,"eastHemisphereGeometry",o,a),i=a),V.defined(s[0].attributes))&&V.defined(s[0].attributes.offset)&&(n=new Array(d),p=!0),new Array(d)),f=new Array(d),c=0;c<d;++c){var m=s[c],h=m.geometry,h=(V.defined(h)&&(u[c]=h.boundingSphere,f[c]=h.boundingSphereCV,p)&&(n[c]=m.geometry.offsetAttribute),m.eastHemisphereGeometry),m=m.westHemisphereGeometry;V.defined(h)&&V.defined(m)&&(V.defined(h.boundingSphere)&&V.defined(m.boundingSphere)&&(u[c]=w.BoundingSphere.union(h.boundingSphere,m.boundingSphere)),V.defined(h.boundingSphereCV))&&V.defined(m.boundingSphereCV)&&(f[c]=w.BoundingSphere.union(h.boundingSphereCV,m.boundingSphereCV))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:i,offsetInstanceExtend:n,boundingSpheres:u,boundingSpheresCV:f}},h.packCreateGeometryResults=function(e,t){var r=new Float64Array(function(e){for(var t=1,r=e.length,n=0;n<r;n++){var i=e[n];if(++t,V.defined(i)){var o,a=i.attributes;for(o in t+=7+2*w.BoundingSphere.packedLength+(V.defined(i.indices)?i.indices.length:0),a)a.hasOwnProperty(o)&&V.defined(a[o])&&(t+=5+a[o].values.length)}}return t}(e)),n=[],i={},o=e.length,a=0;r[a++]=o;for(var s=0;s<o;s++){var d=e[s],p=V.defined(d);if(r[a++]=p?1:0,p){r[a++]=d.primitiveType,r[a++]=d.geometryType,r[a++]=V.defaultValue(d.offsetAttribute,-1);var u,p=V.defined(d.boundingSphere)?1:0,p=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphere,r,a),a+=w.BoundingSphere.packedLength,V.defined(d.boundingSphereCV)?1:0),f=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphereCV,r,a),a+=w.BoundingSphere.packedLength,d.attributes),c=[];for(u in f)f.hasOwnProperty(u)&&V.defined(f[u])&&(c.push(u),V.defined(i[u])||(i[u]=n.length,n.push(u)));r[a++]=c.length;for(var m=0;m<c.length;m++){var h=c[m],l=f[h];r[a++]=i[h],r[a++]=l.componentDatatype,r[a++]=l.componentsPerAttribute,r[a++]=l.normalize?1:0,r[a++]=l.values.length,r.set(l.values,a),a+=l.values.length}p=V.defined(d.indices)?d.indices.length:0;0<(r[a++]=p)&&(r.set(d.indices,a),a+=p)}}return t.push(r.buffer),{stringTable:n,packedData:r}},h.unpackCreateGeometryResults=function(e){for(var t=e.stringTable,r=e.packedData,n=new Array(r[0]),i=0,o=1;o<r.length;)if(1===r[o++]){var a,s,d=r[o++],p=r[o++],u=r[o++];-1===u&&(u=void 0),1===r[o++]&&(a=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;1===r[o++]&&(s=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;var f=new k.GeometryAttributes,c=r[o++];for(S=0;S<c;S++){for(var m=t[r[o++]],h=r[o++],l=r[o++],g=0!==r[o++],y=r[o++],b=A.ComponentDatatype.createTypedArray(h,y),v=0;v<y;v++)b[v]=r[o++];f[m]=new P.GeometryAttribute({componentDatatype:h,componentsPerAttribute:l,normalize:g,values:b})}if(0<(y=r[o++]))for(var G=b.length/l,x=C.IndexDatatype.createTypedArray(G,y),S=0;S<y;S++)x[S]=r[o++];n[i++]=new P.Geometry({primitiveType:d,geometryType:p,boundingSphere:a,boundingSphereCV:s,indices:x,attributes:f,offsetAttribute:u})}else n[i++]=void 0;return n},h.packCombineGeometryParameters=function(e,t){for(var r=e.createGeometryResults,n=r.length,i=0;i<n;i++)t.push(r[i].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:function(e,t){var r=e.length,n=new Float64Array(1+19*r),i=0;n[i++]=r;for(var o=0;o<r;o++){var a=e[o];w.Matrix4.pack(a.modelMatrix,n,i),i+=w.Matrix4.packedLength,V.defined(a.attributes)&&V.defined(a.attributes.offset)&&(a=a.attributes.offset.value,n[i]=a[0],n[i+1]=a[1],n[i+2]=a[2]),i+=3}return t.push(n.buffer),n}(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof w.GeographicProjection,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},h.unpackCombineGeometryParameters=function(e){for(var t=function(e){for(var t=e,r=new Array(t[0]),n=0,i=1;i<t.length;){var o,a=w.Matrix4.unpack(t,i);i+=w.Matrix4.packedLength,V.defined(t[i])&&(o={offset:new m(t[i],t[i+1],t[i+2])}),i+=3,r[n++]={modelMatrix:a,attributes:o}}return r}(e.packedInstances),r=e.createGeometryResults,n=r.length,i=0,o=0;o<n;o++)for(var a=h.unpackCreateGeometryResults(r[o]),s=a.length,d=0;d<s;d++){var p=a[d];t[i].geometry=p,++i}var u=f.Ellipsoid.clone(e.ellipsoid);return{instances:t,ellipsoid:u,projection:new(e.isGeographic?w.GeographicProjection:c.WebMercatorProjection)(u),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:w.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},h.packCombineGeometryResults=function(e,t){V.defined(e.geometries)&&i(e.geometries,t);var r=o(e.boundingSpheres),n=o(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},h.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r(e.boundingSpheres),boundingSpheresCV:r(e.boundingSpheresCV)}},e.PrimitivePipeline=h});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-70ded1e8","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./Matrix2-10a61a55","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./GeometryPipeline-46833021","./IndexDatatype-6902a37d","./WebMercatorProjection-941959a9"],function(e,w,A,V,t,D,P,k,O,C,f){"use strict";function c(e,t,r){e=V.defaultValue(e,0),t=V.defaultValue(t,0),r=V.defaultValue(r,0),this.value=new Float32Array([e,t,r])}function M(e,t){for(var e=e.attributes,r=e.position,n=r.values.length/r.componentsPerAttribute,i=(e.batchId=new P.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(n)}),e.batchId.values),o=0;o<n;++o)i[o]=t}function l(e){var t=e.instances,r=e.projection,n=e.elementIndexUintSupported,i=e.scene3DOnly,o=e.vertexCacheOptimize,a=e.compressVertices,e=e.modelMatrix,s=t.length;for(C=0;C<s;++C)if(V.defined(t[C].geometry)){t[C].geometry.primitiveType;break}var d=t,p=!i,u=d.length;if(!p&&1<u)for(var f=d[0].modelMatrix,c=1;c<u;++c)if(!D.Matrix4.equals(f,d[c].modelMatrix)){p=!0;break}if(p)for(c=0;c<u;++c)V.defined(d[c].geometry)&&O.GeometryPipeline.transformToWorldCoordinates(d[c]);else D.Matrix4.multiplyTransformation(e,d[0].modelMatrix,e);if(!i)for(C=0;C<s;++C)V.defined(t[C].geometry)&&O.GeometryPipeline.splitLongitude(t[C]);for(var m=t,h=m.length,l=0;l<h;++l){var g=m[l];V.defined(g.geometry)?M(g.geometry,l):V.defined(g.westHemisphereGeometry)&&V.defined(g.eastHemisphereGeometry)&&(M(g.westHemisphereGeometry,l),M(g.eastHemisphereGeometry,l))}if(o)for(C=0;C<s;++C){var y=t[C];V.defined(y.geometry)?(O.GeometryPipeline.reorderForPostVertexCache(y.geometry),O.GeometryPipeline.reorderForPreVertexCache(y.geometry)):V.defined(y.westHemisphereGeometry)&&V.defined(y.eastHemisphereGeometry)&&(O.GeometryPipeline.reorderForPostVertexCache(y.westHemisphereGeometry),O.GeometryPipeline.reorderForPreVertexCache(y.westHemisphereGeometry),O.GeometryPipeline.reorderForPostVertexCache(y.eastHemisphereGeometry),O.GeometryPipeline.reorderForPreVertexCache(y.eastHemisphereGeometry))}var b=O.GeometryPipeline.combineInstances(t);for(s=b.length,C=0;C<s;++C){var v,x,G,S,P=(v=b[C]).attributes;if(i)for(x in P)P.hasOwnProperty(x)&&P[x].componentDatatype===A.ComponentDatatype.DOUBLE&&O.GeometryPipeline.encodeAttribute(v,x,x+"3DHigh",x+"3DLow");else for(x in P)P.hasOwnProperty(x)&&P[x].componentDatatype===A.ComponentDatatype.DOUBLE&&(O.GeometryPipeline.projectTo2D(v,x,G=x+"3D",S=x+"2D",r),V.defined(v.boundingSphere)&&"position"===x&&(v.boundingSphereCV=w.BoundingSphere.fromVertices(v.attributes.position2D.values)),O.GeometryPipeline.encodeAttribute(v,G,G+"High",G+"Low"),O.GeometryPipeline.encodeAttribute(v,S,S+"High",S+"Low"));a&&O.GeometryPipeline.compressVertices(v)}if(!n){for(var k=[],s=b.length,C=0;C<s;++C)v=b[C],k=k.concat(O.GeometryPipeline.fitToUnsignedShortIndices(v));b=k}return b}function g(e,t,r,n){for(var i,o,a,s=n.length-1,d=(a=(0<=s?(i=(s=n[s]).offset+s.count,r[o=s.index]):r[o=i=0]).indices.length,e.length),p=0;p<d;++p){var u=e[p][t];V.defined(u)&&(a<i+(u=u.indices.length)&&(i=0,a=r[++o].indices.length),n.push({index:o,offset:i,count:u}),i+=u)}}Object.defineProperties(c.prototype,{componentDatatype:{get:function(){return A.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),c.fromCartesian3=function(e){return new c(e.x,e.y,e.z)},c.toValue=function(e,t){return(t=V.defined(t)?t:new Float32Array([e.x,e.y,e.z]))[0]=e.x,t[1]=e.y,t[2]=e.z,t};var m={};function i(e,t){for(var r=e.length,n=0;n<r;++n){o=i=d=s=a=void 0;var i,o,a=e[n],s=t,d=a.attributes;for(i in d)d.hasOwnProperty(i)&&(o=d[i],V.defined(o))&&V.defined(o.values)&&s.push(o.values.buffer);V.defined(a.indices)&&s.push(a.indices.buffer)}}function o(e){var t=e.length,r=1+(w.BoundingSphere.packedLength+1)*t,n=new Float32Array(r),i=0;n[i++]=t;for(var o=0;o<t;++o){var a=e[o];V.defined(a)?(n[i++]=1,w.BoundingSphere.pack(e[o],n,i)):n[i++]=0,i+=w.BoundingSphere.packedLength}return n}function r(e){for(var t=new Array(e[0]),r=0,n=1;n<e.length;)1===e[n++]&&(t[r]=w.BoundingSphere.unpack(e,n)),++r,n+=w.BoundingSphere.packedLength;return t}m.combineGeometry=function(e){for(var t,r,n,i,o,a,s=e.instances,d=s.length,p=!1,u=(0<d&&(0<(t=l(e)).length&&(r=O.GeometryPipeline.createAttributeLocations(t[0]),e.createPickOffsets)&&(g(i=s,"geometry",o=t,a=[]),g(i,"westHemisphereGeometry",o,a),g(i,"eastHemisphereGeometry",o,a),i=a),V.defined(s[0].attributes))&&V.defined(s[0].attributes.offset)&&(n=new Array(d),p=!0),new Array(d)),f=new Array(d),c=0;c<d;++c){var m=s[c],h=m.geometry,h=(V.defined(h)&&(u[c]=h.boundingSphere,f[c]=h.boundingSphereCV,p)&&(n[c]=m.geometry.offsetAttribute),m.eastHemisphereGeometry),m=m.westHemisphereGeometry;V.defined(h)&&V.defined(m)&&(V.defined(h.boundingSphere)&&V.defined(m.boundingSphere)&&(u[c]=w.BoundingSphere.union(h.boundingSphere,m.boundingSphere)),V.defined(h.boundingSphereCV))&&V.defined(m.boundingSphereCV)&&(f[c]=w.BoundingSphere.union(h.boundingSphereCV,m.boundingSphereCV))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:i,offsetInstanceExtend:n,boundingSpheres:u,boundingSpheresCV:f}},m.packCreateGeometryResults=function(e,t){var r=new Float64Array(function(e){for(var t=1,r=e.length,n=0;n<r;n++){var i=e[n];if(++t,V.defined(i)){var o,a=i.attributes;for(o in t+=7+2*w.BoundingSphere.packedLength+(V.defined(i.indices)?i.indices.length:0),a)a.hasOwnProperty(o)&&V.defined(a[o])&&(t+=5+a[o].values.length)}}return t}(e)),n=[],i={},o=e.length,a=0;r[a++]=o;for(var s=0;s<o;s++){var d=e[s],p=V.defined(d);if(r[a++]=p?1:0,p){r[a++]=d.primitiveType,r[a++]=d.geometryType,r[a++]=V.defaultValue(d.offsetAttribute,-1);var u,p=V.defined(d.boundingSphere)?1:0,p=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphere,r,a),a+=w.BoundingSphere.packedLength,V.defined(d.boundingSphereCV)?1:0),f=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphereCV,r,a),a+=w.BoundingSphere.packedLength,d.attributes),c=[];for(u in f)f.hasOwnProperty(u)&&V.defined(f[u])&&(c.push(u),V.defined(i[u])||(i[u]=n.length,n.push(u)));r[a++]=c.length;for(var m=0;m<c.length;m++){var h=c[m],l=f[h];r[a++]=i[h],r[a++]=l.componentDatatype,r[a++]=l.componentsPerAttribute,r[a++]=l.normalize?1:0,r[a++]=l.values.length,r.set(l.values,a),a+=l.values.length}p=V.defined(d.indices)?d.indices.length:0;0<(r[a++]=p)&&(r.set(d.indices,a),a+=p)}}return t.push(r.buffer),{stringTable:n,packedData:r}},m.unpackCreateGeometryResults=function(e){for(var t=e.stringTable,r=e.packedData,n=new Array(r[0]),i=0,o=1;o<r.length;)if(1===r[o++]){var a,s,d=r[o++],p=r[o++],u=r[o++];-1===u&&(u=void 0),1===r[o++]&&(a=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;1===r[o++]&&(s=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;var f=new k.GeometryAttributes,c=r[o++];for(S=0;S<c;S++){for(var m=t[r[o++]],h=r[o++],l=r[o++],g=0!==r[o++],y=r[o++],b=A.ComponentDatatype.createTypedArray(h,y),v=0;v<y;v++)b[v]=r[o++];f[m]=new P.GeometryAttribute({componentDatatype:h,componentsPerAttribute:l,normalize:g,values:b})}if(0<(y=r[o++]))for(var x=b.length/l,G=C.IndexDatatype.createTypedArray(x,y),S=0;S<y;S++)G[S]=r[o++];n[i++]=new P.Geometry({primitiveType:d,geometryType:p,boundingSphere:a,boundingSphereCV:s,indices:G,attributes:f,offsetAttribute:u})}else n[i++]=void 0;return n},m.packCombineGeometryParameters=function(e,t){for(var r=e.createGeometryResults,n=r.length,i=0;i<n;i++)t.push(r[i].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:function(e,t){var r=e.length,n=new Float64Array(1+19*r),i=0;n[i++]=r;for(var o=0;o<r;o++){var a=e[o];D.Matrix4.pack(a.modelMatrix,n,i),i+=D.Matrix4.packedLength,V.defined(a.attributes)&&V.defined(a.attributes.offset)&&(a=a.attributes.offset.value,n[i]=a[0],n[i+1]=a[1],n[i+2]=a[2]),i+=3}return t.push(n.buffer),n}(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof w.GeographicProjection,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},m.unpackCombineGeometryParameters=function(e){for(var t=function(e){for(var t=e,r=new Array(t[0]),n=0,i=1;i<t.length;){var o,a=D.Matrix4.unpack(t,i);i+=D.Matrix4.packedLength,V.defined(t[i])&&(o={offset:new c(t[i],t[i+1],t[i+2])}),i+=3,r[n++]={modelMatrix:a,attributes:o}}return r}(e.packedInstances),r=e.createGeometryResults,n=r.length,i=0,o=0;o<n;o++)for(var a=m.unpackCreateGeometryResults(r[o]),s=a.length,d=0;d<s;d++){var p=a[d];t[i].geometry=p,++i}var u=D.Ellipsoid.clone(e.ellipsoid);return{instances:t,ellipsoid:u,projection:new(e.isGeographic?w.GeographicProjection:f.WebMercatorProjection)(u),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:D.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},m.packCombineGeometryResults=function(e,t){V.defined(e.geometries)&&i(e.geometries,t);var r=o(e.boundingSpheres),n=o(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},m.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r(e.boundingSpheres),boundingSpheresCV:r(e.boundingSpheresCV)}},e.PrimitivePipeline=m});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-078e6458","./when-ae2e0b60","./Check-f996273c","./Transforms-984eb057","./Math-5bbcea10","./GeometryAttribute-51995e5a"],function(t,X,w,n,a,Y,l){"use strict";var d=Math.cos,M=Math.sin,m=Math.sqrt,e={computePosition:function(t,n,a,e,r,o,s){var n=n.radiiSquared,i=t.nwCorner,g=t.boundingRectangle,h=i.latitude-t.granYCos*e+r*t.granXSin,u=d(h),c=M(h),C=n.z*c,i=i.longitude+e*t.granYSin+r*t.granXCos,l=u*d(i),u=u*M(i),S=n.x*l,n=n.y*u,l=m(S*l+n*u+C*c);o.x=S/l,o.y=n/l,o.z=C/l,a&&(u=t.stNwCorner,w.defined(u)?(h=u.latitude-t.stGranYCos*e+r*t.stGranXSin,i=u.longitude+e*t.stGranYSin+r*t.stGranXCos,s.x=(i-t.stWest)*t.lonScalar,s.y=(h-t.stSouth)*t.latScalar):(s.x=(i-g.west)*t.lonScalar,s.y=(h-g.south)*t.latScalar))}},S=new l.Matrix2,p=new X.Cartesian3,G=new X.Cartographic,x=new X.Cartesian3,R=new a.GeographicProjection;function b(t,n,a,e,r,o,s){var i=Math.cos(n),g=e*i,i=a*i,h=Math.sin(n),e=e*h,a=a*h,h=(p=R.project(t,p),p=X.Cartesian3.subtract(p,x,p),l.Matrix2.fromRotation(n,S)),n=(p=l.Matrix2.multiplyByVector(h,p,p),p=X.Cartesian3.add(p,x,p),(t=R.unproject(p,t)).latitude),h=n+--o*a,u=n-g*--s,c=n-g*s+o*a,C=Math.max(n,h,u,c),n=Math.min(n,h,u,c),h=t.longitude,u=h+o*i,c=h+s*e,s=h+s*e+o*i;return{north:C,south:n,east:Math.max(h,u,c,s),west:Math.min(h,u,c,s),granYCos:g,granYSin:e,granXCos:i,granXSin:a,nwCorner:t}}e.computeOptions=function(t,n,a,e,r,o,s){var i=t.east,g=t.west,h=t.north,u=t.south,c=!1,C=!1,l=(h===Y.CesiumMath.PI_OVER_TWO&&(c=!0),u===-Y.CesiumMath.PI_OVER_TWO&&(C=!0),h-u),S=i<g?Y.CesiumMath.TWO_PI-g+i:i-g,w=Math.ceil(S/n)+1,n=Math.ceil(l/n)+1,S=S/(w-1),l=l/(n-1),o=X.Rectangle.northwest(t,o),d=X.Rectangle.center(t,G),d=(0===a&&0===e||(d.longitude<o.longitude&&(d.longitude+=Y.CesiumMath.TWO_PI),x=R.project(d,x)),l),M=S,t=X.Rectangle.clone(t,r),r={granYCos:d,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:t,width:w,height:n,northCap:c,southCap:C};return 0!==a&&(h=(d=b(o,a,S,l,0,w,n)).north,u=d.south,i=d.east,g=d.west,r.granYCos=d.granYCos,r.granYSin=d.granYSin,r.granXCos=d.granXCos,r.granXSin=d.granXSin,t.north=h,t.south=u,t.east=i,t.west=g),0!==e&&(a-=e,c=b(M=X.Rectangle.northwest(t,s),a,S,l,0,w,n),r.stGranYCos=c.granYCos,r.stGranXCos=c.granXCos,r.stGranYSin=c.granYSin,r.stGranXSin=c.granXSin,r.stNwCorner=M,r.stWest=c.west,r.stSouth=c.south),r},t.RectangleGeometryLibrary=e});
@@ -1 +0,0 @@
1
- define(["exports","./Matrix2-10a61a55","./when-ae2e0b60","./RuntimeError-24b14c10","./Transforms-70ded1e8","./ComponentDatatype-b7b5db18"],function(t,m,d,n,a,X){"use strict";var w=Math.cos,M=Math.sin,Y=Math.sqrt,r={computePosition:function(t,n,a,r,e,o,s){var n=n.radiiSquared,i=t.nwCorner,g=t.boundingRectangle,u=i.latitude-t.granYCos*r+e*t.granXSin,h=w(u),c=M(u),C=n.z*c,i=i.longitude+r*t.granYSin+e*t.granXCos,l=h*w(i),h=h*M(i),S=n.x*l,n=n.y*h,l=Y(S*l+n*h+C*c);o.x=S/l,o.y=n/l,o.z=C/l,a&&(h=t.stNwCorner,d.defined(h)?(u=h.latitude-t.stGranYCos*r+e*t.stGranXSin,i=h.longitude+r*t.stGranYSin+e*t.stGranXCos,s.x=(i-t.stWest)*t.lonScalar,s.y=(u-t.stSouth)*t.latScalar):(s.x=(i-g.west)*t.lonScalar,s.y=(u-g.south)*t.latScalar))}},l=new m.Matrix2,S=new m.Cartesian3,p=new m.Cartographic,x=new m.Cartesian3,R=new a.GeographicProjection;function G(t,n,a,r,e,o,s){var i=Math.cos(n),g=r*i,i=a*i,u=Math.sin(n),r=r*u,a=a*u,u=(S=R.project(t,S),S=m.Cartesian3.subtract(S,x,S),m.Matrix2.fromRotation(n,l)),n=(S=m.Matrix2.multiplyByVector(u,S,S),S=m.Cartesian3.add(S,x,S),(t=R.unproject(S,t)).latitude),u=n+--o*a,h=n-g*--s,c=n-g*s+o*a,C=Math.max(n,u,h,c),n=Math.min(n,u,h,c),u=t.longitude,h=u+o*i,c=u+s*r,s=u+s*r+o*i;return{north:C,south:n,east:Math.max(u,h,c,s),west:Math.min(u,h,c,s),granYCos:g,granYSin:r,granXCos:i,granXSin:a,nwCorner:t}}r.computeOptions=function(t,n,a,r,e,o,s){var i=t.east,g=t.west,u=t.north,h=t.south,c=!1,C=!1,l=(u===X.CesiumMath.PI_OVER_TWO&&(c=!0),h===-X.CesiumMath.PI_OVER_TWO&&(C=!0),u-h),S=i<g?X.CesiumMath.TWO_PI-g+i:i-g,d=Math.ceil(S/n)+1,n=Math.ceil(l/n)+1,S=S/(d-1),l=l/(n-1),o=m.Rectangle.northwest(t,o),w=m.Rectangle.center(t,p),w=(0===a&&0===r||(w.longitude<o.longitude&&(w.longitude+=X.CesiumMath.TWO_PI),x=R.project(w,x)),l),M=S,t=m.Rectangle.clone(t,e),e={granYCos:w,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:t,width:d,height:n,northCap:c,southCap:C};return 0!==a&&(u=(w=G(o,a,S,l,0,d,n)).north,h=w.south,i=w.east,g=w.west,e.granYCos=w.granYCos,e.granYSin=w.granYSin,e.granXCos=w.granXCos,e.granXSin=w.granXSin,t.north=u,t.south=h,t.east=i,t.west=g),0!==r&&(a-=r,c=G(M=m.Rectangle.northwest(t,s),a,S,l,0,d,n),e.stGranYCos=c.granYCos,e.stGranXCos=c.granXCos,e.stGranYSin=c.granYSin,e.stGranXSin=c.granXSin,e.stNwCorner=M,e.stWest=c.west,e.stSouth=c.south),e},t.RectangleGeometryLibrary=r});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-078e6458","./when-ae2e0b60","./Check-f996273c","./Transforms-5aeb1d5e","./Math-5bbcea10","./GeometryAttribute-ccf4e0b6"],function(t,X,d,n,a,Y,l){"use strict";var w=Math.cos,M=Math.sin,m=Math.sqrt,e={computePosition:function(t,n,a,e,r,o,s){var n=n.radiiSquared,i=t.nwCorner,g=t.boundingRectangle,h=i.latitude-t.granYCos*e+r*t.granXSin,u=w(h),c=M(h),C=n.z*c,i=i.longitude+e*t.granYSin+r*t.granXCos,l=u*w(i),u=u*M(i),S=n.x*l,n=n.y*u,l=m(S*l+n*u+C*c);o.x=S/l,o.y=n/l,o.z=C/l,a&&(u=t.stNwCorner,d.defined(u)?(h=u.latitude-t.stGranYCos*e+r*t.stGranXSin,i=u.longitude+e*t.stGranYSin+r*t.stGranXCos,s.x=(i-t.stWest)*t.lonScalar,s.y=(h-t.stSouth)*t.latScalar):(s.x=(i-g.west)*t.lonScalar,s.y=(h-g.south)*t.latScalar))}},S=new l.Matrix2,p=new X.Cartesian3,G=new X.Cartographic,b=new X.Cartesian3,f=new a.GeographicProjection;function x(t,n,a,e,r,o,s){var i=Math.cos(n),g=e*i,i=a*i,h=Math.sin(n),e=e*h,a=a*h,h=(p=f.project(t,p),p=X.Cartesian3.subtract(p,b,p),l.Matrix2.fromRotation(n,S)),n=(p=l.Matrix2.multiplyByVector(h,p,p),p=X.Cartesian3.add(p,b,p),(t=f.unproject(p,t)).latitude),h=n+--o*a,u=n-g*--s,c=n-g*s+o*a,C=Math.max(n,h,u,c),n=Math.min(n,h,u,c),h=t.longitude,u=h+o*i,c=h+s*e,s=h+s*e+o*i;return{north:C,south:n,east:Math.max(h,u,c,s),west:Math.min(h,u,c,s),granYCos:g,granYSin:e,granXCos:i,granXSin:a,nwCorner:t}}e.computeOptions=function(t,n,a,e,r,o,s){var i=t.east,g=t.west,h=t.north,u=t.south,c=!1,C=!1,l=(h===Y.CesiumMath.PI_OVER_TWO&&(c=!0),u===-Y.CesiumMath.PI_OVER_TWO&&(C=!0),h-u),S=i<g?Y.CesiumMath.TWO_PI-g+i:i-g,d=Math.ceil(S/n)+1,n=Math.ceil(l/n)+1,S=S/(d-1),l=l/(n-1),o=X.Rectangle.northwest(t,o),w=X.Rectangle.center(t,G),w=(0===a&&0===e||(w.longitude<o.longitude&&(w.longitude+=Y.CesiumMath.TWO_PI),b=f.project(w,b)),l),M=S,t=X.Rectangle.clone(t,r),r={granYCos:w,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:t,width:d,height:n,northCap:c,southCap:C};return 0!==a&&(h=(w=x(o,a,S,l,0,d,n)).north,u=w.south,i=w.east,g=w.west,r.granYCos=w.granYCos,r.granYSin=w.granYSin,r.granXCos=w.granXCos,r.granXSin=w.granXSin,t.north=h,t.south=u,t.east=i,t.west=g),0!==e&&(a-=e,c=x(M=X.Rectangle.northwest(t,s),a,S,l,0,d,n),r.stGranYCos=c.granYCos,r.stGranXCos=c.granXCos,r.stGranYSin=c.granYSin,r.stGranXSin=c.granXSin,r.stNwCorner=M,r.stWest=c.west,r.stSouth=c.south),r},t.RectangleGeometryLibrary=e});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-c1eb9da0","./when-ae2e0b60","./Check-f996273c","./Transforms-1fa85493","./Math-5bbcea10","./GeometryAttribute-9cc31675"],function(t,X,d,n,a,Y,l){"use strict";var w=Math.cos,M=Math.sin,m=Math.sqrt,r={computePosition:function(t,n,a,r,e,o,s){var n=n.radiiSquared,i=t.nwCorner,g=t.boundingRectangle,h=i.latitude-t.granYCos*r+e*t.granXSin,c=w(h),u=M(h),C=n.z*u,i=i.longitude+r*t.granYSin+e*t.granXCos,l=c*w(i),c=c*M(i),S=n.x*l,n=n.y*c,l=m(S*l+n*c+C*u);o.x=S/l,o.y=n/l,o.z=C/l,a&&(c=t.stNwCorner,d.defined(c)?(h=c.latitude-t.stGranYCos*r+e*t.stGranXSin,i=c.longitude+r*t.stGranYSin+e*t.stGranXCos,s.x=(i-t.stWest)*t.lonScalar,s.y=(h-t.stSouth)*t.latScalar):(s.x=(i-g.west)*t.lonScalar,s.y=(h-g.south)*t.latScalar))}},S=new l.Matrix2,p=new X.Cartesian3,G=new X.Cartographic,f=new X.Cartesian3,x=new a.GeographicProjection;function R(t,n,a,r,e,o,s){var i=Math.cos(n),g=r*i,i=a*i,h=Math.sin(n),r=r*h,a=a*h,h=(p=x.project(t,p),p=X.Cartesian3.subtract(p,f,p),l.Matrix2.fromRotation(n,S)),n=(p=l.Matrix2.multiplyByVector(h,p,p),p=X.Cartesian3.add(p,f,p),(t=x.unproject(p,t)).latitude),h=n+--o*a,c=n-g*--s,u=n-g*s+o*a,C=Math.max(n,h,c,u),n=Math.min(n,h,c,u),h=t.longitude,c=h+o*i,u=h+s*r,s=h+s*r+o*i;return{north:C,south:n,east:Math.max(h,c,u,s),west:Math.min(h,c,u,s),granYCos:g,granYSin:r,granXCos:i,granXSin:a,nwCorner:t}}r.computeOptions=function(t,n,a,r,e,o,s){var i=t.east,g=t.west,h=t.north,c=t.south,u=!1,C=!1,l=(h===Y.CesiumMath.PI_OVER_TWO&&(u=!0),c===-Y.CesiumMath.PI_OVER_TWO&&(C=!0),h-c),S=i<g?Y.CesiumMath.TWO_PI-g+i:i-g,d=Math.ceil(S/n)+1,n=Math.ceil(l/n)+1,S=S/(d-1),l=l/(n-1),o=X.Rectangle.northwest(t,o),w=X.Rectangle.center(t,G),w=(0===a&&0===r||(w.longitude<o.longitude&&(w.longitude+=Y.CesiumMath.TWO_PI),f=x.project(w,f)),l),M=S,t=X.Rectangle.clone(t,e),e={granYCos:w,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:t,width:d,height:n,northCap:u,southCap:C};return 0!==a&&(h=(w=R(o,a,S,l,0,d,n)).north,c=w.south,i=w.east,g=w.west,e.granYCos=w.granYCos,e.granYSin=w.granYSin,e.granXCos=w.granXCos,e.granXSin=w.granXSin,t.north=h,t.south=c,t.east=i,t.west=g),0!==r&&(a-=r,u=R(M=X.Rectangle.northwest(t,s),a,S,l,0,d,n),e.stGranYCos=u.granYCos,e.stGranXCos=u.granXCos,e.stGranYSin=u.granYSin,e.stGranXSin=u.granXSin,e.stNwCorner=M,e.stWest=u.west,e.stSouth=u.south),e},t.RectangleGeometryLibrary=r});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-c1eb9da0","./when-ae2e0b60","./Check-f996273c","./Transforms-713e2e92","./Math-5bbcea10","./GeometryAttribute-e03451d8"],function(t,X,d,n,a,Y,l){"use strict";var w=Math.cos,M=Math.sin,m=Math.sqrt,e={computePosition:function(t,n,a,e,r,o,s){var n=n.radiiSquared,i=t.nwCorner,g=t.boundingRectangle,h=i.latitude-t.granYCos*e+r*t.granXSin,u=w(h),c=M(h),C=n.z*c,i=i.longitude+e*t.granYSin+r*t.granXCos,l=u*w(i),u=u*M(i),S=n.x*l,n=n.y*u,l=m(S*l+n*u+C*c);o.x=S/l,o.y=n/l,o.z=C/l,a&&(u=t.stNwCorner,d.defined(u)?(h=u.latitude-t.stGranYCos*e+r*t.stGranXSin,i=u.longitude+e*t.stGranYSin+r*t.stGranXCos,s.x=(i-t.stWest)*t.lonScalar,s.y=(h-t.stSouth)*t.latScalar):(s.x=(i-g.west)*t.lonScalar,s.y=(h-g.south)*t.latScalar))}},S=new l.Matrix2,p=new X.Cartesian3,G=new X.Cartographic,x=new X.Cartesian3,R=new a.GeographicProjection;function b(t,n,a,e,r,o,s){var i=Math.cos(n),g=e*i,i=a*i,h=Math.sin(n),e=e*h,a=a*h,h=(p=R.project(t,p),p=X.Cartesian3.subtract(p,x,p),l.Matrix2.fromRotation(n,S)),n=(p=l.Matrix2.multiplyByVector(h,p,p),p=X.Cartesian3.add(p,x,p),(t=R.unproject(p,t)).latitude),h=n+--o*a,u=n-g*--s,c=n-g*s+o*a,C=Math.max(n,h,u,c),n=Math.min(n,h,u,c),h=t.longitude,u=h+o*i,c=h+s*e,s=h+s*e+o*i;return{north:C,south:n,east:Math.max(h,u,c,s),west:Math.min(h,u,c,s),granYCos:g,granYSin:e,granXCos:i,granXSin:a,nwCorner:t}}e.computeOptions=function(t,n,a,e,r,o,s){var i=t.east,g=t.west,h=t.north,u=t.south,c=!1,C=!1,l=(h===Y.CesiumMath.PI_OVER_TWO&&(c=!0),u===-Y.CesiumMath.PI_OVER_TWO&&(C=!0),h-u),S=i<g?Y.CesiumMath.TWO_PI-g+i:i-g,d=Math.ceil(S/n)+1,n=Math.ceil(l/n)+1,S=S/(d-1),l=l/(n-1),o=X.Rectangle.northwest(t,o),w=X.Rectangle.center(t,G),w=(0===a&&0===e||(w.longitude<o.longitude&&(w.longitude+=Y.CesiumMath.TWO_PI),x=R.project(w,x)),l),M=S,t=X.Rectangle.clone(t,r),r={granYCos:w,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:t,width:d,height:n,northCap:c,southCap:C};return 0!==a&&(h=(w=b(o,a,S,l,0,d,n)).north,u=w.south,i=w.east,g=w.west,r.granYCos=w.granYCos,r.granYSin=w.granYSin,r.granXCos=w.granXCos,r.granXSin=w.granXSin,t.north=h,t.south=u,t.east=i,t.west=g),0!==e&&(a-=e,c=b(M=X.Rectangle.northwest(t,s),a,S,l,0,d,n),r.stGranYCos=c.granYCos,r.stGranXCos=c.granXCos,r.stGranYSin=c.granYSin,r.stGranXSin=c.granXSin,r.stNwCorner=M,r.stWest=c.west,r.stSouth=c.south),r},t.RectangleGeometryLibrary=e});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-c1eb9da0","./when-ae2e0b60","./Check-f996273c","./Transforms-8c8e0c6f","./Math-5bbcea10","./GeometryAttribute-8106b887"],function(t,X,d,n,a,Y,l){"use strict";var w=Math.cos,M=Math.sin,m=Math.sqrt,r={computePosition:function(t,n,a,r,e,o,s){var n=n.radiiSquared,i=t.nwCorner,g=t.boundingRectangle,h=i.latitude-t.granYCos*r+e*t.granXSin,c=w(h),u=M(h),C=n.z*u,i=i.longitude+r*t.granYSin+e*t.granXCos,l=c*w(i),c=c*M(i),S=n.x*l,n=n.y*c,l=m(S*l+n*c+C*u);o.x=S/l,o.y=n/l,o.z=C/l,a&&(c=t.stNwCorner,d.defined(c)?(h=c.latitude-t.stGranYCos*r+e*t.stGranXSin,i=c.longitude+r*t.stGranYSin+e*t.stGranXCos,s.x=(i-t.stWest)*t.lonScalar,s.y=(h-t.stSouth)*t.latScalar):(s.x=(i-g.west)*t.lonScalar,s.y=(h-g.south)*t.latScalar))}},S=new l.Matrix2,p=new X.Cartesian3,G=new X.Cartographic,b=new X.Cartesian3,f=new a.GeographicProjection;function x(t,n,a,r,e,o,s){var i=Math.cos(n),g=r*i,i=a*i,h=Math.sin(n),r=r*h,a=a*h,h=(p=f.project(t,p),p=X.Cartesian3.subtract(p,b,p),l.Matrix2.fromRotation(n,S)),n=(p=l.Matrix2.multiplyByVector(h,p,p),p=X.Cartesian3.add(p,b,p),(t=f.unproject(p,t)).latitude),h=n+--o*a,c=n-g*--s,u=n-g*s+o*a,C=Math.max(n,h,c,u),n=Math.min(n,h,c,u),h=t.longitude,c=h+o*i,u=h+s*r,s=h+s*r+o*i;return{north:C,south:n,east:Math.max(h,c,u,s),west:Math.min(h,c,u,s),granYCos:g,granYSin:r,granXCos:i,granXSin:a,nwCorner:t}}r.computeOptions=function(t,n,a,r,e,o,s){var i=t.east,g=t.west,h=t.north,c=t.south,u=!1,C=!1,l=(h===Y.CesiumMath.PI_OVER_TWO&&(u=!0),c===-Y.CesiumMath.PI_OVER_TWO&&(C=!0),h-c),S=i<g?Y.CesiumMath.TWO_PI-g+i:i-g,d=Math.ceil(S/n)+1,n=Math.ceil(l/n)+1,S=S/(d-1),l=l/(n-1),o=X.Rectangle.northwest(t,o),w=X.Rectangle.center(t,G),w=(0===a&&0===r||(w.longitude<o.longitude&&(w.longitude+=Y.CesiumMath.TWO_PI),b=f.project(w,b)),l),M=S,t=X.Rectangle.clone(t,e),e={granYCos:w,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:t,width:d,height:n,northCap:u,southCap:C};return 0!==a&&(h=(w=x(o,a,S,l,0,d,n)).north,c=w.south,i=w.east,g=w.west,e.granYCos=w.granYCos,e.granYSin=w.granYSin,e.granXCos=w.granXCos,e.granXSin=w.granXSin,t.north=h,t.south=c,t.east=i,t.west=g),0!==r&&(a-=r,u=x(M=X.Rectangle.northwest(t,s),a,S,l,0,d,n),e.stGranYCos=u.granYCos,e.stGranXCos=u.granXCos,e.stGranYSin=u.granYSin,e.stGranXSin=u.granXSin,e.stNwCorner=M,e.stWest=u.west,e.stSouth=u.south),e},t.RectangleGeometryLibrary=r});
@@ -1 +0,0 @@
1
- define(["exports","./when-ae2e0b60"],function(t,e){"use strict";function r(t){var e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}e.defined(Object.create)&&((r.prototype=Object.create(Error.prototype)).constructor=r),r.prototype.toString=function(){var t=this.name+": "+this.message;return e.defined(this.stack)&&(t+="\n"+this.stack.toString()),t},t.RuntimeError=r});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-984eb057","./Cartesian2-078e6458","./Check-f996273c","./when-ae2e0b60","./AttributeCompression-7a920947","./ComponentDatatype-e44126e4","./Math-5bbcea10"],function(e,f,p,G,x,l,d,h){"use strict";function t(e,t){this._ellipsoid=e,this._cameraPosition=new p.Cartesian3,this._cameraPositionInScaledSpace=new p.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,x.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=p.Cartesian3.magnitudeSquared(t)-1;p.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new p.Cartesian3,r=(t.prototype.isPointVisible=function(e){return C(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return C(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new p.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=x.defined(t)&&t<0&&a.minimumRadius>-t?((i=r).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return C(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},p.Ellipsoid.clone(p.Ellipsoid.UNIT_SPHERE)),o=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(c(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return S(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return S(c(this._ellipsoid,r,n),e,t,i,a,o)},[]),s=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=p.Rectangle.subsample(e,t,0,o),a=f.BoundingSphere.fromPoints(e);if(!(p.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new p.Cartesian3);function c(e,t,i){return x.defined(t)&&t<0&&e.minimumRadius>-t&&(t=p.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,s),e=p.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){x.defined(a)||(a=new p.Cartesian3);for(var r=T(e,t),o=0,n=0,s=i.length;n<s;++n){var c=N(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return M(r,o,a)}var m=new p.Cartesian3;function S(e,t,i,a,r,o){x.defined(o)||(o=new p.Cartesian3),a=x.defaultValue(a,3),r=x.defaultValue(r,p.Cartesian3.ZERO);for(var n=T(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=N(e,m,n);if(u<0)return;s=Math.max(s,u)}return M(n,s,o)}function C(e,t,i){e=p.Cartesian3.subtract(e,t,a),t=-p.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/p.Cartesian3.magnitudeSquared(e)>i)}var g=new p.Cartesian3,y=new p.Cartesian3;function N(e,t,i){var e=e.transformPositionToScaledSpace(t,g),t=p.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=p.Cartesian3.divideByScalar(e,a,y),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(p.Cartesian3.dot(e,i)*a-p.Cartesian3.magnitude(p.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function M(e,t,i){if(!(t<=0||t===1/0||t!=t))return p.Cartesian3.multiplyByScalar(e,t,i)}var i=new p.Cartesian3;function T(e,t){return p.Cartesian3.equals(t,p.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),p.Cartesian3.normalize(i,i))}var b={getHeight:function(e,t,i){return(e-i)*t+i}},P=new p.Cartesian3,z=(b.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,P),i=b.getHeight(e.height,i,a);return p.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),_=new p.Cartesian3,E=new p.Cartesian3,v=new p.Cartesian2,H=new f.Matrix4,w=new f.Matrix4,O=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=z.NONE;x.defined(t)&&x.defined(i)&&x.defined(a)&&x.defined(r)&&(l=t.minimum,t=t.maximum,t=p.Cartesian3.subtract(t,l,E),u=a-i,h=Math.max(p.Cartesian3.maximumComponent(t),u)<O-1?z.BITS12:z.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=p.Cartesian3.negate(l,_),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,H),u,u),(m=_).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,H),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,p.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,H),t=f.Matrix4.fromScale(t,w),l=f.Matrix4.multiply(l,t,H),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=p.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=x.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=x.defaultValue(s,!1),this.exaggeration=x.defaultValue(c,1),this.exaggerationRelativeHeight=x.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===z.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,_)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),p.Cartesian2.fromElements(i.x,i.y,v),u=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(i.z,c,v),c=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(m,a,v),d=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(p.Cartesian2.fromElements(n,0,v),u=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u)):(p.Cartesian3.subtract(i,this.center,_),e[t++]=_.x,e[t++]=_.y,e[t++]=_.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var B=new p.Cartesian3,I=new p.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,B),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return x.defined(i)||(i=new p.Cartesian3),t*=this.stride,this.quantization===z.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],v),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],v),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],p.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=b.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return x.defined(i)||(i=new p.Cartesian2),t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):p.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],v).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],v).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return p.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===z.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=d.ComponentDatatype.FLOAT,r=d.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===z.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===z.NONE?q:V},A.clone=function(e,t){if(x.defined(e))return(t=x.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=p.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60","./AttributeCompression-b9605c73","./ComponentDatatype-e44126e4","./Math-5bbcea10"],function(e,f,p,G,x,l,d,h){"use strict";function t(e,t){this._ellipsoid=e,this._cameraPosition=new p.Cartesian3,this._cameraPositionInScaledSpace=new p.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,x.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=p.Cartesian3.magnitudeSquared(t)-1;p.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new p.Cartesian3,r=(t.prototype.isPointVisible=function(e){return C(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return C(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new p.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=x.defined(t)&&t<0&&a.minimumRadius>-t?((i=r).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return C(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},p.Ellipsoid.clone(p.Ellipsoid.UNIT_SPHERE)),o=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(c(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return S(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return S(c(this._ellipsoid,r,n),e,t,i,a,o)},[]),s=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=p.Rectangle.subsample(e,t,0,o),a=f.BoundingSphere.fromPoints(e);if(!(p.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new p.Cartesian3);function c(e,t,i){return x.defined(t)&&t<0&&e.minimumRadius>-t&&(t=p.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,s),e=p.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){x.defined(a)||(a=new p.Cartesian3);for(var r=M(e,t),o=0,n=0,s=i.length;n<s;++n){var c=N(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return b(r,o,a)}var m=new p.Cartesian3;function S(e,t,i,a,r,o){x.defined(o)||(o=new p.Cartesian3),a=x.defaultValue(a,3),r=x.defaultValue(r,p.Cartesian3.ZERO);for(var n=M(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=N(e,m,n);if(u<0)return;s=Math.max(s,u)}return b(n,s,o)}function C(e,t,i){e=p.Cartesian3.subtract(e,t,a),t=-p.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/p.Cartesian3.magnitudeSquared(e)>i)}var g=new p.Cartesian3,y=new p.Cartesian3;function N(e,t,i){var e=e.transformPositionToScaledSpace(t,g),t=p.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=p.Cartesian3.divideByScalar(e,a,y),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(p.Cartesian3.dot(e,i)*a-p.Cartesian3.magnitude(p.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function b(e,t,i){if(!(t<=0||t===1/0||t!=t))return p.Cartesian3.multiplyByScalar(e,t,i)}var i=new p.Cartesian3;function M(e,t){return p.Cartesian3.equals(t,p.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),p.Cartesian3.normalize(i,i))}var T={getHeight:function(e,t,i){return(e-i)*t+i}},P=new p.Cartesian3,z=(T.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,P),i=T.getHeight(e.height,i,a);return p.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),_=new p.Cartesian3,E=new p.Cartesian3,v=new p.Cartesian2,H=new f.Matrix4,w=new f.Matrix4,O=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=z.NONE;x.defined(t)&&x.defined(i)&&x.defined(a)&&x.defined(r)&&(l=t.minimum,t=t.maximum,t=p.Cartesian3.subtract(t,l,E),u=a-i,h=Math.max(p.Cartesian3.maximumComponent(t),u)<O-1?z.BITS12:z.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=p.Cartesian3.negate(l,_),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,H),u,u),(m=_).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,H),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,p.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,H),t=f.Matrix4.fromScale(t,w),l=f.Matrix4.multiply(l,t,H),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=p.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=x.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=x.defaultValue(s,!1),this.exaggeration=x.defaultValue(c,1),this.exaggerationRelativeHeight=x.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===z.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,_)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),p.Cartesian2.fromElements(i.x,i.y,v),u=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(i.z,c,v),c=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(m,a,v),d=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(p.Cartesian2.fromElements(n,0,v),u=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u)):(p.Cartesian3.subtract(i,this.center,_),e[t++]=_.x,e[t++]=_.y,e[t++]=_.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var B=new p.Cartesian3,I=new p.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,B),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return x.defined(i)||(i=new p.Cartesian3),t*=this.stride,this.quantization===z.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],v),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],v),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],p.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=T.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return x.defined(i)||(i=new p.Cartesian2),t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):p.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],v).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],v).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return p.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===z.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=d.ComponentDatatype.FLOAT,r=d.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===z.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===z.NONE?q:V},A.clone=function(e,t){if(x.defined(e))return(t=x.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=p.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60","./AttributeCompression-b9605c73","./ComponentDatatype-e44126e4","./Math-5bbcea10"],function(e,f,p,G,x,l,d,h){"use strict";function t(e,t){this._ellipsoid=e,this._cameraPosition=new p.Cartesian3,this._cameraPositionInScaledSpace=new p.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,x.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=p.Cartesian3.magnitudeSquared(t)-1;p.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new p.Cartesian3,r=(t.prototype.isPointVisible=function(e){return C(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return C(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new p.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=x.defined(t)&&t<0&&a.minimumRadius>-t?((i=r).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return C(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},p.Ellipsoid.clone(p.Ellipsoid.UNIT_SPHERE)),o=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(c(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return S(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return S(c(this._ellipsoid,r,n),e,t,i,a,o)},[]),s=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=p.Rectangle.subsample(e,t,0,o),a=f.BoundingSphere.fromPoints(e);if(!(p.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new p.Cartesian3);function c(e,t,i){return x.defined(t)&&t<0&&e.minimumRadius>-t&&(t=p.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,s),e=p.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){x.defined(a)||(a=new p.Cartesian3);for(var r=M(e,t),o=0,n=0,s=i.length;n<s;++n){var c=N(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return b(r,o,a)}var m=new p.Cartesian3;function S(e,t,i,a,r,o){x.defined(o)||(o=new p.Cartesian3),a=x.defaultValue(a,3),r=x.defaultValue(r,p.Cartesian3.ZERO);for(var n=M(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=N(e,m,n);if(u<0)return;s=Math.max(s,u)}return b(n,s,o)}function C(e,t,i){e=p.Cartesian3.subtract(e,t,a),t=-p.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/p.Cartesian3.magnitudeSquared(e)>i)}var g=new p.Cartesian3,y=new p.Cartesian3;function N(e,t,i){var e=e.transformPositionToScaledSpace(t,g),t=p.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=p.Cartesian3.divideByScalar(e,a,y),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(p.Cartesian3.dot(e,i)*a-p.Cartesian3.magnitude(p.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function b(e,t,i){if(!(t<=0||t===1/0||t!=t))return p.Cartesian3.multiplyByScalar(e,t,i)}var i=new p.Cartesian3;function M(e,t){return p.Cartesian3.equals(t,p.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),p.Cartesian3.normalize(i,i))}var T={getHeight:function(e,t,i){return(e-i)*t+i}},P=new p.Cartesian3,z=(T.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,P),i=T.getHeight(e.height,i,a);return p.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),_=new p.Cartesian3,E=new p.Cartesian3,v=new p.Cartesian2,H=new f.Matrix4,w=new f.Matrix4,O=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=z.NONE;x.defined(t)&&x.defined(i)&&x.defined(a)&&x.defined(r)&&(l=t.minimum,t=t.maximum,t=p.Cartesian3.subtract(t,l,E),u=a-i,h=Math.max(p.Cartesian3.maximumComponent(t),u)<O-1?z.BITS12:z.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=p.Cartesian3.negate(l,_),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,H),u,u),(m=_).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,H),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,p.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,H),t=f.Matrix4.fromScale(t,w),l=f.Matrix4.multiply(l,t,H),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=p.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=x.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=x.defaultValue(s,!1),this.exaggeration=x.defaultValue(c,1),this.exaggerationRelativeHeight=x.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===z.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,_)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),p.Cartesian2.fromElements(i.x,i.y,v),u=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(i.z,c,v),c=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(m,a,v),d=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(p.Cartesian2.fromElements(n,0,v),u=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u)):(p.Cartesian3.subtract(i,this.center,_),e[t++]=_.x,e[t++]=_.y,e[t++]=_.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var B=new p.Cartesian3,I=new p.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,B),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return x.defined(i)||(i=new p.Cartesian3),t*=this.stride,this.quantization===z.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],v),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],v),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],p.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=T.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return x.defined(i)||(i=new p.Cartesian2),t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):p.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],v).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],v).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return p.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===z.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=d.ComponentDatatype.FLOAT,r=d.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===z.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===z.NONE?q:V},A.clone=function(e,t){if(x.defined(e))return(t=x.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=p.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./Check-f996273c","./when-ae2e0b60","./AttributeCompression-7a920947","./ComponentDatatype-e44126e4","./Math-5bbcea10"],function(e,f,p,G,x,l,d,h){"use strict";function t(e,t){this._ellipsoid=e,this._cameraPosition=new p.Cartesian3,this._cameraPositionInScaledSpace=new p.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,x.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=p.Cartesian3.magnitudeSquared(t)-1;p.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new p.Cartesian3,r=(t.prototype.isPointVisible=function(e){return C(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return C(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new p.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=x.defined(t)&&t<0&&a.minimumRadius>-t?((i=r).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return C(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},p.Ellipsoid.clone(p.Ellipsoid.UNIT_SPHERE)),o=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(c(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return S(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return S(c(this._ellipsoid,r,n),e,t,i,a,o)},[]),s=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=p.Rectangle.subsample(e,t,0,o),a=f.BoundingSphere.fromPoints(e);if(!(p.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new p.Cartesian3);function c(e,t,i){return x.defined(t)&&t<0&&e.minimumRadius>-t&&(t=p.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,s),e=p.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){x.defined(a)||(a=new p.Cartesian3);for(var r=T(e,t),o=0,n=0,s=i.length;n<s;++n){var c=N(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return M(r,o,a)}var m=new p.Cartesian3;function S(e,t,i,a,r,o){x.defined(o)||(o=new p.Cartesian3),a=x.defaultValue(a,3),r=x.defaultValue(r,p.Cartesian3.ZERO);for(var n=T(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=N(e,m,n);if(u<0)return;s=Math.max(s,u)}return M(n,s,o)}function C(e,t,i){e=p.Cartesian3.subtract(e,t,a),t=-p.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/p.Cartesian3.magnitudeSquared(e)>i)}var g=new p.Cartesian3,y=new p.Cartesian3;function N(e,t,i){var e=e.transformPositionToScaledSpace(t,g),t=p.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=p.Cartesian3.divideByScalar(e,a,y),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(p.Cartesian3.dot(e,i)*a-p.Cartesian3.magnitude(p.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function M(e,t,i){if(!(t<=0||t===1/0||t!=t))return p.Cartesian3.multiplyByScalar(e,t,i)}var i=new p.Cartesian3;function T(e,t){return p.Cartesian3.equals(t,p.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),p.Cartesian3.normalize(i,i))}var b={getHeight:function(e,t,i){return(e-i)*t+i}},P=new p.Cartesian3,z=(b.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,P),i=b.getHeight(e.height,i,a);return p.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),_=new p.Cartesian3,E=new p.Cartesian3,v=new p.Cartesian2,H=new f.Matrix4,w=new f.Matrix4,O=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=z.NONE;x.defined(t)&&x.defined(i)&&x.defined(a)&&x.defined(r)&&(l=t.minimum,t=t.maximum,t=p.Cartesian3.subtract(t,l,E),u=a-i,h=Math.max(p.Cartesian3.maximumComponent(t),u)<O-1?z.BITS12:z.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=p.Cartesian3.negate(l,_),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,H),u,u),(m=_).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,H),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,p.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,H),t=f.Matrix4.fromScale(t,w),l=f.Matrix4.multiply(l,t,H),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=p.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=x.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=x.defaultValue(s,!1),this.exaggeration=x.defaultValue(c,1),this.exaggerationRelativeHeight=x.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===z.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,_)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),p.Cartesian2.fromElements(i.x,i.y,v),u=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(i.z,c,v),c=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(m,a,v),d=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(p.Cartesian2.fromElements(n,0,v),u=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u)):(p.Cartesian3.subtract(i,this.center,_),e[t++]=_.x,e[t++]=_.y,e[t++]=_.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var B=new p.Cartesian3,I=new p.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,B),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return x.defined(i)||(i=new p.Cartesian3),t*=this.stride,this.quantization===z.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],v),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],v),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],p.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=b.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return x.defined(i)||(i=new p.Cartesian2),t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):p.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],v).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],v).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return p.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===z.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=d.ComponentDatatype.FLOAT,r=d.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===z.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===z.NONE?q:V},A.clone=function(e,t){if(x.defined(e))return(t=x.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=p.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60","./AttributeCompression-b9605c73","./ComponentDatatype-e44126e4","./Math-5bbcea10"],function(e,f,p,G,x,l,d,h){"use strict";function t(e,t){this._ellipsoid=e,this._cameraPosition=new p.Cartesian3,this._cameraPositionInScaledSpace=new p.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,x.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=p.Cartesian3.magnitudeSquared(t)-1;p.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new p.Cartesian3,r=(t.prototype.isPointVisible=function(e){return C(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return C(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new p.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=x.defined(t)&&t<0&&a.minimumRadius>-t?((i=r).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return C(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},p.Ellipsoid.clone(p.Ellipsoid.UNIT_SPHERE)),o=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(c(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return S(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return S(c(this._ellipsoid,r,n),e,t,i,a,o)},[]),s=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=p.Rectangle.subsample(e,t,0,o),a=f.BoundingSphere.fromPoints(e);if(!(p.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new p.Cartesian3);function c(e,t,i){return x.defined(t)&&t<0&&e.minimumRadius>-t&&(t=p.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,s),e=p.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){x.defined(a)||(a=new p.Cartesian3);for(var r=M(e,t),o=0,n=0,s=i.length;n<s;++n){var c=N(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return b(r,o,a)}var m=new p.Cartesian3;function S(e,t,i,a,r,o){x.defined(o)||(o=new p.Cartesian3),a=x.defaultValue(a,3),r=x.defaultValue(r,p.Cartesian3.ZERO);for(var n=M(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=N(e,m,n);if(u<0)return;s=Math.max(s,u)}return b(n,s,o)}function C(e,t,i){e=p.Cartesian3.subtract(e,t,a),t=-p.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/p.Cartesian3.magnitudeSquared(e)>i)}var g=new p.Cartesian3,y=new p.Cartesian3;function N(e,t,i){var e=e.transformPositionToScaledSpace(t,g),t=p.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=p.Cartesian3.divideByScalar(e,a,y),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(p.Cartesian3.dot(e,i)*a-p.Cartesian3.magnitude(p.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function b(e,t,i){if(!(t<=0||t===1/0||t!=t))return p.Cartesian3.multiplyByScalar(e,t,i)}var i=new p.Cartesian3;function M(e,t){return p.Cartesian3.equals(t,p.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),p.Cartesian3.normalize(i,i))}var T={getHeight:function(e,t,i){return(e-i)*t+i}},P=new p.Cartesian3,z=(T.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,P),i=T.getHeight(e.height,i,a);return p.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),_=new p.Cartesian3,E=new p.Cartesian3,v=new p.Cartesian2,H=new f.Matrix4,w=new f.Matrix4,O=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=z.NONE;x.defined(t)&&x.defined(i)&&x.defined(a)&&x.defined(r)&&(l=t.minimum,t=t.maximum,t=p.Cartesian3.subtract(t,l,E),u=a-i,h=Math.max(p.Cartesian3.maximumComponent(t),u)<O-1?z.BITS12:z.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=p.Cartesian3.negate(l,_),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,H),u,u),(m=_).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,H),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,p.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,H),t=f.Matrix4.fromScale(t,w),l=f.Matrix4.multiply(l,t,H),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=p.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=x.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=x.defaultValue(s,!1),this.exaggeration=x.defaultValue(c,1),this.exaggerationRelativeHeight=x.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===z.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,_)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),p.Cartesian2.fromElements(i.x,i.y,v),u=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(i.z,c,v),c=l.AttributeCompression.compressTextureCoordinates(v),p.Cartesian2.fromElements(m,a,v),d=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(p.Cartesian2.fromElements(n,0,v),u=l.AttributeCompression.compressTextureCoordinates(v),e[t++]=u)):(p.Cartesian3.subtract(i,this.center,_),e[t++]=_.x,e[t++]=_.y,e[t++]=_.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var B=new p.Cartesian3,I=new p.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,B),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return x.defined(i)||(i=new p.Cartesian3),t*=this.stride,this.quantization===z.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],v),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],v),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],p.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=T.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return x.defined(i)||(i=new p.Cartesian2),t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):p.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],v).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===z.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],v).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return p.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===z.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=d.ComponentDatatype.FLOAT,r=d.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===z.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===z.NONE?q:V},A.clone=function(e,t){if(x.defined(e))return(t=x.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=p.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-70ded1e8","./Matrix2-10a61a55","./RuntimeError-24b14c10","./when-ae2e0b60","./AttributeCompression-ceaf1f7d","./ComponentDatatype-b7b5db18"],function(e,r,f,G,p,l,h){"use strict";function t(e,t){this._ellipsoid=e,this._cameraPosition=new f.Cartesian3,this._cameraPositionInScaledSpace=new f.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,p.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=f.Cartesian3.magnitudeSquared(t)-1;f.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new f.Cartesian3,o=(t.prototype.isPointVisible=function(e){return S(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return S(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new f.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=p.defined(t)&&t<0&&a.minimumRadius>-t?((i=o).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return S(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},f.Ellipsoid.clone(f.Ellipsoid.UNIT_SPHERE)),s=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(d(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return x(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return x(d(this._ellipsoid,r,n),e,t,i,a,o)},[]),c=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=f.Rectangle.subsample(e,t,0,s),a=r.BoundingSphere.fromPoints(e);if(!(f.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new f.Cartesian3);function d(e,t,i){return p.defined(t)&&t<0&&e.minimumRadius>-t&&(t=f.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,c),e=f.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){p.defined(a)||(a=new f.Cartesian3);for(var r=b(e,t),o=0,n=0,s=i.length;n<s;++n){var c=y(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return N(r,o,a)}var m=new f.Cartesian3;function x(e,t,i,a,r,o){p.defined(o)||(o=new f.Cartesian3),a=p.defaultValue(a,3),r=p.defaultValue(r,f.Cartesian3.ZERO);for(var n=b(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=y(e,m,n);if(u<0)return;s=Math.max(s,u)}return N(n,s,o)}function S(e,t,i){e=f.Cartesian3.subtract(e,t,a),t=-f.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/f.Cartesian3.magnitudeSquared(e)>i)}var C=new f.Cartesian3,g=new f.Cartesian3;function y(e,t,i){var e=e.transformPositionToScaledSpace(t,C),t=f.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=f.Cartesian3.divideByScalar(e,a,g),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(f.Cartesian3.dot(e,i)*a-f.Cartesian3.magnitude(f.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function N(e,t,i){if(!(t<=0||t===1/0||t!=t))return f.Cartesian3.multiplyByScalar(e,t,i)}var i=new f.Cartesian3;function b(e,t){return f.Cartesian3.equals(t,f.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),f.Cartesian3.normalize(i,i))}var M={getHeight:function(e,t,i){return(e-i)*t+i}},T=new f.Cartesian3,P=(M.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,T),i=M.getHeight(e.height,i,a);return f.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),z=new f.Cartesian3,_=new f.Cartesian3,E=new f.Cartesian2,v=new f.Matrix4,H=new f.Matrix4,w=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=P.NONE;p.defined(t)&&p.defined(i)&&p.defined(a)&&p.defined(r)&&(l=t.minimum,t=t.maximum,t=f.Cartesian3.subtract(t,l,_),u=a-i,h=Math.max(f.Cartesian3.maximumComponent(t),u)<w-1?P.BITS12:P.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=f.Cartesian3.negate(l,z),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,v),u,u),(m=z).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,v),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,f.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,v),t=f.Matrix4.fromScale(t,H),l=f.Matrix4.multiply(l,t,v),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=f.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=p.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=p.defaultValue(s,!1),this.exaggeration=p.defaultValue(c,1),this.exaggerationRelativeHeight=p.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===P.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,z)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),f.Cartesian2.fromElements(i.x,i.y,E),u=l.AttributeCompression.compressTextureCoordinates(E),f.Cartesian2.fromElements(i.z,c,E),c=l.AttributeCompression.compressTextureCoordinates(E),f.Cartesian2.fromElements(m,a,E),d=l.AttributeCompression.compressTextureCoordinates(E),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(f.Cartesian2.fromElements(n,0,E),u=l.AttributeCompression.compressTextureCoordinates(E),e[t++]=u)):(f.Cartesian3.subtract(i,this.center,z),e[t++]=z.x,e[t++]=z.y,e[t++]=z.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var O=new f.Cartesian3,I=new f.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,O),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return p.defined(i)||(i=new f.Cartesian3),t*=this.stride,this.quantization===P.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],E),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],E),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],f.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=M.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return p.defined(i)||(i=new f.Cartesian2),t*=this.stride,this.quantization===P.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):f.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===P.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],E).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===P.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],E).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return f.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===P.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=h.ComponentDatatype.FLOAT,r=h.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===P.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===P.NONE?q:V},A.clone=function(e,t){if(p.defined(e))return(t=p.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=f.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});