@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.
- package/Documentation/AlgorithmLib.html +29 -29
- package/Documentation/AngulationTool.html +5 -5
- package/Documentation/Animation.html +7 -7
- package/Documentation/AnimationTool.html +41 -41
- package/Documentation/AnimationViewModel.html +23 -23
- package/Documentation/Appearance.html +10 -10
- package/Documentation/ArcGISTiledElevationTerrainProvider.html +13 -13
- package/Documentation/ArcGisMapServerImageryProvider.html +68 -33
- package/Documentation/AssociativeArray.html +8 -8
- package/Documentation/AttributeSurfacePrimitive.html +7 -7
- package/Documentation/AxisAlignedBoundingBox.html +11 -11
- package/Documentation/BaiduImageryProvider.html +29 -29
- package/Documentation/BaiduMapImagerProvider.html +1 -1
- package/Documentation/BaiduProjection.html +7 -7
- package/Documentation/BaseLayerPicker.html +5 -5
- package/Documentation/BaseLayerPickerViewModel.html +10 -10
- package/Documentation/Billboard.html +31 -31
- package/Documentation/BillboardCollection.html +17 -17
- package/Documentation/BillboardGraphics.html +25 -25
- package/Documentation/BillboardVisualizer.html +4 -4
- package/Documentation/BingMapsGeocoderService.html +4 -4
- package/Documentation/BingMapsImageryProvider.html +35 -35
- package/Documentation/BlendingState.html +5 -5
- package/Documentation/BloomEffect.html +12 -12
- package/Documentation/BoundingRectangle.html +18 -18
- package/Documentation/BoundingSphere.html +34 -34
- package/Documentation/BoxEmitter.html +2 -2
- package/Documentation/BoxGeometry.html +7 -7
- package/Documentation/BoxGeometryUpdater.html +3 -3
- package/Documentation/BoxGraphics.html +15 -15
- package/Documentation/BoxOutlineGeometry.html +7 -7
- package/Documentation/CallbackProperty.html +7 -7
- package/Documentation/Camera.html +80 -80
- package/Documentation/CameraEventAggregator.html +13 -13
- package/Documentation/Cartesian2.html +44 -44
- package/Documentation/Cartesian3.html +54 -54
- package/Documentation/Cartesian4.html +46 -46
- package/Documentation/Cartographic.html +16 -16
- package/Documentation/CartographicGeocoderService.html +2 -2
- package/Documentation/CatmullRomSpline.html +9 -9
- package/Documentation/Cesium3DTile.html +12 -12
- package/Documentation/Cesium3DTileContent.html +14 -14
- package/Documentation/Cesium3DTileCustomContent.html +1 -1
- package/Documentation/Cesium3DTileFeature.html +10 -10
- package/Documentation/Cesium3DTilePointFeature.html +33 -33
- package/Documentation/Cesium3DTileStyle.html +31 -31
- package/Documentation/Cesium3DTilesInspector.html +5 -5
- package/Documentation/Cesium3DTilesInspectorViewModel.html +70 -70
- package/Documentation/Cesium3DTileset.html +91 -91
- package/Documentation/Cesium3DTilesetGraphics.html +8 -8
- package/Documentation/Cesium3DTilesetVisualizer.html +4 -4
- package/Documentation/CesiumHeatmap.html +3 -3
- package/Documentation/CesiumInspector.html +5 -5
- package/Documentation/CesiumInspectorViewModel.html +52 -52
- package/Documentation/CesiumNavigation.html +1 -1
- package/Documentation/CesiumTerrainProvider.html +17 -17
- package/Documentation/CesiumWidget.html +20 -20
- package/Documentation/CheckerboardMaterialProperty.html +9 -9
- package/Documentation/CircleEmitter.html +3 -3
- package/Documentation/CircleGeometry.html +5 -5
- package/Documentation/CircleOutlineGeometry.html +5 -5
- package/Documentation/CircleScanEffect.html +1 -1
- package/Documentation/CircleWaveMaterialProperty.html +1 -1
- package/Documentation/ClassificationPrimitive.html +21 -21
- package/Documentation/ClippingGeometry.html +4 -4
- package/Documentation/ClippingPlane.html +5 -5
- package/Documentation/ClippingPlaneCollection.html +17 -17
- package/Documentation/Clock.html +12 -12
- package/Documentation/ClockViewModel.html +14 -14
- package/Documentation/CollisionDetectionByRender.html +10 -10
- package/Documentation/Color.html +185 -185
- package/Documentation/ColorGeometryInstanceAttribute.html +8 -8
- package/Documentation/ColorMaterialProperty.html +7 -7
- package/Documentation/Command.html +4 -4
- package/Documentation/CompositeEntityCollection.html +21 -21
- package/Documentation/CompositeMaterialProperty.html +7 -7
- package/Documentation/CompositePositionProperty.html +8 -8
- package/Documentation/CompositeProperty.html +6 -6
- package/Documentation/CompressedTextureBuffer.html +8 -8
- package/Documentation/ConditionsExpression.html +4 -4
- package/Documentation/ConeEmitter.html +1 -1
- package/Documentation/ConstantPositionProperty.html +8 -8
- package/Documentation/ConstantProperty.html +8 -8
- package/Documentation/CoplanarPolygonGeometry.html +6 -6
- package/Documentation/CoplanarPolygonOutlineGeometry.html +6 -6
- package/Documentation/CorridorGeometry.html +6 -6
- package/Documentation/CorridorGeometryUpdater.html +3 -3
- package/Documentation/CorridorGraphics.html +23 -23
- package/Documentation/CorridorOutlineGeometry.html +5 -5
- package/Documentation/Credit.html +7 -7
- package/Documentation/CreditDisplay.html +11 -11
- package/Documentation/CubicRealPolynomial.html +3 -3
- package/Documentation/CullingVolume.html +4 -4
- package/Documentation/CustomDataSource.html +11 -11
- package/Documentation/CustomHeightmapTerrainProvider.html +15 -15
- package/Documentation/CustomProjection.html +5 -5
- package/Documentation/CustomShader.html +1 -1
- package/Documentation/CustomTilingScheme.html +16 -54
- package/Documentation/CutFillAnalysis.html +17 -17
- package/Documentation/CuttingTool.html +11 -11
- package/Documentation/CylinderGeometry.html +5 -5
- package/Documentation/CylinderGeometryUpdater.html +3 -3
- package/Documentation/CylinderGraphics.html +19 -19
- package/Documentation/CylinderOutlineGeometry.html +5 -5
- package/Documentation/CzmlDataSource.html +22 -22
- package/Documentation/DataSource.html +11 -11
- package/Documentation/DataSourceClock.html +12 -12
- package/Documentation/DataSourceCollection.html +18 -18
- package/Documentation/DataSourceDisplay.html +10 -10
- package/Documentation/DebugAppearance.html +12 -12
- package/Documentation/DebugCameraPrimitive.html +5 -5
- package/Documentation/DebugModelMatrixPrimitive.html +8 -8
- package/Documentation/DefaultProxy.html +2 -2
- package/Documentation/DeveloperError.html +4 -4
- package/Documentation/DirectionalLight.html +4 -4
- package/Documentation/DiscardEmptyTileImagePolicy.html +4 -4
- package/Documentation/DiscardMissingTileImagePolicy.html +3 -3
- package/Documentation/DistanceDisplayCondition.html +10 -10
- package/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html +7 -7
- package/Documentation/DrawElement.html +9 -9
- package/Documentation/DrawTool.html +4 -4
- package/Documentation/DynamicEntityVisualizer.html +1 -1
- package/Documentation/DynamicLightLineEffect.html +13 -13
- package/Documentation/EasingFunction.html +33 -33
- package/Documentation/EditTool.html +15 -15
- package/Documentation/EllipseGeometry.html +6 -6
- package/Documentation/EllipseGeometryUpdater.html +4 -4
- package/Documentation/EllipseGraphics.html +25 -25
- package/Documentation/EllipseOutlineGeometry.html +5 -5
- package/Documentation/Ellipsoid.html +34 -34
- package/Documentation/EllipsoidGeodesic.html +10 -10
- package/Documentation/EllipsoidGeometry.html +5 -5
- package/Documentation/EllipsoidGeometryUpdater.html +3 -3
- package/Documentation/EllipsoidGraphics.html +23 -23
- package/Documentation/EllipsoidOutlineGeometry.html +5 -5
- package/Documentation/EllipsoidRhumbLine.html +12 -12
- package/Documentation/EllipsoidSurfaceAppearance.html +15 -15
- package/Documentation/EllipsoidTangentPlane.html +14 -14
- package/Documentation/EllipsoidTerrainProvider.html +13 -13
- package/Documentation/Entity.html +40 -40
- package/Documentation/EntityCluster.html +11 -11
- package/Documentation/EntityCollection.html +17 -17
- package/Documentation/EntityView.html +7 -7
- package/Documentation/Event.html +6 -6
- package/Documentation/EventHelper.html +4 -4
- package/Documentation/Expression.html +4 -4
- package/Documentation/FeatureDetection.html +9 -9
- package/Documentation/FlattenTool.html +34 -6
- package/Documentation/FloodAnalysis.html +16 -16
- package/Documentation/FloodAnalysisReflection.html +9 -9
- package/Documentation/Fog.html +5 -5
- package/Documentation/FrameRateMonitor.html +16 -16
- package/Documentation/FrustumGeometry.html +5 -5
- package/Documentation/FrustumOutlineGeometry.html +5 -5
- package/Documentation/Fullscreen.html +9 -9
- package/Documentation/FullscreenButton.html +5 -5
- package/Documentation/FullscreenButtonViewModel.html +8 -8
- package/Documentation/GaodeImageryProvider.html +29 -29
- package/Documentation/GaodeProjection.html +7 -7
- package/Documentation/GeoJsonDataSource.html +27 -27
- package/Documentation/Geocoder.html +7 -7
- package/Documentation/GeocoderService.html +3 -3
- package/Documentation/GeocoderViewModel.html +14 -14
- package/Documentation/GeographicProjection.html +94 -4
- package/Documentation/GeographicTilingScheme.html +10 -10
- package/Documentation/Geometry.html +6 -6
- package/Documentation/GeometryAttribute.html +5 -5
- package/Documentation/GeometryAttributes.html +7 -7
- package/Documentation/GeometryFactory.html +2 -2
- package/Documentation/GeometryInstance.html +5 -5
- package/Documentation/GeometryInstanceAttribute.html +5 -5
- package/Documentation/GeometryPipeline.html +13 -13
- package/Documentation/GeometryUpdater.html +22 -22
- package/Documentation/GeometryVisualizer.html +4 -4
- package/Documentation/GetFeatureInfoFormat.html +1 -1
- package/Documentation/Globe.html +47 -47
- package/Documentation/GlobeEffect.html +8 -8
- package/Documentation/GlobeIndependentTranslucency.html +10 -10
- package/Documentation/GlobeTranslucency.html +7 -7
- package/Documentation/GoogleEarthEnterpriseImageryProvider.html +29 -29
- package/Documentation/GoogleEarthEnterpriseMapsProvider.html +34 -34
- package/Documentation/GoogleEarthEnterpriseMetadata.html +14 -14
- package/Documentation/GoogleEarthEnterpriseTerrainData.html +7 -7
- package/Documentation/GoogleEarthEnterpriseTerrainProvider.html +15 -15
- package/Documentation/GoogleMapImageryProvider.html +1 -1
- package/Documentation/Graphic.html +31 -31
- package/Documentation/GraphicTransformTool.html +7 -7
- package/Documentation/GraphicsLayer.html +27 -27
- package/Documentation/GregorianDate.html +9 -9
- package/Documentation/GridImageryProvider.html +30 -30
- package/Documentation/GridMaterialProperty.html +11 -11
- package/Documentation/GroundGeometryUpdater.html +3 -3
- package/Documentation/GroundPolylineGeometry.html +7 -7
- package/Documentation/GroundPolylinePrimitive.html +19 -19
- package/Documentation/GroundPrimitive.html +24 -24
- package/Documentation/GroundPrimitiveRectangleGenerater.html +3 -3
- package/Documentation/HashMap.html +12 -12
- package/Documentation/HeadingPitchRange.html +5 -5
- package/Documentation/HeadingPitchRoll.html +13 -13
- package/Documentation/HeightLimited.html +4 -4
- package/Documentation/HeightModelEffect.html +8 -8
- package/Documentation/HeightmapTerrainData.html +7 -7
- package/Documentation/HermitePolynomialApproximation.html +4 -4
- package/Documentation/HermiteSpline.html +12 -12
- package/Documentation/HilbertOrder.html +1 -1
- package/Documentation/HomeButton.html +5 -5
- package/Documentation/HomeButtonViewModel.html +5 -5
- package/Documentation/ImageMaterialProperty.html +10 -10
- package/Documentation/ImageryLayer.html +34 -34
- package/Documentation/ImageryLayerCollection.html +25 -25
- package/Documentation/ImageryLayerFeatureInfo.html +8 -8
- package/Documentation/ImageryProvider.html +88 -28
- package/Documentation/ImprovedNoise.html +1 -1
- package/Documentation/InfoBox.html +6 -6
- package/Documentation/InfoBoxViewModel.html +11 -11
- package/Documentation/IntersectionTests.html +11 -11
- package/Documentation/Intersections2D.html +4 -4
- package/Documentation/Interval.html +3 -3
- package/Documentation/Ion.html +3 -3
- package/Documentation/IonGeocoderService.html +2 -2
- package/Documentation/IonImageryProvider.html +28 -28
- package/Documentation/IonResource.html +39 -39
- package/Documentation/Iso8601.html +4 -4
- package/Documentation/JulianDate.html +31 -31
- package/Documentation/KeyboardCameraController.html +10 -10
- package/Documentation/KmlCamera.html +1 -1
- package/Documentation/KmlDataSource.html +20 -20
- package/Documentation/KmlFeatureData.html +9 -9
- package/Documentation/KmlLookAt.html +1 -1
- package/Documentation/KmlTour.html +12 -12
- package/Documentation/KmlTourFlyTo.html +5 -5
- package/Documentation/KmlTourWait.html +4 -4
- package/Documentation/Label.html +30 -30
- package/Documentation/LabelCollection.html +15 -15
- package/Documentation/LabelGraphics.html +26 -26
- package/Documentation/LabelVisualizer.html +4 -4
- package/Documentation/LagrangePolynomialApproximation.html +3 -3
- package/Documentation/Layers.html +56 -56
- package/Documentation/LeapSecond.html +3 -3
- package/Documentation/Light.html +3 -3
- package/Documentation/LineScanEffect.html +6 -6
- package/Documentation/LinearApproximation.html +3 -3
- package/Documentation/LinearSpline.html +7 -7
- package/Documentation/LonlatProjection.html +4 -4
- package/Documentation/M3DTree.html +11 -11
- package/Documentation/MapGIS3DTile.html +12 -12
- package/Documentation/MapGIS3DTileFeature.html +10 -10
- package/Documentation/MapGIS3DTileset.html +86 -86
- package/Documentation/MapGISCustomImageryProvider.html +29 -29
- package/Documentation/MapGISFeatureGeojsonProvider.html +9 -9
- package/Documentation/MapGISFeatureLayer.html +52 -52
- package/Documentation/MapGISFeatureProvider.html +9 -9
- package/Documentation/MapGISFeatureTilePrimitiveCollection.html +16 -16
- package/Documentation/MapGISGeojsonLayer.html +38 -38
- package/Documentation/MapGISGeojsonProvider.html +8 -8
- package/Documentation/MapGISGeojsonTilePrimitiveCollection.html +16 -16
- package/Documentation/MapGISLabelLayer.html +18 -18
- package/Documentation/MapGISM3D.html +13 -13
- package/Documentation/MapGISM3DSet.html +319 -311
- package/Documentation/MapGISM3DTileContent.html +3 -3
- package/Documentation/MapGISMapServerImageryProvider.html +4 -4
- package/Documentation/MapGISTerrainProvider.html +297 -297
- package/Documentation/MapGISTileAvailability.html +1098 -0
- package/Documentation/MapGISTileServerImageProvider.html +5 -5
- package/Documentation/MapGISVectorGeojsonProvider.html +9 -9
- package/Documentation/MapGISVectorLayer.html +50 -50
- package/Documentation/MapGISVectorProvider.html +9 -9
- package/Documentation/MapGISVectorTilePrimitiveCollection.html +16 -16
- package/Documentation/MapProjection.html +4 -4
- package/Documentation/MapboxImageryProvider.html +29 -29
- package/Documentation/MapboxStyleImageryProvider.html +29 -29
- package/Documentation/Material.html +44 -44
- package/Documentation/MaterialAppearance.MaterialSupport.html +4 -4
- package/Documentation/MaterialAppearance.html +15 -15
- package/Documentation/MaterialProperty.html +6 -6
- package/Documentation/Math.html +76 -76
- package/Documentation/Matrix2.html +41 -41
- package/Documentation/Matrix3.html +56 -56
- package/Documentation/Matrix4.html +76 -76
- package/Documentation/MeasureAreaTool.html +1 -1
- package/Documentation/MeasureLengthTool.html +7 -7
- package/Documentation/MeasureSlopeTool.html +5 -5
- package/Documentation/Model.html +51 -51
- package/Documentation/ModelAnimation.html +12 -12
- package/Documentation/ModelAnimationCollection.html +10 -10
- package/Documentation/ModelEditor.html +1 -1
- package/Documentation/ModelExplosion.html +15 -15
- package/Documentation/ModelFilterTool.html +5 -5
- package/Documentation/ModelGraphics.html +26 -26
- package/Documentation/ModelMaterial.html +5 -5
- package/Documentation/ModelMesh.html +4 -4
- package/Documentation/ModelNode.html +6 -6
- package/Documentation/ModelTransformTool.html +244 -17
- package/Documentation/ModelVisualizer.html +4 -4
- package/Documentation/Moon.html +7 -7
- package/Documentation/NavigationControl.html +1 -1
- package/Documentation/NavigationHelpButton.html +5 -5
- package/Documentation/NavigationHelpButtonViewModel.html +6 -6
- package/Documentation/NavigationTool.html +2 -2
- package/Documentation/NearFarScalar.html +12 -12
- package/Documentation/NeverTileDiscardPolicy.html +3 -3
- package/Documentation/NodeTransformationProperty.html +8 -8
- package/Documentation/Occluder.html +10 -10
- package/Documentation/OpenCageGeocoderService.html +4 -4
- package/Documentation/OpenStreetMapImageryProvider.html +98 -33
- package/Documentation/OpenWeatherImageryProvider.html +2 -2
- package/Documentation/OrientedBoundingBox.html +20 -20
- package/Documentation/OrthographicFrustum.html +14 -14
- package/Documentation/OrthographicOffCenterFrustum.html +13 -13
- package/Documentation/PackableForInterpolation.html +4 -4
- package/Documentation/Particle.html +13 -13
- package/Documentation/ParticleBurst.html +5 -5
- package/Documentation/ParticleEmitter.html +1 -1
- package/Documentation/ParticleSystem.html +29 -29
- package/Documentation/PathGraphics.html +12 -12
- package/Documentation/PathVisualizer.html +4 -4
- package/Documentation/PeliasGeocoderService.html +3 -3
- package/Documentation/PerInstanceColorAppearance.html +15 -15
- package/Documentation/PerformanceWatchdog.html +5 -5
- package/Documentation/PerformanceWatchdogViewModel.html +6 -6
- package/Documentation/PerspectiveFrustum.html +18 -18
- package/Documentation/PerspectiveOffCenterFrustum.html +14 -14
- package/Documentation/PinBuilder.html +5 -5
- package/Documentation/Plane.html +13 -13
- package/Documentation/PlaneGeometry.html +5 -5
- package/Documentation/PlaneGeometryUpdater.html +3 -3
- package/Documentation/PlaneGraphics.html +15 -15
- package/Documentation/PlaneOutlineGeometry.html +5 -5
- package/Documentation/PointCloudShading.html +11 -11
- package/Documentation/PointGraphics.html +15 -15
- package/Documentation/PointPrimitive.html +14 -14
- package/Documentation/PointPrimitiveCollection.html +15 -15
- package/Documentation/PointVisualizer.html +4 -4
- package/Documentation/PolygonGeometry.html +8 -8
- package/Documentation/PolygonGeometryUpdater.html +3 -3
- package/Documentation/PolygonGraphics.html +26 -26
- package/Documentation/PolygonHierarchy.html +3 -3
- package/Documentation/PolygonOutlineGeometry.html +6 -6
- package/Documentation/Polyline.html +8 -8
- package/Documentation/PolylineArrowMaterialProperty.html +7 -7
- package/Documentation/PolylineCollection.html +15 -15
- package/Documentation/PolylineColorAppearance.html +12 -12
- package/Documentation/PolylineDashMaterialProperty.html +10 -10
- package/Documentation/PolylineGeometry.html +5 -5
- package/Documentation/PolylineGeometryUpdater.html +25 -25
- package/Documentation/PolylineGlowMaterialProperty.html +9 -9
- package/Documentation/PolylineGraphics.html +17 -17
- package/Documentation/PolylineMaterialAppearance.html +12 -12
- package/Documentation/PolylineOutlineMaterialProperty.html +9 -9
- package/Documentation/PolylineTrailLinkMaterialProperty.html +1 -1
- package/Documentation/PolylineVisualizer.html +4 -4
- package/Documentation/PolylineVolumeAnimationGeometry.html +14 -14
- package/Documentation/PolylineVolumeGeometry.html +5 -5
- package/Documentation/PolylineVolumeGeometryUpdater.html +3 -3
- package/Documentation/PolylineVolumeGraphics.html +17 -17
- package/Documentation/PolylineVolumeOutlineGeometry.html +5 -5
- package/Documentation/PositionProperty.html +7 -7
- package/Documentation/PositionPropertyArray.html +8 -8
- package/Documentation/PostProcessStage.html +16 -16
- package/Documentation/PostProcessStageCollection.html +13 -13
- package/Documentation/PostProcessStageComposite.html +11 -11
- package/Documentation/PostProcessStageLibrary.html +15 -15
- package/Documentation/Primitive.html +120 -21
- package/Documentation/PrimitiveCollection.html +15 -15
- package/Documentation/ProjectionPicker.html +5 -5
- package/Documentation/ProjectionPickerViewModel.html +13 -13
- package/Documentation/Property.html +5 -5
- package/Documentation/PropertyArray.html +6 -6
- package/Documentation/PropertyBag.html +10 -10
- package/Documentation/ProviderViewModel.html +7 -7
- package/Documentation/Proxy.html +2 -2
- package/Documentation/QuadraticRealPolynomial.html +3 -3
- package/Documentation/QuantizedMeshTerrainData.html +7 -7
- package/Documentation/QuarticRealPolynomial.html +3 -3
- package/Documentation/Quaternion.html +45 -45
- package/Documentation/QuaternionSpline.html +7 -7
- package/Documentation/Queue.html +9 -9
- package/Documentation/RadarMaterialProperty.html +1 -1
- package/Documentation/RadarScanEffect.html +3 -3
- package/Documentation/Ray.html +5 -5
- package/Documentation/ReImg.html +2 -2
- package/Documentation/Rectangle.html +35 -35
- package/Documentation/RectangleGeometry.html +6 -6
- package/Documentation/RectangleGeometryUpdater.html +3 -3
- package/Documentation/RectangleGraphics.html +23 -23
- package/Documentation/RectangleOutlineGeometry.html +5 -5
- package/Documentation/ReferenceProperty.html +13 -13
- package/Documentation/Request.html +14 -14
- package/Documentation/RequestErrorEvent.html +5 -5
- package/Documentation/RequestScheduler.html +5 -5
- package/Documentation/ResetViewNavigationControl.html +7 -7
- package/Documentation/Resource.html +54 -54
- package/Documentation/RoamParticle.html +25 -25
- package/Documentation/RuntimeError.html +4 -4
- package/Documentation/SampleElevationTool.html +2 -2
- package/Documentation/SampledPositionProperty.html +20 -20
- package/Documentation/SampledProperty.html +19 -19
- package/Documentation/Scene.html +119 -119
- package/Documentation/SceneLayer.html +31 -31
- package/Documentation/SceneModePicker.html +5 -5
- package/Documentation/SceneModePickerViewModel.html +15 -15
- package/Documentation/SceneProjector.html +30 -30
- package/Documentation/SceneProjectorEx.html +19 -19
- package/Documentation/SceneTransforms.html +3 -3
- package/Documentation/ScreenSpaceCameraController.html +25 -25
- package/Documentation/ScreenSpaceEventHandler.html +8 -8
- package/Documentation/SearchlightEffect.html +4 -4
- package/Documentation/SelectTool.html +4 -4
- package/Documentation/SelectionIndicator.html +5 -5
- package/Documentation/SelectionIndicatorViewModel.html +12 -12
- package/Documentation/ShadowAnalysis.html +12 -12
- package/Documentation/ShadowMap.html +8 -8
- package/Documentation/ShadowRateAnalysis.html +14 -14
- package/Documentation/ShowGeometryInstanceAttribute.html +6 -6
- package/Documentation/Simon1994PlanetaryPositions.html +3 -3
- package/Documentation/SimplePolylineGeometry.html +5 -5
- package/Documentation/SingleTileImageryProvider.html +29 -29
- package/Documentation/SkyAtmosphere.html +9 -9
- package/Documentation/SkyBox.html +6 -6
- package/Documentation/SkyLineAnalysis.html +3 -3
- package/Documentation/SphereEmitter.html +2 -2
- package/Documentation/SphereGeometry.html +5 -5
- package/Documentation/SphereOutlineGeometry.html +5 -5
- package/Documentation/Spherical.html +13 -13
- package/Documentation/Spline.html +7 -7
- package/Documentation/StableParticle.html +28 -28
- package/Documentation/StripeMaterialProperty.html +11 -11
- package/Documentation/Style.html +26 -26
- package/Documentation/StyleExpression.html +3 -3
- package/Documentation/Sun.html +5 -5
- package/Documentation/SunLight.html +3 -3
- package/Documentation/SvgPathBindingHandler.html +2 -2
- package/Documentation/TaskProcessor.html +5 -5
- package/Documentation/TerrainAnalyse.html +14 -14
- package/Documentation/TerrainData.html +7 -7
- package/Documentation/TerrainProfile.html +4 -4
- package/Documentation/TerrainProvider.html +16 -16
- package/Documentation/Texture3D.html +1 -1
- package/Documentation/ThemeManager.html +14 -14
- package/Documentation/TiandituImageryProvider.html +4 -4
- package/Documentation/TileAvailability.html +6 -6
- package/Documentation/TileCoordinatesImageryProvider.html +28 -28
- package/Documentation/TileDiscardPolicy.html +3 -3
- package/Documentation/TileMapServiceImageryProvider.html +98 -33
- package/Documentation/TileProviderError.html +12 -12
- package/Documentation/TilingScheme.html +10 -10
- package/Documentation/TimeDynamicImagery.html +6 -6
- package/Documentation/TimeDynamicPointCloud.html +16 -16
- package/Documentation/TimeInterval.html +21 -21
- package/Documentation/TimeIntervalCollection.html +23 -23
- package/Documentation/TimeIntervalCollectionPositionProperty.html +8 -8
- package/Documentation/TimeIntervalCollectionProperty.html +6 -6
- package/Documentation/Timeline.html +6 -6
- package/Documentation/ToggleButtonViewModel.html +4 -4
- package/Documentation/Tooltip.html +5 -5
- package/Documentation/TransactionImplement.html +5 -5
- package/Documentation/Transforms.html +16 -16
- package/Documentation/TranslationRotationScale.html +5 -5
- package/Documentation/TriangulationTool.html +8 -8
- package/Documentation/TridiagonalSystemSolver.html +2 -2
- package/Documentation/TrustedServers.html +5 -5
- package/Documentation/UrlTemplateImageryProvider.html +130 -33
- package/Documentation/UserInterfaceControl.html +10 -10
- package/Documentation/VRButton.html +5 -5
- package/Documentation/VRButtonViewModel.html +8 -8
- package/Documentation/VRTheWorldTerrainProvider.html +13 -13
- package/Documentation/VelocityOrientationProperty.html +7 -7
- package/Documentation/VelocityVectorProperty.html +7 -7
- package/Documentation/VertexFormat.html +18 -18
- package/Documentation/VideoSynchronizer.html +7 -7
- package/Documentation/Viewer.html +56 -56
- package/Documentation/ViewportQuad.html +7 -7
- package/Documentation/ViewshedAnalysis.html +190 -10
- package/Documentation/VisiblityAnalysis.html +13 -13
- package/Documentation/VisualAnalysisManager.html +179 -7
- package/Documentation/Visualizer.html +4 -4
- package/Documentation/VoxelPrimitive.html +9 -9
- package/Documentation/WallGeometry.html +6 -6
- package/Documentation/WallGeometryUpdater.html +3 -3
- package/Documentation/WallGraphics.html +17 -17
- package/Documentation/WallOutlineGeometry.html +6 -6
- package/Documentation/WaterReflection.html +9 -9
- package/Documentation/WeatherEffect.html +8 -8
- package/Documentation/WebMapServiceImageryProvider.html +36 -36
- package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
- package/Documentation/WebMercatorProjection.html +97 -7
- package/Documentation/WebMercatorTilingScheme.html +10 -10
- package/Documentation/WeightSpline.html +7 -7
- package/Documentation/WfsProvider.html +9 -9
- package/Documentation/Wind3D.html +13 -13
- package/Documentation/WindowLightEffect.html +4 -4
- package/Documentation/ZoomNavigationControl.html +5 -5
- package/Documentation/global.html +141 -141
- package/Documentation/global.html#ArcType +4 -4
- package/Documentation/global.html#Axis +11 -11
- package/Documentation/global.html#BaiduProject +19 -19
- package/Documentation/global.html#BingMapsStyle +11 -11
- package/Documentation/global.html#BlendEquation +6 -6
- package/Documentation/global.html#BlendFunction +16 -16
- package/Documentation/global.html#BlendOption +4 -4
- package/Documentation/global.html#CameraEventType +6 -6
- package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
- package/Documentation/global.html#ClassificationType +4 -4
- package/Documentation/global.html#ClippingGeometryType +8 -8
- package/Documentation/global.html#ClockRange +4 -4
- package/Documentation/global.html#ClockStep +4 -4
- package/Documentation/global.html#ColorBlendMode +4 -4
- package/Documentation/global.html#ComponentDatatype +15 -15
- package/Documentation/global.html#CoordnateTransform +6 -6
- package/Documentation/global.html#CornerType +4 -4
- package/Documentation/global.html#CullFace +4 -4
- package/Documentation/global.html#DepthFunction +9 -9
- package/Documentation/global.html#ExtrapolationType +4 -4
- package/Documentation/global.html#GeocodeType +3 -3
- package/Documentation/global.html#HeightReference +4 -4
- package/Documentation/global.html#HeightmapEncoding +3 -3
- package/Documentation/global.html#HorizontalOrigin +4 -4
- package/Documentation/global.html#ImagerySplitDirection +4 -4
- package/Documentation/global.html#IndexDatatype +9 -9
- package/Documentation/global.html#InterceptorsUtil +1 -1
- package/Documentation/global.html#Intersect +4 -4
- package/Documentation/global.html#IonWorldImageryStyle +4 -4
- package/Documentation/global.html#KeyboardEventModifier +4 -4
- package/Documentation/global.html#LabelStyle +4 -4
- package/Documentation/global.html#LightingMode +3 -3
- package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
- package/Documentation/global.html#MapMode2D +3 -3
- package/Documentation/global.html#ModelAnimationLoop +4 -4
- package/Documentation/global.html#ModelExplosionType +5 -5
- package/Documentation/global.html#OutlineRenderMode +4 -4
- package/Documentation/global.html#Pass +17 -17
- package/Documentation/global.html#PixelDatatype +10 -10
- package/Documentation/global.html#PixelFormat +21 -21
- package/Documentation/global.html#PointLight +1 -1
- package/Documentation/global.html#PostProcessStageSampleMode +3 -3
- package/Documentation/global.html#PrimitiveType +8 -8
- package/Documentation/global.html#ReferenceFrame +3 -3
- package/Documentation/global.html#RequestState +7 -7
- package/Documentation/global.html#RequestType +5 -5
- package/Documentation/global.html#SceneMode +6 -6
- package/Documentation/global.html#ScreenSpaceEventType +16 -16
- package/Documentation/global.html#SectionRender +1 -1
- package/Documentation/global.html#ShadowMode +5 -5
- package/Documentation/global.html#ShadowRateDrawCommand +3 -3
- package/Documentation/global.html#SpotLight +1 -1
- package/Documentation/global.html#Spyglass +1 -1
- package/Documentation/global.html#StencilFunction +9 -9
- package/Documentation/global.html#StencilOperation +9 -9
- package/Documentation/global.html#StripeOrientation +3 -3
- package/Documentation/global.html#SwipeModeType +7 -7
- package/Documentation/global.html#SwiperController +1 -1
- package/Documentation/global.html#TextureMagnificationFilter +3 -3
- package/Documentation/global.html#TextureMinificationFilter +7 -7
- package/Documentation/global.html#TimeStandard +3 -3
- package/Documentation/global.html#TopoJSONUtil +1 -1
- package/Documentation/global.html#UrlUtil +1 -1
- package/Documentation/global.html#VerticalOrigin +5 -5
- package/Documentation/global.html#Visibility +4 -4
- package/Documentation/global.html#WebGLConstants +583 -583
- package/Documentation/global.html#WindingOrder +3 -3
- package/Documentation/global.html#XmlUtil +137 -2
- package/Documentation/global.html#angle +1 -1
- package/Documentation/global.html#barycentricCoordinates +1 -1
- package/Documentation/global.html#binarySearch +1 -1
- package/Documentation/global.html#binarySearchComparator +1 -1
- package/Documentation/global.html#buildModuleUrl +3 -3
- package/Documentation/global.html#cancelAnimationFrame +1 -1
- package/Documentation/global.html#clippingFillImage +1 -1
- package/Documentation/global.html#clone +1 -1
- package/Documentation/global.html#color +3 -3
- package/Documentation/global.html#combine +1 -1
- package/Documentation/global.html#createCommand +1 -1
- package/Documentation/global.html#createCommonTileInfo +3 -1
- package/Documentation/global.html#createElevationBandMaterial +1 -1
- package/Documentation/global.html#createElevationBandMaterialBand +1 -1
- package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
- package/Documentation/global.html#createGuid +1 -1
- package/Documentation/global.html#createOsmBuildings +1 -1
- package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
- package/Documentation/global.html#createWorldImagery +1 -1
- package/Documentation/global.html#createWorldTerrain +1 -1
- package/Documentation/global.html#decay +2 -2
- package/Documentation/global.html#defaultValue +2 -2
- package/Documentation/global.html#defined +1 -1
- package/Documentation/global.html#destroyObject +1 -1
- package/Documentation/global.html#direction +2 -2
- package/Documentation/global.html#distance +2 -2
- package/Documentation/global.html#enableExplosion +1 -1
- package/Documentation/global.html#exportKml +1 -1
- package/Documentation/global.html#exportKmlModelCallback +1 -1
- package/Documentation/global.html#exportKmlResultKml +1 -1
- package/Documentation/global.html#exportKmlResultKmz +1 -1
- package/Documentation/global.html#formatError +1 -1
- package/Documentation/global.html#getAbsoluteUri +1 -1
- package/Documentation/global.html#getBaseUri +1 -1
- package/Documentation/global.html#getExtensionFromUri +1 -1
- package/Documentation/global.html#getFilenameFromUri +1 -1
- package/Documentation/global.html#getImagePixels +1 -1
- package/Documentation/global.html#getLayerToUse +150 -0
- package/Documentation/global.html#getTimestamp +1 -1
- package/Documentation/global.html#getViewModel +1 -1
- package/Documentation/global.html#hasText +1 -1
- package/Documentation/global.html#id +3 -3
- package/Documentation/global.html#intensity +3 -3
- package/Documentation/global.html#isGeographic +1 -1
- package/Documentation/global.html#isLeapYear +1 -1
- package/Documentation/global.html#mergeSort +1 -1
- package/Documentation/global.html#mergeSortComparator +1 -1
- package/Documentation/global.html#objectToQuery +1 -1
- package/Documentation/global.html#penumbra +1 -1
- package/Documentation/global.html#pointInsideTriangle +1 -1
- package/Documentation/global.html#position +2 -2
- package/Documentation/global.html#queryToObject +1 -1
- package/Documentation/global.html#requestAnimationFrame +1 -1
- package/Documentation/global.html#requestAnimationFrameCallback +1 -1
- package/Documentation/global.html#sampleTerrain +1 -1
- package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
- package/Documentation/global.html#show +1 -1
- package/Documentation/global.html#startTime +1 -1
- package/Documentation/global.html#subdivideArray +1 -1
- package/Documentation/global.html#terrainProvider +1 -1
- package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
- package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
- package/Documentation/global.html#viewerDragDropMixin +8 -8
- package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
- package/Documentation/global.html#writeTextToCanvas +1 -1
- package/Documentation/types.txt +1 -1
- package/README.md +91 -25
- package/dist/Cesium.d.ts +719 -84
- package/dist/Cesium.js +298 -19
- package/dist/Workers/Color-ff1fdef4.js +1 -0
- package/dist/Workers/PrimitivePipeline-a7cf99d1.js +1 -0
- package/dist/Workers/combineGeometry.js +1 -1
- package/dist/Workers/createBoxGeometry.js +1 -1
- package/dist/Workers/createBoxOutlineGeometry.js +1 -1
- package/dist/Workers/createCircleGeometry.js +1 -1
- package/dist/Workers/createCircleOutlineGeometry.js +1 -1
- package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/dist/Workers/createCorridorGeometry.js +1 -1
- package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
- package/dist/Workers/createCylinderGeometry.js +1 -1
- package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
- package/dist/Workers/createEllipseGeometry.js +1 -1
- package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
- package/dist/Workers/createEllipsoidGeometry.js +1 -1
- package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/dist/Workers/createFrustumGeometry.js +1 -1
- package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
- package/dist/Workers/createGeometry.js +1 -1
- package/dist/Workers/createGroundPolylineGeometry.js +1 -1
- package/dist/Workers/createPlaneGeometry.js +1 -1
- package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
- package/dist/Workers/createPolygonGeometry.js +1 -1
- package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
- package/dist/Workers/createPolylineGeometry.js +1 -1
- package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
- package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/dist/Workers/createRectangleGeometry.js +1 -1
- package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
- package/dist/Workers/createSimplePolylineGeometry.js +1 -1
- package/dist/Workers/createSphereGeometry.js +1 -1
- package/dist/Workers/createSphereOutlineGeometry.js +1 -1
- package/dist/Workers/createVectorTileGeometries.js +1 -1
- package/dist/Workers/createVectorTilePolygons.js +1 -1
- package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/dist/Workers/createVerticesFromHeightmap.js +1 -1
- package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/dist/Workers/createWallGeometry.js +1 -1
- package/dist/Workers/createWallOutlineGeometry.js +1 -1
- package/dist/Workers/uncompressZip.js +1 -1
- package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/package.json +1 -1
- package/Documentation/M3DTile.html +0 -854
- package/Documentation/M3DTileFeature.html +0 -1113
- package/Documentation/M3DTileset.html +0 -4589
- package/Documentation/global.html#inherits +0 -150
- package/dist/ThirdParty/unzip.min.js +0 -1
- package/dist/Workers/AttributeCompression-7a920947.js +0 -1
- package/dist/Workers/AttributeCompression-b9605c73.js +0 -1
- package/dist/Workers/AttributeCompression-ceaf1f7d.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-3005be1a.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-6524b214.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-73a9d462.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-cf02d6c7.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-d2a93b66.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-fe8fad3e.js +0 -1
- package/dist/Workers/BoundingRectangle-2bb5d73d.js +0 -1
- package/dist/Workers/BoundingRectangle-487613f3.js +0 -1
- package/dist/Workers/BoundingRectangle-7f4e0022.js +0 -1
- package/dist/Workers/BoundingRectangle-8d042be0.js +0 -1
- package/dist/Workers/BoundingRectangle-b3ae8525.js +0 -1
- package/dist/Workers/BoundingRectangle-ce593811.js +0 -1
- package/dist/Workers/BoxGeometry-2d60329e.js +0 -1
- package/dist/Workers/BoxGeometry-3726be8b.js +0 -1
- package/dist/Workers/BoxGeometry-76f70c3f.js +0 -1
- package/dist/Workers/BoxGeometry-91ce90fe.js +0 -1
- package/dist/Workers/BoxGeometry-d1b4ef4f.js +0 -1
- package/dist/Workers/BoxGeometry-f55ff093.js +0 -1
- package/dist/Workers/Cartesian2-078e6458.js +0 -1
- package/dist/Workers/Cartesian2-c1eb9da0.js +0 -1
- package/dist/Workers/Check-f996273c.js +0 -1
- package/dist/Workers/Color-3aa21182.js +0 -1
- package/dist/Workers/Color-527894a9.js +0 -1
- package/dist/Workers/Color-68105b00.js +0 -1
- package/dist/Workers/Color-d7f86623.js +0 -1
- package/dist/Workers/Color-e9b0b56b.js +0 -1
- package/dist/Workers/Color-fb7b0391.js +0 -1
- package/dist/Workers/ComponentDatatype-e44126e4.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-4529853e.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-bd04145a.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-c9ea5c4a.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-cd63dc83.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-df225097.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-ed9489b1.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-259dc831.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-353eec0a.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-4c3150e8.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-6546be88.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-83c470f2.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-90fffecc.js +0 -1
- package/dist/Workers/CylinderGeometry-325283f2.js +0 -1
- package/dist/Workers/CylinderGeometry-5f25fc13.js +0 -1
- package/dist/Workers/CylinderGeometry-6c32efdc.js +0 -1
- package/dist/Workers/CylinderGeometry-7cfc0752.js +0 -1
- package/dist/Workers/CylinderGeometry-a8375e63.js +0 -1
- package/dist/Workers/CylinderGeometry-c16b0480.js +0 -1
- package/dist/Workers/CylinderGeometryLibrary-88cb80d2.js +0 -1
- package/dist/Workers/EllipseGeometry-4dc2f3cd.js +0 -1
- package/dist/Workers/EllipseGeometry-5bc7efb7.js +0 -1
- package/dist/Workers/EllipseGeometry-7ba3aa6f.js +0 -1
- package/dist/Workers/EllipseGeometry-9a5145f6.js +0 -1
- package/dist/Workers/EllipseGeometry-a00d9fde.js +0 -1
- package/dist/Workers/EllipseGeometry-d5153296.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-46efe941.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-4c7e22bb.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-716ccbc1.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-8b1f8e47.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-9dd8ed16.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-cde71e7f.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-18088f7f.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-5b7ad7d6.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-72c1fd73.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-97648130.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-c0b0a9a4.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-e46b4af5.js +0 -1
- package/dist/Workers/EllipsoidGeodesic-2992081b.js +0 -1
- package/dist/Workers/EllipsoidGeodesic-a0581819.js +0 -1
- package/dist/Workers/EllipsoidGeodesic-e1197ec2.js +0 -1
- package/dist/Workers/EllipsoidGeometry-5af792d2.js +0 -1
- package/dist/Workers/EllipsoidGeometry-751dd3dc.js +0 -1
- package/dist/Workers/EllipsoidGeometry-9c399bf7.js +0 -1
- package/dist/Workers/EllipsoidGeometry-ad61339f.js +0 -1
- package/dist/Workers/EllipsoidGeometry-d0a3d570.js +0 -1
- package/dist/Workers/EllipsoidGeometry-d28fa7b5.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-14372733.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-34940155.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-8ca051b2.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-aa49f341.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-bf6fec74.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-f557c9da.js +0 -1
- package/dist/Workers/EllipsoidRhumbLine-2fd480f5.js +0 -1
- package/dist/Workers/EllipsoidRhumbLine-809f5074.js +0 -1
- package/dist/Workers/EllipsoidRhumbLine-d9133c69.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-2b15994f.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-67eb8fd7.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-7e7cce04.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-badcc339.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-d5fd24ed.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-eed317db.js +0 -1
- package/dist/Workers/EncodedCartesian3-6f721b97.js +0 -1
- package/dist/Workers/EncodedCartesian3-9b5052a5.js +0 -1
- package/dist/Workers/EncodedCartesian3-ac19e14b.js +0 -1
- package/dist/Workers/FrustumGeometry-38234739.js +0 -1
- package/dist/Workers/FrustumGeometry-697158a6.js +0 -1
- package/dist/Workers/FrustumGeometry-705dc598.js +0 -1
- package/dist/Workers/FrustumGeometry-7cc95152.js +0 -1
- package/dist/Workers/FrustumGeometry-a0988373.js +0 -1
- package/dist/Workers/FrustumGeometry-bf3f376b.js +0 -1
- package/dist/Workers/FullArray.js +0 -1
- package/dist/Workers/GeometryAttribute-51995e5a.js +0 -1
- package/dist/Workers/GeometryAttribute-8106b887.js +0 -1
- package/dist/Workers/GeometryAttribute-9cc31675.js +0 -1
- package/dist/Workers/GeometryAttribute-ccf4e0b6.js +0 -1
- package/dist/Workers/GeometryAttribute-e03451d8.js +0 -1
- package/dist/Workers/GeometryAttribute-e89ef932.js +0 -1
- package/dist/Workers/GeometryInstance-083d7584.js +0 -1
- package/dist/Workers/GeometryInstance-3287a41d.js +0 -1
- package/dist/Workers/GeometryInstance-5729d1a7.js +0 -1
- package/dist/Workers/GeometryInstance-75eda02f.js +0 -1
- package/dist/Workers/GeometryInstance-a24fc358.js +0 -1
- package/dist/Workers/GeometryInstance-a29ed6fd.js +0 -1
- package/dist/Workers/GeometryOffsetAttribute-b02d5bb9.js +0 -1
- package/dist/Workers/GeometryPipeline-160871a5.js +0 -1
- package/dist/Workers/GeometryPipeline-21c7c817.js +0 -1
- package/dist/Workers/GeometryPipeline-46833021.js +0 -1
- package/dist/Workers/GeometryPipeline-64734a0f.js +0 -1
- package/dist/Workers/GeometryPipeline-868a22d5.js +0 -1
- package/dist/Workers/GeometryPipeline-dd278883.js +0 -1
- package/dist/Workers/IndexDatatype-516320ea.js +0 -1
- package/dist/Workers/IntersectionTests-318fd637.js +0 -1
- package/dist/Workers/IntersectionTests-46ce3a3a.js +0 -1
- package/dist/Workers/IntersectionTests-5403be00.js +0 -1
- package/dist/Workers/IntersectionTests-7cdfef0c.js +0 -1
- package/dist/Workers/IntersectionTests-ca6d4041.js +0 -1
- package/dist/Workers/IntersectionTests-f3d5850d.js +0 -1
- package/dist/Workers/Math-5bbcea10.js +0 -1
- package/dist/Workers/Matrix2-10a61a55.js +0 -1
- package/dist/Workers/OrientedBoundingBox-2f174fe3.js +0 -1
- package/dist/Workers/OrientedBoundingBox-6c372bbc.js +0 -1
- package/dist/Workers/OrientedBoundingBox-6eb17dbb.js +0 -1
- package/dist/Workers/OrientedBoundingBox-6ff47a8a.js +0 -1
- package/dist/Workers/OrientedBoundingBox-a6a4c32b.js +0 -1
- package/dist/Workers/OrientedBoundingBox-d8d60f95.js +0 -1
- package/dist/Workers/Plane-0ec594f2.js +0 -1
- package/dist/Workers/Plane-0f30f65b.js +0 -1
- package/dist/Workers/Plane-d53c8e90.js +0 -1
- package/dist/Workers/Plane-f7823f4c.js +0 -1
- package/dist/Workers/Plane-fa12edbb.js +0 -1
- package/dist/Workers/Plane-fa98d6ca.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-1b173d8c.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-2394a24c.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-336d42f5.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-5bb2def1.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-c4287ef2.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-e7ef9273.js +0 -1
- package/dist/Workers/PolygonPipeline-01006d79.js +0 -1
- package/dist/Workers/PolygonPipeline-19b66f06.js +0 -1
- package/dist/Workers/PolygonPipeline-37a33a39.js +0 -1
- package/dist/Workers/PolygonPipeline-5983aa11.js +0 -1
- package/dist/Workers/PolygonPipeline-7c54e19e.js +0 -1
- package/dist/Workers/PolygonPipeline-d1b4c320.js +0 -1
- package/dist/Workers/PolylinePipeline-45329d56.js +0 -1
- package/dist/Workers/PolylinePipeline-6484d4ee.js +0 -1
- package/dist/Workers/PolylinePipeline-971ba240.js +0 -1
- package/dist/Workers/PolylinePipeline-d5024385.js +0 -1
- package/dist/Workers/PolylinePipeline-d59947c4.js +0 -1
- package/dist/Workers/PolylinePipeline-eeb6f648.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-2f82c4db.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-81481506.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-955f4335.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-d57282e3.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-e2e6c33b.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-e435332a.js +0 -1
- package/dist/Workers/PrimitivePipeline-100ea173.js +0 -1
- package/dist/Workers/PrimitivePipeline-757ec521.js +0 -1
- package/dist/Workers/PrimitivePipeline-928d43fe.js +0 -1
- package/dist/Workers/PrimitivePipeline-986742a6.js +0 -1
- package/dist/Workers/PrimitivePipeline-9deb0937.js +0 -1
- package/dist/Workers/PrimitivePipeline-b3cc986b.js +0 -1
- package/dist/Workers/PrimitivePipeline-ed7c0918.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-02221243.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-336b3589.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-3c449dce.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-44075333.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-9e402320.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-af611323.js +0 -1
- package/dist/Workers/RuntimeError-ac2797b4.js +0 -1
- package/dist/Workers/TerrainEncoding-03f4779b.js +0 -1
- package/dist/Workers/TerrainEncoding-652abf1d.js +0 -1
- package/dist/Workers/TerrainEncoding-6f894d6e.js +0 -1
- package/dist/Workers/TerrainEncoding-7ea7a6aa.js +0 -1
- package/dist/Workers/TerrainEncoding-a621a0f9.js +0 -1
- package/dist/Workers/TerrainEncoding-d2f48ea1.js +0 -1
- package/dist/Workers/Transforms-1fa85493.js +0 -1
- package/dist/Workers/Transforms-5aeb1d5e.js +0 -1
- package/dist/Workers/Transforms-70ded1e8.js +0 -1
- package/dist/Workers/Transforms-713e2e92.js +0 -1
- package/dist/Workers/Transforms-8c8e0c6f.js +0 -1
- package/dist/Workers/Transforms-984eb057.js +0 -1
- package/dist/Workers/VertexFormat-90d15264.js +0 -1
- package/dist/Workers/WallGeometryLibrary-40d299b6.js +0 -1
- package/dist/Workers/WallGeometryLibrary-5386b8d1.js +0 -1
- package/dist/Workers/WallGeometryLibrary-62af8286.js +0 -1
- package/dist/Workers/WallGeometryLibrary-8e2f0582.js +0 -1
- package/dist/Workers/WallGeometryLibrary-c815a7b8.js +0 -1
- package/dist/Workers/WallGeometryLibrary-fcee93b1.js +0 -1
- package/dist/Workers/WebMercatorProjection-941959a9.js +0 -1
- package/dist/Workers/WebMercatorProjection-9d47817f.js +0 -1
- package/dist/Workers/WebMercatorProjection-e6de5e67.js +0 -1
- 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});
|