@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define(["exports","./RuntimeError-24b14c10","./when-ae2e0b60","./Transforms-ce414632","./ComponentDatatype-b7b5db18"],function(e,r,g,t,l){function f(e,r,t){return t<e?t=e:r<t&&(t=r),t}function o(e,r,t){var o,s;return"number"==typeof t?f(e,r,t):"string"==typeof t&&(o=new RegExp("^[0-9]+$"),s=new RegExp("^[0-9]+\\.?[0-9]+?$"),o.test(t)||s.test(t))?f(e,r,Number(t)):r}function C(e){return o(0,1,e)}function n(e){return o(0,255,e)}function a(e,r,t){return t<0&&(t+=1),1<t&&--t,6*t<1?e+6*(r-e)*t:2*t<1?r:3*t<2?e+(r-e)*(2/3-t)*6:e}function b(e,r,t,o){this.red=C(g.defaultValue(e,1)),this.green=C(g.defaultValue(r,1)),this.blue=C(g.defaultValue(t,1)),this.alpha=C(g.defaultValue(o,1))}b.fromCartesian4=function(e,r){return g.defined(r)?(r.red=C(e.x),r.green=C(e.y),r.blue=C(e.z),r.alpha=C(e.w),r):new b(e.x,e.y,e.z,e.w)},b.fromBytes=function(e,r,t,o,s){return e=b.byteToFloat(n(g.defaultValue(e,255))),r=b.byteToFloat(n(g.defaultValue(r,255))),t=b.byteToFloat(n(g.defaultValue(t,255))),o=b.byteToFloat(n(g.defaultValue(o,255))),g.defined(s)?(s.red=e,s.green=r,s.blue=t,s.alpha=o,s):new b(e,r,t,o)},b.fromAlpha=function(e,r,t){return g.defined(t)?(t.red=C(e.red),t.green=C(e.green),t.blue=C(e.blue),t.alpha=C(r),t):new b(e.red,e.green,e.blue,r)},t.FeatureDetection.supportsTypedArrays()&&(t=new ArrayBuffer(4),s=new Uint32Array(t),i=new Uint8Array(t)),b.fromRgba=function(e,r){return s[0]=e,b.fromBytes(i[0],i[1],i[2],i[3],r)},b.fromHsl=function(e,r,t,o,s){e=C(g.defaultValue(e,0)%1),r=C(g.defaultValue(r,0)),t=C(g.defaultValue(t,0)),o=C(g.defaultValue(o,1));var f=t,n=t,l=t;return 0!==r&&(f=a(r=2*t-(t=t<.5?t*(1+r):t+r-t*r),t,e+1/3),n=a(r,t,e),l=a(r,t,e-1/3)),g.defined(s)?(s.red=f,s.green=n,s.blue=l,s.alpha=o,s):new b(f,n,l,o)},b.fromRandom=function(e,r){var t,o=(e=g.defaultValue(e,g.defaultValue.EMPTY_OBJECT)).red,s=(g.defined(o)||(t=g.defaultValue(e.minimumRed,0),s=g.defaultValue(e.maximumRed,1),o=t+l.CesiumMath.nextRandomNumber()*(s-t)),e.green),f=(g.defined(s)||(t=g.defaultValue(e.minimumGreen,0),f=g.defaultValue(e.maximumGreen,1),s=t+l.CesiumMath.nextRandomNumber()*(f-t)),e.blue),n=(g.defined(f)||(t=g.defaultValue(e.minimumBlue,0),n=g.defaultValue(e.maximumBlue,1),f=t+l.CesiumMath.nextRandomNumber()*(n-t)),e.alpha);return g.defined(n)||(t=g.defaultValue(e.minimumAlpha,0),e=g.defaultValue(e.maximumAlpha,1),n=t+l.CesiumMath.nextRandomNumber()*(e-t)),g.defined(r)?(r.red=o,r.green=s,r.blue=f,r.alpha=n,r):new b(o,s,f,n)};var s,i,O=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,S=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,F=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,c=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;b.fromCssColorString=function(e,r){if(a=!1,"string"==typeof(i=(t=e).replace(/\s/g,""))?(C=new RegExp("^#[0-9A-Fa-f]{3}$"),E=new RegExp("^#[0-9A-Fa-f]{4}$"),u=new RegExp("^#[0-9A-Fa-f]{6}$"),o=new RegExp("^#[0-9A-Fa-f]{8}$"),s=new RegExp("^[rR][gG][Bb][(]([]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){2}[\\s]*(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)[\\s]*[)]{1}$"),f=new RegExp("^[rR][gG][Bb][Aa][(]([\\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){3}[\\s]*(1|1.0|0|0.[0-9]*)[\\s]*[)]{1}$"),n=new RegExp("^[hH][Ss][Ll][(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*)[)]$"),l=new RegExp("^[hH][Ss][Ll][Aa][(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,){2}([\\s]*(1|1.0|0|0.[0-9]*)[\\s]*)[)]$"),(a=C.test(i)||E.test(i)||u.test(i)||o.test(i)||s.test(i)||f.test(i)||n.test(i)||l.test(i))||(C=b[t.toUpperCase()],g.defined(C)&&(a=!0))):a=!1,!a)return r=new b(1,1,1);g.defined(r)||(r=new b);var t,o,s,f,n,l,C,a,i,E=b[(e=e.replace(/\s/g,"")).toUpperCase()];if(g.defined(E))b.clone(E,r);else{var u=O.exec(e);if(null!==u)r.red=parseInt(u[1],16)/15,r.green=parseInt(u[2],16)/15,r.blue=parseInt(u[3],16)/15,r.alpha=parseInt(g.defaultValue(u[4],"f"),16)/15;else if(null!==(u=S.exec(e)))r.red=parseInt(u[1],16)/255,r.green=parseInt(u[2],16)/255,r.blue=parseInt(u[3],16)/255,r.alpha=parseInt(g.defaultValue(u[4],"ff"),16)/255;else if(null!==(u=F.exec(e)))r.red=parseFloat(u[1])/("%"===u[1].substr(-1)?100:255),r.green=parseFloat(u[2])/("%"===u[2].substr(-1)?100:255),r.blue=parseFloat(u[3])/("%"===u[3].substr(-1)?100:255),r.alpha=parseFloat(g.defaultValue(u[4],"1.0"));else{if(null!==(u=c.exec(e)))return b.fromHsl(parseFloat(u[1])/360,parseFloat(u[2])/100,parseFloat(u[3])/100,parseFloat(g.defaultValue(u[4],"1.0")),r);r=void 0}}return r},b.packedLength=4,b.pack=function(e,r,t){return t=g.defaultValue(t,0),r[t++]=e.red,r[t++]=e.green,r[t++]=e.blue,r[t]=e.alpha,r},b.unpack=function(e,r,t){return r=g.defaultValue(r,0),(t=g.defined(t)?t:new b).red=e[r++],t.green=e[r++],t.blue=e[r++],t.alpha=e[r],t},b.byteToFloat=function(e){return e/255},b.floatToByte=function(e){return 1===e?255:256*e|0},b.clone=function(e,r){if(g.defined(e))return g.defined(r)?(r.red=e.red,r.green=e.green,r.blue=e.blue,r.alpha=e.alpha,r):new b(e.red,e.green,e.blue,e.alpha)},b.equals=function(e,r){return e===r||g.defined(e)&&g.defined(r)&&e.red===r.red&&e.green===r.green&&e.blue===r.blue&&e.alpha===r.alpha},b.equalsArray=function(e,r,t){return e.red===r[t]&&e.green===r[t+1]&&e.blue===r[t+2]&&e.alpha===r[t+3]},b.prototype.clone=function(e){return b.clone(this,e)},b.prototype.equals=function(e){return b.equals(this,e)},b.prototype.equalsEpsilon=function(e,r){return this===e||g.defined(e)&&Math.abs(this.red-e.red)<=r&&Math.abs(this.green-e.green)<=r&&Math.abs(this.blue-e.blue)<=r&&Math.abs(this.alpha-e.alpha)<=r},b.prototype.toString=function(){return"("+this.red+", "+this.green+", "+this.blue+", "+this.alpha+")"},b.prototype.toCssColorString=function(){var e=b.floatToByte(this.red),r=b.floatToByte(this.green),t=b.floatToByte(this.blue);return 1===this.alpha?"rgb("+e+","+r+","+t+")":"rgba("+e+","+r+","+t+","+this.alpha+")"},b.prototype.toCssColor=function(){return{red:b.floatToByte(this.red),green:b.floatToByte(this.green),blue:b.floatToByte(this.blue),alpha:this.alpha}},b.prototype.toCssHexString=function(){var e,r=b.floatToByte(this.red).toString(16),t=(r.length<2&&(r="0"+r),b.floatToByte(this.green).toString(16)),o=(t.length<2&&(t="0"+t),b.floatToByte(this.blue).toString(16));return o.length<2&&(o="0"+o),this.alpha<1?"#"+r+t+o+(e=(e=b.floatToByte(this.alpha).toString(16)).length<2?"0"+e:e):"#"+r+t+o},b.prototype.toBytes=function(e){var r=b.floatToByte(this.red),t=b.floatToByte(this.green),o=b.floatToByte(this.blue),s=b.floatToByte(this.alpha);return g.defined(e)?(e[0]=r,e[1]=t,e[2]=o,e[3]=s,e):[r,t,o,s]},b.prototype.toRgba=function(){return i[0]=b.floatToByte(this.red),i[1]=b.floatToByte(this.green),i[2]=b.floatToByte(this.blue),i[3]=b.floatToByte(this.alpha),s[0]},b.prototype.brighten=function(e,r){return r.red=1-(1-this.red)*(e=1-e),r.green=1-(1-this.green)*e,r.blue=1-(1-this.blue)*e,r.alpha=this.alpha,r},b.prototype.darken=function(e,r){return r.red=this.red*(e=1-e),r.green=this.green*e,r.blue=this.blue*e,r.alpha=this.alpha,r},b.prototype.withAlpha=function(e,r){return b.fromAlpha(this,e,r)},b.add=function(e,r,t){return t.red=e.red+r.red,t.green=e.green+r.green,t.blue=e.blue+r.blue,t.alpha=e.alpha+r.alpha,t},b.subtract=function(e,r,t){return t.red=e.red-r.red,t.green=e.green-r.green,t.blue=e.blue-r.blue,t.alpha=e.alpha-r.alpha,t},b.multiply=function(e,r,t){return t.red=e.red*r.red,t.green=e.green*r.green,t.blue=e.blue*r.blue,t.alpha=e.alpha*r.alpha,t},b.divide=function(e,r,t){return t.red=e.red/r.red,t.green=e.green/r.green,t.blue=e.blue/r.blue,t.alpha=e.alpha/r.alpha,t},b.mod=function(e,r,t){return t.red=e.red%r.red,t.green=e.green%r.green,t.blue=e.blue%r.blue,t.alpha=e.alpha%r.alpha,t},b.lerp=function(e,r,t,o){return o.red=l.CesiumMath.lerp(e.red,r.red,t),o.green=l.CesiumMath.lerp(e.green,r.green,t),o.blue=l.CesiumMath.lerp(e.blue,r.blue,t),o.alpha=l.CesiumMath.lerp(e.alpha,r.alpha,t),o},b.multiplyByScalar=function(e,r,t){return t.red=e.red*r,t.green=e.green*r,t.blue=e.blue*r,t.alpha=e.alpha*r,t},b.divideByScalar=function(e,r,t){return t.red=e.red/r,t.green=e.green/r,t.blue=e.blue/r,t.alpha=e.alpha/r,t},b.ALICEBLUE=Object.freeze(b.fromCssColorString("#F0F8FF")),b.ANTIQUEWHITE=Object.freeze(b.fromCssColorString("#FAEBD7")),b.AQUA=Object.freeze(b.fromCssColorString("#00FFFF")),b.AQUAMARINE=Object.freeze(b.fromCssColorString("#7FFFD4")),b.AZURE=Object.freeze(b.fromCssColorString("#F0FFFF")),b.BEIGE=Object.freeze(b.fromCssColorString("#F5F5DC")),b.BISQUE=Object.freeze(b.fromCssColorString("#FFE4C4")),b.BLACK=Object.freeze(b.fromCssColorString("#000000")),b.BLANCHEDALMOND=Object.freeze(b.fromCssColorString("#FFEBCD")),b.BLUE=Object.freeze(b.fromCssColorString("#0000FF")),b.BLUEVIOLET=Object.freeze(b.fromCssColorString("#8A2BE2")),b.BROWN=Object.freeze(b.fromCssColorString("#A52A2A")),b.BURLYWOOD=Object.freeze(b.fromCssColorString("#DEB887")),b.CADETBLUE=Object.freeze(b.fromCssColorString("#5F9EA0")),b.CHARTREUSE=Object.freeze(b.fromCssColorString("#7FFF00")),b.CHOCOLATE=Object.freeze(b.fromCssColorString("#D2691E")),b.CORAL=Object.freeze(b.fromCssColorString("#FF7F50")),b.CORNFLOWERBLUE=Object.freeze(b.fromCssColorString("#6495ED")),b.CORNSILK=Object.freeze(b.fromCssColorString("#FFF8DC")),b.CRIMSON=Object.freeze(b.fromCssColorString("#DC143C")),b.CYAN=Object.freeze(b.fromCssColorString("#00FFFF")),b.DARKBLUE=Object.freeze(b.fromCssColorString("#00008B")),b.DARKCYAN=Object.freeze(b.fromCssColorString("#008B8B")),b.DARKGOLDENROD=Object.freeze(b.fromCssColorString("#B8860B")),b.DARKGRAY=Object.freeze(b.fromCssColorString("#A9A9A9")),b.DARKGREEN=Object.freeze(b.fromCssColorString("#006400")),b.DARKGREY=b.DARKGRAY,b.DARKKHAKI=Object.freeze(b.fromCssColorString("#BDB76B")),b.DARKMAGENTA=Object.freeze(b.fromCssColorString("#8B008B")),b.DARKOLIVEGREEN=Object.freeze(b.fromCssColorString("#556B2F")),b.DARKORANGE=Object.freeze(b.fromCssColorString("#FF8C00")),b.DARKORCHID=Object.freeze(b.fromCssColorString("#9932CC")),b.DARKRED=Object.freeze(b.fromCssColorString("#8B0000")),b.DARKSALMON=Object.freeze(b.fromCssColorString("#E9967A")),b.DARKSEAGREEN=Object.freeze(b.fromCssColorString("#8FBC8F")),b.DARKSLATEBLUE=Object.freeze(b.fromCssColorString("#483D8B")),b.DARKSLATEGRAY=Object.freeze(b.fromCssColorString("#2F4F4F")),b.DARKSLATEGREY=b.DARKSLATEGRAY,b.DARKTURQUOISE=Object.freeze(b.fromCssColorString("#00CED1")),b.DARKVIOLET=Object.freeze(b.fromCssColorString("#9400D3")),b.DEEPPINK=Object.freeze(b.fromCssColorString("#FF1493")),b.DEEPSKYBLUE=Object.freeze(b.fromCssColorString("#00BFFF")),b.DIMGRAY=Object.freeze(b.fromCssColorString("#696969")),b.DIMGREY=b.DIMGRAY,b.DODGERBLUE=Object.freeze(b.fromCssColorString("#1E90FF")),b.FIREBRICK=Object.freeze(b.fromCssColorString("#B22222")),b.FLORALWHITE=Object.freeze(b.fromCssColorString("#FFFAF0")),b.FORESTGREEN=Object.freeze(b.fromCssColorString("#228B22")),b.FUCHSIA=Object.freeze(b.fromCssColorString("#FF00FF")),b.GAINSBORO=Object.freeze(b.fromCssColorString("#DCDCDC")),b.GHOSTWHITE=Object.freeze(b.fromCssColorString("#F8F8FF")),b.GOLD=Object.freeze(b.fromCssColorString("#FFD700")),b.GOLDENROD=Object.freeze(b.fromCssColorString("#DAA520")),b.GRAY=Object.freeze(b.fromCssColorString("#808080")),b.GREEN=Object.freeze(b.fromCssColorString("#008000")),b.GREENYELLOW=Object.freeze(b.fromCssColorString("#ADFF2F")),b.GREY=b.GRAY,b.HONEYDEW=Object.freeze(b.fromCssColorString("#F0FFF0")),b.HOTPINK=Object.freeze(b.fromCssColorString("#FF69B4")),b.INDIANRED=Object.freeze(b.fromCssColorString("#CD5C5C")),b.INDIGO=Object.freeze(b.fromCssColorString("#4B0082")),b.IVORY=Object.freeze(b.fromCssColorString("#FFFFF0")),b.KHAKI=Object.freeze(b.fromCssColorString("#F0E68C")),b.LAVENDER=Object.freeze(b.fromCssColorString("#E6E6FA")),b.LAVENDAR_BLUSH=Object.freeze(b.fromCssColorString("#FFF0F5")),b.LAWNGREEN=Object.freeze(b.fromCssColorString("#7CFC00")),b.LEMONCHIFFON=Object.freeze(b.fromCssColorString("#FFFACD")),b.LIGHTBLUE=Object.freeze(b.fromCssColorString("#ADD8E6")),b.LIGHTCORAL=Object.freeze(b.fromCssColorString("#F08080")),b.LIGHTCYAN=Object.freeze(b.fromCssColorString("#E0FFFF")),b.LIGHTGOLDENRODYELLOW=Object.freeze(b.fromCssColorString("#FAFAD2")),b.LIGHTGRAY=Object.freeze(b.fromCssColorString("#D3D3D3")),b.LIGHTGREEN=Object.freeze(b.fromCssColorString("#90EE90")),b.LIGHTGREY=b.LIGHTGRAY,b.LIGHTPINK=Object.freeze(b.fromCssColorString("#FFB6C1")),b.LIGHTSEAGREEN=Object.freeze(b.fromCssColorString("#20B2AA")),b.LIGHTSKYBLUE=Object.freeze(b.fromCssColorString("#87CEFA")),b.LIGHTSLATEGRAY=Object.freeze(b.fromCssColorString("#778899")),b.LIGHTSLATEGREY=b.LIGHTSLATEGRAY,b.LIGHTSTEELBLUE=Object.freeze(b.fromCssColorString("#B0C4DE")),b.LIGHTYELLOW=Object.freeze(b.fromCssColorString("#FFFFE0")),b.LIME=Object.freeze(b.fromCssColorString("#00FF00")),b.LIMEGREEN=Object.freeze(b.fromCssColorString("#32CD32")),b.LINEN=Object.freeze(b.fromCssColorString("#FAF0E6")),b.MAGENTA=Object.freeze(b.fromCssColorString("#FF00FF")),b.MAROON=Object.freeze(b.fromCssColorString("#800000")),b.MEDIUMAQUAMARINE=Object.freeze(b.fromCssColorString("#66CDAA")),b.MEDIUMBLUE=Object.freeze(b.fromCssColorString("#0000CD")),b.MEDIUMORCHID=Object.freeze(b.fromCssColorString("#BA55D3")),b.MEDIUMPURPLE=Object.freeze(b.fromCssColorString("#9370DB")),b.MEDIUMSEAGREEN=Object.freeze(b.fromCssColorString("#3CB371")),b.MEDIUMSLATEBLUE=Object.freeze(b.fromCssColorString("#7B68EE")),b.MEDIUMSPRINGGREEN=Object.freeze(b.fromCssColorString("#00FA9A")),b.MEDIUMTURQUOISE=Object.freeze(b.fromCssColorString("#48D1CC")),b.MEDIUMVIOLETRED=Object.freeze(b.fromCssColorString("#C71585")),b.MIDNIGHTBLUE=Object.freeze(b.fromCssColorString("#191970")),b.MINTCREAM=Object.freeze(b.fromCssColorString("#F5FFFA")),b.MISTYROSE=Object.freeze(b.fromCssColorString("#FFE4E1")),b.MOCCASIN=Object.freeze(b.fromCssColorString("#FFE4B5")),b.NAVAJOWHITE=Object.freeze(b.fromCssColorString("#FFDEAD")),b.NAVY=Object.freeze(b.fromCssColorString("#000080")),b.OLDLACE=Object.freeze(b.fromCssColorString("#FDF5E6")),b.OLIVE=Object.freeze(b.fromCssColorString("#808000")),b.OLIVEDRAB=Object.freeze(b.fromCssColorString("#6B8E23")),b.ORANGE=Object.freeze(b.fromCssColorString("#FFA500")),b.ORANGERED=Object.freeze(b.fromCssColorString("#FF4500")),b.ORCHID=Object.freeze(b.fromCssColorString("#DA70D6")),b.PALEGOLDENROD=Object.freeze(b.fromCssColorString("#EEE8AA")),b.PALEGREEN=Object.freeze(b.fromCssColorString("#98FB98")),b.PALETURQUOISE=Object.freeze(b.fromCssColorString("#AFEEEE")),b.PALEVIOLETRED=Object.freeze(b.fromCssColorString("#DB7093")),b.PAPAYAWHIP=Object.freeze(b.fromCssColorString("#FFEFD5")),b.PEACHPUFF=Object.freeze(b.fromCssColorString("#FFDAB9")),b.PERU=Object.freeze(b.fromCssColorString("#CD853F")),b.PINK=Object.freeze(b.fromCssColorString("#FFC0CB")),b.PLUM=Object.freeze(b.fromCssColorString("#DDA0DD")),b.POWDERBLUE=Object.freeze(b.fromCssColorString("#B0E0E6")),b.PURPLE=Object.freeze(b.fromCssColorString("#800080")),b.RED=Object.freeze(b.fromCssColorString("#FF0000")),b.ROSYBROWN=Object.freeze(b.fromCssColorString("#BC8F8F")),b.ROYALBLUE=Object.freeze(b.fromCssColorString("#4169E1")),b.SADDLEBROWN=Object.freeze(b.fromCssColorString("#8B4513")),b.SALMON=Object.freeze(b.fromCssColorString("#FA8072")),b.SANDYBROWN=Object.freeze(b.fromCssColorString("#F4A460")),b.SEAGREEN=Object.freeze(b.fromCssColorString("#2E8B57")),b.SEASHELL=Object.freeze(b.fromCssColorString("#FFF5EE")),b.SIENNA=Object.freeze(b.fromCssColorString("#A0522D")),b.SILVER=Object.freeze(b.fromCssColorString("#C0C0C0")),b.SKYBLUE=Object.freeze(b.fromCssColorString("#87CEEB")),b.SLATEBLUE=Object.freeze(b.fromCssColorString("#6A5ACD")),b.SLATEGRAY=Object.freeze(b.fromCssColorString("#708090")),b.SLATEGREY=b.SLATEGRAY,b.SNOW=Object.freeze(b.fromCssColorString("#FFFAFA")),b.SPRINGGREEN=Object.freeze(b.fromCssColorString("#00FF7F")),b.STEELBLUE=Object.freeze(b.fromCssColorString("#4682B4")),b.TAN=Object.freeze(b.fromCssColorString("#D2B48C")),b.TEAL=Object.freeze(b.fromCssColorString("#008080")),b.THISTLE=Object.freeze(b.fromCssColorString("#D8BFD8")),b.TOMATO=Object.freeze(b.fromCssColorString("#FF6347")),b.TURQUOISE=Object.freeze(b.fromCssColorString("#40E0D0")),b.VIOLET=Object.freeze(b.fromCssColorString("#EE82EE")),b.WHEAT=Object.freeze(b.fromCssColorString("#F5DEB3")),b.WHITE=Object.freeze(b.fromCssColorString("#FFFFFF")),b.WHITESMOKE=Object.freeze(b.fromCssColorString("#F5F5F5")),b.YELLOW=Object.freeze(b.fromCssColorString("#FFFF00")),b.YELLOWGREEN=Object.freeze(b.fromCssColorString("#9ACD32")),b.TRANSPARENT=Object.freeze(new b(0,0,0,0)),e.Color=b});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define(["exports","./Transforms-ce414632","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./Matrix2-59fd2efe","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./WebMercatorProjection-329b047d"],function(e,w,A,V,t,D,P,k,O,C,f){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])}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 o={isGeographic:function(e){return e.isGeographic&&e.isGeographic()}};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,G,x,S,P=(v=b[C]).attributes;if(i)for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&O.GeometryPipeline.encodeAttribute(v,G,G+"3DHigh",G+"3DLow");else for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&(O.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)),O.GeometryPipeline.encodeAttribute(v,x,x+"High",x+"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)}}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 a(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 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},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:o.isGeographic(e.projection),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=a(e.boundingSpheres),n=a(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 +1 @@
|
|
|
1
|
-
define(["./PrimitivePipeline-
|
|
1
|
+
define(["./PrimitivePipeline-a7cf99d1","./createTaskProcessorWorker","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryPipeline-984d7313","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IndexDatatype-6902a37d","./IntersectionTests-f71f97b3","./Plane-43337cee","./WebMercatorProjection-329b047d"],function(i,e,t,r,n,o,a,b,m,c,s,d,P,p,f,u,y,l){return e(function(e,t){return e=i.PrimitivePipeline.unpackCombineGeometryParameters(e),e=i.PrimitivePipeline.combineGeometry(e),i.PrimitivePipeline.packCombineGeometryResults(e,t)})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./BoxGeometry-
|
|
1
|
+
define(["./BoxGeometry-ff79c7c4","./when-ae2e0b60","./GeometryOffsetAttribute-8c0bd3ce","./RuntimeError-24b14c10","./Transforms-ce414632","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e"],function(r,o,e,t,n,c,f,m,a,b,i,d){return function(e,t){return o.defined(t)&&(e=r.BoxGeometry.unpack(e,t)),r.BoxGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./GeometryOffsetAttribute-8c0bd3ce","./Transforms-
|
|
1
|
+
define(["./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./combine-276652d0","./WebGLConstants-35626ea2"],function(u,m,o,e,s,f,c,d,t,n){var p=new o.Cartesian3;function r(e){var t=(e=f.defaultValue(e,f.defaultValue.EMPTY_OBJECT)).minimum,n=e.maximum;this._min=o.Cartesian3.clone(t),this._max=o.Cartesian3.clone(n),this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxOutlineGeometry"}r.fromDimensions=function(e){var t=(e=f.defaultValue(e,f.defaultValue.EMPTY_OBJECT)).dimensions,t=o.Cartesian3.multiplyByScalar(t,.5,new o.Cartesian3);return new r({minimum:o.Cartesian3.negate(t,new o.Cartesian3),maximum:t,offsetAttribute:e.offsetAttribute})},r.fromAxisAlignedBoundingBox=function(e){return new r({minimum:e.minimum,maximum:e.maximum})},r.packedLength=2*o.Cartesian3.packedLength+1,r.pack=function(e,t,n){return n=f.defaultValue(n,0),o.Cartesian3.pack(e._min,t,n),o.Cartesian3.pack(e._max,t,n+o.Cartesian3.packedLength),t[n+2*o.Cartesian3.packedLength]=f.defaultValue(e._offsetAttribute,-1),t};var y=new o.Cartesian3,b=new o.Cartesian3,l={minimum:y,maximum:b,offsetAttribute:void 0};return r.unpack=function(e,t,n){t=f.defaultValue(t,0);var a=o.Cartesian3.unpack(e,t,y),i=o.Cartesian3.unpack(e,t+o.Cartesian3.packedLength,b),e=e[t+2*o.Cartesian3.packedLength];return f.defined(n)?(n._min=o.Cartesian3.clone(a,n._min),n._max=o.Cartesian3.clone(i,n._max),n._offsetAttribute=-1===e?void 0:e,n):(l.offsetAttribute=-1===e?void 0:e,new r(l))},r.createGeometry=function(e){var t,n,a,i=e._min,r=e._max;if(!o.Cartesian3.equals(i,r))return t=new d.GeometryAttributes,n=new Uint16Array(24),(a=new Float64Array(24))[0]=i.x,a[1]=i.y,a[2]=i.z,a[3]=r.x,a[4]=i.y,a[5]=i.z,a[6]=r.x,a[7]=r.y,a[8]=i.z,a[9]=i.x,a[10]=r.y,a[11]=i.z,a[12]=i.x,a[13]=i.y,a[14]=r.z,a[15]=r.x,a[16]=i.y,a[17]=r.z,a[18]=r.x,a[19]=r.y,a[20]=r.z,a[21]=i.x,a[22]=r.y,a[23]=r.z,t.position=new c.GeometryAttribute({componentDatatype:s.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a}),n[0]=4,n[1]=5,n[2]=5,n[3]=6,n[4]=6,n[5]=7,n[6]=7,n[7]=4,n[8]=0,n[9]=1,n[10]=1,n[11]=2,n[12]=2,n[13]=3,n[14]=3,n[15]=0,n[16]=0,n[17]=4,n[18]=1,n[19]=5,n[20]=2,n[21]=6,n[22]=3,n[23]=7,r=o.Cartesian3.subtract(r,i,p),i=.5*o.Cartesian3.magnitude(r),f.defined(e._offsetAttribute)&&(r=a.length,a=new Uint8Array(r/3),r=e._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,u.arrayFill(a,r),t.applyOffset=new c.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new c.Geometry({attributes:t,indices:n,primitiveType:c.PrimitiveType.LINES,boundingSphere:new m.BoundingSphere(o.Cartesian3.ZERO,i),offsetAttribute:e._offsetAttribute})},function(e,t){return f.defined(t)&&(e=r.unpack(e,t)),r.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./EllipseGeometry-
|
|
1
|
+
define(["./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./EllipseGeometry-cb453b2f","./VertexFormat-1fc9746e","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./combine-276652d0","./EllipseGeometryLibrary-c1a131e7","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IndexDatatype-6902a37d","./IntersectionTests-f71f97b3","./Plane-43337cee"],function(r,e,o,n,l,t,i,s,a,m,d,c,u,p,y,_,G,x,h,f){function g(e){var t=(e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT)).radius;this._ellipseGeometry=new n.EllipseGeometry({center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume}),this._workerName="createCircleGeometry"}g.packedLength=n.EllipseGeometry.packedLength,g.pack=function(e,t,i){return n.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var b=new n.EllipseGeometry({center:new r.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),E={center:new r.Cartesian3,radius:void 0,ellipsoid:r.Ellipsoid.clone(r.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new l.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return g.unpack=function(e,t,i){e=n.EllipseGeometry.unpack(e,t,b);return E.center=r.Cartesian3.clone(e._center,E.center),E.ellipsoid=r.Ellipsoid.clone(e._ellipsoid,E.ellipsoid),E.height=e._height,E.extrudedHeight=e._extrudedHeight,E.granularity=e._granularity,E.vertexFormat=l.VertexFormat.clone(e._vertexFormat,E.vertexFormat),E.stRotation=e._stRotation,E.shadowVolume=e._shadowVolume,o.defined(i)?(E.semiMajorAxis=e._semiMajorAxis,E.semiMinorAxis=e._semiMinorAxis,i._ellipseGeometry=new n.EllipseGeometry(E),i):(E.radius=e._semiMajorAxis,new g(E))},g.createGeometry=function(e){return n.EllipseGeometry.createGeometry(e._ellipseGeometry)},g.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,t=t(r,o),i=i(r,o);return new g({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:t,height:i,vertexFormat:l.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(g.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(e,t){return(e=o.defined(t)?g.unpack(e,t):e)._ellipseGeometry._center=r.Cartesian3.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=r.Ellipsoid.clone(e._ellipseGeometry._ellipsoid),g.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./EllipseOutlineGeometry-
|
|
1
|
+
define(["./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./EllipseOutlineGeometry-ebd4f316","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./combine-276652d0","./EllipseGeometryLibrary-c1a131e7","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(r,e,l,n,i,t,o,s,a,d,u,m,c){function p(e){var i=(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).radius;this._ellipseGeometry=new n.EllipseOutlineGeometry({center:e.center,semiMajorAxis:i,semiMinorAxis:i,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines}),this._workerName="createCircleOutlineGeometry"}p.packedLength=n.EllipseOutlineGeometry.packedLength,p.pack=function(e,i,t){return n.EllipseOutlineGeometry.pack(e._ellipseGeometry,i,t)};var y=new n.EllipseOutlineGeometry({center:new r.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),G={center:new r.Cartesian3,radius:void 0,ellipsoid:r.Ellipsoid.clone(r.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};return p.unpack=function(e,i,t){e=n.EllipseOutlineGeometry.unpack(e,i,y);return G.center=r.Cartesian3.clone(e._center,G.center),G.ellipsoid=r.Ellipsoid.clone(e._ellipsoid,G.ellipsoid),G.height=e._height,G.extrudedHeight=e._extrudedHeight,G.granularity=e._granularity,G.numberOfVerticalLines=e._numberOfVerticalLines,l.defined(t)?(G.semiMajorAxis=e._semiMajorAxis,G.semiMinorAxis=e._semiMinorAxis,t._ellipseGeometry=new n.EllipseOutlineGeometry(G),t):(G.radius=e._semiMajorAxis,new p(G))},p.createGeometry=function(e){return n.EllipseOutlineGeometry.createGeometry(e._ellipseGeometry)},function(e,i){return(e=l.defined(i)?p.unpack(e,i):e)._ellipseGeometry._center=r.Cartesian3.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=r.Ellipsoid.clone(e._ellipseGeometry._ellipsoid),p.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-
|
|
1
|
+
define(["./arrayRemoveDuplicates-bce1b0dc","./BoundingRectangle-81d4313c","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./CoplanarPolygonGeometryLibrary-c59ad6a7","./when-ae2e0b60","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-c31243f7","./PolygonPipeline-6d75eac7","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./OrientedBoundingBox-f70d01fe","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./ArcType-1275a14e","./EllipsoidRhumbLine-535d21cd"],function(b,e,G,L,t,E,h,l,T,D,x,f,_,C,V,s,n,a,o,r,i,u,d,g,N,Q,j){var k=new L.Cartesian3,P=new e.BoundingRectangle,R=new L.Cartesian2,I=new L.Cartesian2,v=new L.Cartesian3,A=new L.Cartesian3,w=new L.Cartesian3,F=new L.Cartesian3,M=new L.Cartesian3,B=new L.Cartesian3,H=new G.Quaternion,O=new L.Matrix3,z=new L.Matrix3,S=new L.Cartesian3;function p(e){var t=(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).polygonHierarchy,n=l.defaultValue(e.vertexFormat,s.VertexFormat.DEFAULT);this._vertexFormat=s.VertexFormat.clone(n),this._polygonHierarchy=t,this._stRotation=l.defaultValue(e.stRotation,0),this._ellipsoid=L.Ellipsoid.clone(l.defaultValue(e.ellipsoid,L.Ellipsoid.WGS84)),this._workerName="createCoplanarPolygonGeometry",this.packedLength=C.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+s.VertexFormat.packedLength+L.Ellipsoid.packedLength+2}p.fromPositions=function(e){return new p({polygonHierarchy:{positions:(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).positions},vertexFormat:e.vertexFormat,stRotation:e.stRotation,ellipsoid:e.ellipsoid})},p.pack=function(e,t,n){return n=l.defaultValue(n,0),n=C.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,n),L.Ellipsoid.pack(e._ellipsoid,t,n),n+=L.Ellipsoid.packedLength,s.VertexFormat.pack(e._vertexFormat,t,n),n+=s.VertexFormat.packedLength,t[n++]=e._stRotation,t[n]=e.packedLength,t};var y=L.Ellipsoid.clone(L.Ellipsoid.UNIT_SPHERE),c=new s.VertexFormat,m={polygonHierarchy:{}};return p.unpack=function(e,t,n){t=l.defaultValue(t,0);var a=C.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t),o=(t=a.startingIndex,delete a.startingIndex,L.Ellipsoid.unpack(e,t,y)),r=(t+=L.Ellipsoid.packedLength,s.VertexFormat.unpack(e,t,c)),i=(t+=s.VertexFormat.packedLength,e[t++]),e=e[t];return(n=l.defined(n)?n:new p(m))._polygonHierarchy=a,n._ellipsoid=L.Ellipsoid.clone(o,n._ellipsoid),n._vertexFormat=s.VertexFormat.clone(r,n._vertexFormat),n._stRotation=i,n.packedLength=e,n},p.createGeometry=function(e){var t=e._vertexFormat,n=e._polygonHierarchy,a=e._stRotation,o=n.positions;if(!((o=b.arrayRemoveDuplicates(o,L.Cartesian3.equalsEpsilon,!0)).length<3)){var r=v,i=A,l=w,s=M,p=B;if(h.CoplanarPolygonGeometryLibrary.computeProjectTo2DArguments(o,F,s,p)){var r=L.Cartesian3.cross(s,p,r),e=(r=L.Cartesian3.normalize(r,r),L.Cartesian3.equalsEpsilon(F,L.Cartesian3.ZERO,E.CesiumMath.EPSILON6)||(e=e._ellipsoid.geodeticSurfaceNormal(F,S),L.Cartesian3.dot(r,e)<0&&(r=L.Cartesian3.negate(r,r),s=L.Cartesian3.negate(s,s))),h.CoplanarPolygonGeometryLibrary.createProjectPointsTo2DFunction(F,s,p)),y=h.CoplanarPolygonGeometryLibrary.createProjectPointTo2DFunction(F,s,p),s=(t.tangent&&(i=L.Cartesian3.clone(s,i)),t.bitangent&&(l=L.Cartesian3.clone(p,l)),C.PolygonGeometryLibrary.polygonsFromHierarchy(n,e,!1)),p=s.hierarchy,c=s.polygons;if(0!==p.length){for(var o=p[0].outerRing,n=G.BoundingSphere.fromPoints(o),m=C.PolygonGeometryLibrary.computeBoundingRectangle(r,y,o,a,P),u=[],d=0;d<c.length;d++){var g=new x.GeometryInstance({geometry:function(e,t,n,a,o,r,i,l){for(var s=e.positions,p=((e=V.PolygonPipeline.triangulate(e.positions2D,e.holes)).length<3&&(e=[0,1,2]),_.IndexDatatype.createTypedArray(s.length,e.length)),y=(p.set(e),O),c=(0!==a?(e=G.Quaternion.fromAxisAngle(r,a,H),y=L.Matrix3.fromQuaternion(e,y),(t.tangent||t.bitangent)&&(e=G.Quaternion.fromAxisAngle(r,-a,H),a=L.Matrix3.fromQuaternion(e,z),i=L.Cartesian3.normalize(L.Matrix3.multiplyByVector(a,i,i),i),t.bitangent)&&(l=L.Cartesian3.normalize(L.Cartesian3.cross(r,i,l),l))):y=L.Matrix3.clone(L.Matrix3.IDENTITY,y),I),m=(t.st&&(c.x=n.x,c.y=n.y),s.length),e=3*m,u=new Float64Array(e),d=t.normal?new Float32Array(e):void 0,g=t.tangent?new Float32Array(e):void 0,b=t.bitangent?new Float32Array(e):void 0,h=t.st?new Float32Array(2*m):void 0,x=0,f=0,C=0,P=0,v=0,A=0;A<m;A++){var w,F=s[A];u[x++]=F.x,u[x++]=F.y,u[x++]=F.z,t.st&&(F=o(L.Matrix3.multiplyByVector(y,F,k),R),L.Cartesian2.subtract(F,c,F),w=E.CesiumMath.clamp(F.x/n.width,0,1),F=E.CesiumMath.clamp(F.y/n.height,0,1),h[v++]=w,h[v++]=F),t.normal&&(d[f++]=r.x,d[f++]=r.y,d[f++]=r.z),t.tangent&&(g[P++]=i.x,g[P++]=i.y,g[P++]=i.z),t.bitangent&&(b[C++]=l.x,b[C++]=l.y,b[C++]=l.z)}return a=new D.GeometryAttributes,t.position&&(a.position=new T.GeometryAttribute({componentDatatype:E.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),t.normal&&(a.normal=new T.GeometryAttribute({componentDatatype:E.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),t.tangent&&(a.tangent=new T.GeometryAttribute({componentDatatype:E.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:g})),t.bitangent&&(a.bitangent=new T.GeometryAttribute({componentDatatype:E.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:b})),t.st&&(a.st=new T.GeometryAttribute({componentDatatype:E.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:h})),new T.Geometry({attributes:a,indices:p,primitiveType:T.PrimitiveType.TRIANGLES})}(c[d],t,m,a,y,r,i,l)});u.push(g)}e=f.GeometryPipeline.combineInstances(u)[0],s=(e.attributes.position.values=new Float64Array(e.attributes.position.values),e.indices=_.IndexDatatype.createTypedArray(e.attributes.position.values.length/3,e.indices),e.attributes);return t.position||delete s.position,new T.Geometry({attributes:s,indices:e.indices,primitiveType:e.primitiveType,boundingSphere:n})}}}},function(e,t){return l.defined(t)&&(e=p.unpack(e,t)),p.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./arrayRemoveDuplicates-bce1b0dc","./Transforms-
|
|
1
|
+
define(["./arrayRemoveDuplicates-bce1b0dc","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./CoplanarPolygonGeometryLibrary-c59ad6a7","./when-ae2e0b60","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./IndexDatatype-6902a37d","./PolygonGeometryLibrary-c31243f7","./combine-276652d0","./WebGLConstants-35626ea2","./OrientedBoundingBox-f70d01fe","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./ArcType-1275a14e","./EllipsoidRhumbLine-535d21cd","./PolygonPipeline-6d75eac7"],function(a,y,l,e,c,p,o,s,u,d,m,g,b,t,n,r,i,f,h,P,G,v,L,T,E){function A(e){e=(e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT)).polygonHierarchy;this._polygonHierarchy=e,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=b.PolygonGeometryLibrary.computeHierarchyPackedLength(e)+1}A.fromPositions=function(e){return new A({polygonHierarchy:{positions:(e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT)).positions}})},A.pack=function(e,t,n){return n=o.defaultValue(n,0),t[n=b.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,n)]=e.packedLength,t};var C={polygonHierarchy:{}};return A.unpack=function(e,t,n){t=o.defaultValue(t,0);var r=b.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t),e=(t=r.startingIndex,delete r.startingIndex,e[t]);return(n=o.defined(n)?n:new A(C))._polygonHierarchy=r,n.packedLength=e,n},A.createGeometry=function(e){var e=e._polygonHierarchy,t=e.positions,t=a.arrayRemoveDuplicates(t,l.Cartesian3.equalsEpsilon,!0);if(!(t.length<3)&&p.CoplanarPolygonGeometryLibrary.validOutline(t)){var n=b.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(e,!1);if(0!==n.length){for(var r=[],o=0;o<n.length;o++){var i=new d.GeometryInstance({geometry:function(e){for(var t=e.length,n=new Float64Array(3*t),r=g.IndexDatatype.createTypedArray(t,2*t),o=0,i=0,a=0;a<t;a++){var y=e[a];n[o++]=y.x,n[o++]=y.y,n[o++]=y.z,r[i++]=a,r[i++]=(a+1)%t}var l=new u.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:c.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n})});return new s.Geometry({attributes:l,indices:r,primitiveType:s.PrimitiveType.LINES})}(n[o])});r.push(i)}t=m.GeometryPipeline.combineInstances(r)[0],e=y.BoundingSphere.fromPoints(e.positions);return new s.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:t.primitiveType,boundingSphere:e})}}},function(e,t){return(e=o.defined(t)?A.unpack(e,t):e)._ellipsoid=l.Ellipsoid.clone(e._ellipsoid),A.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./GeometryOffsetAttribute-8c0bd3ce","./arrayRemoveDuplicates-bce1b0dc","./Transforms-3bc98d07","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-aaaa4829","./CorridorGeometryLibrary-64499c3b","./when-ae2e0b60","./GeometryAttribute-dff85b2b","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-ea1c8d04","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-0cf355bc","./AxisAlignedBoundingBox-9ec4e335","./IntersectionTests-d0a84f0f","./Plane-43337cee","./PolylinePipeline-5ce4be00","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd"],function(E,m,d,rt,t,at,y,it,ot,nt,gt,st,V,x,e,r,a,o,n,s,l,u,P){var lt=new rt.Cartesian3,dt=new rt.Cartesian3,ut=new rt.Cartesian3,mt=new rt.Cartesian3,N=new rt.Cartesian3,yt=new rt.Cartesian3,ft=new rt.Cartesian3,ct=new rt.Cartesian3;function f(t,e){for(var r=0;r<t.length;r++)t[r]=e.scaleToGeodeticSurface(t[r],t[r]);return t}function pt(t,e,r,a,i,o){var n=t.normals,s=t.tangents,t=t.bitangents,l=rt.Cartesian3.normalize(rt.Cartesian3.cross(r,e,ft),ft);o.normal&&it.CorridorGeometryLibrary.addAttribute(n,e,a,i),o.tangent&&it.CorridorGeometryLibrary.addAttribute(s,l,a,i),o.bitangent&&it.CorridorGeometryLibrary.addAttribute(t,r,a,i)}function F(t,e,r){var a,i=t.positions,o=t.corners,I=t.endPositions,S=t.lefts,R=t.normals,t=new gt.GeometryAttributes,n=0,s=0,k=0;for(T=0;T<i.length;T+=2)n+=a=i[T].length-3,k+=2*a,s+=i[T+1].length-3;for(n+=3,s+=3,T=0;T<o.length;T++){var H=o[T],z=o[T].leftPositions;ot.defined(z)?n+=a=z.length:s+=a=o[T].rightPositions.length,k+=a}var l,d,u,m,y,B=ot.defined(I),f=(B&&(n+=l=I[0].length-3,s+=l,k+=6*(l/=3)),n+s),c=new Float64Array(f),p={normals:e.normal?new Float32Array(f):void 0,tangents:e.tangent?new Float32Array(f):void 0,bitangents:e.bitangent?new Float32Array(f):void 0},g=0,h=f-1,b=lt,C=dt,U=l/2,A=st.IndexDatatype.createTypedArray(f/3,k),v=0;if(B)for(var _=ut,w=mt,Y=I[0],b=rt.Cartesian3.fromArray(R,0,b),C=rt.Cartesian3.fromArray(S,0,C),T=0;T<U;T++)_=rt.Cartesian3.fromArray(Y,3*(U-1-T),_),w=rt.Cartesian3.fromArray(Y,3*(U+T),w),it.CorridorGeometryLibrary.addAttribute(c,w,g),it.CorridorGeometryLibrary.addAttribute(c,_,void 0,h),pt(p,b,C,g,h,e),y=(u=g/3)+1,m=(d=(h-2)/3)-1,A[v++]=d,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3;var W,q,J=0,j=0,G=i[J++],E=i[J++];for(c.set(G,g),c.set(E,h-E.length+1),C=rt.Cartesian3.fromArray(S,j,C),a=E.length-3,T=0;T<a;T+=3)W=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(G,T,ft),ft),q=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(E,a-T,ct),ct),pt(p,b=rt.Cartesian3.normalize(rt.Cartesian3.add(W,q,b),b),C,g,h,e),y=(u=g/3)+1,m=(d=(h-2)/3)-1,A[v++]=d,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3;for(W=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(G,a,ft),ft),q=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(E,a,ct),ct),b=rt.Cartesian3.normalize(rt.Cartesian3.add(W,q,b),b),j+=3,T=0;T<o.length;T++){var V,x,F,K=(H=o[T]).leftPositions,Q=H.rightPositions,L=yt,P=ut,N=mt;if(b=rt.Cartesian3.fromArray(R,j,b),ot.defined(K)){for(pt(p,b,C,void 0,h,e),h-=3,x=y,F=m,V=0;V<K.length/3;V++)L=rt.Cartesian3.fromArray(K,3*V,L),A[v++]=x,A[v++]=F-V-1,A[v++]=F-V,it.CorridorGeometryLibrary.addAttribute(c,L,void 0,h),P=rt.Cartesian3.fromArray(c,3*(F-V-1),P),N=rt.Cartesian3.fromArray(c,3*x,N),pt(p,b,C=rt.Cartesian3.normalize(rt.Cartesian3.subtract(P,N,C),C),void 0,h,e),h-=3;L=rt.Cartesian3.fromArray(c,3*x,L),P=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(c,3*F,P),L,P),N=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(c,3*(F-V),N),L,N),pt(p,b,C=rt.Cartesian3.normalize(rt.Cartesian3.add(P,N,C),C),g,void 0,e),g+=3}else{for(pt(p,b,C,g,void 0,e),g+=3,x=m,F=y,V=0;V<Q.length/3;V++)L=rt.Cartesian3.fromArray(Q,3*V,L),A[v++]=x,A[v++]=F+V,A[v++]=F+V+1,it.CorridorGeometryLibrary.addAttribute(c,L,g),P=rt.Cartesian3.fromArray(c,3*x,P),N=rt.Cartesian3.fromArray(c,3*(F+V),N),pt(p,b,C=rt.Cartesian3.normalize(rt.Cartesian3.subtract(P,N,C),C),g,void 0,e),g+=3;L=rt.Cartesian3.fromArray(c,3*x,L),P=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(c,3*(F+V),P),L,P),N=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(c,3*F,N),L,N),pt(p,b,C=rt.Cartesian3.normalize(rt.Cartesian3.negate(rt.Cartesian3.add(N,P,C),C),C),void 0,h,e),h-=3}for(G=i[J++],E=i[J++],G.splice(0,3),E.splice(E.length-3,3),c.set(G,g),c.set(E,h-E.length+1),a=E.length-3,j+=3,C=rt.Cartesian3.fromArray(S,j,C),V=0;V<E.length;V+=3)W=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(G,V,ft),ft),q=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(E,a-V,ct),ct),pt(p,b=rt.Cartesian3.normalize(rt.Cartesian3.add(W,q,b),b),C,g,h,e),u=(y=g/3)-1,A[v++]=d=(m=(h-2)/3)+1,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3;g-=3,h+=3}if(pt(p,b=rt.Cartesian3.fromArray(R,R.length-3,b),C,g,h,e),B){g+=3,h-=3,_=ut,w=mt;var X=I[1];for(T=0;T<U;T++)_=rt.Cartesian3.fromArray(X,3*(l-T-1),_),w=rt.Cartesian3.fromArray(X,3*T,w),it.CorridorGeometryLibrary.addAttribute(c,_,void 0,h),it.CorridorGeometryLibrary.addAttribute(c,w,g),pt(p,b,C,g,h,e),u=(y=g/3)-1,A[v++]=d=(m=(h-2)/3)+1,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3}if(t.position=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c}),e.st){var D=new Float32Array(f/3*2),M=0;if(B){n/=3,s/=3;var O,Z=Math.PI/(l+1),$=1/(n-l+1),tt=1/(s-l+1),et=l/2;for(T=1+et;T<l+1;T++)O=at.CesiumMath.PI_OVER_TWO+Z*T,D[M++]=tt*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O));for(T=1;T<s-l+1;T++)D[M++]=T*tt,D[M++]=0;for(T=l;et<T;T--)O=at.CesiumMath.PI_OVER_TWO-T*Z,D[M++]=1-tt*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O));for(T=et;0<T;T--)O=at.CesiumMath.PI_OVER_TWO-Z*T,D[M++]=1-$*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O));for(T=n-l;0<T;T--)D[M++]=T*$,D[M++]=1;for(T=1;T<1+et;T++)O=at.CesiumMath.PI_OVER_TWO+Z*T,D[M++]=$*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O))}else{for($=1/((n/=3)-1),tt=1/((s/=3)-1),T=0;T<s;T++)D[M++]=T*tt,D[M++]=0;for(T=n;0<T;T--)D[M++]=(T-1)*$,D[M++]=1}t.st=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:D})}return e.normal&&(t.normal=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p.normals})),e.tangent&&(t.tangent=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p.tangents})),e.bitangent&&(t.bitangent=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p.bitangents})),{attributes:t,indices:A}}function L(t,e,r){r[e++]=t[0],r[e++]=t[1],r[e++]=t[2];for(var a=3;a<t.length;a+=3){var i=t[a],o=t[a+1],n=t[a+2];r[e++]=i,r[e++]=o,r[e++]=n,r[e++]=i,r[e++]=o,r[e++]=n}return r[e++]=t[0],r[e++]=t[1],r[e++]=t[2],r}function D(t,e){var r=new x.VertexFormat({position:e.position,normal:e.normal||e.bitangent||t.shadowVolume,tangent:e.tangent,bitangent:e.normal||e.bitangent,st:e.st}),a=t.ellipsoid,r=F(it.CorridorGeometryLibrary.computePositions(t),r,a),i=t.height,o=t.extrudedHeight,n=r.attributes,s=r.indices,r=n.position.values,l=r.length,d=new Float64Array(6*l),u=new Float64Array(l),m=(u.set(r),new Float64Array(4*l)),m=L(r=V.PolygonPipeline.scaleToGeodeticHeight(r,i,a),0,m),n=(m=L(u=V.PolygonPipeline.scaleToGeodeticHeight(u,o,a),2*l,m),d.set(r),d.set(u,l),d.set(m,2*l),n.position.values=d,function(t,e){if(e.normal||e.tangent||e.bitangent||e.st){var r,a,i=t.position.values,o=((e.normal||e.bitangent)&&(r=t.normal.values,a=t.bitangent.values),t.position.values.length/18),n=3*o,s=2*o,l=2*n;if(e.normal||e.bitangent||e.tangent){for(var d=e.normal?new Float32Array(6*n):void 0,u=e.tangent?new Float32Array(6*n):void 0,m=e.bitangent?new Float32Array(6*n):void 0,y=lt,f=dt,c=ut,p=mt,g=N,h=yt,b=l,C=0;C<n;C+=3){var A=b+l,y=rt.Cartesian3.fromArray(i,C,y),f=rt.Cartesian3.fromArray(i,C+n,f),c=rt.Cartesian3.fromArray(i,(C+3)%n,c);f=rt.Cartesian3.subtract(f,y,f),c=rt.Cartesian3.subtract(c,y,c),p=rt.Cartesian3.normalize(rt.Cartesian3.cross(f,c,p),p),e.normal&&(it.CorridorGeometryLibrary.addAttribute(d,p,A),it.CorridorGeometryLibrary.addAttribute(d,p,A+3),it.CorridorGeometryLibrary.addAttribute(d,p,b),it.CorridorGeometryLibrary.addAttribute(d,p,b+3)),(e.tangent||e.bitangent)&&(h=rt.Cartesian3.fromArray(r,C,h),e.bitangent&&(it.CorridorGeometryLibrary.addAttribute(m,h,A),it.CorridorGeometryLibrary.addAttribute(m,h,A+3),it.CorridorGeometryLibrary.addAttribute(m,h,b),it.CorridorGeometryLibrary.addAttribute(m,h,b+3)),e.tangent)&&(g=rt.Cartesian3.normalize(rt.Cartesian3.cross(h,p,g),g),it.CorridorGeometryLibrary.addAttribute(u,g,A),it.CorridorGeometryLibrary.addAttribute(u,g,A+3),it.CorridorGeometryLibrary.addAttribute(u,g,b),it.CorridorGeometryLibrary.addAttribute(u,g,b+3)),b+=6}if(e.normal){for(d.set(r),C=0;C<n;C+=3)d[C+n]=-r[C],d[C+n+1]=-r[C+1],d[C+n+2]=-r[C+2];t.normal.values=d}else t.normal=void 0;e.bitangent?(m.set(a),m.set(a,n),t.bitangent.values=m):t.bitangent=void 0,e.tangent&&(o=t.tangent.values,u.set(o),u.set(o,n),t.tangent.values=u)}if(e.st){for(var v=t.st.values,_=new Float32Array(6*s),w=(_.set(v),_.set(v,s),2*s),T=0;T<2;T++){for(_[w++]=v[0],_[w++]=v[1],C=2;C<s;C+=2){var G=v[C],E=v[C+1];_[w++]=G,_[w++]=E,_[w++]=G,_[w++]=E}_[w++]=v[0],_[w++]=v[1]}t.st.values=_}}return t}(n,e)),y=l/3;if(t.shadowVolume){for(var f=n.normal.values,l=f.length,i=new Float32Array(6*l),c=0;c<l;c++)f[c]=-f[c];i.set(f,l),i=L(f,4*l,i),n.extrudeDirection=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:i}),e.normal||(n.normal=void 0)}ot.defined(t.offsetAttribute)&&(o=new Uint8Array(6*y),o=t.offsetAttribute===E.GeometryOffsetAttribute.TOP?(o=E.arrayFill(o,1,0,y),E.arrayFill(o,1,2*y,4*y)):(a=t.offsetAttribute===E.GeometryOffsetAttribute.NONE?0:1,E.arrayFill(o,a)),n.applyOffset=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:o}));var p,g,h,b,C=s.length,A=y+y,v=st.IndexDatatype.createTypedArray(d.length/3,2*C+3*A),_=(v.set(s),C);for(c=0;c<C;c+=3){var w=s[c],T=s[c+1],G=s[c+2];v[_++]=G+y,v[_++]=T+y,v[_++]=w+y}for(c=0;c<A;c+=2)h=(p=c+A)+1,b=(g=p+A)+1,v[_++]=p,v[_++]=g,v[_++]=h,v[_++]=h,v[_++]=g,v[_++]=b;return{attributes:n,indices:v}}var c=new rt.Cartesian3,p=new rt.Cartesian3,g=new rt.Cartographic;function h(t,e,r,a,i,o){var e=rt.Cartesian3.subtract(e,t,c),n=(rt.Cartesian3.normalize(e,e),r.geodeticSurfaceNormal(t,p)),e=rt.Cartesian3.cross(e,n,c),n=(rt.Cartesian3.multiplyByScalar(e,a,e),i.latitude),a=i.longitude,s=o.latitude,l=o.longitude,d=(rt.Cartesian3.add(t,e,p),r.cartesianToCartographic(p,g),g.latitude),u=g.longitude,n=Math.min(n,d),a=Math.min(a,u),s=Math.max(s,d),l=Math.max(l,u);rt.Cartesian3.subtract(t,e,p),r.cartesianToCartographic(p,g),d=g.latitude,u=g.longitude,n=Math.min(n,d),a=Math.min(a,u),s=Math.max(s,d),l=Math.max(l,u),i.latitude=n,i.longitude=a,o.latitude=s,o.longitude=l}var b=new rt.Cartesian3,C=new rt.Cartesian3,A=new rt.Cartographic,v=new rt.Cartographic;function i(t,e,r,a,i){t=f(t,e);var o=m.arrayRemoveDuplicates(t,rt.Cartesian3.equalsEpsilon),n=o.length;if(n<2||r<=0)return new rt.Rectangle;var s,l,d=.5*r;A.latitude=Number.POSITIVE_INFINITY,A.longitude=Number.POSITIVE_INFINITY,v.latitude=Number.NEGATIVE_INFINITY,v.longitude=Number.NEGATIVE_INFINITY,a===y.CornerType.ROUNDED&&(rt.Cartesian3.subtract(t=o[0],o[1],b),rt.Cartesian3.normalize(b,b),rt.Cartesian3.multiplyByScalar(b,d,b),rt.Cartesian3.add(t,b,C),e.cartesianToCartographic(C,g),s=g.latitude,l=g.longitude,A.latitude=Math.min(A.latitude,s),A.longitude=Math.min(A.longitude,l),v.latitude=Math.max(v.latitude,s),v.longitude=Math.max(v.longitude,l));for(var u=0;u<n-1;++u)h(o[u],o[u+1],e,d,A,v);r=o[n-1],rt.Cartesian3.subtract(r,o[n-2],b),rt.Cartesian3.normalize(b,b),rt.Cartesian3.multiplyByScalar(b,d,b),rt.Cartesian3.add(r,b,C),h(r,C,e,d,A,v),a===y.CornerType.ROUNDED&&(e.cartesianToCartographic(C,g),s=g.latitude,l=g.longitude,A.latitude=Math.min(A.latitude,s),A.longitude=Math.min(A.longitude,l),v.latitude=Math.max(v.latitude,s),v.longitude=Math.max(v.longitude,l)),t=ot.defined(i)?i:new rt.Rectangle;return t.north=v.latitude,t.south=A.latitude,t.east=v.longitude,t.west=A.longitude,t}function _(t){var e=(t=ot.defaultValue(t,ot.defaultValue.EMPTY_OBJECT)).positions,r=t.width,a=ot.defaultValue(t.height,0),i=ot.defaultValue(t.extrudedHeight,a);this._positions=e,this._ellipsoid=rt.Ellipsoid.clone(ot.defaultValue(t.ellipsoid,rt.Ellipsoid.WGS84)),this._vertexFormat=x.VertexFormat.clone(ot.defaultValue(t.vertexFormat,x.VertexFormat.DEFAULT)),this._width=r,this._height=Math.max(a,i),this._extrudedHeight=Math.min(a,i),this._cornerType=ot.defaultValue(t.cornerType,y.CornerType.ROUNDED),this._granularity=ot.defaultValue(t.granularity,at.CesiumMath.RADIANS_PER_DEGREE),this._shadowVolume=ot.defaultValue(t.shadowVolume,!1),this._workerName="createCorridorGeometry",this._offsetAttribute=t.offsetAttribute,this._rectangle=void 0,this.packedLength=1+e.length*rt.Cartesian3.packedLength+rt.Ellipsoid.packedLength+x.VertexFormat.packedLength+7}_.pack=function(t,e,r){r=ot.defaultValue(r,0);var a=t._positions,i=a.length;e[r++]=i;for(var o=0;o<i;++o,r+=rt.Cartesian3.packedLength)rt.Cartesian3.pack(a[o],e,r);return rt.Ellipsoid.pack(t._ellipsoid,e,r),r+=rt.Ellipsoid.packedLength,x.VertexFormat.pack(t._vertexFormat,e,r),r+=x.VertexFormat.packedLength,e[r++]=t._width,e[r++]=t._height,e[r++]=t._extrudedHeight,e[r++]=t._cornerType,e[r++]=t._granularity,e[r++]=t._shadowVolume?1:0,e[r]=ot.defaultValue(t._offsetAttribute,-1),e};var w=rt.Ellipsoid.clone(rt.Ellipsoid.UNIT_SPHERE),T=new x.VertexFormat,G={positions:void 0,ellipsoid:w,vertexFormat:T,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,shadowVolume:void 0,offsetAttribute:void 0};return _.unpack=function(t,e,r){e=ot.defaultValue(e,0);for(var a=t[e++],i=new Array(a),o=0;o<a;++o,e+=rt.Cartesian3.packedLength)i[o]=rt.Cartesian3.unpack(t,e);var n=rt.Ellipsoid.unpack(t,e,w),s=(e+=rt.Ellipsoid.packedLength,x.VertexFormat.unpack(t,e,T)),l=(e+=x.VertexFormat.packedLength,t[e++]),d=t[e++],u=t[e++],m=t[e++],y=t[e++],f=1===t[e++],c=t[e];return ot.defined(r)?(r._positions=i,r._ellipsoid=rt.Ellipsoid.clone(n,r._ellipsoid),r._vertexFormat=x.VertexFormat.clone(s,r._vertexFormat),r._width=l,r._height=d,r._extrudedHeight=u,r._cornerType=m,r._granularity=y,r._shadowVolume=f,r._offsetAttribute=-1===c?void 0:c,r):(G.positions=i,G.width=l,G.height=d,G.extrudedHeight=u,G.cornerType=m,G.granularity=y,G.shadowVolume=f,G.offsetAttribute=-1===c?void 0:c,new _(G))},_.computeRectangle=function(t,e){var r=(t=ot.defaultValue(t,ot.defaultValue.EMPTY_OBJECT)).positions,a=t.width;return i(r,ot.defaultValue(t.ellipsoid,rt.Ellipsoid.WGS84),a,ot.defaultValue(t.cornerType,y.CornerType.ROUNDED),e)},_.createGeometry=function(t){var e,r,a,i,o,n=t._positions,s=t._width,l=t._ellipsoid,n=f(n,l),n=m.arrayRemoveDuplicates(n,rt.Cartesian3.equalsEpsilon);if(!(n.length<2||s<=0))return o=t._height,r=!at.CesiumMath.equalsEpsilon(o,a=t._extrudedHeight,0,at.CesiumMath.EPSILON2),e=t._vertexFormat,n={ellipsoid:l,positions:n,width:s,cornerType:t._cornerType,granularity:t._granularity,saveAttributes:!0},r?(n.height=o,n.extrudedHeight=a,n.shadowVolume=t._shadowVolume,n.offsetAttribute=t._offsetAttribute,i=D(n,e)):((i=F(it.CorridorGeometryLibrary.computePositions(n),e,l)).attributes.position.values=V.PolygonPipeline.scaleToGeodeticHeight(i.attributes.position.values,o,l),ot.defined(t._offsetAttribute)&&(s=t._offsetAttribute===E.GeometryOffsetAttribute.NONE?0:1,r=i.attributes.position.values.length,a=new Uint8Array(r/3),E.arrayFill(a,s),i.attributes.applyOffset=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a}))),n=i.attributes,o=d.BoundingSphere.fromVertices(n.position.values,void 0,3),e.position||(i.attributes.position.values=void 0),new nt.Geometry({attributes:n,indices:i.indices,primitiveType:nt.PrimitiveType.TRIANGLES,boundingSphere:o,offsetAttribute:t._offsetAttribute})},_.createShadowVolume=function(t,e,r){var a=t._granularity,i=t._ellipsoid,e=e(a,i),r=r(a,i);return new _({positions:t._positions,width:t._width,cornerType:t._cornerType,ellipsoid:i,granularity:a,extrudedHeight:e,height:r,vertexFormat:x.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(_.prototype,{rectangle:{get:function(){return ot.defined(this._rectangle)||(this._rectangle=i(this._positions,this._ellipsoid,this._width,this._cornerType)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return[0,0,0,1,1,0]}}}),function(t,e){return(t=ot.defined(e)?_.unpack(t,e):t)._ellipsoid=rt.Ellipsoid.clone(t._ellipsoid),_.createGeometry(t)}});
|
|
1
|
+
define(["./GeometryOffsetAttribute-8c0bd3ce","./arrayRemoveDuplicates-bce1b0dc","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-22fe2b3f","./CorridorGeometryLibrary-dbfbb48f","./when-ae2e0b60","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-6d75eac7","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./PolylinePipeline-7389d81d","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd"],function(E,m,d,rt,t,at,y,it,ot,nt,gt,st,V,x,e,r,a,o,n,s,l,u,P){var lt=new rt.Cartesian3,dt=new rt.Cartesian3,ut=new rt.Cartesian3,mt=new rt.Cartesian3,N=new rt.Cartesian3,yt=new rt.Cartesian3,ft=new rt.Cartesian3,pt=new rt.Cartesian3;function f(t,e){for(var r=0;r<t.length;r++)t[r]=e.scaleToGeodeticSurface(t[r],t[r]);return t}function ct(t,e,r,a,i,o){var n=t.normals,s=t.tangents,t=t.bitangents,l=rt.Cartesian3.normalize(rt.Cartesian3.cross(r,e,ft),ft);o.normal&&it.CorridorGeometryLibrary.addAttribute(n,e,a,i),o.tangent&&it.CorridorGeometryLibrary.addAttribute(s,l,a,i),o.bitangent&&it.CorridorGeometryLibrary.addAttribute(t,r,a,i)}function F(t,e,r){var a,i=t.positions,o=t.corners,I=t.endPositions,S=t.lefts,R=t.normals,t=new gt.GeometryAttributes,n=0,s=0,k=0;for(T=0;T<i.length;T+=2)n+=a=i[T].length-3,k+=2*a,s+=i[T+1].length-3;for(n+=3,s+=3,T=0;T<o.length;T++){var H=o[T],z=o[T].leftPositions;ot.defined(z)?n+=a=z.length:s+=a=o[T].rightPositions.length,k+=a}var l,d,u,m,y,B=ot.defined(I),f=(B&&(n+=l=I[0].length-3,s+=l,k+=6*(l/=3)),n+s),p=new Float64Array(f),c={normals:e.normal?new Float32Array(f):void 0,tangents:e.tangent?new Float32Array(f):void 0,bitangents:e.bitangent?new Float32Array(f):void 0},g=0,h=f-1,b=lt,C=dt,U=l/2,A=st.IndexDatatype.createTypedArray(f/3,k),v=0;if(B)for(var _=ut,w=mt,Y=I[0],b=rt.Cartesian3.fromArray(R,0,b),C=rt.Cartesian3.fromArray(S,0,C),T=0;T<U;T++)_=rt.Cartesian3.fromArray(Y,3*(U-1-T),_),w=rt.Cartesian3.fromArray(Y,3*(U+T),w),it.CorridorGeometryLibrary.addAttribute(p,w,g),it.CorridorGeometryLibrary.addAttribute(p,_,void 0,h),ct(c,b,C,g,h,e),y=(u=g/3)+1,m=(d=(h-2)/3)-1,A[v++]=d,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3;var W,q,J=0,j=0,G=i[J++],E=i[J++];for(p.set(G,g),p.set(E,h-E.length+1),C=rt.Cartesian3.fromArray(S,j,C),a=E.length-3,T=0;T<a;T+=3)W=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(G,T,ft),ft),q=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(E,a-T,pt),pt),ct(c,b=rt.Cartesian3.normalize(rt.Cartesian3.add(W,q,b),b),C,g,h,e),y=(u=g/3)+1,m=(d=(h-2)/3)-1,A[v++]=d,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3;for(W=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(G,a,ft),ft),q=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(E,a,pt),pt),b=rt.Cartesian3.normalize(rt.Cartesian3.add(W,q,b),b),j+=3,T=0;T<o.length;T++){var V,x,F,K=(H=o[T]).leftPositions,Q=H.rightPositions,L=yt,P=ut,N=mt;if(b=rt.Cartesian3.fromArray(R,j,b),ot.defined(K)){for(ct(c,b,C,void 0,h,e),h-=3,x=y,F=m,V=0;V<K.length/3;V++)L=rt.Cartesian3.fromArray(K,3*V,L),A[v++]=x,A[v++]=F-V-1,A[v++]=F-V,it.CorridorGeometryLibrary.addAttribute(p,L,void 0,h),P=rt.Cartesian3.fromArray(p,3*(F-V-1),P),N=rt.Cartesian3.fromArray(p,3*x,N),ct(c,b,C=rt.Cartesian3.normalize(rt.Cartesian3.subtract(P,N,C),C),void 0,h,e),h-=3;L=rt.Cartesian3.fromArray(p,3*x,L),P=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(p,3*F,P),L,P),N=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(p,3*(F-V),N),L,N),ct(c,b,C=rt.Cartesian3.normalize(rt.Cartesian3.add(P,N,C),C),g,void 0,e),g+=3}else{for(ct(c,b,C,g,void 0,e),g+=3,x=m,F=y,V=0;V<Q.length/3;V++)L=rt.Cartesian3.fromArray(Q,3*V,L),A[v++]=x,A[v++]=F+V,A[v++]=F+V+1,it.CorridorGeometryLibrary.addAttribute(p,L,g),P=rt.Cartesian3.fromArray(p,3*x,P),N=rt.Cartesian3.fromArray(p,3*(F+V),N),ct(c,b,C=rt.Cartesian3.normalize(rt.Cartesian3.subtract(P,N,C),C),g,void 0,e),g+=3;L=rt.Cartesian3.fromArray(p,3*x,L),P=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(p,3*(F+V),P),L,P),N=rt.Cartesian3.subtract(rt.Cartesian3.fromArray(p,3*F,N),L,N),ct(c,b,C=rt.Cartesian3.normalize(rt.Cartesian3.negate(rt.Cartesian3.add(N,P,C),C),C),void 0,h,e),h-=3}for(G=i[J++],E=i[J++],G.splice(0,3),E.splice(E.length-3,3),p.set(G,g),p.set(E,h-E.length+1),a=E.length-3,j+=3,C=rt.Cartesian3.fromArray(S,j,C),V=0;V<E.length;V+=3)W=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(G,V,ft),ft),q=r.geodeticSurfaceNormal(rt.Cartesian3.fromArray(E,a-V,pt),pt),ct(c,b=rt.Cartesian3.normalize(rt.Cartesian3.add(W,q,b),b),C,g,h,e),u=(y=g/3)-1,A[v++]=d=(m=(h-2)/3)+1,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3;g-=3,h+=3}if(ct(c,b=rt.Cartesian3.fromArray(R,R.length-3,b),C,g,h,e),B){g+=3,h-=3,_=ut,w=mt;var X=I[1];for(T=0;T<U;T++)_=rt.Cartesian3.fromArray(X,3*(l-T-1),_),w=rt.Cartesian3.fromArray(X,3*T,w),it.CorridorGeometryLibrary.addAttribute(p,_,void 0,h),it.CorridorGeometryLibrary.addAttribute(p,w,g),ct(c,b,C,g,h,e),u=(y=g/3)-1,A[v++]=d=(m=(h-2)/3)+1,A[v++]=u,A[v++]=m,A[v++]=m,A[v++]=u,A[v++]=y,g+=3,h-=3}if(t.position=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p}),e.st){var D=new Float32Array(f/3*2),M=0;if(B){n/=3,s/=3;var O,Z=Math.PI/(l+1),$=1/(n-l+1),tt=1/(s-l+1),et=l/2;for(T=1+et;T<l+1;T++)O=at.CesiumMath.PI_OVER_TWO+Z*T,D[M++]=tt*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O));for(T=1;T<s-l+1;T++)D[M++]=T*tt,D[M++]=0;for(T=l;et<T;T--)O=at.CesiumMath.PI_OVER_TWO-T*Z,D[M++]=1-tt*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O));for(T=et;0<T;T--)O=at.CesiumMath.PI_OVER_TWO-Z*T,D[M++]=1-$*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O));for(T=n-l;0<T;T--)D[M++]=T*$,D[M++]=1;for(T=1;T<1+et;T++)O=at.CesiumMath.PI_OVER_TWO+Z*T,D[M++]=$*(1+Math.cos(O)),D[M++]=.5*(1+Math.sin(O))}else{for($=1/((n/=3)-1),tt=1/((s/=3)-1),T=0;T<s;T++)D[M++]=T*tt,D[M++]=0;for(T=n;0<T;T--)D[M++]=(T-1)*$,D[M++]=1}t.st=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:D})}return e.normal&&(t.normal=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c.normals})),e.tangent&&(t.tangent=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c.tangents})),e.bitangent&&(t.bitangent=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c.bitangents})),{attributes:t,indices:A}}function L(t,e,r){r[e++]=t[0],r[e++]=t[1],r[e++]=t[2];for(var a=3;a<t.length;a+=3){var i=t[a],o=t[a+1],n=t[a+2];r[e++]=i,r[e++]=o,r[e++]=n,r[e++]=i,r[e++]=o,r[e++]=n}return r[e++]=t[0],r[e++]=t[1],r[e++]=t[2],r}function D(t,e){var r=new x.VertexFormat({position:e.position,normal:e.normal||e.bitangent||t.shadowVolume,tangent:e.tangent,bitangent:e.normal||e.bitangent,st:e.st}),a=t.ellipsoid,r=F(it.CorridorGeometryLibrary.computePositions(t),r,a),i=t.height,o=t.extrudedHeight,n=r.attributes,s=r.indices,r=n.position.values,l=r.length,d=new Float64Array(6*l),u=new Float64Array(l),m=(u.set(r),new Float64Array(4*l)),m=L(r=V.PolygonPipeline.scaleToGeodeticHeight(r,i,a),0,m),n=(m=L(u=V.PolygonPipeline.scaleToGeodeticHeight(u,o,a),2*l,m),d.set(r),d.set(u,l),d.set(m,2*l),n.position.values=d,function(t,e){if(e.normal||e.tangent||e.bitangent||e.st){var r,a,i=t.position.values,o=((e.normal||e.bitangent)&&(r=t.normal.values,a=t.bitangent.values),t.position.values.length/18),n=3*o,s=2*o,l=2*n;if(e.normal||e.bitangent||e.tangent){for(var d=e.normal?new Float32Array(6*n):void 0,u=e.tangent?new Float32Array(6*n):void 0,m=e.bitangent?new Float32Array(6*n):void 0,y=lt,f=dt,p=ut,c=mt,g=N,h=yt,b=l,C=0;C<n;C+=3){var A=b+l,y=rt.Cartesian3.fromArray(i,C,y),f=rt.Cartesian3.fromArray(i,C+n,f),p=rt.Cartesian3.fromArray(i,(C+3)%n,p);f=rt.Cartesian3.subtract(f,y,f),p=rt.Cartesian3.subtract(p,y,p),c=rt.Cartesian3.normalize(rt.Cartesian3.cross(f,p,c),c),e.normal&&(it.CorridorGeometryLibrary.addAttribute(d,c,A),it.CorridorGeometryLibrary.addAttribute(d,c,A+3),it.CorridorGeometryLibrary.addAttribute(d,c,b),it.CorridorGeometryLibrary.addAttribute(d,c,b+3)),(e.tangent||e.bitangent)&&(h=rt.Cartesian3.fromArray(r,C,h),e.bitangent&&(it.CorridorGeometryLibrary.addAttribute(m,h,A),it.CorridorGeometryLibrary.addAttribute(m,h,A+3),it.CorridorGeometryLibrary.addAttribute(m,h,b),it.CorridorGeometryLibrary.addAttribute(m,h,b+3)),e.tangent)&&(g=rt.Cartesian3.normalize(rt.Cartesian3.cross(h,c,g),g),it.CorridorGeometryLibrary.addAttribute(u,g,A),it.CorridorGeometryLibrary.addAttribute(u,g,A+3),it.CorridorGeometryLibrary.addAttribute(u,g,b),it.CorridorGeometryLibrary.addAttribute(u,g,b+3)),b+=6}if(e.normal){for(d.set(r),C=0;C<n;C+=3)d[C+n]=-r[C],d[C+n+1]=-r[C+1],d[C+n+2]=-r[C+2];t.normal.values=d}else t.normal=void 0;e.bitangent?(m.set(a),m.set(a,n),t.bitangent.values=m):t.bitangent=void 0,e.tangent&&(o=t.tangent.values,u.set(o),u.set(o,n),t.tangent.values=u)}if(e.st){for(var v=t.st.values,_=new Float32Array(6*s),w=(_.set(v),_.set(v,s),2*s),T=0;T<2;T++){for(_[w++]=v[0],_[w++]=v[1],C=2;C<s;C+=2){var G=v[C],E=v[C+1];_[w++]=G,_[w++]=E,_[w++]=G,_[w++]=E}_[w++]=v[0],_[w++]=v[1]}t.st.values=_}}return t}(n,e)),y=l/3;if(t.shadowVolume){for(var f=n.normal.values,l=f.length,i=new Float32Array(6*l),p=0;p<l;p++)f[p]=-f[p];i.set(f,l),i=L(f,4*l,i),n.extrudeDirection=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:i}),e.normal||(n.normal=void 0)}ot.defined(t.offsetAttribute)&&(o=new Uint8Array(6*y),o=t.offsetAttribute===E.GeometryOffsetAttribute.TOP?(o=E.arrayFill(o,1,0,y),E.arrayFill(o,1,2*y,4*y)):(a=t.offsetAttribute===E.GeometryOffsetAttribute.NONE?0:1,E.arrayFill(o,a)),n.applyOffset=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:o}));var c,g,h,b,C=s.length,A=y+y,v=st.IndexDatatype.createTypedArray(d.length/3,2*C+3*A),_=(v.set(s),C);for(p=0;p<C;p+=3){var w=s[p],T=s[p+1],G=s[p+2];v[_++]=G+y,v[_++]=T+y,v[_++]=w+y}for(p=0;p<A;p+=2)h=(c=p+A)+1,b=(g=c+A)+1,v[_++]=c,v[_++]=g,v[_++]=h,v[_++]=h,v[_++]=g,v[_++]=b;return{attributes:n,indices:v}}var p=new rt.Cartesian3,c=new rt.Cartesian3,g=new rt.Cartographic;function h(t,e,r,a,i,o){var e=rt.Cartesian3.subtract(e,t,p),n=(rt.Cartesian3.normalize(e,e),r.geodeticSurfaceNormal(t,c)),e=rt.Cartesian3.cross(e,n,p),n=(rt.Cartesian3.multiplyByScalar(e,a,e),i.latitude),a=i.longitude,s=o.latitude,l=o.longitude,d=(rt.Cartesian3.add(t,e,c),r.cartesianToCartographic(c,g),g.latitude),u=g.longitude,n=Math.min(n,d),a=Math.min(a,u),s=Math.max(s,d),l=Math.max(l,u);rt.Cartesian3.subtract(t,e,c),r.cartesianToCartographic(c,g),d=g.latitude,u=g.longitude,n=Math.min(n,d),a=Math.min(a,u),s=Math.max(s,d),l=Math.max(l,u),i.latitude=n,i.longitude=a,o.latitude=s,o.longitude=l}var b=new rt.Cartesian3,C=new rt.Cartesian3,A=new rt.Cartographic,v=new rt.Cartographic;function i(t,e,r,a,i){t=f(t,e);var o=m.arrayRemoveDuplicates(t,rt.Cartesian3.equalsEpsilon),n=o.length;if(n<2||r<=0)return new rt.Rectangle;var s,l,d=.5*r;A.latitude=Number.POSITIVE_INFINITY,A.longitude=Number.POSITIVE_INFINITY,v.latitude=Number.NEGATIVE_INFINITY,v.longitude=Number.NEGATIVE_INFINITY,a===y.CornerType.ROUNDED&&(rt.Cartesian3.subtract(t=o[0],o[1],b),rt.Cartesian3.normalize(b,b),rt.Cartesian3.multiplyByScalar(b,d,b),rt.Cartesian3.add(t,b,C),e.cartesianToCartographic(C,g),s=g.latitude,l=g.longitude,A.latitude=Math.min(A.latitude,s),A.longitude=Math.min(A.longitude,l),v.latitude=Math.max(v.latitude,s),v.longitude=Math.max(v.longitude,l));for(var u=0;u<n-1;++u)h(o[u],o[u+1],e,d,A,v);r=o[n-1],rt.Cartesian3.subtract(r,o[n-2],b),rt.Cartesian3.normalize(b,b),rt.Cartesian3.multiplyByScalar(b,d,b),rt.Cartesian3.add(r,b,C),h(r,C,e,d,A,v),a===y.CornerType.ROUNDED&&(e.cartesianToCartographic(C,g),s=g.latitude,l=g.longitude,A.latitude=Math.min(A.latitude,s),A.longitude=Math.min(A.longitude,l),v.latitude=Math.max(v.latitude,s),v.longitude=Math.max(v.longitude,l)),t=ot.defined(i)?i:new rt.Rectangle;return t.north=v.latitude,t.south=A.latitude,t.east=v.longitude,t.west=A.longitude,t}function _(t){var e=(t=ot.defaultValue(t,ot.defaultValue.EMPTY_OBJECT)).positions,r=t.width,a=ot.defaultValue(t.height,0),i=ot.defaultValue(t.extrudedHeight,a);this._positions=e,this._ellipsoid=rt.Ellipsoid.clone(ot.defaultValue(t.ellipsoid,rt.Ellipsoid.WGS84)),this._vertexFormat=x.VertexFormat.clone(ot.defaultValue(t.vertexFormat,x.VertexFormat.DEFAULT)),this._width=r,this._height=Math.max(a,i),this._extrudedHeight=Math.min(a,i),this._cornerType=ot.defaultValue(t.cornerType,y.CornerType.ROUNDED),this._granularity=ot.defaultValue(t.granularity,at.CesiumMath.RADIANS_PER_DEGREE),this._shadowVolume=ot.defaultValue(t.shadowVolume,!1),this._workerName="createCorridorGeometry",this._offsetAttribute=t.offsetAttribute,this._rectangle=void 0,this.packedLength=1+e.length*rt.Cartesian3.packedLength+rt.Ellipsoid.packedLength+x.VertexFormat.packedLength+7}_.pack=function(t,e,r){r=ot.defaultValue(r,0);var a=t._positions,i=a.length;e[r++]=i;for(var o=0;o<i;++o,r+=rt.Cartesian3.packedLength)rt.Cartesian3.pack(a[o],e,r);return rt.Ellipsoid.pack(t._ellipsoid,e,r),r+=rt.Ellipsoid.packedLength,x.VertexFormat.pack(t._vertexFormat,e,r),r+=x.VertexFormat.packedLength,e[r++]=t._width,e[r++]=t._height,e[r++]=t._extrudedHeight,e[r++]=t._cornerType,e[r++]=t._granularity,e[r++]=t._shadowVolume?1:0,e[r]=ot.defaultValue(t._offsetAttribute,-1),e};var w=rt.Ellipsoid.clone(rt.Ellipsoid.UNIT_SPHERE),T=new x.VertexFormat,G={positions:void 0,ellipsoid:w,vertexFormat:T,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,shadowVolume:void 0,offsetAttribute:void 0};return _.unpack=function(t,e,r){e=ot.defaultValue(e,0);for(var a=t[e++],i=new Array(a),o=0;o<a;++o,e+=rt.Cartesian3.packedLength)i[o]=rt.Cartesian3.unpack(t,e);var n=rt.Ellipsoid.unpack(t,e,w),s=(e+=rt.Ellipsoid.packedLength,x.VertexFormat.unpack(t,e,T)),l=(e+=x.VertexFormat.packedLength,t[e++]),d=t[e++],u=t[e++],m=t[e++],y=t[e++],f=1===t[e++],p=t[e];return ot.defined(r)?(r._positions=i,r._ellipsoid=rt.Ellipsoid.clone(n,r._ellipsoid),r._vertexFormat=x.VertexFormat.clone(s,r._vertexFormat),r._width=l,r._height=d,r._extrudedHeight=u,r._cornerType=m,r._granularity=y,r._shadowVolume=f,r._offsetAttribute=-1===p?void 0:p,r):(G.positions=i,G.width=l,G.height=d,G.extrudedHeight=u,G.cornerType=m,G.granularity=y,G.shadowVolume=f,G.offsetAttribute=-1===p?void 0:p,new _(G))},_.computeRectangle=function(t,e){var r=(t=ot.defaultValue(t,ot.defaultValue.EMPTY_OBJECT)).positions,a=t.width;return i(r,ot.defaultValue(t.ellipsoid,rt.Ellipsoid.WGS84),a,ot.defaultValue(t.cornerType,y.CornerType.ROUNDED),e)},_.createGeometry=function(t){var e,r,a,i,o,n=t._positions,s=t._width,l=t._ellipsoid,n=f(n,l),n=m.arrayRemoveDuplicates(n,rt.Cartesian3.equalsEpsilon);if(!(n.length<2||s<=0))return o=t._height,r=!at.CesiumMath.equalsEpsilon(o,a=t._extrudedHeight,0,at.CesiumMath.EPSILON2),e=t._vertexFormat,n={ellipsoid:l,positions:n,width:s,cornerType:t._cornerType,granularity:t._granularity,saveAttributes:!0},r?(n.height=o,n.extrudedHeight=a,n.shadowVolume=t._shadowVolume,n.offsetAttribute=t._offsetAttribute,i=D(n,e)):((i=F(it.CorridorGeometryLibrary.computePositions(n),e,l)).attributes.position.values=V.PolygonPipeline.scaleToGeodeticHeight(i.attributes.position.values,o,l),ot.defined(t._offsetAttribute)&&(s=t._offsetAttribute===E.GeometryOffsetAttribute.NONE?0:1,r=i.attributes.position.values.length,a=new Uint8Array(r/3),E.arrayFill(a,s),i.attributes.applyOffset=new nt.GeometryAttribute({componentDatatype:at.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a}))),n=i.attributes,o=d.BoundingSphere.fromVertices(n.position.values,void 0,3),e.position||(i.attributes.position.values=void 0),new nt.Geometry({attributes:n,indices:i.indices,primitiveType:nt.PrimitiveType.TRIANGLES,boundingSphere:o,offsetAttribute:t._offsetAttribute})},_.createShadowVolume=function(t,e,r){var a=t._granularity,i=t._ellipsoid,e=e(a,i),r=r(a,i);return new _({positions:t._positions,width:t._width,cornerType:t._cornerType,ellipsoid:i,granularity:a,extrudedHeight:e,height:r,vertexFormat:x.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(_.prototype,{rectangle:{get:function(){return ot.defined(this._rectangle)||(this._rectangle=i(this._positions,this._ellipsoid,this._width,this._cornerType)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return[0,0,0,1,1,0]}}}),function(t,e){return(t=ot.defined(e)?_.unpack(t,e):t)._ellipsoid=rt.Ellipsoid.clone(t._ellipsoid),_.createGeometry(t)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./GeometryOffsetAttribute-8c0bd3ce","./arrayRemoveDuplicates-bce1b0dc","./Transforms-
|
|
1
|
+
define(["./GeometryOffsetAttribute-8c0bd3ce","./arrayRemoveDuplicates-bce1b0dc","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./PolylineVolumeGeometryLibrary-22fe2b3f","./CorridorGeometryLibrary-dbfbb48f","./when-ae2e0b60","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./PolygonPipeline-6d75eac7","./combine-276652d0","./WebGLConstants-35626ea2","./EllipsoidTangentPlane-da721e0c","./AxisAlignedBoundingBox-35efa0e8","./IntersectionTests-f71f97b3","./Plane-43337cee","./PolylinePipeline-7389d81d","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd"],function(A,l,d,B,e,M,R,U,F,Y,q,W,v,t,i,r,o,a,n,s,u,p){var J=new B.Cartesian3,j=new B.Cartesian3,z=new B.Cartesian3;function _(e,t){var i,r=[],o=e.positions,a=e.corners,e=e.endPositions,n=new q.GeometryAttributes,s=0,l=0,d=0;for(w=0;w<o.length;w+=2)s+=i=o[w].length-3,d+=i/3*4,l+=o[w+1].length-3;for(s+=3,l+=3,w=0;w<a.length;w++){var u=a[w],p=a[w].leftPositions;F.defined(p)?s+=i=p.length:l+=i=a[w].rightPositions.length,d+=i/3*2}var f,h,y,c,g,b=F.defined(e),m=(b&&(s+=f=e[0].length-3,l+=f,d+=4*(f/=3)),s+l),A=new Float64Array(m),v=0,_=m-1,E=f/2,C=W.IndexDatatype.createTypedArray(m/3,d+4),G=0;if(C[G++]=v/3,C[G++]=(_-2)/3,b){r.push(v/3);for(var T=J,P=j,I=e[0],w=0;w<E;w++)T=B.Cartesian3.fromArray(I,3*(E-1-w),T),P=B.Cartesian3.fromArray(I,3*(E+w),P),U.CorridorGeometryLibrary.addAttribute(A,P,v),U.CorridorGeometryLibrary.addAttribute(A,T,void 0,_),g=(y=v/3)+1,c=(h=(_-2)/3)-1,C[G++]=h,C[G++]=c,C[G++]=y,C[G++]=g,v+=3,_-=3}var L=0,D=o[L++],x=o[L++];for(A.set(D,v),A.set(x,_-x.length+1),i=x.length-3,r.push(v/3,(_-2)/3),w=0;w<i;w+=3)g=(y=v/3)+1,c=(h=(_-2)/3)-1,C[G++]=h,C[G++]=c,C[G++]=y,C[G++]=g,v+=3,_-=3;for(w=0;w<a.length;w++){var k,N,O=(u=a[w]).leftPositions,V=u.rightPositions,H=z;if(F.defined(O)){for(_-=3,N=c,r.push(g),k=0;k<O.length/3;k++)H=B.Cartesian3.fromArray(O,3*k,H),C[G++]=N-k-1,C[G++]=N-k,U.CorridorGeometryLibrary.addAttribute(A,H,void 0,_),_-=3;r.push(N-Math.floor(O.length/6)),t===R.CornerType.BEVELED&&r.push((_-2)/3+1),v+=3}else{for(v+=3,N=g,r.push(c),k=0;k<V.length/3;k++)H=B.Cartesian3.fromArray(V,3*k,H),C[G++]=N+k,C[G++]=N+k+1,U.CorridorGeometryLibrary.addAttribute(A,H,v),v+=3;r.push(N+Math.floor(V.length/6)),t===R.CornerType.BEVELED&&r.push(v/3-1),_-=3}for(D=o[L++],x=o[L++],D.splice(0,3),x.splice(x.length-3,3),A.set(D,v),A.set(x,_-x.length+1),i=x.length-3,k=0;k<x.length;k+=3)y=(g=v/3)-1,C[G++]=h=(c=(_-2)/3)+1,C[G++]=c,C[G++]=y,C[G++]=g,v+=3,_-=3;r.push((v-=3)/3,((_+=3)-2)/3)}if(b){v+=3,_-=3,T=J,P=j;var S=e[1];for(w=0;w<E;w++)T=B.Cartesian3.fromArray(S,3*(f-w-1),T),P=B.Cartesian3.fromArray(S,3*w,P),U.CorridorGeometryLibrary.addAttribute(A,T,void 0,_),U.CorridorGeometryLibrary.addAttribute(A,P,v),y=(g=v/3)-1,C[G++]=h=(c=(_-2)/3)+1,C[G++]=c,C[G++]=y,C[G++]=g,v+=3,_-=3;r.push(v/3)}else r.push(v/3,(_-2)/3);return C[G++]=v/3,C[G++]=(_-2)/3,n.position=new Y.GeometryAttribute({componentDatatype:M.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:A}),{attributes:n,indices:C,wallIndices:r}}function h(e){var t=(e=F.defaultValue(e,F.defaultValue.EMPTY_OBJECT)).positions,i=e.width,r=F.defaultValue(e.height,0),o=F.defaultValue(e.extrudedHeight,r);this._positions=t,this._ellipsoid=B.Ellipsoid.clone(F.defaultValue(e.ellipsoid,B.Ellipsoid.WGS84)),this._width=i,this._height=Math.max(r,o),this._extrudedHeight=Math.min(r,o),this._cornerType=F.defaultValue(e.cornerType,R.CornerType.ROUNDED),this._granularity=F.defaultValue(e.granularity,M.CesiumMath.RADIANS_PER_DEGREE),this._offsetAttribute=e.offsetAttribute,this._workerName="createCorridorOutlineGeometry",this.packedLength=1+t.length*B.Cartesian3.packedLength+B.Ellipsoid.packedLength+6}h.pack=function(e,t,i){i=F.defaultValue(i,0);var r=e._positions,o=r.length;t[i++]=o;for(var a=0;a<o;++a,i+=B.Cartesian3.packedLength)B.Cartesian3.pack(r[a],t,i);return B.Ellipsoid.pack(e._ellipsoid,t,i),i+=B.Ellipsoid.packedLength,t[i++]=e._width,t[i++]=e._height,t[i++]=e._extrudedHeight,t[i++]=e._cornerType,t[i++]=e._granularity,t[i]=F.defaultValue(e._offsetAttribute,-1),t};var y=B.Ellipsoid.clone(B.Ellipsoid.UNIT_SPHERE),c={positions:void 0,ellipsoid:y,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,offsetAttribute:void 0};return h.unpack=function(e,t,i){t=F.defaultValue(t,0);for(var r=e[t++],o=new Array(r),a=0;a<r;++a,t+=B.Cartesian3.packedLength)o[a]=B.Cartesian3.unpack(e,t);var n=B.Ellipsoid.unpack(e,t,y),s=(t+=B.Ellipsoid.packedLength,e[t++]),l=e[t++],d=e[t++],u=e[t++],p=e[t++],f=e[t];return F.defined(i)?(i._positions=o,i._ellipsoid=B.Ellipsoid.clone(n,i._ellipsoid),i._width=s,i._height=l,i._extrudedHeight=d,i._cornerType=u,i._granularity=p,i._offsetAttribute=-1===f?void 0:f,i):(c.positions=o,c.width=s,c.height=l,c.extrudedHeight=d,c.cornerType=u,c.granularity=p,c.offsetAttribute=-1===f?void 0:f,new h(c))},h.createGeometry=function(e){var t,i,r,o,a=e._positions,n=e._width,s=e._ellipsoid,a=function(e,t){for(var i=0;i<e.length;i++)e[i]=t.scaleToGeodeticSurface(e[i],e[i]);return e}(a,s),a=l.arrayRemoveDuplicates(a,B.Cartesian3.equalsEpsilon);if(!(a.length<2||n<=0))return o=e._height,t=!M.CesiumMath.equalsEpsilon(o,i=e._extrudedHeight,0,M.CesiumMath.EPSILON2),a={ellipsoid:s,positions:a,width:n,cornerType:e._cornerType,granularity:e._granularity,saveAttributes:!1},t?(a.height=o,a.extrudedHeight=i,a.offsetAttribute=e._offsetAttribute,r=function(e){for(var t,i,r=e.ellipsoid,o=(p=_(U.CorridorGeometryLibrary.computePositions(e),e.cornerType)).wallIndices,a=e.height,n=e.extrudedHeight,s=p.attributes,l=p.indices,d=(p=s.position.values).length,u=((f=new Float64Array(d)).set(p),new Float64Array(2*d)),p=v.PolygonPipeline.scaleToGeodeticHeight(p,a,r),f=v.PolygonPipeline.scaleToGeodeticHeight(f,n,r),h=(u.set(p),u.set(f,d),s.position.values=u,d/=3,F.defined(e.offsetAttribute)&&(a=new Uint8Array(2*d),a=e.offsetAttribute===A.GeometryOffsetAttribute.TOP?A.arrayFill(a,1,0,d):(n=e.offsetAttribute===A.GeometryOffsetAttribute.NONE?0:1,A.arrayFill(a,n)),s.applyOffset=new Y.GeometryAttribute({componentDatatype:M.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),l.length),y=W.IndexDatatype.createTypedArray(u.length/3,2*(h+o.length)),c=(y.set(l),h),g=0;g<h;g+=2){var b=l[g],m=l[g+1];y[c++]=b+d,y[c++]=m+d}for(g=0;g<o.length;g++)i=(t=o[g])+d,y[c++]=t,y[c++]=i;return{attributes:s,indices:y}}(a)):((r=_(U.CorridorGeometryLibrary.computePositions(a),a.cornerType)).attributes.position.values=v.PolygonPipeline.scaleToGeodeticHeight(r.attributes.position.values,o,s),F.defined(e._offsetAttribute)&&(n=r.attributes.position.values.length,t=new Uint8Array(n/3),i=e._offsetAttribute===A.GeometryOffsetAttribute.NONE?0:1,A.arrayFill(t,i),r.attributes.applyOffset=new Y.GeometryAttribute({componentDatatype:M.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t}))),a=r.attributes,o=d.BoundingSphere.fromVertices(a.position.values,void 0,3),new Y.Geometry({attributes:a,indices:r.indices,primitiveType:Y.PrimitiveType.LINES,boundingSphere:o,offsetAttribute:e._offsetAttribute})},function(e,t){return(e=F.defined(t)?h.unpack(e,t):e)._ellipsoid=B.Ellipsoid.clone(e._ellipsoid),h.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./CylinderGeometry-
|
|
1
|
+
define(["./CylinderGeometry-f85e3294","./when-ae2e0b60","./GeometryOffsetAttribute-8c0bd3ce","./RuntimeError-24b14c10","./Transforms-ce414632","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./CylinderGeometryLibrary-7afd8cad","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(r,n,e,t,a,d,o,i,y,m,b,c,f,u){return function(e,t){return n.defined(t)&&(e=r.CylinderGeometry.unpack(e,t)),r.CylinderGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./GeometryOffsetAttribute-8c0bd3ce","./Transforms-
|
|
1
|
+
define(["./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./CylinderGeometryLibrary-7afd8cad","./when-ae2e0b60","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./combine-276652d0","./WebGLConstants-35626ea2"],function(c,p,y,e,_,h,A,v,R,G,t,i){var O=new y.Cartesian2;function s(e){var t=(e=A.defaultValue(e,A.defaultValue.EMPTY_OBJECT)).length,i=e.topRadius,r=e.bottomRadius,a=A.defaultValue(e.slices,128),n=Math.max(A.defaultValue(e.numberOfVerticalLines,16),0);this._length=t,this._topRadius=i,this._bottomRadius=r,this._slices=a,this._numberOfVerticalLines=n,this._offsetAttribute=e.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}s.packedLength=6,s.pack=function(e,t,i){return i=A.defaultValue(i,0),t[i++]=e._length,t[i++]=e._topRadius,t[i++]=e._bottomRadius,t[i++]=e._slices,t[i++]=e._numberOfVerticalLines,t[i]=A.defaultValue(e._offsetAttribute,-1),t};var f={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};return s.unpack=function(e,t,i){t=A.defaultValue(t,0);var r=e[t++],a=e[t++],n=e[t++],o=e[t++],u=e[t++],e=e[t];return A.defined(i)?(i._length=r,i._topRadius=a,i._bottomRadius=n,i._slices=o,i._numberOfVerticalLines=u,i._offsetAttribute=-1===e?void 0:e,i):(f.length=r,f.topRadius=a,f.bottomRadius=n,f.slices=o,f.numberOfVerticalLines=u,f.offsetAttribute=-1===e?void 0:e,new s(f))},s.createGeometry=function(e){var t=e._length,i=e._topRadius,r=e._bottomRadius,a=e._slices,n=e._numberOfVerticalLines;if(!(t<=0||i<0||r<0||0===i&&0===r)){for(var o,u=2*a,s=h.CylinderGeometryLibrary.computePositions(t,i,r,a,!1),f=2*a,d=(0<n&&(m=Math.min(n,a),o=Math.round(a/m),f+=m),G.IndexDatatype.createTypedArray(u,2*f)),b=0,l=0;l<a-1;l++)d[b++]=l,d[b++]=l+1,d[b++]=l+a,d[b++]=l+1+a;if(d[b++]=a-1,d[b++]=0,d[b++]=a+a-1,d[b++]=a,0<n)for(l=0;l<a;l+=o)d[b++]=l,d[b++]=l+a;var m=new R.GeometryAttributes,u=(m.position=new v.GeometryAttribute({componentDatatype:_.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:s}),O.x=.5*t,O.y=Math.max(r,i),new p.BoundingSphere(y.Cartesian3.ZERO,y.Cartesian2.magnitude(O)));return A.defined(e._offsetAttribute)&&(t=s.length,f=new Uint8Array(t/3),n=e._offsetAttribute===c.GeometryOffsetAttribute.NONE?0:1,c.arrayFill(f,n),m.applyOffset=new v.GeometryAttribute({componentDatatype:_.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:f})),new v.Geometry({attributes:m,indices:d,primitiveType:v.PrimitiveType.LINES,boundingSphere:u,offsetAttribute:e._offsetAttribute})}},function(e,t){return A.defined(t)&&(e=s.unpack(e,t)),s.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./Matrix2-59fd2efe","./when-ae2e0b60","./EllipseGeometry-
|
|
1
|
+
define(["./Matrix2-59fd2efe","./when-ae2e0b60","./EllipseGeometry-cb453b2f","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./combine-276652d0","./EllipseGeometryLibrary-c1a131e7","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-984d7313","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IndexDatatype-6902a37d","./IntersectionTests-f71f97b3","./Plane-43337cee","./VertexFormat-1fc9746e"],function(r,n,i,e,t,o,a,c,s,b,l,d,m,f,p,y,G,u,E,C){return function(e,t){return(e=n.defined(t)?i.EllipseGeometry.unpack(e,t):e)._center=r.Cartesian3.clone(e._center),e._ellipsoid=r.Ellipsoid.clone(e._ellipsoid),i.EllipseGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./Matrix2-59fd2efe","./when-ae2e0b60","./EllipseOutlineGeometry-
|
|
1
|
+
define(["./Matrix2-59fd2efe","./when-ae2e0b60","./EllipseOutlineGeometry-ebd4f316","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-ce414632","./combine-276652d0","./EllipseGeometryLibrary-c1a131e7","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(r,n,i,e,t,o,l,a,c,d,s,b,m){return function(e,t){return(e=n.defined(t)?i.EllipseOutlineGeometry.unpack(e,t):e)._center=r.Cartesian3.clone(e._center),e._ellipsoid=r.Ellipsoid.clone(e._ellipsoid),i.EllipseOutlineGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./EllipsoidGeometry-
|
|
1
|
+
define(["./when-ae2e0b60","./EllipsoidGeometry-3210644c","./GeometryOffsetAttribute-8c0bd3ce","./RuntimeError-24b14c10","./Transforms-ce414632","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(r,o,e,t,n,i,a,d,c,m,b,f,s){return function(e,t){return r.defined(t)&&(e=o.EllipsoidGeometry.unpack(e,t)),o.EllipsoidGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./EllipsoidOutlineGeometry-
|
|
1
|
+
define(["./when-ae2e0b60","./EllipsoidOutlineGeometry-74494de3","./GeometryOffsetAttribute-8c0bd3ce","./RuntimeError-24b14c10","./Transforms-ce414632","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(r,n,e,t,i,o,d,a,u,b,f,m){return function(e,t){return r.defined(e.buffer)&&(e=n.EllipsoidOutlineGeometry.unpack(e,t)),n.EllipsoidOutlineGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./FrustumGeometry-
|
|
1
|
+
define(["./when-ae2e0b60","./FrustumGeometry-48c57d61","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./Plane-43337cee","./VertexFormat-1fc9746e"],function(r,n,e,t,o,m,u,a,c,b,d,i){return function(e,t){return r.defined(t)&&(e=n.FrustumGeometry.unpack(e,t)),n.FrustumGeometry.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./Transforms-
|
|
1
|
+
define(["./when-ae2e0b60","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./FrustumGeometry-48c57d61","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./combine-276652d0","./WebGLConstants-35626ea2","./Plane-43337cee","./VertexFormat-1fc9746e"],function(o,m,c,e,d,h,f,g,t,r,n,a){function s(e){var t,r,n=e.frustum,a=e.orientation,i=e.origin,e=o.defaultValue(e._drawNearPlane,!0);n instanceof h.PerspectiveFrustum?(t=0,r=h.PerspectiveFrustum.packedLength):n instanceof h.OrthographicFrustum&&(t=1,r=h.OrthographicFrustum.packedLength),this._frustumType=t,this._frustum=n.clone(),this._origin=c.Cartesian3.clone(i),this._orientation=m.Quaternion.clone(a),this._drawNearPlane=e,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+r+c.Cartesian3.packedLength+m.Quaternion.packedLength}s.pack=function(e,t,r){r=o.defaultValue(r,0);var n=e._frustumType,a=e._frustum;return 0===(t[r++]=n)?(h.PerspectiveFrustum.pack(a,t,r),r+=h.PerspectiveFrustum.packedLength):(h.OrthographicFrustum.pack(a,t,r),r+=h.OrthographicFrustum.packedLength),c.Cartesian3.pack(e._origin,t,r),r+=c.Cartesian3.packedLength,m.Quaternion.pack(e._orientation,t,r),t[r+=m.Quaternion.packedLength]=e._drawNearPlane?1:0,t};var p=new h.PerspectiveFrustum,_=new h.OrthographicFrustum,k=new m.Quaternion,l=new c.Cartesian3;return s.unpack=function(e,t,r){t=o.defaultValue(t,0);var n,a=e[t++],i=(0===a?(n=h.PerspectiveFrustum.unpack(e,t,p),t+=h.PerspectiveFrustum.packedLength):(n=h.OrthographicFrustum.unpack(e,t,_),t+=h.OrthographicFrustum.packedLength),c.Cartesian3.unpack(e,t,l)),u=(t+=c.Cartesian3.packedLength,m.Quaternion.unpack(e,t,k)),e=1===e[t+=m.Quaternion.packedLength];return o.defined(r)?(t=a===r._frustumType?r._frustum:void 0,r._frustum=n.clone(t),r._frustumType=a,r._origin=c.Cartesian3.clone(i,r._origin),r._orientation=m.Quaternion.clone(u,r._orientation),r._drawNearPlane=e,r):new s({frustum:n,origin:i,orientation:u,_drawNearPlane:e})},s.createGeometry=function(e){for(var t,r,n=e._frustumType,a=e._frustum,i=e._origin,u=e._orientation,o=e._drawNearPlane,e=new Float64Array(24),i=(h.FrustumGeometry._computeNearFarPlanes(i,u,n,a,e),new g.GeometryAttributes({position:new f.GeometryAttribute({componentDatatype:d.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e})})),c=o?2:1,s=new Uint16Array(8*(1+c)),p=o?0:1;p<2;++p)s[t=o?8*p:0]=r=4*p,s[t+1]=r+1,s[t+2]=r+1,s[t+3]=r+2,s[t+4]=r+2,s[t+5]=r+3,s[t+6]=r+3,s[t+7]=r;for(p=0;p<2;++p)s[t=8*(c+p)]=r=4*p,s[t+1]=r+4,s[t+2]=r+1,s[t+3]=r+5,s[t+4]=r+2,s[t+5]=r+6,s[t+6]=r+3,s[t+7]=r+7;return new f.Geometry({attributes:i,indices:s,primitiveType:f.PrimitiveType.LINES,boundingSphere:m.BoundingSphere.fromVertices(e)})},function(e,t){return o.defined(t)&&(e=s.unpack(e,t)),s.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./PrimitivePipeline-
|
|
1
|
+
define(["./when-ae2e0b60","./PrimitivePipeline-a7cf99d1","./createTaskProcessorWorker","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./WebGLConstants-35626ea2","./combine-276652d0","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./GeometryPipeline-984d7313","./AttributeCompression-2f7b45b7","./EncodedCartesian3-3b6655b5","./IndexDatatype-6902a37d","./IntersectionTests-f71f97b3","./Plane-43337cee","./WebMercatorProjection-329b047d"],function(c,f,e,r,t,n,o,i,a,s,b,d,u,m,p,l,y,P){var k={};return e(function(e,r){for(var t=e.subTasks,n=t.length,o=new Array(n),i=0;i<n;i++){var a=t[i],s=a.geometry,b=a.moduleName;c.defined(b)?(b=function(e){var r=k[e];return c.defined(r)||("object"==typeof exports?k[r]=r=require("Workers/"+e):require(["Workers/"+e],function(e){k[r=e]=e})),r}(b),o[i]=b(s,a.offset)):o[i]=s}return c.when.all(o,function(e){return f.PrimitivePipeline.packCreateGeometryResults(e,r)})})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./Transforms-3bc98d07","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./EncodedCartesian3-3b6655b5","./GeometryAttribute-dff85b2b","./IntersectionTests-d0a84f0f","./Plane-43337cee","./WebMercatorProjection-c29584e9","./combine-276652d0","./WebGLConstants-35626ea2"],function(sa,oa,a,la,ua,ca,Sa,T,Ca,pa,da,ha,r,t,n,h){function e(e){e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT),this._ellipsoid=la.defaultValue(e.ellipsoid,oa.Ellipsoid.WGS84),this._rectangle=la.defaultValue(e.rectangle,oa.Rectangle.MAX_VALUE),this._projection=new sa.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=la.defaultValue(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=la.defaultValue(e.numberOfLevelZeroTilesY,1)}Object.defineProperties(e.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),e.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},e.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},e.prototype.rectangleToNativeRectangle=function(e,a){var t=ua.CesiumMath.toDegrees(e.west),n=ua.CesiumMath.toDegrees(e.south),i=ua.CesiumMath.toDegrees(e.east),e=ua.CesiumMath.toDegrees(e.north);return la.defined(a)?(a.west=t,a.south=n,a.east=i,a.north=e,a):new oa.Rectangle(t,n,i,e)},e.prototype.tileXYToNativeRectangle=function(e,a,t,n){e=this.tileXYToRectangle(e,a,t,n);return e.west=ua.CesiumMath.toDegrees(e.west),e.south=ua.CesiumMath.toDegrees(e.south),e.east=ua.CesiumMath.toDegrees(e.east),e.north=ua.CesiumMath.toDegrees(e.north),e},e.prototype.tileXYToRectangle=function(e,a,t,n){var i=this._rectangle,r=this.getNumberOfXTilesAtLevel(t),t=this.getNumberOfYTilesAtLevel(t),r=i.width/r,s=e*r+i.west,e=(e+1)*r+i.west,r=i.height/t,t=i.north-a*r,i=i.north-(a+1)*r;return(n=la.defined(n)?n:new oa.Rectangle(s,i,e,t)).west=s,n.south=i,n.east=e,n.north=t,n},e.prototype.positionToTileXY=function(e,a,t){var n,i,r,s,o=this._rectangle;if(oa.Rectangle.contains(o,e))return n=this.getNumberOfXTilesAtLevel(a),a=this.getNumberOfYTilesAtLevel(a),s=o.width/n,i=o.height/a,r=e.longitude,o.east<o.west&&(r+=ua.CesiumMath.TWO_PI),n<=(r=(r-o.west)/s|0)&&(r=n-1),a<=(s=(o.north-e.latitude)/i|0)&&(s=a-1),la.defined(t)?(t.x=r,t.y=s,t):new oa.Cartesian2(r,s)};var s=new oa.Cartesian3,o=new oa.Cartesian3,l=new oa.Cartographic,u=new oa.Cartesian3,g=new oa.Cartesian3,i=new sa.BoundingSphere,f=new e,c=[new oa.Cartographic,new oa.Cartographic,new oa.Cartographic,new oa.Cartographic],C=new oa.Cartesian2,ga={};function m(e){oa.Cartographic.fromRadians(e.east,e.north,0,c[0]),oa.Cartographic.fromRadians(e.west,e.north,0,c[1]),oa.Cartographic.fromRadians(e.east,e.south,0,c[2]),oa.Cartographic.fromRadians(e.west,e.south,0,c[3]);for(var a=0,t=0,n=0,i=0,r=ga._terrainHeightsMaxLevel,s=0;s<=r;++s){for(var o=!1,l=0;l<4;++l)if(f.positionToTileXY(c[l],s,C),0===l)n=C.x,i=C.y;else if(n!==C.x||i!==C.y){o=!0;break}if(o)break;a=n,t=i}if(0!==s)return{x:a,y:t,level:r<s?r:s-1}}ga.initialize=function(){var e=ga._initPromise;return la.defined(e)||(e=sa.Resource.fetchJson(sa.buildModuleUrl("Assets/approximateTerrainHeights.json")).then(function(e){ga._terrainHeights=e}),ga._initPromise=e),e},ga.getMinimumMaximumHeights=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=m(e),n=ga._defaultMinTerrainHeight,i=ga._defaultMaxTerrainHeight;return la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t)&&(n=t[0],i=t[1]),a.cartographicToCartesian(oa.Rectangle.northeast(e,l),s),a.cartographicToCartesian(oa.Rectangle.southwest(e,l),o),oa.Cartesian3.midpoint(o,s,u),t=a.scaleToGeodeticSurface(u,g),n=la.defined(t)?(e=oa.Cartesian3.distance(u,t),Math.min(n,-e)):ga._defaultMinTerrainHeight),{minimumTerrainHeight:n=Math.max(ga._defaultMinTerrainHeight,n),maximumTerrainHeight:i}},ga.getBoundingSphere=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=m(e),n=ga._defaultMaxTerrainHeight,t=(la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t))&&(n=t[1]),sa.BoundingSphere.fromRectangle3D(e,a,0));return sa.BoundingSphere.fromRectangle3D(e,a,n,i),sa.BoundingSphere.union(t,i,t)},ga._terrainHeightsMaxLevel=6,ga._defaultMaxTerrainHeight=9e3,ga._defaultMinTerrainHeight=-1e5,ga._terrainHeights=void 0,ga._initPromise=void 0,Object.defineProperties(ga,{initialized:{get:function(){return la.defined(ga._terrainHeights)}}});var fa=[sa.GeographicProjection,t.WebMercatorProjection],w=fa.length,xa=Math.cos(ua.CesiumMath.toRadians(30)),y=Math.cos(ua.CesiumMath.toRadians(150)),Ia=0,Na=1e3;function p(e){var a=(e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT)).positions;this.width=la.defaultValue(e.width,1),this._positions=a,this.granularity=la.defaultValue(e.granularity,9999),this.loop=la.defaultValue(e.loop,!1),this.arcType=la.defaultValue(e.arcType,ca.ArcType.GEODESIC),this._ellipsoid=oa.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(p.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+oa.Ellipsoid.packedLength+1+1}}}),p.setProjectionAndEllipsoid=function(e,a){for(var t=0,n=0;n<w;n++)if(a instanceof fa[n]){t=n;break}e._projectionIndex=t,e._ellipsoid=a.ellipsoid};var M=new oa.Cartesian3,v=new oa.Cartesian3,E=new oa.Cartesian3;function ma(e,a,t,n,i){var r=ya(n,e,0,M),e=ya(n,e,t,v),t=ya(n,a,0,E),n=Ma(e,r,v),a=Ma(t,r,E);return oa.Cartesian3.cross(a,n,i),oa.Cartesian3.normalize(i,i)}var _=new oa.Cartographic,b=new oa.Cartesian3,O=new oa.Cartesian3,P=new oa.Cartesian3;function wa(e,a,t,n,i,r,s,o,l,u,c){if(0!==i){r===ca.ArcType.GEODESIC?C=new T.EllipsoidGeodesic(e,a,s):r===ca.ArcType.RHUMB&&(C=new Ca.EllipsoidRhumbLine(e,a,s));var C,r=C.surfaceDistance;if(!(r<i))for(var p=ma(e,a,n,s,P),e=Math.ceil(r/i),d=r/e,h=d,g=e-1,f=o.length,m=0;m<g;m++){var w=C.interpolateUsingSurfaceDistance(h,_),y=ya(s,w,t,b),M=ya(s,w,n,O);oa.Cartesian3.pack(p,o,f),oa.Cartesian3.pack(y,l,f),oa.Cartesian3.pack(M,u,f),c.push(w.latitude),c.push(w.longitude),f+=3,h+=d}}}var d=new oa.Cartographic;function ya(e,a,t,n){return oa.Cartographic.clone(a,d),d.height=t,oa.Cartographic.toCartesian(d,e,n)}function Ma(e,a,t){return oa.Cartesian3.subtract(e,a,t),oa.Cartesian3.normalize(t,t),t}function A(e,a,t,n){return n=Ma(e,a,n),n=oa.Cartesian3.cross(n,t,n),n=oa.Cartesian3.normalize(n,n),n=oa.Cartesian3.cross(t,n,n)}p.pack=function(e,a,t){var n=la.defaultValue(t,0),i=e._positions,r=i.length;a[n++]=r;for(var s=0;s<r;++s){var o=i[s];oa.Cartesian3.pack(o,a,n),n+=3}return a[n++]=e.granularity,a[n++]=e.loop?1:0,a[n++]=e.arcType,oa.Ellipsoid.pack(e._ellipsoid,a,n),n+=oa.Ellipsoid.packedLength,a[n++]=e._projectionIndex,a[n++]=e._scene3DOnly?1:0,a},p.unpack=function(e,a,t){for(var n=la.defaultValue(a,0),i=e[n++],r=new Array(i),s=0;s<i;s++)r[s]=oa.Cartesian3.unpack(e,n),n+=3;var a=e[n++],o=1===e[n++],l=e[n++],u=oa.Ellipsoid.unpack(e,n),c=(n+=oa.Ellipsoid.packedLength,e[n++]),C=1===e[n++];return(t=la.defined(t)?t:new p({positions:r}))._positions=r,t.granularity=a,t.loop=o,t.arcType=l,t._ellipsoid=u,t._projectionIndex=c,t._scene3DOnly=C,t};var k=new oa.Cartesian3,L=new oa.Cartesian3,S=new oa.Cartesian3,x=new oa.Cartesian3;function Ta(e,a,t,n,i){t=Ma(t,a,x),e=A(e,a,t,k),n=A(n,a,t,L);if(ua.CesiumMath.equalsEpsilon(oa.Cartesian3.dot(e,n),-1,ua.CesiumMath.EPSILON5))return i=oa.Cartesian3.cross(t,e,i),i=oa.Cartesian3.normalize(i,i);i=oa.Cartesian3.add(n,e,i),i=oa.Cartesian3.normalize(i,i);a=oa.Cartesian3.cross(t,i,S);return i=oa.Cartesian3.dot(n,a)<0?oa.Cartesian3.negate(i,i):i}var va=r.Plane.fromPointNormal(oa.Cartesian3.ZERO,oa.Cartesian3.UNIT_Y),Ra=new oa.Cartesian3,Da=new oa.Cartesian3,za=new oa.Cartesian3,Ha=new oa.Cartesian3,Ba=new oa.Cartesian3,Ea=new oa.Cartesian3,_a=new oa.Cartographic,ja=new oa.Cartographic,Ga=new oa.Cartographic,I=(p.createGeometry=function(e){for(var a,t,n,D,z,i,H,B,j=!e._scene3DOnly,G=e.loop,r=e._ellipsoid,V=e.granularity,Y=e.arcType,F=new fa[e._projectionIndex](r),s=Ia,q=Na,X=e._positions,W=X.length,U=(2===W&&(G=!1),new Ca.EllipsoidRhumbLine(void 0,void 0,r)),Z=[X[0]],o=0;o<W-1;o++)t=X[o],n=X[o+1],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))),Z.push(n);G&&(t=X[W-1],n=X[0],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))));var J=Z.length,l=new Array(J);for(o=0;o<J;o++){var Q=oa.Cartographic.fromCartesian(Z[o],r);Q.height=0,l[o]=Q}if(!((J=(l=Sa.arrayRemoveDuplicates(l,oa.Cartographic.equalsEpsilon)).length)<2)){var u=[],c=[],C=[],p=[],K=Ra,d=Da,h=za,$=Ha,g=Ba,f=l[0],m=l[1];for(K=ya(r,l[J-1],s,K),$=ya(r,m,s,$),d=ya(r,f,s,d),h=ya(r,f,q,h),g=G?Ta(K,d,h,$,g):ma(f,m,q,r,g),oa.Cartesian3.pack(g,c,0),oa.Cartesian3.pack(d,C,0),oa.Cartesian3.pack(h,p,0),u.push(f.latitude),u.push(f.longitude),wa(f,m,s,q,V,Y,r,c,C,p,u),o=1;o<J-1;++o){var K=oa.Cartesian3.clone(d,K),d=oa.Cartesian3.clone($,d),ee=l[o];ya(r,ee,q,h),ya(r,l[o+1],s,$),Ta(K,d,h,$,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(d,C,a),oa.Cartesian3.pack(h,p,a),u.push(ee.latitude),u.push(ee.longitude),wa(l[o],l[o+1],s,q,V,Y,r,c,C,p,u)}var m=l[J-1],ae=l[J-2];if(d=ya(r,m,s,d),h=ya(r,m,q,h),g=G?(M=l[0],Ta(K=ya(r,ae,s,K),d,h,$=ya(r,M,s,$),g)):ma(ae,m,q,r,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(d,C,a),oa.Cartesian3.pack(h,p,a),u.push(m.latitude),u.push(m.longitude),G){for(wa(m,f,s,q,V,Y,r,c,C,p,u),a=c.length,o=0;o<3;++o)c[a+o]=c[o],C[a+o]=C[o],p[a+o]=p[o];u.push(f.latitude),u.push(f.longitude)}var w,y,te,ne,ie,re,M=G,T=F,se=C,oe=p,le=c,v=u,ue=j,ce=T._ellipsoid,Ce=se.length/3-1,ae=8*Ce,m=4*ae,f=36*Ce,pe=new(65535<ae?Uint32Array:Uint16Array)(f),E=new Float64Array(3*ae),de=new Float32Array(m),he=new Float32Array(m),ge=new Float32Array(m),fe=new Float32Array(m),me=new Float32Array(m),we=(ue&&(te=new Float32Array(m),ne=new Float32Array(m),ie=new Float32Array(m),re=new Float32Array(2*ae)),v.length/2),ye=0,_=Fa,b=(_.height=0,qa),Me=(b.height=0,Xa),O=Pa;if(ue)for(y=0,w=1;w<we;w++)_.latitude=v[y],_.longitude=v[y+1],b.latitude=v[y+2],b.longitude=v[y+3],Me=T.project(_,Me),O=T.project(b,O),ye+=oa.Cartesian3.distance(Me,O),y+=2;var P,Te=oe.length/3,ve=(O=oa.Cartesian3.unpack(oe,0,O),0);for(y=3,w=1;w<Te;w++)Me=oa.Cartesian3.clone(O,Me),O=oa.Cartesian3.unpack(oe,y,O),ve+=oa.Cartesian3.distance(Me,O),y+=3;var Ee=0,_e=0,A=0,be=0,Oe=!(y=3),Pe=oa.Cartesian3.unpack(se,0,Ua),Ae=oa.Cartesian3.unpack(oe,0,Pa),k=oa.Cartesian3.unpack(le,0,Ja);M&&(f=oa.Cartesian3.unpack(se,se.length-6,Wa),Va(k,f,Pe,Ae))&&(k=oa.Cartesian3.negate(k,k));var ke,Le,Se,xe,Ie,Ne,Re,De=0,ze=0,He=0;for(w=0;w<Ce;w++){var L=oa.Cartesian3.clone(Pe,Wa),Be=oa.Cartesian3.clone(Ae,Xa),S=oa.Cartesian3.clone(k,Za),je=(Oe&&(S=oa.Cartesian3.negate(S,S)),Pe=oa.Cartesian3.unpack(se,y,Ua),Ae=oa.Cartesian3.unpack(oe,y,Pa),k=oa.Cartesian3.unpack(le,y,Ja),Oe=Va(k,L,Pe,Ae),_.latitude=v[Ee],_.longitude=v[Ee+1],b.latitude=v[Ee+2],b.longitude=v[Ee+3],ue&&(Ye=function(e,a){var t=Math.abs(e.longitude),n=Math.abs(a.longitude);{var i;if(ua.CesiumMath.equalsEpsilon(t,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(a.longitude),e.longitude=i*(t-ua.CesiumMath.EPSILON11),1;if(ua.CesiumMath.equalsEpsilon(n,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(e.longitude),a.longitude=i*(n-ua.CesiumMath.EPSILON11),2}return 0}(_,b),ke=T.project(_,nt),(je=Ma(Le=T.project(b,it),ke,dt)).y=Math.abs(je.y),Se=Aa,xe=ka,0===Ye||oa.Cartesian3.dot(je,oa.Cartesian3.UNIT_Y)>xa?(Se=ba(T,_,S,ke,Aa),xe=ba(T,b,k,Le,ka)):1===Ye?(xe=ba(T,b,k,Le,ka),Se.x=0,Se.y=ua.CesiumMath.sign(_.longitude-Math.abs(b.longitude)),Se.z=0):(Se=ba(T,_,S,ke,Aa),xe.x=0,xe.y=ua.CesiumMath.sign(_.longitude-b.longitude),xe.z=0)),oa.Cartesian3.distance(Be,Ae)),Ge=pa.EncodedCartesian3.fromCartesian(L,Ct),Ve=oa.Cartesian3.subtract(Pe,L,rt),Ye=oa.Cartesian3.normalize(Ve,lt),x=oa.Cartesian3.subtract(Be,L,st),Fe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(Ye,x,lt)),qe=(Fe=oa.Cartesian3.normalize(Fe,Fe),oa.Cartesian3.cross(x,S,ut)),x=(qe=oa.Cartesian3.normalize(qe,qe),oa.Cartesian3.subtract(Ae,Pe,ot)),Xe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(k,x,ct)),We=(Xe=oa.Cartesian3.normalize(Xe,Xe),je/ve),Ue=De/ve,S=0,Ze=0,Je=0;for(ue&&(S=oa.Cartesian3.distance(ke,Le),Ie=pa.EncodedCartesian3.fromCartesian(ke,pt),Ne=oa.Cartesian3.subtract(Le,ke,dt),x=(Re=oa.Cartesian3.normalize(Ne,ht)).x,Re.x=Re.y,Re.y=-x,Ze=S/ye,Je=ze/ye),P=0;P<8;P++){var I=be+4*P,Qe=_e+2*P,Ke=I+3,$e=P<4?1:-1,ea=2===P||3===P||6===P||7===P?1:-1,aa=(oa.Cartesian3.pack(Ge.high,de,I),de[Ke]=Ve.x,oa.Cartesian3.pack(Ge.low,he,I),he[Ke]=Ve.y,oa.Cartesian3.pack(qe,ge,I),ge[Ke]=Ve.z,oa.Cartesian3.pack(Xe,fe,I),fe[Ke]=We*$e,oa.Cartesian3.pack(Fe,me,I),Ue*ea);0===aa&&ea<0&&(aa=9),me[Ke]=aa,ue&&(te[I]=Ie.high.x,te[I+1]=Ie.high.y,te[I+2]=Ie.low.x,te[I+3]=Ie.low.y,ie[I]=-Se.y,ie[I+1]=Se.x,ie[I+2]=xe.y,ie[I+3]=-xe.x,ne[I]=Ne.x,ne[I+1]=Ne.y,ne[I+2]=Re.x,ne[I+3]=Re.y,re[Qe]=Ze*$e,0===(aa=Je*ea)&&ea<0&&(aa=9),re[Qe+1]=aa)}var x=at,N=tt,R=$a,ta=et,na=oa.Rectangle.fromCartographicArray(Qa,Ka),na=ga.getMinimumMaximumHeights(na,ce),ia=na.minimumTerrainHeight,na=na.maximumTerrainHeight,L=(He=He+ia+na,Ya(L,Be,ia,na,x,R),Ya(Pe,Ae,ia,na,N,ta),oa.Cartesian3.multiplyByScalar(Fe,ua.CesiumMath.EPSILON5,gt));oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),Oa(x,N),Oa(R,ta),oa.Cartesian3.pack(x,E,A),oa.Cartesian3.pack(N,E,A+3),oa.Cartesian3.pack(ta,E,A+6),oa.Cartesian3.pack(R,E,A+9),L=oa.Cartesian3.multiplyByScalar(Fe,-2*ua.CesiumMath.EPSILON5,gt),oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),Oa(x,N),Oa(R,ta),oa.Cartesian3.pack(x,E,A+12),oa.Cartesian3.pack(N,E,A+15),oa.Cartesian3.pack(ta,E,A+18),oa.Cartesian3.pack(R,E,A+21),Ee+=2,y+=3,_e+=16,A+=24,be+=32,De+=je,ze+=S}var ra=y=0;for(w=0;w<Ce;w++){for(P=0;P<wt;P++)pe[y+P]=mt[P]+ra;ra+=8,y+=wt}return m=ft,sa.BoundingSphere.fromVertices(se,oa.Cartesian3.ZERO,3,m[0]),sa.BoundingSphere.fromVertices(oe,oa.Cartesian3.ZERO,3,m[1]),(ae=sa.BoundingSphere.fromBoundingSpheres(m)).radius+=He/(2*Ce),M={position:new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:E}),startHiAndForwardOffsetX:La(de),startLoAndForwardOffsetY:La(he),startNormalAndForwardOffsetZ:La(ge),endNormalAndTextureCoordinateNormalizationX:La(fe),rightNormalAndTextureCoordinateNormalizationY:La(me)},ue&&(M.startHiLo2D=La(te),M.offsetAndRight2D=La(ne),M.startEndNormals2D=La(ie),M.texcoordNormalization2D=new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:re})),new da.Geometry({attributes:M,indices:pe,boundingSphere:ae})}},new oa.Cartesian3),N=new oa.Matrix3,R=new sa.Quaternion;function Va(e,a,t,n){var a=Ma(t,a,I),a=oa.Cartesian3.dot(a,e);return(xa<a||a<y)&&(n=Ma(n,t,x),t=a<y?ua.CesiumMath.PI_OVER_TWO:-ua.CesiumMath.PI_OVER_TWO,a=sa.Quaternion.fromAxisAngle(n,t,R),n=oa.Matrix3.fromQuaternion(a,N),oa.Matrix3.multiplyByVector(n,e,e),!0)}var D=new oa.Cartographic,z=new oa.Cartesian3,H=new oa.Cartesian3;function ba(e,a,t,n,i){var r=oa.Cartographic.toCartesian(a,e._ellipsoid,z),s=oa.Cartesian3.add(r,t,H),o=!1,l=e._ellipsoid,u=l.cartesianToCartographic(s,D),a=(Math.abs(a.longitude-u.longitude)>ua.CesiumMath.PI_OVER_TWO&&(o=!0,s=oa.Cartesian3.subtract(r,t,H),u=l.cartesianToCartographic(s,D)),u.height=0,e.project(u,i));return(i=oa.Cartesian3.subtract(a,n,i)).z=0,i=oa.Cartesian3.normalize(i,i),o&&oa.Cartesian3.negate(i,i),i}var B=new oa.Cartesian3,j=new oa.Cartesian3;function Ya(e,a,t,n,i,r){var s=oa.Cartesian3.subtract(a,e,B),t=(oa.Cartesian3.normalize(s,s),t-Ia),t=oa.Cartesian3.multiplyByScalar(s,t,j),e=(oa.Cartesian3.add(e,t,i),n-Na),t=oa.Cartesian3.multiplyByScalar(s,e,j);oa.Cartesian3.add(a,t,r)}var G=new oa.Cartesian3;function Oa(e,a){var t=r.Plane.getPointDistance(va,e),n=r.Plane.getPointDistance(va,a),i=G;ua.CesiumMath.equalsEpsilon(t,0,ua.CesiumMath.EPSILON2)?(i=Ma(a,e,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(e,i,e)):ua.CesiumMath.equalsEpsilon(n,0,ua.CesiumMath.EPSILON2)&&(i=Ma(e,a,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(a,i,a))}var Fa=new oa.Cartographic,qa=new oa.Cartographic,Xa=new oa.Cartesian3,Pa=new oa.Cartesian3,Wa=new oa.Cartesian3,Ua=new oa.Cartesian3,Za=new oa.Cartesian3,Ja=new oa.Cartesian3,Qa=[Fa,qa],Ka=new oa.Rectangle,$a=new oa.Cartesian3,et=new oa.Cartesian3,at=new oa.Cartesian3,tt=new oa.Cartesian3,nt=new oa.Cartesian3,it=new oa.Cartesian3,Aa=new oa.Cartesian3,ka=new oa.Cartesian3,rt=new oa.Cartesian3,st=new oa.Cartesian3,ot=new oa.Cartesian3,lt=new oa.Cartesian3,ut=new oa.Cartesian3,ct=new oa.Cartesian3,Ct=new pa.EncodedCartesian3,pt=new pa.EncodedCartesian3,dt=new oa.Cartesian3,ht=new oa.Cartesian3,gt=new oa.Cartesian3,ft=[new sa.BoundingSphere,new sa.BoundingSphere],mt=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],wt=mt.length;function La(e){return new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return p._projectNormal=ba,function(e,a){return ga.initialize().then(function(){return la.defined(a)&&(e=p.unpack(e,a)),p.createGeometry(e)})}});
|
|
1
|
+
define(["./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./EncodedCartesian3-3b6655b5","./GeometryAttribute-5d30d102","./IntersectionTests-f71f97b3","./Plane-43337cee","./WebMercatorProjection-329b047d","./combine-276652d0","./WebGLConstants-35626ea2"],function(sa,oa,a,la,ua,ca,Sa,T,Ca,pa,da,ha,r,t,n,h){function e(e){e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT),this._ellipsoid=la.defaultValue(e.ellipsoid,oa.Ellipsoid.WGS84),this._rectangle=la.defaultValue(e.rectangle,oa.Rectangle.MAX_VALUE),this._projection=new sa.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=la.defaultValue(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=la.defaultValue(e.numberOfLevelZeroTilesY,1)}Object.defineProperties(e.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),e.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},e.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},e.prototype.rectangleToNativeRectangle=function(e,a){var t=ua.CesiumMath.toDegrees(e.west),n=ua.CesiumMath.toDegrees(e.south),i=ua.CesiumMath.toDegrees(e.east),e=ua.CesiumMath.toDegrees(e.north);return la.defined(a)?(a.west=t,a.south=n,a.east=i,a.north=e,a):new oa.Rectangle(t,n,i,e)},e.prototype.tileXYToNativeRectangle=function(e,a,t,n){e=this.tileXYToRectangle(e,a,t,n);return e.west=ua.CesiumMath.toDegrees(e.west),e.south=ua.CesiumMath.toDegrees(e.south),e.east=ua.CesiumMath.toDegrees(e.east),e.north=ua.CesiumMath.toDegrees(e.north),e},e.prototype.tileXYToRectangle=function(e,a,t,n){var i=this._rectangle,r=this.getNumberOfXTilesAtLevel(t),t=this.getNumberOfYTilesAtLevel(t),r=i.width/r,s=e*r+i.west,e=(e+1)*r+i.west,r=i.height/t,t=i.north-a*r,i=i.north-(a+1)*r;return(n=la.defined(n)?n:new oa.Rectangle(s,i,e,t)).west=s,n.south=i,n.east=e,n.north=t,n},e.prototype.positionToTileXY=function(e,a,t){var n,i,r,s,o=this._rectangle;if(oa.Rectangle.contains(o,e))return n=this.getNumberOfXTilesAtLevel(a),a=this.getNumberOfYTilesAtLevel(a),s=o.width/n,i=o.height/a,r=e.longitude,o.east<o.west&&(r+=ua.CesiumMath.TWO_PI),n<=(r=(r-o.west)/s|0)&&(r=n-1),a<=(s=(o.north-e.latitude)/i|0)&&(s=a-1),la.defined(t)?(t.x=r,t.y=s,t):new oa.Cartesian2(r,s)};var s=new oa.Cartesian3,o=new oa.Cartesian3,l=new oa.Cartographic,u=new oa.Cartesian3,g=new oa.Cartesian3,i=new sa.BoundingSphere,m=new e,c=[new oa.Cartographic,new oa.Cartographic,new oa.Cartographic,new oa.Cartographic],C=new oa.Cartesian2,ga={};function f(e){oa.Cartographic.fromRadians(e.east,e.north,0,c[0]),oa.Cartographic.fromRadians(e.west,e.north,0,c[1]),oa.Cartographic.fromRadians(e.east,e.south,0,c[2]),oa.Cartographic.fromRadians(e.west,e.south,0,c[3]);for(var a=0,t=0,n=0,i=0,r=ga._terrainHeightsMaxLevel,s=0;s<=r;++s){for(var o=!1,l=0;l<4;++l)if(m.positionToTileXY(c[l],s,C),0===l)n=C.x,i=C.y;else if(n!==C.x||i!==C.y){o=!0;break}if(o)break;a=n,t=i}if(0!==s)return{x:a,y:t,level:r<s?r:s-1}}ga.initialize=function(){var e=ga._initPromise;return la.defined(e)||(e=sa.Resource.fetchJson(sa.buildModuleUrl("Assets/approximateTerrainHeights.json")).then(function(e){ga._terrainHeights=e}),ga._initPromise=e),e},ga.getMinimumMaximumHeights=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=f(e),n=ga._defaultMinTerrainHeight,i=ga._defaultMaxTerrainHeight;return la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t)&&(n=t[0],i=t[1]),a.cartographicToCartesian(oa.Rectangle.northeast(e,l),s),a.cartographicToCartesian(oa.Rectangle.southwest(e,l),o),oa.Cartesian3.midpoint(o,s,u),t=a.scaleToGeodeticSurface(u,g),n=la.defined(t)?(e=oa.Cartesian3.distance(u,t),Math.min(n,-e)):ga._defaultMinTerrainHeight),{minimumTerrainHeight:n=Math.max(ga._defaultMinTerrainHeight,n),maximumTerrainHeight:i}},ga.getBoundingSphere=function(e,a){a=la.defaultValue(a,oa.Ellipsoid.WGS84);var t=f(e),n=ga._defaultMaxTerrainHeight,t=(la.defined(t)&&(t=t.level+"-"+t.x+"-"+t.y,t=ga._terrainHeights[t],la.defined(t))&&(n=t[1]),sa.BoundingSphere.fromRectangle3D(e,a,0));return sa.BoundingSphere.fromRectangle3D(e,a,n,i),sa.BoundingSphere.union(t,i,t)},ga._terrainHeightsMaxLevel=6,ga._defaultMaxTerrainHeight=9e3,ga._defaultMinTerrainHeight=-1e5,ga._terrainHeights=void 0,ga._initPromise=void 0,Object.defineProperties(ga,{initialized:{get:function(){return la.defined(ga._terrainHeights)}}});var ma=[sa.GeographicProjection,t.WebMercatorProjection],w=ma.length,xa=Math.cos(ua.CesiumMath.toRadians(30)),y=Math.cos(ua.CesiumMath.toRadians(150)),Ia=0,Na=1e3;function p(e){var a=(e=la.defaultValue(e,la.defaultValue.EMPTY_OBJECT)).positions;this.width=la.defaultValue(e.width,1),this._positions=a,this.granularity=la.defaultValue(e.granularity,9999),this.loop=la.defaultValue(e.loop,!1),this.arcType=la.defaultValue(e.arcType,ca.ArcType.GEODESIC),this._ellipsoid=oa.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(p.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+oa.Ellipsoid.packedLength+1+1}}}),p.setProjectionAndEllipsoid=function(e,a){for(var t=0,n=0;n<w;n++)if(a instanceof ma[n]){t=n;break}e._projectionIndex=t,e._ellipsoid=a.ellipsoid};var M=new oa.Cartesian3,v=new oa.Cartesian3,E=new oa.Cartesian3;function fa(e,a,t,n,i){var r=ya(n,e,0,M),e=ya(n,e,t,v),t=ya(n,a,0,E),n=Ma(e,r,v),a=Ma(t,r,E);return oa.Cartesian3.cross(a,n,i),oa.Cartesian3.normalize(i,i)}var _=new oa.Cartographic,O=new oa.Cartesian3,b=new oa.Cartesian3,P=new oa.Cartesian3;function wa(e,a,t,n,i,r,s,o,l,u,c){if(0!==i){r===ca.ArcType.GEODESIC?C=new T.EllipsoidGeodesic(e,a,s):r===ca.ArcType.RHUMB&&(C=new Ca.EllipsoidRhumbLine(e,a,s));var C,r=C.surfaceDistance;if(!(r<i))for(var p=fa(e,a,n,s,P),e=Math.ceil(r/i),d=r/e,h=d,g=e-1,m=o.length,f=0;f<g;f++){var w=C.interpolateUsingSurfaceDistance(h,_),y=ya(s,w,t,O),M=ya(s,w,n,b);oa.Cartesian3.pack(p,o,m),oa.Cartesian3.pack(y,l,m),oa.Cartesian3.pack(M,u,m),c.push(w.latitude),c.push(w.longitude),m+=3,h+=d}}}var d=new oa.Cartographic;function ya(e,a,t,n){return oa.Cartographic.clone(a,d),d.height=t,oa.Cartographic.toCartesian(d,e,n)}function Ma(e,a,t){return oa.Cartesian3.subtract(e,a,t),oa.Cartesian3.normalize(t,t),t}function A(e,a,t,n){return n=Ma(e,a,n),n=oa.Cartesian3.cross(n,t,n),n=oa.Cartesian3.normalize(n,n),n=oa.Cartesian3.cross(t,n,n)}p.pack=function(e,a,t){var n=la.defaultValue(t,0),i=e._positions,r=i.length;a[n++]=r;for(var s=0;s<r;++s){var o=i[s];oa.Cartesian3.pack(o,a,n),n+=3}return a[n++]=e.granularity,a[n++]=e.loop?1:0,a[n++]=e.arcType,oa.Ellipsoid.pack(e._ellipsoid,a,n),n+=oa.Ellipsoid.packedLength,a[n++]=e._projectionIndex,a[n++]=e._scene3DOnly?1:0,a},p.unpack=function(e,a,t){for(var n=la.defaultValue(a,0),i=e[n++],r=new Array(i),s=0;s<i;s++)r[s]=oa.Cartesian3.unpack(e,n),n+=3;var a=e[n++],o=1===e[n++],l=e[n++],u=oa.Ellipsoid.unpack(e,n),c=(n+=oa.Ellipsoid.packedLength,e[n++]),C=1===e[n++];return(t=la.defined(t)?t:new p({positions:r}))._positions=r,t.granularity=a,t.loop=o,t.arcType=l,t._ellipsoid=u,t._projectionIndex=c,t._scene3DOnly=C,t};var k=new oa.Cartesian3,L=new oa.Cartesian3,S=new oa.Cartesian3,x=new oa.Cartesian3;function Ta(e,a,t,n,i){t=Ma(t,a,x),e=A(e,a,t,k),n=A(n,a,t,L);if(ua.CesiumMath.equalsEpsilon(oa.Cartesian3.dot(e,n),-1,ua.CesiumMath.EPSILON5))return i=oa.Cartesian3.cross(t,e,i),i=oa.Cartesian3.normalize(i,i);i=oa.Cartesian3.add(n,e,i),i=oa.Cartesian3.normalize(i,i);a=oa.Cartesian3.cross(t,i,S);return i=oa.Cartesian3.dot(n,a)<0?oa.Cartesian3.negate(i,i):i}var va=r.Plane.fromPointNormal(oa.Cartesian3.ZERO,oa.Cartesian3.UNIT_Y),Ra=new oa.Cartesian3,Da=new oa.Cartesian3,za=new oa.Cartesian3,Ha=new oa.Cartesian3,Ba=new oa.Cartesian3,Ea=new oa.Cartesian3,_a=new oa.Cartographic,ja=new oa.Cartographic,Ga=new oa.Cartographic,I=(p.createGeometry=function(e){for(var a,t,n,D,z,i,H,B,j=!e._scene3DOnly,G=e.loop,r=e._ellipsoid,V=e.granularity,Y=e.arcType,F=new ma[e._projectionIndex](r),s=Ia,q=Na,X=e._positions,W=X.length,U=(2===W&&(G=!1),new Ca.EllipsoidRhumbLine(void 0,void 0,r)),Z=[X[0]],o=0;o<W-1;o++)t=X[o],n=X[o+1],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))),Z.push(n);G&&(t=X[W-1],n=X[0],i=ha.IntersectionTests.lineSegmentPlane(t,n,va,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||(e.arcType===ca.ArcType.GEODESIC?Z.push(oa.Cartesian3.clone(i)):e.arcType===ca.ArcType.RHUMB&&(B=r.cartesianToCartographic(i,_a).longitude,D=r.cartesianToCartographic(t,_a),z=r.cartesianToCartographic(n,ja),U.setEndPoints(D,z),H=U.findIntersectionWithLongitude(B,Ga),i=r.cartographicToCartesian(H,Ea),!la.defined(i)||oa.Cartesian3.equalsEpsilon(i,t,ua.CesiumMath.EPSILON7)||oa.Cartesian3.equalsEpsilon(i,n,ua.CesiumMath.EPSILON7)||Z.push(oa.Cartesian3.clone(i)))));var J=Z.length,l=new Array(J);for(o=0;o<J;o++){var Q=oa.Cartographic.fromCartesian(Z[o],r);Q.height=0,l[o]=Q}if(!((J=(l=Sa.arrayRemoveDuplicates(l,oa.Cartographic.equalsEpsilon)).length)<2)){var u=[],c=[],C=[],p=[],K=Ra,d=Da,h=za,$=Ha,g=Ba,m=l[0],f=l[1];for(K=ya(r,l[J-1],s,K),$=ya(r,f,s,$),d=ya(r,m,s,d),h=ya(r,m,q,h),g=G?Ta(K,d,h,$,g):fa(m,f,q,r,g),oa.Cartesian3.pack(g,c,0),oa.Cartesian3.pack(d,C,0),oa.Cartesian3.pack(h,p,0),u.push(m.latitude),u.push(m.longitude),wa(m,f,s,q,V,Y,r,c,C,p,u),o=1;o<J-1;++o){var K=oa.Cartesian3.clone(d,K),d=oa.Cartesian3.clone($,d),ee=l[o];ya(r,ee,q,h),ya(r,l[o+1],s,$),Ta(K,d,h,$,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(d,C,a),oa.Cartesian3.pack(h,p,a),u.push(ee.latitude),u.push(ee.longitude),wa(l[o],l[o+1],s,q,V,Y,r,c,C,p,u)}var f=l[J-1],ae=l[J-2];if(d=ya(r,f,s,d),h=ya(r,f,q,h),g=G?(M=l[0],Ta(K=ya(r,ae,s,K),d,h,$=ya(r,M,s,$),g)):fa(ae,f,q,r,g),a=c.length,oa.Cartesian3.pack(g,c,a),oa.Cartesian3.pack(d,C,a),oa.Cartesian3.pack(h,p,a),u.push(f.latitude),u.push(f.longitude),G){for(wa(f,m,s,q,V,Y,r,c,C,p,u),a=c.length,o=0;o<3;++o)c[a+o]=c[o],C[a+o]=C[o],p[a+o]=p[o];u.push(m.latitude),u.push(m.longitude)}var w,y,te,ne,ie,re,M=G,T=F,se=C,oe=p,le=c,v=u,ue=j,ce=T._ellipsoid,Ce=se.length/3-1,ae=8*Ce,f=4*ae,m=36*Ce,pe=new(65535<ae?Uint32Array:Uint16Array)(m),E=new Float64Array(3*ae),de=new Float32Array(f),he=new Float32Array(f),ge=new Float32Array(f),me=new Float32Array(f),fe=new Float32Array(f),we=(ue&&(te=new Float32Array(f),ne=new Float32Array(f),ie=new Float32Array(f),re=new Float32Array(2*ae)),v.length/2),ye=0,_=Fa,O=(_.height=0,qa),Me=(O.height=0,Xa),b=Pa;if(ue)for(y=0,w=1;w<we;w++)_.latitude=v[y],_.longitude=v[y+1],O.latitude=v[y+2],O.longitude=v[y+3],Me=T.project(_,Me),b=T.project(O,b),ye+=oa.Cartesian3.distance(Me,b),y+=2;var P,Te=oe.length/3,ve=(b=oa.Cartesian3.unpack(oe,0,b),0);for(y=3,w=1;w<Te;w++)Me=oa.Cartesian3.clone(b,Me),b=oa.Cartesian3.unpack(oe,y,b),ve+=oa.Cartesian3.distance(Me,b),y+=3;var Ee=0,_e=0,A=0,Oe=0,be=!(y=3),Pe=oa.Cartesian3.unpack(se,0,Ua),Ae=oa.Cartesian3.unpack(oe,0,Pa),k=oa.Cartesian3.unpack(le,0,Ja);M&&(m=oa.Cartesian3.unpack(se,se.length-6,Wa),Va(k,m,Pe,Ae))&&(k=oa.Cartesian3.negate(k,k));var ke,Le,Se,xe,Ie,Ne,Re,De=0,ze=0,He=0;for(w=0;w<Ce;w++){var L=oa.Cartesian3.clone(Pe,Wa),Be=oa.Cartesian3.clone(Ae,Xa),S=oa.Cartesian3.clone(k,Za),je=(be&&(S=oa.Cartesian3.negate(S,S)),Pe=oa.Cartesian3.unpack(se,y,Ua),Ae=oa.Cartesian3.unpack(oe,y,Pa),k=oa.Cartesian3.unpack(le,y,Ja),be=Va(k,L,Pe,Ae),_.latitude=v[Ee],_.longitude=v[Ee+1],O.latitude=v[Ee+2],O.longitude=v[Ee+3],ue&&(Ye=function(e,a){var t=Math.abs(e.longitude),n=Math.abs(a.longitude);{var i;if(ua.CesiumMath.equalsEpsilon(t,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(a.longitude),e.longitude=i*(t-ua.CesiumMath.EPSILON11),1;if(ua.CesiumMath.equalsEpsilon(n,ua.CesiumMath.PI,ua.CesiumMath.EPSILON11))return i=ua.CesiumMath.sign(e.longitude),a.longitude=i*(n-ua.CesiumMath.EPSILON11),2}return 0}(_,O),ke=T.project(_,nt),(je=Ma(Le=T.project(O,it),ke,dt)).y=Math.abs(je.y),Se=Aa,xe=ka,0===Ye||oa.Cartesian3.dot(je,oa.Cartesian3.UNIT_Y)>xa?(Se=Oa(T,_,S,ke,Aa),xe=Oa(T,O,k,Le,ka)):1===Ye?(xe=Oa(T,O,k,Le,ka),Se.x=0,Se.y=ua.CesiumMath.sign(_.longitude-Math.abs(O.longitude)),Se.z=0):(Se=Oa(T,_,S,ke,Aa),xe.x=0,xe.y=ua.CesiumMath.sign(_.longitude-O.longitude),xe.z=0)),oa.Cartesian3.distance(Be,Ae)),Ge=pa.EncodedCartesian3.fromCartesian(L,Ct),Ve=oa.Cartesian3.subtract(Pe,L,rt),Ye=oa.Cartesian3.normalize(Ve,lt),x=oa.Cartesian3.subtract(Be,L,st),Fe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(Ye,x,lt)),qe=(Fe=oa.Cartesian3.normalize(Fe,Fe),oa.Cartesian3.cross(x,S,ut)),x=(qe=oa.Cartesian3.normalize(qe,qe),oa.Cartesian3.subtract(Ae,Pe,ot)),Xe=(x=oa.Cartesian3.normalize(x,x),oa.Cartesian3.cross(k,x,ct)),We=(Xe=oa.Cartesian3.normalize(Xe,Xe),je/ve),Ue=De/ve,S=0,Ze=0,Je=0;for(ue&&(S=oa.Cartesian3.distance(ke,Le),Ie=pa.EncodedCartesian3.fromCartesian(ke,pt),Ne=oa.Cartesian3.subtract(Le,ke,dt),x=(Re=oa.Cartesian3.normalize(Ne,ht)).x,Re.x=Re.y,Re.y=-x,Ze=S/ye,Je=ze/ye),P=0;P<8;P++){var I=Oe+4*P,Qe=_e+2*P,Ke=I+3,$e=P<4?1:-1,ea=2===P||3===P||6===P||7===P?1:-1,aa=(oa.Cartesian3.pack(Ge.high,de,I),de[Ke]=Ve.x,oa.Cartesian3.pack(Ge.low,he,I),he[Ke]=Ve.y,oa.Cartesian3.pack(qe,ge,I),ge[Ke]=Ve.z,oa.Cartesian3.pack(Xe,me,I),me[Ke]=We*$e,oa.Cartesian3.pack(Fe,fe,I),Ue*ea);0===aa&&ea<0&&(aa=9),fe[Ke]=aa,ue&&(te[I]=Ie.high.x,te[I+1]=Ie.high.y,te[I+2]=Ie.low.x,te[I+3]=Ie.low.y,ie[I]=-Se.y,ie[I+1]=Se.x,ie[I+2]=xe.y,ie[I+3]=-xe.x,ne[I]=Ne.x,ne[I+1]=Ne.y,ne[I+2]=Re.x,ne[I+3]=Re.y,re[Qe]=Ze*$e,0===(aa=Je*ea)&&ea<0&&(aa=9),re[Qe+1]=aa)}var x=at,N=tt,R=$a,ta=et,na=oa.Rectangle.fromCartographicArray(Qa,Ka),na=ga.getMinimumMaximumHeights(na,ce),ia=na.minimumTerrainHeight,na=na.maximumTerrainHeight,L=(He=He+ia+na,Ya(L,Be,ia,na,x,R),Ya(Pe,Ae,ia,na,N,ta),oa.Cartesian3.multiplyByScalar(Fe,ua.CesiumMath.EPSILON5,gt));oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),ba(x,N),ba(R,ta),oa.Cartesian3.pack(x,E,A),oa.Cartesian3.pack(N,E,A+3),oa.Cartesian3.pack(ta,E,A+6),oa.Cartesian3.pack(R,E,A+9),L=oa.Cartesian3.multiplyByScalar(Fe,-2*ua.CesiumMath.EPSILON5,gt),oa.Cartesian3.add(x,L,x),oa.Cartesian3.add(N,L,N),oa.Cartesian3.add(R,L,R),oa.Cartesian3.add(ta,L,ta),ba(x,N),ba(R,ta),oa.Cartesian3.pack(x,E,A+12),oa.Cartesian3.pack(N,E,A+15),oa.Cartesian3.pack(ta,E,A+18),oa.Cartesian3.pack(R,E,A+21),Ee+=2,y+=3,_e+=16,A+=24,Oe+=32,De+=je,ze+=S}var ra=y=0;for(w=0;w<Ce;w++){for(P=0;P<wt;P++)pe[y+P]=ft[P]+ra;ra+=8,y+=wt}return f=mt,sa.BoundingSphere.fromVertices(se,oa.Cartesian3.ZERO,3,f[0]),sa.BoundingSphere.fromVertices(oe,oa.Cartesian3.ZERO,3,f[1]),(ae=sa.BoundingSphere.fromBoundingSpheres(f)).radius+=He/(2*Ce),M={position:new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:E}),startHiAndForwardOffsetX:La(de),startLoAndForwardOffsetY:La(he),startNormalAndForwardOffsetZ:La(ge),endNormalAndTextureCoordinateNormalizationX:La(me),rightNormalAndTextureCoordinateNormalizationY:La(fe)},ue&&(M.startHiLo2D=La(te),M.offsetAndRight2D=La(ne),M.startEndNormals2D=La(ie),M.texcoordNormalization2D=new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:re})),new da.Geometry({attributes:M,indices:pe,boundingSphere:ae})}},new oa.Cartesian3),N=new oa.Matrix3,R=new sa.Quaternion;function Va(e,a,t,n){var a=Ma(t,a,I),a=oa.Cartesian3.dot(a,e);return(xa<a||a<y)&&(n=Ma(n,t,x),t=a<y?ua.CesiumMath.PI_OVER_TWO:-ua.CesiumMath.PI_OVER_TWO,a=sa.Quaternion.fromAxisAngle(n,t,R),n=oa.Matrix3.fromQuaternion(a,N),oa.Matrix3.multiplyByVector(n,e,e),!0)}var D=new oa.Cartographic,z=new oa.Cartesian3,H=new oa.Cartesian3;function Oa(e,a,t,n,i){var r=oa.Cartographic.toCartesian(a,e._ellipsoid,z),s=oa.Cartesian3.add(r,t,H),o=!1,l=e._ellipsoid,u=l.cartesianToCartographic(s,D),a=(Math.abs(a.longitude-u.longitude)>ua.CesiumMath.PI_OVER_TWO&&(o=!0,s=oa.Cartesian3.subtract(r,t,H),u=l.cartesianToCartographic(s,D)),u.height=0,e.project(u,i));return(i=oa.Cartesian3.subtract(a,n,i)).z=0,i=oa.Cartesian3.normalize(i,i),o&&oa.Cartesian3.negate(i,i),i}var B=new oa.Cartesian3,j=new oa.Cartesian3;function Ya(e,a,t,n,i,r){var s=oa.Cartesian3.subtract(a,e,B),t=(oa.Cartesian3.normalize(s,s),t-Ia),t=oa.Cartesian3.multiplyByScalar(s,t,j),e=(oa.Cartesian3.add(e,t,i),n-Na),t=oa.Cartesian3.multiplyByScalar(s,e,j);oa.Cartesian3.add(a,t,r)}var G=new oa.Cartesian3;function ba(e,a){var t=r.Plane.getPointDistance(va,e),n=r.Plane.getPointDistance(va,a),i=G;ua.CesiumMath.equalsEpsilon(t,0,ua.CesiumMath.EPSILON2)?(i=Ma(a,e,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(e,i,e)):ua.CesiumMath.equalsEpsilon(n,0,ua.CesiumMath.EPSILON2)&&(i=Ma(e,a,i),oa.Cartesian3.multiplyByScalar(i,ua.CesiumMath.EPSILON2,i),oa.Cartesian3.add(a,i,a))}var Fa=new oa.Cartographic,qa=new oa.Cartographic,Xa=new oa.Cartesian3,Pa=new oa.Cartesian3,Wa=new oa.Cartesian3,Ua=new oa.Cartesian3,Za=new oa.Cartesian3,Ja=new oa.Cartesian3,Qa=[Fa,qa],Ka=new oa.Rectangle,$a=new oa.Cartesian3,et=new oa.Cartesian3,at=new oa.Cartesian3,tt=new oa.Cartesian3,nt=new oa.Cartesian3,it=new oa.Cartesian3,Aa=new oa.Cartesian3,ka=new oa.Cartesian3,rt=new oa.Cartesian3,st=new oa.Cartesian3,ot=new oa.Cartesian3,lt=new oa.Cartesian3,ut=new oa.Cartesian3,ct=new oa.Cartesian3,Ct=new pa.EncodedCartesian3,pt=new pa.EncodedCartesian3,dt=new oa.Cartesian3,ht=new oa.Cartesian3,gt=new oa.Cartesian3,mt=[new sa.BoundingSphere,new sa.BoundingSphere],ft=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],wt=ft.length;function La(e){return new da.GeometryAttribute({componentDatatype:ua.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return p._projectNormal=Oa,function(e,a){return ga.initialize().then(function(){return la.defined(a)&&(e=p.unpack(e,a)),p.createGeometry(e)})}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./Transforms-
|
|
1
|
+
define(["./when-ae2e0b60","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e","./combine-276652d0","./WebGLConstants-35626ea2"],function(r,a,o,e,m,i,u,p,t,n){function y(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT);e=r.defaultValue(e.vertexFormat,p.VertexFormat.DEFAULT);this._vertexFormat=e,this._workerName="createPlaneGeometry"}y.packedLength=p.VertexFormat.packedLength,y.pack=function(e,t,n){return n=r.defaultValue(n,0),p.VertexFormat.pack(e._vertexFormat,t,n),t};var c=new p.VertexFormat,s={vertexFormat:c},A=(y.unpack=function(e,t,n){t=r.defaultValue(t,0);e=p.VertexFormat.unpack(e,t,c);return r.defined(n)?(n._vertexFormat=p.VertexFormat.clone(e,n._vertexFormat),n):new y(s)},new o.Cartesian3(-.5,-.5,0)),b=new o.Cartesian3(.5,.5,0);return y.createGeometry=function(e){var t,e=e._vertexFormat,n=new u.GeometryAttributes;return e.position&&((t=new Float64Array(12))[0]=A.x,t[1]=A.y,t[2]=0,t[3]=b.x,t[4]=A.y,t[5]=0,t[6]=b.x,t[7]=b.y,t[8]=0,t[9]=A.x,t[10]=b.y,t[11]=0,n.position=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t}),e.normal&&((t=new Float32Array(12))[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,n.normal=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),e.st&&((t=new Float32Array(8))[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,n.st=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),e.tangent&&((t=new Float32Array(12))[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,n.tangent=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),e.bitangent&&((t=new Float32Array(12))[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,n.bitangent=new i.GeometryAttribute({componentDatatype:m.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:t})),(t=new Uint16Array(6))[0]=0,t[1]=1,t[2]=2,t[3]=0,t[4]=2,t[5]=3),new i.Geometry({attributes:n,indices:t,primitiveType:i.PrimitiveType.TRIANGLES,boundingSphere:new a.BoundingSphere(o.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["./when-ae2e0b60","./Transforms-
|
|
1
|
+
define(["./when-ae2e0b60","./Transforms-ce414632","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./GeometryAttribute-5d30d102","./GeometryAttributes-5ce4955a","./combine-276652d0","./WebGLConstants-35626ea2"],function(r,i,a,e,o,u,c,t,n){function y(){this._workerName="createPlaneOutlineGeometry"}y.packedLength=0,y.pack=function(e,t){return t},y.unpack=function(e,t,n){return r.defined(n)?n:new y};var m=new a.Cartesian3(-.5,-.5,0),p=new a.Cartesian3(.5,.5,0);return y.createGeometry=function(){var e=new c.GeometryAttributes,t=new Uint16Array(8),n=new Float64Array(12);return n[0]=m.x,n[1]=m.y,n[2]=m.z,n[3]=p.x,n[4]=m.y,n[5]=m.z,n[6]=p.x,n[7]=p.y,n[8]=m.z,n[9]=m.x,n[10]=p.y,n[11]=m.z,e.position=new u.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n}),t[0]=0,t[1]=1,t[2]=1,t[3]=2,t[4]=2,t[5]=3,t[6]=3,t[7]=0,new u.Geometry({attributes:e,indices:t,primitiveType:u.PrimitiveType.LINES,boundingSphere:new i.BoundingSphere(a.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
|