@cesium/engine 11.0.0 → 11.1.0
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/Build/Workers/{chunk-SIZXFNJY.js → chunk-26GA3JAM.js} +5 -5
- package/Build/Workers/{chunk-QGT2GMOK.js → chunk-27HUZ7SA.js} +4 -4
- package/Build/Workers/{chunk-BJ3WF5RW.js → chunk-2ZGOQXYU.js} +6 -6
- package/Build/Workers/{chunk-54VC7SCM.js → chunk-3Q2L65QU.js} +7 -7
- package/Build/Workers/{chunk-2MKRG7L7.js → chunk-472HQ3EH.js} +5 -5
- package/Build/Workers/{chunk-BZXF3GNX.js → chunk-5ODQSF26.js} +2 -2
- package/Build/Workers/{chunk-JYUCC5NV.js → chunk-5OOFQLKF.js} +6 -6
- package/Build/Workers/{chunk-6FFGOENI.js → chunk-5PTXS2GO.js} +46 -23
- package/Build/Workers/{chunk-T4MB73MC.js → chunk-6CHGCNMW.js} +2 -2
- package/Build/Workers/{chunk-IXLNNST6.js → chunk-76BYBWHP.js} +4 -4
- package/Build/Workers/{chunk-6PJIHPQB.js → chunk-7BMOHCPM.js} +13 -13
- package/Build/Workers/{chunk-HFMJM3SX.js → chunk-7JO7GPJN.js} +1 -1
- package/Build/Workers/{chunk-4TK5YR6Q.js → chunk-7KTQP4VB.js} +5 -5
- package/Build/Workers/{chunk-SRZJCF7G.js → chunk-7O373FFS.js} +8 -34
- package/Build/Workers/{chunk-OC4MYPVW.js → chunk-AD63PIY6.js} +2 -2
- package/Build/Workers/{chunk-HO2NTC7I.js → chunk-BHQJ2NT7.js} +6 -6
- package/Build/Workers/{chunk-IBG5FVXC.js → chunk-C6YYBQXW.js} +4 -4
- package/Build/Workers/{chunk-FJT3ERV7.js → chunk-CKY7HOHV.js} +9 -9
- package/Build/Workers/{chunk-4NBRIKB3.js → chunk-DHYHSFFJ.js} +2 -2
- package/Build/Workers/{chunk-KKAEXHDY.js → chunk-DI5NGJUP.js} +2 -2
- package/Build/Workers/{chunk-2RZYNSMR.js → chunk-E27BLMDD.js} +7 -9
- package/Build/Workers/{chunk-2EDC3QGH.js → chunk-E63IIM5T.js} +1 -1
- package/Build/Workers/{chunk-AI3O7UN2.js → chunk-E6V6SQZW.js} +6 -6
- package/Build/Workers/{chunk-RJF5ZP76.js → chunk-EJZTDTUH.js} +4 -4
- package/Build/Workers/{chunk-OOA6GXKD.js → chunk-FDOV2LBJ.js} +7 -7
- package/Build/Workers/{chunk-HBZSCVZC.js → chunk-FIGIZHAQ.js} +11 -11
- package/Build/Workers/{chunk-TTI2SUWJ.js → chunk-GESF4OXQ.js} +2 -2
- package/Build/Workers/{chunk-AUM45VEG.js → chunk-GGZJN2TI.js} +15 -15
- package/Build/Workers/{chunk-5IY5BXCT.js → chunk-GNBFYG7F.js} +83 -79
- package/Build/Workers/{chunk-6ZREIBKS.js → chunk-GWCFU2SA.js} +7 -7
- package/Build/Workers/{chunk-BUOFSNFW.js → chunk-I2ITFFPX.js} +1 -1
- package/Build/Workers/{chunk-AS7P4BHI.js → chunk-IBLIYJZR.js} +6 -6
- package/Build/Workers/{chunk-L6FARMF6.js → chunk-JW4FOI6M.js} +7 -7
- package/Build/Workers/{chunk-VSFFJGTA.js → chunk-K4GQUNB5.js} +5 -5
- package/Build/Workers/{chunk-BH5ZEN4I.js → chunk-M3GMB5OP.js} +10 -10
- package/Build/Workers/{chunk-HFPMX5L2.js → chunk-MXIZJAPH.js} +1 -1
- package/Build/Workers/{chunk-RFQYEYAL.js → chunk-N5KJGGCM.js} +18 -20
- package/Build/Workers/{chunk-WXDGOYTT.js → chunk-NGPPMXRM.js} +7 -7
- package/Build/Workers/{chunk-N3BIL6WA.js → chunk-O3E4OAOE.js} +13 -13
- package/Build/Workers/{chunk-DVAIU7A4.js → chunk-PGRPDNHG.js} +19 -23
- package/Build/Workers/{chunk-VHJ5ESXF.js → chunk-PRGYLLJT.js} +1 -1
- package/Build/Workers/{chunk-O5SSW3B3.js → chunk-S6MRMMQU.js} +6 -6
- package/Build/Workers/{chunk-XLCZE6DD.js → chunk-SMDOP47J.js} +10 -10
- package/Build/Workers/{chunk-WQRXRDCZ.js → chunk-TGONEMZO.js} +11 -11
- package/Build/Workers/{chunk-BBO6BGLC.js → chunk-TKVT5GQM.js} +13 -13
- package/Build/Workers/{chunk-KFW4UNQH.js → chunk-U72QNFOJ.js} +15 -25
- package/Build/Workers/{chunk-HZPMWR4H.js → chunk-VJZB3WAV.js} +7 -7
- package/Build/Workers/{chunk-OSCHEWSG.js → chunk-VU2MNO7L.js} +7 -7
- package/Build/Workers/{chunk-HA6TZ3XT.js → chunk-XY4BATBS.js} +4 -4
- package/Build/Workers/{chunk-DJXXI7UF.js → chunk-YFXQECWV.js} +5 -5
- package/Build/Workers/{chunk-GOHDOWU5.js → chunk-YSGTGQQO.js} +14 -14
- package/Build/Workers/{chunk-HC7RYWPZ.js → chunk-YZ733KKS.js} +12 -12
- package/Build/Workers/combineGeometry.js +23 -25
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +25 -26
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +36 -40
- package/Build/Workers/createPolygonOutlineGeometry.js +40 -48
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +32 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +28 -30
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -26
- package/Build/Workers/createVerticesFromHeightmap.js +22 -26
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +42 -32
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/ApproximateTerrainHeights.js +15 -15
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +33 -35
- package/Source/Core/AttributeCompression.js +12 -12
- package/Source/Core/AxisAlignedBoundingBox.js +2 -2
- package/Source/Core/BingMapsGeocoderService.js +1 -1
- package/Source/Core/BoundingRectangle.js +3 -3
- package/Source/Core/BoundingSphere.js +44 -44
- package/Source/Core/BoxGeometry.js +6 -6
- package/Source/Core/BoxOutlineGeometry.js +3 -3
- package/Source/Core/Cartesian2.js +7 -7
- package/Source/Core/Cartesian3.js +20 -20
- package/Source/Core/Cartesian4.js +8 -8
- package/Source/Core/Cartographic.js +6 -6
- package/Source/Core/CatmullRomSpline.js +6 -6
- package/Source/Core/CesiumTerrainProvider.js +66 -68
- package/Source/Core/Check.d.ts +3 -3
- package/Source/Core/Check.js +11 -11
- package/Source/Core/CircleGeometry.js +6 -6
- package/Source/Core/CircleOutlineGeometry.js +4 -4
- package/Source/Core/Clock.js +4 -4
- package/Source/Core/Color.js +11 -8
- package/Source/Core/ColorGeometryInstanceAttribute.js +1 -1
- package/Source/Core/ComponentDatatype.js +4 -4
- package/Source/Core/CompressedTextureBuffer.js +2 -2
- package/Source/Core/ConstantSpline.js +1 -1
- package/Source/Core/CoplanarPolygonGeometry.js +44 -41
- package/Source/Core/CoplanarPolygonGeometryLibrary.js +5 -5
- package/Source/Core/CoplanarPolygonOutlineGeometry.js +6 -6
- package/Source/Core/CorridorGeometry.js +77 -77
- package/Source/Core/CorridorGeometryLibrary.js +45 -45
- package/Source/Core/CorridorOutlineGeometry.js +16 -16
- package/Source/Core/CullingVolume.js +4 -4
- package/Source/Core/CustomHeightmapTerrainProvider.js +13 -13
- package/Source/Core/CylinderGeometry.js +8 -8
- package/Source/Core/CylinderGeometryLibrary.js +1 -1
- package/Source/Core/CylinderOutlineGeometry.js +4 -4
- package/Source/Core/DeveloperError.js +1 -1
- package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +20 -21
- package/Source/Core/DoubleEndedPriorityQueue.js +2 -2
- package/Source/Core/EarthOrientationParameters.js +21 -25
- package/Source/Core/EarthOrientationParametersSample.js +1 -1
- package/Source/Core/EllipseGeometry.js +54 -55
- package/Source/Core/EllipseGeometryLibrary.js +12 -12
- package/Source/Core/EllipseOutlineGeometry.js +19 -19
- package/Source/Core/Ellipsoid.js +25 -33
- package/Source/Core/EllipsoidGeodesic.js +17 -16
- package/Source/Core/EllipsoidGeometry.js +9 -8
- package/Source/Core/EllipsoidOutlineGeometry.js +4 -4
- package/Source/Core/EllipsoidRhumbLine.js +33 -32
- package/Source/Core/EllipsoidTangentPlane.js +16 -16
- package/Source/Core/EllipsoidTerrainProvider.js +11 -10
- package/Source/Core/EllipsoidalOccluder.js +110 -130
- package/Source/Core/FeatureDetection.js +4 -4
- package/Source/Core/FrustumGeometry.js +14 -14
- package/Source/Core/FrustumOutlineGeometry.js +4 -4
- package/Source/Core/GeographicTilingScheme.js +6 -6
- package/Source/Core/Geometry.js +15 -17
- package/Source/Core/GeometryAttribute.js +4 -9
- package/Source/Core/GeometryAttributes.js +6 -6
- package/Source/Core/GeometryInstance.js +3 -4
- package/Source/Core/GeometryInstanceAttribute.js +1 -6
- package/Source/Core/GeometryPipeline.js +133 -137
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +19 -20
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +25 -24
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +17 -21
- package/Source/Core/GoogleEarthEnterpriseTileInformation.js +2 -2
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/GregorianDate.js +4 -4
- package/Source/Core/GroundPolylineGeometry.js +104 -104
- package/Source/Core/HeadingPitchRoll.js +7 -7
- package/Source/Core/HeightmapTerrainData.js +58 -54
- package/Source/Core/HeightmapTessellator.js +22 -23
- package/Source/Core/HermitePolynomialApproximation.js +8 -8
- package/Source/Core/HermiteSpline.js +11 -11
- package/Source/Core/HilbertOrder.js +1 -1
- package/Source/Core/Iau2006XysData.js +6 -6
- package/Source/Core/IauOrientationAxes.js +2 -2
- package/Source/Core/IauOrientationParameters.js +1 -1
- package/Source/Core/IndexDatatype.js +5 -5
- package/Source/Core/IntersectionTests.js +36 -78
- package/Source/Core/Intersections2D.js +3 -3
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonGeocoderService.js +2 -2
- package/Source/Core/IonResource.js +5 -5
- package/Source/Core/Iso8601.js +3 -3
- package/Source/Core/JulianDate.js +23 -33
- package/Source/Core/KTX2Transcoder.js +2 -2
- package/Source/Core/LagrangePolynomialApproximation.js +1 -1
- package/Source/Core/LinearApproximation.js +4 -4
- package/Source/Core/LinearSpline.js +2 -2
- package/Source/Core/Math.js +4 -4
- package/Source/Core/Matrix2.js +3 -3
- package/Source/Core/Matrix3.js +16 -16
- package/Source/Core/Matrix4.js +31 -31
- package/Source/Core/MorphWeightSpline.js +2 -2
- package/Source/Core/NearFarScalar.js +1 -1
- package/Source/Core/Occluder.js +52 -56
- package/Source/Core/OpenCageGeocoderService.js +2 -2
- package/Source/Core/OrientedBoundingBox.js +52 -51
- package/Source/Core/OrthographicFrustum.js +11 -11
- package/Source/Core/OrthographicOffCenterFrustum.js +17 -17
- package/Source/Core/PeliasGeocoderService.js +1 -1
- package/Source/Core/PerspectiveFrustum.js +61 -55
- package/Source/Core/PerspectiveOffCenterFrustum.js +58 -59
- package/Source/Core/PinBuilder.js +1 -1
- package/Source/Core/PixelFormat.js +6 -6
- package/Source/Core/Plane.js +9 -9
- package/Source/Core/PlaneGeometry.js +1 -1
- package/Source/Core/PolygonGeometry.js +95 -94
- package/Source/Core/PolygonGeometryLibrary.js +49 -51
- package/Source/Core/PolygonOutlineGeometry.js +49 -51
- package/Source/Core/PolygonPipeline.js +31 -31
- package/Source/Core/PolylineGeometry.js +10 -10
- package/Source/Core/PolylinePipeline.js +25 -25
- package/Source/Core/PolylineVolumeGeometry.js +9 -9
- package/Source/Core/PolylineVolumeGeometryLibrary.js +51 -51
- package/Source/Core/PolylineVolumeOutlineGeometry.js +6 -6
- package/Source/Core/QuadraticRealPolynomial.js +1 -1
- package/Source/Core/QuantizedMeshTerrainData.js +28 -28
- package/Source/Core/QuarticRealPolynomial.js +1 -1
- package/Source/Core/Quaternion.js +19 -19
- package/Source/Core/QuaternionSpline.js +2 -2
- package/Source/Core/Rectangle.js +34 -13
- package/Source/Core/RectangleCollisionChecker.js +3 -3
- package/Source/Core/RectangleGeometry.js +55 -56
- package/Source/Core/RectangleGeometryLibrary.js +8 -8
- package/Source/Core/RectangleOutlineGeometry.js +20 -20
- package/Source/Core/RequestScheduler.js +6 -6
- package/Source/Core/Resource.js +24 -24
- package/Source/Core/S2Cell.js +16 -80
- package/Source/Core/ScreenSpaceEventHandler.js +54 -53
- package/Source/Core/Simon1994PlanetaryPositions.js +13 -13
- package/Source/Core/SimplePolylineGeometry.js +7 -7
- package/Source/Core/SphereGeometry.js +2 -2
- package/Source/Core/SphereOutlineGeometry.js +3 -3
- package/Source/Core/Spline.js +1 -1
- package/Source/Core/SteppedSpline.js +1 -1
- package/Source/Core/Stereographic.js +9 -9
- package/Source/Core/TaskProcessor.js +13 -13
- package/Source/Core/TerrainEncoding.js +33 -38
- package/Source/Core/TerrainMesh.js +1 -1
- package/Source/Core/TerrainProvider.js +12 -12
- package/Source/Core/TileAvailability.js +28 -28
- package/Source/Core/TileProviderError.js +5 -5
- package/Source/Core/TilingScheme.js +1 -1
- package/Source/Core/TimeInterval.js +4 -4
- package/Source/Core/TimeIntervalCollection.js +16 -15
- package/Source/Core/Tipsify.js +2 -2
- package/Source/Core/Transforms.js +52 -54
- package/Source/Core/TranslationRotationScale.js +1 -1
- package/Source/Core/TridiagonalSystemSolver.js +4 -4
- package/Source/Core/VRTheWorldTerrainProvider.js +28 -26
- package/Source/Core/VertexFormat.js +6 -6
- package/Source/Core/VerticalExaggeration.js +4 -4
- package/Source/Core/VideoSynchronizer.js +1 -1
- package/Source/Core/WallGeometry.js +18 -18
- package/Source/Core/WallGeometryLibrary.js +7 -7
- package/Source/Core/WallOutlineGeometry.js +8 -8
- package/Source/Core/WebMercatorProjection.js +5 -6
- package/Source/Core/WebMercatorTilingScheme.js +13 -13
- package/Source/Core/WireframeIndexGenerator.js +8 -8
- package/Source/Core/arrayRemoveDuplicates.js +1 -1
- package/Source/Core/buildModuleUrl.js +2 -2
- package/Source/Core/decodeGoogleEarthEnterpriseData.js +3 -3
- package/Source/Core/decodeVectorPolylinePositions.js +4 -4
- package/Source/Core/destroyObject.js +1 -1
- package/Source/Core/getJsonFromTypedArray.js +1 -1
- package/Source/Core/getMagic.js +1 -1
- package/Source/Core/loadImageFromTypedArray.js +2 -2
- package/Source/Core/loadKTX2.js +1 -1
- package/Source/Core/pointInsideTriangle.js +1 -1
- package/Source/Core/resizeImageToNextPowerOfTwo.js +1 -1
- package/Source/Core/sampleTerrain.js +7 -7
- package/Source/Core/sampleTerrainMostDetailed.js +7 -7
- package/Source/Core/scaleToGeodeticSurface.js +3 -3
- package/Source/Core/srgbToLinear.js +1 -1
- package/Source/Core/writeTextToCanvas.js +1 -1
- package/Source/DataSources/BillboardGraphics.js +13 -13
- package/Source/DataSources/BillboardVisualizer.js +24 -24
- package/Source/DataSources/BoxGeometryUpdater.js +33 -32
- package/Source/DataSources/BoxGraphics.js +3 -3
- package/Source/DataSources/CallbackPositionProperty.js +173 -0
- package/Source/DataSources/Cesium3DTilesetGraphics.js +1 -1
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +6 -6
- package/Source/DataSources/CheckerboardMaterialProperty.js +2 -2
- package/Source/DataSources/ColorMaterialProperty.js +1 -1
- package/Source/DataSources/CompositeEntityCollection.js +14 -15
- package/Source/DataSources/CompositeMaterialProperty.js +5 -7
- package/Source/DataSources/CompositePositionProperty.js +4 -5
- package/Source/DataSources/CompositeProperty.js +2 -2
- package/Source/DataSources/ConstantPositionProperty.js +2 -2
- package/Source/DataSources/CorridorGeometryUpdater.js +61 -56
- package/Source/DataSources/CorridorGraphics.js +6 -6
- package/Source/DataSources/CylinderGeometryUpdater.js +42 -40
- package/Source/DataSources/CylinderGraphics.js +4 -4
- package/Source/DataSources/CzmlDataSource.js +365 -368
- package/Source/DataSources/DataSourceCollection.js +1 -1
- package/Source/DataSources/DataSourceDisplay.js +23 -23
- package/Source/DataSources/DynamicGeometryBatch.js +2 -2
- package/Source/DataSources/DynamicGeometryUpdater.js +14 -18
- package/Source/DataSources/EllipseGeometryUpdater.js +67 -63
- package/Source/DataSources/EllipseGraphics.js +7 -7
- package/Source/DataSources/EllipsoidGeometryUpdater.js +88 -86
- package/Source/DataSources/EllipsoidGraphics.js +5 -5
- package/Source/DataSources/Entity.js +13 -13
- package/Source/DataSources/EntityCluster.js +29 -27
- package/Source/DataSources/EntityCollection.js +7 -7
- package/Source/DataSources/EntityView.js +23 -23
- package/Source/DataSources/GeoJsonDataSource.js +25 -25
- package/Source/DataSources/GeometryUpdater.js +9 -10
- package/Source/DataSources/GeometryUpdaterSet.js +3 -3
- package/Source/DataSources/GeometryVisualizer.js +65 -71
- package/Source/DataSources/GpxDataSource.js +10 -10
- package/Source/DataSources/GridMaterialProperty.js +5 -5
- package/Source/DataSources/GroundGeometryUpdater.js +6 -6
- package/Source/DataSources/ImageMaterialProperty.js +2 -2
- package/Source/DataSources/KmlDataSource.js +212 -212
- package/Source/DataSources/LabelGraphics.js +14 -14
- package/Source/DataSources/LabelVisualizer.js +24 -24
- package/Source/DataSources/ModelGraphics.js +37 -17
- package/Source/DataSources/ModelVisualizer.js +41 -32
- package/Source/DataSources/NodeTransformationProperty.js +3 -3
- package/Source/DataSources/PathGraphics.js +2 -2
- package/Source/DataSources/PathVisualizer.js +99 -35
- package/Source/DataSources/PlaneGeometryUpdater.js +38 -37
- package/Source/DataSources/PlaneGraphics.js +2 -2
- package/Source/DataSources/PointGraphics.js +8 -8
- package/Source/DataSources/PointVisualizer.js +29 -29
- package/Source/DataSources/PolygonGeometryUpdater.js +68 -64
- package/Source/DataSources/PolygonGraphics.js +9 -9
- package/Source/DataSources/PolylineArrowMaterialProperty.js +1 -1
- package/Source/DataSources/PolylineDashMaterialProperty.js +4 -4
- package/Source/DataSources/PolylineGeometryUpdater.js +39 -44
- package/Source/DataSources/PolylineGlowMaterialProperty.js +3 -3
- package/Source/DataSources/PolylineGraphics.js +4 -4
- package/Source/DataSources/PolylineOutlineMaterialProperty.js +3 -3
- package/Source/DataSources/PolylineVisualizer.js +39 -43
- package/Source/DataSources/PolylineVolumeGeometryUpdater.js +70 -68
- package/Source/DataSources/PolylineVolumeGraphics.js +2 -2
- package/Source/DataSources/PositionProperty.js +4 -3
- package/Source/DataSources/PositionPropertyArray.js +3 -3
- package/Source/DataSources/Property.js +1 -1
- package/Source/DataSources/PropertyArray.js +1 -1
- package/Source/DataSources/PropertyBag.js +5 -5
- package/Source/DataSources/RectangleGeometryUpdater.js +68 -63
- package/Source/DataSources/RectangleGraphics.js +6 -6
- package/Source/DataSources/ReferenceProperty.js +6 -6
- package/Source/DataSources/Rotation.js +2 -2
- package/Source/DataSources/SampledPositionProperty.js +6 -6
- package/Source/DataSources/SampledProperty.js +16 -16
- package/Source/DataSources/ScaledPositionProperty.js +2 -2
- package/Source/DataSources/StaticGeometryColorBatch.js +41 -41
- package/Source/DataSources/StaticGeometryPerMaterialBatch.js +40 -40
- package/Source/DataSources/StaticGroundGeometryColorBatch.js +26 -27
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +46 -44
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +44 -43
- package/Source/DataSources/StaticOutlineGeometryBatch.js +28 -29
- package/Source/DataSources/StripeMaterialProperty.js +2 -2
- package/Source/DataSources/TerrainOffsetProperty.js +11 -11
- package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +28 -30
- package/Source/DataSources/TimeIntervalCollectionProperty.js +1 -1
- package/Source/DataSources/VelocityOrientationProperty.js +3 -3
- package/Source/DataSources/VelocityVectorProperty.js +4 -4
- package/Source/DataSources/WallGeometryUpdater.js +25 -25
- package/Source/DataSources/WallGraphics.js +4 -4
- package/Source/DataSources/createPropertyDescriptor.js +3 -3
- package/Source/DataSources/exportKml.js +90 -86
- package/Source/DataSources/getElement.js +1 -1
- package/Source/DataSources/heightReferenceOnEntityPropertyChanged.js +4 -4
- package/Source/Renderer/AutomaticUniforms.js +1 -1
- package/Source/Renderer/Buffer.js +18 -18
- package/Source/Renderer/ClearCommand.js +1 -1
- package/Source/Renderer/ComputeEngine.js +1 -1
- package/Source/Renderer/Context.js +40 -40
- package/Source/Renderer/CubeMap.js +20 -20
- package/Source/Renderer/CubeMapFace.js +19 -19
- package/Source/Renderer/DrawCommand.js +50 -5
- package/Source/Renderer/Framebuffer.js +48 -49
- package/Source/Renderer/FramebufferManager.js +40 -34
- package/Source/Renderer/MultisampleFramebuffer.js +35 -14
- package/Source/Renderer/RenderState.js +36 -36
- package/Source/Renderer/Renderbuffer.js +3 -3
- package/Source/Renderer/Sampler.js +2 -2
- package/Source/Renderer/ShaderBuilder.js +8 -8
- package/Source/Renderer/ShaderCache.js +11 -15
- package/Source/Renderer/ShaderFunction.js +1 -1
- package/Source/Renderer/ShaderProgram.js +15 -15
- package/Source/Renderer/ShaderSource.js +40 -40
- package/Source/Renderer/Texture.js +74 -63
- package/Source/Renderer/UniformState.js +65 -58
- package/Source/Renderer/VertexArray.js +20 -20
- package/Source/Renderer/VertexArrayFacade.js +15 -16
- package/Source/Renderer/createUniform.js +1 -1
- package/Source/Renderer/createUniformArray.js +4 -4
- package/Source/Renderer/demodernizeShader.js +5 -5
- package/Source/Renderer/loadCubeMap.js +1 -1
- package/Source/Scene/ArcGisMapServerImageryProvider.js +39 -45
- package/Source/Scene/ArcGisMapService.js +4 -7
- package/Source/Scene/AutoExposure.js +4 -5
- package/Source/Scene/Axis.js +6 -6
- package/Source/Scene/B3dmParser.js +9 -9
- package/Source/Scene/BatchTable.js +7 -7
- package/Source/Scene/BatchTableHierarchy.js +62 -59
- package/Source/Scene/BatchTexture.js +2 -2
- package/Source/Scene/Billboard.js +45 -43
- package/Source/Scene/BillboardCollection.js +81 -83
- package/Source/Scene/BingMapsImageryProvider.js +13 -13
- package/Source/Scene/BoundingVolumeSemantics.js +10 -10
- package/Source/Scene/BoxEmitter.js +1 -1
- package/Source/Scene/BufferLoader.js +1 -1
- package/Source/Scene/Camera.js +161 -164
- package/Source/Scene/CameraEventAggregator.js +18 -18
- package/Source/Scene/CameraFlightPath.js +25 -25
- package/Source/Scene/Cesium3DTile.js +89 -95
- package/Source/Scene/Cesium3DTileBatchTable.js +61 -61
- package/Source/Scene/Cesium3DTileContentFactory.js +7 -7
- package/Source/Scene/Cesium3DTileFeature.js +1 -1
- package/Source/Scene/Cesium3DTileFeatureTable.js +8 -8
- package/Source/Scene/Cesium3DTileOptimizations.js +1 -1
- package/Source/Scene/Cesium3DTilePointFeature.js +11 -11
- package/Source/Scene/Cesium3DTileStyle.js +26 -24
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +14 -20
- package/Source/Scene/Cesium3DTileset.js +81 -83
- package/Source/Scene/Cesium3DTilesetBaseTraversal.js +8 -16
- package/Source/Scene/Cesium3DTilesetCache.js +2 -2
- package/Source/Scene/Cesium3DTilesetHeatmap.js +5 -5
- package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
- package/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js +2 -2
- package/Source/Scene/Cesium3DTilesetSkipTraversal.js +8 -12
- package/Source/Scene/Cesium3DTilesetStatistics.js +1 -1
- package/Source/Scene/Cesium3DTilesetTraversal.js +8 -10
- package/Source/Scene/ClassificationPrimitive.js +70 -69
- package/Source/Scene/ClippingPlaneCollection.js +39 -41
- package/Source/Scene/ClippingPolygon.js +8 -8
- package/Source/Scene/ClippingPolygonCollection.js +62 -63
- package/Source/Scene/CloudCollection.js +3 -10
- package/Source/Scene/Composite3DTileContent.js +6 -6
- package/Source/Scene/ConditionsExpression.js +5 -5
- package/Source/Scene/ContentMetadata.js +4 -4
- package/Source/Scene/CreditDisplay.js +8 -8
- package/Source/Scene/CumulusCloud.js +4 -4
- package/Source/Scene/DebugAppearance.js +2 -2
- package/Source/Scene/DebugCameraPrimitive.js +2 -2
- package/Source/Scene/DebugInspector.js +3 -3
- package/Source/Scene/DebugModelMatrixPrimitive.js +4 -4
- package/Source/Scene/DepthPlane.js +7 -7
- package/Source/Scene/DerivedCommand.js +422 -238
- package/Source/Scene/DiscardMissingTileImagePolicy.js +1 -1
- package/Source/Scene/DracoLoader.js +3 -3
- package/Source/Scene/EllipsoidPrimitive.js +7 -7
- package/Source/Scene/EllipsoidSurfaceAppearance.js +3 -3
- package/Source/Scene/Empty3DTileContent.js +1 -1
- package/Source/Scene/Expression.js +91 -91
- package/Source/Scene/Fog.js +8 -41
- package/Source/Scene/FrameRateMonitor.js +22 -22
- package/Source/Scene/FrameState.js +31 -0
- package/Source/Scene/Geometry3DTileContent.js +20 -20
- package/Source/Scene/GetFeatureInfoFormat.js +15 -14
- package/Source/Scene/Globe.js +32 -27
- package/Source/Scene/GlobeDepth.js +95 -66
- package/Source/Scene/GlobeSurfaceShaderSet.js +12 -10
- package/Source/Scene/GlobeSurfaceTile.js +33 -33
- package/Source/Scene/GlobeSurfaceTileProvider.js +127 -124
- package/Source/Scene/GlobeTranslucency.js +4 -4
- package/Source/Scene/GlobeTranslucencyFramebuffer.js +9 -9
- package/Source/Scene/GlobeTranslucencyState.js +53 -55
- package/Source/Scene/GltfBufferViewLoader.js +2 -2
- package/Source/Scene/GltfIndexBufferLoader.js +5 -5
- package/Source/Scene/GltfJsonLoader.js +2 -2
- package/Source/Scene/GltfLoader.js +177 -100
- package/Source/Scene/GltfStructuralMetadataLoader.js +9 -8
- package/Source/Scene/GltfTextureLoader.js +5 -5
- package/Source/Scene/GltfVertexBufferLoader.js +12 -13
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +9 -9
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +9 -9
- package/Source/Scene/GridImageryProvider.js +2 -2
- package/Source/Scene/GroundPolylinePrimitive.js +38 -39
- package/Source/Scene/GroundPrimitive.js +47 -45
- package/Source/Scene/GroupMetadata.js +4 -4
- package/Source/Scene/I3SDataProvider.js +12 -12
- package/Source/Scene/I3SDecoder.js +7 -8
- package/Source/Scene/I3SField.js +8 -8
- package/Source/Scene/I3SGeometry.js +14 -14
- package/Source/Scene/I3SLayer.js +26 -20
- package/Source/Scene/I3SNode.js +17 -17
- package/Source/Scene/I3SSublayer.js +4 -4
- package/Source/Scene/I3SSymbology.js +8 -8
- package/Source/Scene/I3dmParser.js +9 -9
- package/Source/Scene/ImageBasedLighting.js +25 -23
- package/Source/Scene/Imagery.js +3 -3
- package/Source/Scene/ImageryLayer.js +64 -66
- package/Source/Scene/ImageryLayerCollection.js +13 -15
- package/Source/Scene/ImageryLayerFeatureInfo.js +19 -20
- package/Source/Scene/ImageryProvider.js +1 -1
- package/Source/Scene/Implicit3DTileContent.js +34 -37
- package/Source/Scene/ImplicitAvailabilityBitstream.js +2 -2
- package/Source/Scene/ImplicitMetadataView.js +2 -2
- package/Source/Scene/ImplicitSubtree.js +29 -30
- package/Source/Scene/ImplicitSubtreeCache.js +1 -1
- package/Source/Scene/ImplicitSubtreeMetadata.js +5 -5
- package/Source/Scene/ImplicitTileCoordinates.js +11 -11
- package/Source/Scene/ImplicitTileset.js +2 -2
- package/Source/Scene/InvertClassification.js +7 -7
- package/Source/Scene/IonImageryProvider.js +6 -6
- package/Source/Scene/JobScheduler.js +4 -4
- package/Source/Scene/Label.js +29 -29
- package/Source/Scene/LabelCollection.js +17 -15
- package/Source/Scene/MapboxImageryProvider.js +3 -3
- package/Source/Scene/MapboxStyleImageryProvider.js +4 -4
- package/Source/Scene/Material.js +26 -27
- package/Source/Scene/MaterialAppearance.js +4 -4
- package/Source/Scene/Megatexture.js +21 -24
- package/Source/Scene/MetadataClassProperty.js +11 -11
- package/Source/Scene/MetadataComponentType.js +1 -1
- package/Source/Scene/MetadataEntity.js +8 -8
- package/Source/Scene/MetadataEnum.js +1 -1
- package/Source/Scene/MetadataPicking.js +305 -0
- package/Source/Scene/MetadataSchemaLoader.js +1 -1
- package/Source/Scene/MetadataTable.js +2 -2
- package/Source/Scene/MetadataTableProperty.js +22 -22
- package/Source/Scene/Model/AlphaPipelineStage.js +2 -2
- package/Source/Scene/Model/AtmospherePipelineStage.js +3 -3
- package/Source/Scene/Model/B3dmLoader.js +8 -8
- package/Source/Scene/Model/BatchTexturePipelineStage.js +2 -2
- package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -4
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +8 -8
- package/Source/Scene/Model/ClassificationPipelineStage.js +5 -5
- package/Source/Scene/Model/CustomShader.js +9 -9
- package/Source/Scene/Model/CustomShaderPipelineStage.js +37 -38
- package/Source/Scene/Model/DequantizationPipelineStage.js +5 -5
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js +61 -0
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js +77 -0
- package/Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js +81 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +248 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js +179 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js +548 -0
- package/Source/Scene/Model/Extensions/Gpm/MeshPrimitiveGpmLocal.js +28 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeMetadata.js +79 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +75 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeTexture.js +127 -0
- package/Source/Scene/Model/Extensions/Gpm/Spdcf.js +103 -0
- package/Source/Scene/Model/Extensions/Gpm/StorageType.js +30 -0
- package/Source/Scene/Model/FeatureIdPipelineStage.js +40 -40
- package/Source/Scene/Model/GeoJsonLoader.js +17 -17
- package/Source/Scene/Model/GeometryPipelineStage.js +23 -24
- package/Source/Scene/Model/I3dmLoader.js +36 -36
- package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +15 -15
- package/Source/Scene/Model/InstancingPipelineStage.js +86 -86
- package/Source/Scene/Model/LightingPipelineStage.js +4 -4
- package/Source/Scene/Model/MaterialPipelineStage.js +78 -93
- package/Source/Scene/Model/MetadataPickingPipelineStage.js +96 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +39 -47
- package/Source/Scene/Model/Model.js +134 -54
- package/Source/Scene/Model/Model3DTileContent.js +32 -13
- package/Source/Scene/Model/ModelAnimationChannel.js +2 -2
- package/Source/Scene/Model/ModelAnimationCollection.js +9 -9
- package/Source/Scene/Model/ModelArticulation.js +2 -2
- package/Source/Scene/Model/ModelArticulationStage.js +4 -4
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +11 -11
- package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +6 -6
- package/Source/Scene/Model/ModelColorPipelineStage.js +12 -13
- package/Source/Scene/Model/ModelDrawCommand.js +5 -5
- package/Source/Scene/Model/{buildDrawCommand.js → ModelDrawCommands.js} +85 -28
- package/Source/Scene/Model/ModelFeatureTable.js +5 -5
- package/Source/Scene/Model/ModelMatrixUpdateStage.js +24 -12
- package/Source/Scene/Model/ModelRenderResources.js +1 -1
- package/Source/Scene/Model/ModelRuntimeNode.js +15 -15
- package/Source/Scene/Model/ModelRuntimePrimitive.js +8 -5
- package/Source/Scene/Model/ModelSceneGraph.js +42 -43
- package/Source/Scene/Model/ModelSilhouettePipelineStage.js +4 -4
- package/Source/Scene/Model/ModelSkin.js +4 -4
- package/Source/Scene/Model/ModelSplitterPipelineStage.js +8 -9
- package/Source/Scene/Model/ModelUtility.js +5 -5
- package/Source/Scene/Model/MorphTargetsPipelineStage.js +18 -18
- package/Source/Scene/Model/NodeRenderResources.js +1 -1
- package/Source/Scene/Model/NodeStatisticsPipelineStage.js +1 -1
- package/Source/Scene/Model/PickingPipelineStage.js +5 -5
- package/Source/Scene/Model/PntsLoader.js +7 -7
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +22 -23
- package/Source/Scene/Model/PrimitiveOutlineGenerator.js +6 -6
- package/Source/Scene/Model/PrimitiveOutlinePipelineStage.js +7 -7
- package/Source/Scene/Model/PrimitiveRenderResources.js +3 -3
- package/Source/Scene/Model/PrimitiveStatisticsPipelineStage.js +1 -1
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +23 -23
- package/Source/Scene/Model/SelectedFeatureIdPipelineStage.js +10 -14
- package/Source/Scene/Model/SkinningPipelineStage.js +5 -5
- package/Source/Scene/Model/StyleCommandsNeeded.js +1 -1
- package/Source/Scene/Model/TextureManager.js +2 -2
- package/Source/Scene/Model/TextureUniform.js +3 -3
- package/Source/Scene/Model/TilesetPipelineStage.js +2 -2
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +4 -4
- package/Source/Scene/Model/WireframePipelineStage.js +7 -7
- package/Source/Scene/Model/pickModel.js +26 -26
- package/Source/Scene/ModelComponents.js +13 -4
- package/Source/Scene/Moon.js +6 -5
- package/Source/Scene/Multiple3DTileContent.js +15 -14
- package/Source/Scene/OIT.js +48 -97
- package/Source/Scene/OpenStreetMapImageryProvider.js +8 -7
- package/Source/Scene/OrderedGroundPrimitiveCollection.js +2 -2
- package/Source/Scene/Particle.js +3 -3
- package/Source/Scene/ParticleEmitter.js +1 -1
- package/Source/Scene/ParticleSystem.js +32 -32
- package/Source/Scene/PerInstanceColorAppearance.js +1 -1
- package/Source/Scene/PickDepth.js +16 -4
- package/Source/Scene/PickDepthFramebuffer.js +1 -1
- package/Source/Scene/PickFramebuffer.js +24 -12
- package/Source/Scene/PickedMetadataInfo.js +39 -0
- package/Source/Scene/Picking.js +270 -120
- package/Source/Scene/PntsParser.js +28 -28
- package/Source/Scene/PointCloud.js +39 -38
- package/Source/Scene/PointCloudEyeDomeLighting.js +6 -6
- package/Source/Scene/PointCloudShading.js +3 -3
- package/Source/Scene/PointPrimitive.js +31 -28
- package/Source/Scene/PointPrimitiveCollection.js +34 -33
- package/Source/Scene/Polyline.js +9 -9
- package/Source/Scene/PolylineCollection.js +55 -57
- package/Source/Scene/PolylineColorAppearance.js +3 -3
- package/Source/Scene/PolylineMaterialAppearance.js +3 -3
- package/Source/Scene/PostProcessStage.js +95 -115
- package/Source/Scene/PostProcessStageCollection.js +35 -41
- package/Source/Scene/PostProcessStageComposite.js +2 -2
- package/Source/Scene/PostProcessStageLibrary.js +5 -5
- package/Source/Scene/PostProcessStageTextureCache.js +10 -10
- package/Source/Scene/Primitive.js +93 -93
- package/Source/Scene/PrimitiveCollection.js +1 -1
- package/Source/Scene/PrimitiveLoadPlan.js +1 -1
- package/Source/Scene/PrimitivePipeline.js +30 -30
- package/Source/Scene/PropertyTable.js +5 -5
- package/Source/Scene/PropertyTextureProperty.js +36 -7
- package/Source/Scene/QuadtreePrimitive.js +56 -58
- package/Source/Scene/QuadtreeTile.js +4 -4
- package/Source/Scene/QuadtreeTileProvider.js +1 -1
- package/Source/Scene/ResourceCache.js +7 -7
- package/Source/Scene/ResourceCacheKey.js +15 -15
- package/Source/Scene/Scene.js +879 -657
- package/Source/Scene/SceneFramebuffer.js +2 -2
- package/Source/Scene/SceneTransforms.js +30 -30
- package/Source/Scene/SceneTransitioner.js +47 -47
- package/Source/Scene/ScreenSpaceCameraController.js +160 -153
- package/Source/Scene/SensorVolumePortionToDisplay.js +1 -1
- package/Source/Scene/ShadowMap.js +71 -72
- package/Source/Scene/ShadowMapShader.js +9 -9
- package/Source/Scene/ShadowVolumeAppearance.js +39 -39
- package/Source/Scene/SingleTileImageryProvider.js +3 -3
- package/Source/Scene/SkyAtmosphere.js +8 -8
- package/Source/Scene/SkyBox.js +7 -8
- package/Source/Scene/SpatialNode.js +13 -13
- package/Source/Scene/SphereEmitter.js +1 -1
- package/Source/Scene/StructuralMetadata.js +1 -1
- package/Source/Scene/StyleExpression.js +1 -1
- package/Source/Scene/Sun.js +11 -7
- package/Source/Scene/SunPostProcess.js +6 -6
- package/Source/Scene/TerrainFillMesh.js +157 -156
- package/Source/Scene/TextureAtlas.js +11 -11
- package/Source/Scene/TileBoundingRegion.js +31 -31
- package/Source/Scene/TileBoundingS2Cell.js +37 -40
- package/Source/Scene/TileBoundingSphere.js +2 -2
- package/Source/Scene/TileCoordinatesImageryProvider.js +3 -3
- package/Source/Scene/TileImagery.js +7 -11
- package/Source/Scene/TileMapServiceImageryProvider.js +26 -25
- package/Source/Scene/TileMetadata.js +4 -4
- package/Source/Scene/TileOrientedBoundingBox.js +6 -6
- package/Source/Scene/Tileset3DTileContent.js +1 -1
- package/Source/Scene/TilesetMetadata.js +4 -4
- package/Source/Scene/TimeDynamicImagery.js +3 -3
- package/Source/Scene/TimeDynamicPointCloud.js +9 -9
- package/Source/Scene/TranslucentTileClassification.js +48 -58
- package/Source/Scene/TweenCollection.js +9 -9
- package/Source/Scene/UrlTemplateImageryProvider.js +23 -23
- package/Source/Scene/Vector3DTileClampedPolylines.js +21 -21
- package/Source/Scene/Vector3DTileContent.js +38 -39
- package/Source/Scene/Vector3DTileGeometry.js +11 -8
- package/Source/Scene/Vector3DTilePoints.js +18 -22
- package/Source/Scene/Vector3DTilePolygons.js +6 -6
- package/Source/Scene/Vector3DTilePolylines.js +8 -8
- package/Source/Scene/Vector3DTilePrimitive.js +30 -31
- package/Source/Scene/View.js +111 -80
- package/Source/Scene/VoxelBoxShape.js +34 -34
- package/Source/Scene/VoxelCell.js +7 -7
- package/Source/Scene/VoxelContent.js +1 -1
- package/Source/Scene/VoxelCylinderShape.js +48 -48
- package/Source/Scene/VoxelEllipsoidShape.js +83 -97
- package/Source/Scene/VoxelPrimitive.js +80 -80
- package/Source/Scene/VoxelRenderResources.js +13 -13
- package/Source/Scene/VoxelTraversal.js +41 -41
- package/Source/Scene/WebMapServiceImageryProvider.js +12 -12
- package/Source/Scene/WebMapTileServiceImageryProvider.js +8 -8
- package/Source/Scene/buildVoxelDrawCommands.js +10 -14
- package/Source/Scene/computeFlyToLocationForRectangle.js +7 -5
- package/Source/Scene/createBillboardPointCallback.js +2 -2
- package/Source/Scene/createElevationBandMaterial.js +8 -8
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +1 -1
- package/Source/Scene/createOsmBuildingsAsync.js +1 -1
- package/Source/Scene/createTangentSpaceDebugPrimitive.js +7 -7
- package/Source/Scene/findContentMetadata.js +2 -2
- package/Source/Scene/findTileMetadata.js +2 -2
- package/Source/Scene/getBinaryAccessor.js +1 -1
- package/Source/Scene/getClipAndStyleCode.js +1 -1
- package/Source/Scene/getClippingFunction.js +1 -1
- package/Source/Scene/getMetadataClassProperty.js +43 -0
- package/Source/Scene/parseBatchTable.js +21 -24
- package/Source/Scene/parseFeatureMetadataLegacy.js +3 -3
- package/Source/Scene/parseStructuralMetadata.js +3 -3
- package/Source/Scene/processVoxelProperties.js +28 -33
- package/Source/Shaders/Builtin/Functions/packDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/packDepth.js +2 -2
- package/Source/Shaders/Builtin/Functions/unpackDepth.glsl +3 -3
- package/Source/Shaders/Builtin/Functions/unpackDepth.js +3 -3
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +1 -1
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +2 -2
- package/Source/Shaders/DepthPlaneVS.glsl +1 -1
- package/Source/Shaders/DepthPlaneVS.js +1 -1
- package/Source/Shaders/Model/ModelFS.glsl +26 -0
- package/Source/Shaders/Model/ModelFS.js +26 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +59 -59
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +60 -60
- package/Source/Widget/CesiumWidget.js +9 -8
- package/Source/Workers/combineGeometry.js +3 -4
- package/Source/Workers/createCircleGeometry.js +2 -2
- package/Source/Workers/createCircleOutlineGeometry.js +2 -2
- package/Source/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Source/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Source/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Source/Workers/createGeometry.js +4 -5
- package/Source/Workers/createGroundPolylineGeometry.js +1 -1
- package/Source/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Source/Workers/createPolylineVolumeOutlineGeometry.js +4 -4
- package/Source/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Source/Workers/createSimplePolylineGeometry.js +2 -2
- package/Source/Workers/createTaskProcessorWorker.js +1 -1
- package/Source/Workers/createVectorTileClampedPolylines.js +30 -30
- package/Source/Workers/createVectorTileGeometries.js +18 -18
- package/Source/Workers/createVectorTilePoints.js +3 -3
- package/Source/Workers/createVectorTilePolygons.js +11 -11
- package/Source/Workers/createVectorTilePolylines.js +7 -7
- package/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -30
- package/Source/Workers/createVerticesFromQuantizedTerrainMesh.js +60 -60
- package/Source/Workers/decodeDraco.js +23 -23
- package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +3 -3
- package/Source/Workers/decodeI3S.js +53 -53
- package/Source/Workers/transcodeKTX2.js +9 -9
- package/Source/Workers/transferTypedArrayTest.js +1 -1
- package/Source/Workers/upsampleQuantizedTerrainMesh.js +37 -36
- package/index.d.ts +503 -35
- package/index.js +76 -59
- package/package.json +2 -2
|
@@ -242,7 +242,7 @@ function ScreenSpaceCameraController(scene) {
|
|
|
242
242
|
* @default 4000.0 or scene.ellipsoid.minimumRadius * 0.00063
|
|
243
243
|
*/
|
|
244
244
|
this.minimumPickingTerrainDistanceWithInertia = Ellipsoid.WGS84.equals(
|
|
245
|
-
ellipsoid
|
|
245
|
+
ellipsoid,
|
|
246
246
|
)
|
|
247
247
|
? 4000.0
|
|
248
248
|
: ellipsoid.minimumRadius * 0.00063;
|
|
@@ -328,7 +328,7 @@ function ScreenSpaceCameraController(scene) {
|
|
|
328
328
|
|
|
329
329
|
const projection = scene.mapProjection;
|
|
330
330
|
this._maxCoord = projection.project(
|
|
331
|
-
new Cartographic(Math.PI, CesiumMath.PI_OVER_TWO)
|
|
331
|
+
new Cartographic(Math.PI, CesiumMath.PI_OVER_TWO),
|
|
332
332
|
);
|
|
333
333
|
|
|
334
334
|
// Constants, Make any of these public?
|
|
@@ -355,7 +355,7 @@ function sameMousePosition(movement) {
|
|
|
355
355
|
return Cartesian2.equalsEpsilon(
|
|
356
356
|
movement.startPosition,
|
|
357
357
|
movement.endPosition,
|
|
358
|
-
CesiumMath.EPSILON14
|
|
358
|
+
CesiumMath.EPSILON14,
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
361
|
|
|
@@ -372,7 +372,7 @@ function maintainInertia(
|
|
|
372
372
|
decayCoef,
|
|
373
373
|
action,
|
|
374
374
|
object,
|
|
375
|
-
lastMovementName
|
|
375
|
+
lastMovementName,
|
|
376
376
|
) {
|
|
377
377
|
let movementState = object[lastMovementName];
|
|
378
378
|
if (!defined(movementState)) {
|
|
@@ -410,18 +410,18 @@ function maintainInertia(
|
|
|
410
410
|
|
|
411
411
|
movementState.startPosition = Cartesian2.clone(
|
|
412
412
|
lastMovement.startPosition,
|
|
413
|
-
movementState.startPosition
|
|
413
|
+
movementState.startPosition,
|
|
414
414
|
);
|
|
415
415
|
|
|
416
416
|
movementState.endPosition = Cartesian2.multiplyByScalar(
|
|
417
417
|
movementState.motion,
|
|
418
418
|
d,
|
|
419
|
-
movementState.endPosition
|
|
419
|
+
movementState.endPosition,
|
|
420
420
|
);
|
|
421
421
|
movementState.endPosition = Cartesian2.add(
|
|
422
422
|
movementState.startPosition,
|
|
423
423
|
movementState.endPosition,
|
|
424
|
-
movementState.endPosition
|
|
424
|
+
movementState.endPosition,
|
|
425
425
|
);
|
|
426
426
|
|
|
427
427
|
// If value from the decreasing exponential function is close to zero,
|
|
@@ -431,7 +431,7 @@ function maintainInertia(
|
|
|
431
431
|
isNaN(movementState.endPosition.y) ||
|
|
432
432
|
Cartesian2.distance(
|
|
433
433
|
movementState.startPosition,
|
|
434
|
-
movementState.endPosition
|
|
434
|
+
movementState.endPosition,
|
|
435
435
|
) < 0.5
|
|
436
436
|
) {
|
|
437
437
|
return;
|
|
@@ -473,7 +473,7 @@ function reactToInput(
|
|
|
473
473
|
eventTypes,
|
|
474
474
|
action,
|
|
475
475
|
inertiaConstant,
|
|
476
|
-
inertiaStateName
|
|
476
|
+
inertiaStateName,
|
|
477
477
|
) {
|
|
478
478
|
if (!defined(eventTypes)) {
|
|
479
479
|
return;
|
|
@@ -509,7 +509,7 @@ function reactToInput(
|
|
|
509
509
|
inertiaConstant,
|
|
510
510
|
action,
|
|
511
511
|
controller,
|
|
512
|
-
inertiaStateName
|
|
512
|
+
inertiaStateName,
|
|
513
513
|
);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -551,14 +551,14 @@ function handleZoom(
|
|
|
551
551
|
movement,
|
|
552
552
|
zoomFactor,
|
|
553
553
|
distanceMeasure,
|
|
554
|
-
unitPositionDotDirection
|
|
554
|
+
unitPositionDotDirection,
|
|
555
555
|
) {
|
|
556
556
|
let percentage = 1.0;
|
|
557
557
|
if (defined(unitPositionDotDirection)) {
|
|
558
558
|
percentage = CesiumMath.clamp(
|
|
559
559
|
Math.abs(unitPositionDotDirection),
|
|
560
560
|
0.25,
|
|
561
|
-
1.0
|
|
561
|
+
1.0,
|
|
562
562
|
);
|
|
563
563
|
}
|
|
564
564
|
|
|
@@ -577,7 +577,7 @@ function handleZoom(
|
|
|
577
577
|
zoomRate = CesiumMath.clamp(
|
|
578
578
|
zoomRate,
|
|
579
579
|
object._minimumZoomRate,
|
|
580
|
-
object._maximumZoomRate
|
|
580
|
+
object._maximumZoomRate,
|
|
581
581
|
);
|
|
582
582
|
|
|
583
583
|
let rangeWindowRatio = diff / object._scene.canvas.clientHeight;
|
|
@@ -623,7 +623,7 @@ function handleZoom(
|
|
|
623
623
|
|
|
624
624
|
const sameStartPosition = defaultValue(
|
|
625
625
|
movement.inertiaEnabled,
|
|
626
|
-
Cartesian2.equals(startPosition, object._zoomMouseStart)
|
|
626
|
+
Cartesian2.equals(startPosition, object._zoomMouseStart),
|
|
627
627
|
);
|
|
628
628
|
let zoomingOnVector = object._zoomingOnVector;
|
|
629
629
|
let rotatingZoom = object._rotatingZoom;
|
|
@@ -632,23 +632,25 @@ function handleZoom(
|
|
|
632
632
|
if (!sameStartPosition) {
|
|
633
633
|
object._zoomMouseStart = Cartesian2.clone(
|
|
634
634
|
startPosition,
|
|
635
|
-
object._zoomMouseStart
|
|
635
|
+
object._zoomMouseStart,
|
|
636
636
|
);
|
|
637
637
|
|
|
638
638
|
// When camera transform is set, such as tracking an entity, object._globe will be undefined, and no position should be picked
|
|
639
639
|
if (defined(object._globe) && mode === SceneMode.SCENE2D) {
|
|
640
|
-
pickedPosition = camera.getPickRay(
|
|
641
|
-
|
|
640
|
+
pickedPosition = camera.getPickRay(
|
|
641
|
+
startPosition,
|
|
642
|
+
scratchZoomPickRay,
|
|
643
|
+
).origin;
|
|
642
644
|
pickedPosition = Cartesian3.fromElements(
|
|
643
645
|
pickedPosition.y,
|
|
644
646
|
pickedPosition.z,
|
|
645
|
-
pickedPosition.x
|
|
647
|
+
pickedPosition.x,
|
|
646
648
|
);
|
|
647
649
|
} else if (defined(object._globe)) {
|
|
648
650
|
pickedPosition = pickPosition(
|
|
649
651
|
object,
|
|
650
652
|
startPosition,
|
|
651
|
-
scratchPickCartesian
|
|
653
|
+
scratchPickCartesian,
|
|
652
654
|
);
|
|
653
655
|
}
|
|
654
656
|
|
|
@@ -656,7 +658,7 @@ function handleZoom(
|
|
|
656
658
|
object._useZoomWorldPosition = true;
|
|
657
659
|
object._zoomWorldPosition = Cartesian3.clone(
|
|
658
660
|
pickedPosition,
|
|
659
|
-
object._zoomWorldPosition
|
|
661
|
+
object._zoomWorldPosition,
|
|
660
662
|
);
|
|
661
663
|
} else {
|
|
662
664
|
object._useZoomWorldPosition = false;
|
|
@@ -692,7 +694,7 @@ function handleZoom(
|
|
|
692
694
|
const direction = Cartesian3.subtract(
|
|
693
695
|
worldPosition,
|
|
694
696
|
endPosition,
|
|
695
|
-
scratchZoomDirection
|
|
697
|
+
scratchZoomDirection,
|
|
696
698
|
);
|
|
697
699
|
Cartesian3.normalize(direction, direction);
|
|
698
700
|
|
|
@@ -705,23 +707,25 @@ function handleZoom(
|
|
|
705
707
|
(camera.position.x < 0.0 && savedX > 0.0) ||
|
|
706
708
|
(camera.position.x > 0.0 && savedX < 0.0)
|
|
707
709
|
) {
|
|
708
|
-
pickedPosition = camera.getPickRay(
|
|
709
|
-
|
|
710
|
+
pickedPosition = camera.getPickRay(
|
|
711
|
+
startPosition,
|
|
712
|
+
scratchZoomPickRay,
|
|
713
|
+
).origin;
|
|
710
714
|
pickedPosition = Cartesian3.fromElements(
|
|
711
715
|
pickedPosition.y,
|
|
712
716
|
pickedPosition.z,
|
|
713
|
-
pickedPosition.x
|
|
717
|
+
pickedPosition.x,
|
|
714
718
|
);
|
|
715
719
|
object._zoomWorldPosition = Cartesian3.clone(
|
|
716
720
|
pickedPosition,
|
|
717
|
-
object._zoomWorldPosition
|
|
721
|
+
object._zoomWorldPosition,
|
|
718
722
|
);
|
|
719
723
|
}
|
|
720
724
|
}
|
|
721
725
|
} else if (mode === SceneMode.SCENE3D) {
|
|
722
726
|
const cameraPositionNormal = Cartesian3.normalize(
|
|
723
727
|
camera.position,
|
|
724
|
-
scratchCameraPositionNormal
|
|
728
|
+
scratchCameraPositionNormal,
|
|
725
729
|
);
|
|
726
730
|
if (
|
|
727
731
|
object._cameraUnderground ||
|
|
@@ -740,7 +744,7 @@ function handleZoom(
|
|
|
740
744
|
const centerPosition = pickPosition(
|
|
741
745
|
object,
|
|
742
746
|
centerPixel,
|
|
743
|
-
scratchCenterPosition
|
|
747
|
+
scratchCenterPosition,
|
|
744
748
|
);
|
|
745
749
|
// If centerPosition is not defined, it means the globe does not cover the center position of screen
|
|
746
750
|
|
|
@@ -772,7 +776,7 @@ function handleZoom(
|
|
|
772
776
|
Cartesian3.add(
|
|
773
777
|
cameraPosition,
|
|
774
778
|
Cartesian3.multiplyByScalar(forward, 1000, scratchCartesian),
|
|
775
|
-
center
|
|
779
|
+
center,
|
|
776
780
|
);
|
|
777
781
|
|
|
778
782
|
const positionToTarget = scratchPositionToTarget;
|
|
@@ -783,7 +787,7 @@ function handleZoom(
|
|
|
783
787
|
|
|
784
788
|
const alphaDot = Cartesian3.dot(
|
|
785
789
|
cameraPositionNormal,
|
|
786
|
-
positionToTargetNormal
|
|
790
|
+
positionToTargetNormal,
|
|
787
791
|
);
|
|
788
792
|
if (alphaDot >= 0.0) {
|
|
789
793
|
// We zoomed past the target, and this zoom is not valid anymore.
|
|
@@ -795,23 +799,22 @@ function handleZoom(
|
|
|
795
799
|
const cameraDistance = Cartesian3.magnitude(cameraPosition);
|
|
796
800
|
const targetDistance = Cartesian3.magnitude(target);
|
|
797
801
|
const remainingDistance = cameraDistance - distance;
|
|
798
|
-
const positionToTargetDistance =
|
|
799
|
-
positionToTarget
|
|
800
|
-
);
|
|
802
|
+
const positionToTargetDistance =
|
|
803
|
+
Cartesian3.magnitude(positionToTarget);
|
|
801
804
|
|
|
802
805
|
const gamma = Math.asin(
|
|
803
806
|
CesiumMath.clamp(
|
|
804
807
|
(positionToTargetDistance / targetDistance) * Math.sin(alpha),
|
|
805
808
|
-1.0,
|
|
806
|
-
1.0
|
|
807
|
-
)
|
|
809
|
+
1.0,
|
|
810
|
+
),
|
|
808
811
|
);
|
|
809
812
|
const delta = Math.asin(
|
|
810
813
|
CesiumMath.clamp(
|
|
811
814
|
(remainingDistance / targetDistance) * Math.sin(alpha),
|
|
812
815
|
-1.0,
|
|
813
|
-
1.0
|
|
814
|
-
)
|
|
816
|
+
1.0,
|
|
817
|
+
),
|
|
815
818
|
);
|
|
816
819
|
const beta = gamma - delta + alpha;
|
|
817
820
|
|
|
@@ -823,20 +826,20 @@ function handleZoom(
|
|
|
823
826
|
|
|
824
827
|
Cartesian3.normalize(
|
|
825
828
|
Cartesian3.cross(up, right, scratchCartesian),
|
|
826
|
-
forward
|
|
829
|
+
forward,
|
|
827
830
|
);
|
|
828
831
|
|
|
829
832
|
// Calculate new position to move to
|
|
830
833
|
Cartesian3.multiplyByScalar(
|
|
831
834
|
Cartesian3.normalize(center, scratchCartesian),
|
|
832
835
|
Cartesian3.magnitude(center) - distance,
|
|
833
|
-
center
|
|
836
|
+
center,
|
|
834
837
|
);
|
|
835
838
|
Cartesian3.normalize(cameraPosition, cameraPosition);
|
|
836
839
|
Cartesian3.multiplyByScalar(
|
|
837
840
|
cameraPosition,
|
|
838
841
|
remainingDistance,
|
|
839
|
-
cameraPosition
|
|
842
|
+
cameraPosition,
|
|
840
843
|
);
|
|
841
844
|
|
|
842
845
|
// Pan
|
|
@@ -846,24 +849,24 @@ function handleZoom(
|
|
|
846
849
|
Cartesian3.multiplyByScalar(
|
|
847
850
|
up,
|
|
848
851
|
Math.cos(beta) - 1,
|
|
849
|
-
scratchCartesianTwo
|
|
852
|
+
scratchCartesianTwo,
|
|
850
853
|
),
|
|
851
854
|
Cartesian3.multiplyByScalar(
|
|
852
855
|
forward,
|
|
853
856
|
Math.sin(beta),
|
|
854
|
-
scratchCartesianThree
|
|
857
|
+
scratchCartesianThree,
|
|
855
858
|
),
|
|
856
|
-
scratchCartesian
|
|
859
|
+
scratchCartesian,
|
|
857
860
|
),
|
|
858
861
|
remainingDistance,
|
|
859
|
-
pMid
|
|
862
|
+
pMid,
|
|
860
863
|
);
|
|
861
864
|
Cartesian3.add(cameraPosition, pMid, cameraPosition);
|
|
862
865
|
|
|
863
866
|
Cartesian3.normalize(center, up);
|
|
864
867
|
Cartesian3.normalize(
|
|
865
868
|
Cartesian3.cross(up, right, scratchCartesian),
|
|
866
|
-
forward
|
|
869
|
+
forward,
|
|
867
870
|
);
|
|
868
871
|
|
|
869
872
|
const cMid = scratchCenterMovement;
|
|
@@ -872,17 +875,17 @@ function handleZoom(
|
|
|
872
875
|
Cartesian3.multiplyByScalar(
|
|
873
876
|
up,
|
|
874
877
|
Math.cos(beta) - 1,
|
|
875
|
-
scratchCartesianTwo
|
|
878
|
+
scratchCartesianTwo,
|
|
876
879
|
),
|
|
877
880
|
Cartesian3.multiplyByScalar(
|
|
878
881
|
forward,
|
|
879
882
|
Math.sin(beta),
|
|
880
|
-
scratchCartesianThree
|
|
883
|
+
scratchCartesianThree,
|
|
881
884
|
),
|
|
882
|
-
scratchCartesian
|
|
885
|
+
scratchCartesian,
|
|
883
886
|
),
|
|
884
887
|
Cartesian3.magnitude(center),
|
|
885
|
-
cMid
|
|
888
|
+
cMid,
|
|
886
889
|
);
|
|
887
890
|
Cartesian3.add(center, cMid, center);
|
|
888
891
|
|
|
@@ -894,7 +897,7 @@ function handleZoom(
|
|
|
894
897
|
// Set new direction
|
|
895
898
|
Cartesian3.normalize(
|
|
896
899
|
Cartesian3.subtract(center, cameraPosition, scratchCartesian),
|
|
897
|
-
camera.direction
|
|
900
|
+
camera.direction,
|
|
898
901
|
);
|
|
899
902
|
Cartesian3.clone(camera.direction, camera.direction);
|
|
900
903
|
|
|
@@ -908,11 +911,11 @@ function handleZoom(
|
|
|
908
911
|
} else {
|
|
909
912
|
const positionNormal = Cartesian3.normalize(
|
|
910
913
|
centerPosition,
|
|
911
|
-
scratchPositionNormal
|
|
914
|
+
scratchPositionNormal,
|
|
912
915
|
);
|
|
913
916
|
const pickedNormal = Cartesian3.normalize(
|
|
914
917
|
object._zoomWorldPosition,
|
|
915
|
-
scratchPickNormal
|
|
918
|
+
scratchPickNormal,
|
|
916
919
|
);
|
|
917
920
|
const dotProduct = Cartesian3.dot(pickedNormal, positionNormal);
|
|
918
921
|
|
|
@@ -921,7 +924,7 @@ function handleZoom(
|
|
|
921
924
|
const axis = Cartesian3.cross(
|
|
922
925
|
pickedNormal,
|
|
923
926
|
positionNormal,
|
|
924
|
-
scratchZoomAxis
|
|
927
|
+
scratchZoomAxis,
|
|
925
928
|
);
|
|
926
929
|
|
|
927
930
|
const denom =
|
|
@@ -943,7 +946,7 @@ function handleZoom(
|
|
|
943
946
|
const zoomMouseStart = SceneTransforms.worldToWindowCoordinates(
|
|
944
947
|
scene,
|
|
945
948
|
object._zoomWorldPosition,
|
|
946
|
-
scratchZoomOffset
|
|
949
|
+
scratchZoomOffset,
|
|
947
950
|
);
|
|
948
951
|
if (
|
|
949
952
|
mode !== SceneMode.COLUMBUS_VIEW &&
|
|
@@ -961,7 +964,7 @@ function handleZoom(
|
|
|
961
964
|
rayDirection.y,
|
|
962
965
|
rayDirection.z,
|
|
963
966
|
rayDirection.x,
|
|
964
|
-
rayDirection
|
|
967
|
+
rayDirection,
|
|
965
968
|
);
|
|
966
969
|
}
|
|
967
970
|
|
|
@@ -984,8 +987,10 @@ const scratchTranslateP0 = new Cartesian3();
|
|
|
984
987
|
function translate2D(controller, startPosition, movement) {
|
|
985
988
|
const scene = controller._scene;
|
|
986
989
|
const camera = scene.camera;
|
|
987
|
-
let start = camera.getPickRay(
|
|
988
|
-
.
|
|
990
|
+
let start = camera.getPickRay(
|
|
991
|
+
movement.startPosition,
|
|
992
|
+
translate2DStart,
|
|
993
|
+
).origin;
|
|
989
994
|
let end = camera.getPickRay(movement.endPosition, translate2DEnd).origin;
|
|
990
995
|
|
|
991
996
|
start = Cartesian3.fromElements(start.y, start.z, start.x, start);
|
|
@@ -1013,7 +1018,7 @@ function zoom2D(controller, startPosition, movement) {
|
|
|
1013
1018
|
startPosition,
|
|
1014
1019
|
movement,
|
|
1015
1020
|
controller.zoomFactor,
|
|
1016
|
-
camera.getMagnitude()
|
|
1021
|
+
camera.getMagnitude(),
|
|
1017
1022
|
);
|
|
1018
1023
|
}
|
|
1019
1024
|
|
|
@@ -1089,7 +1094,7 @@ function update2D(controller) {
|
|
|
1089
1094
|
controller.zoomEventTypes,
|
|
1090
1095
|
zoom2D,
|
|
1091
1096
|
controller.inertiaZoom,
|
|
1092
|
-
"_lastInertiaZoomMovement"
|
|
1097
|
+
"_lastInertiaZoomMovement",
|
|
1093
1098
|
);
|
|
1094
1099
|
if (rotatable2D) {
|
|
1095
1100
|
reactToInput(
|
|
@@ -1098,7 +1103,7 @@ function update2D(controller) {
|
|
|
1098
1103
|
controller.translateEventTypes,
|
|
1099
1104
|
twist2D,
|
|
1100
1105
|
controller.inertiaSpin,
|
|
1101
|
-
"_lastInertiaSpinMovement"
|
|
1106
|
+
"_lastInertiaSpinMovement",
|
|
1102
1107
|
);
|
|
1103
1108
|
}
|
|
1104
1109
|
} else {
|
|
@@ -1108,7 +1113,7 @@ function update2D(controller) {
|
|
|
1108
1113
|
controller.translateEventTypes,
|
|
1109
1114
|
translate2D,
|
|
1110
1115
|
controller.inertiaTranslate,
|
|
1111
|
-
"_lastInertiaTranslateMovement"
|
|
1116
|
+
"_lastInertiaTranslateMovement",
|
|
1112
1117
|
);
|
|
1113
1118
|
reactToInput(
|
|
1114
1119
|
controller,
|
|
@@ -1116,7 +1121,7 @@ function update2D(controller) {
|
|
|
1116
1121
|
controller.zoomEventTypes,
|
|
1117
1122
|
zoom2D,
|
|
1118
1123
|
controller.inertiaZoom,
|
|
1119
|
-
"_lastInertiaZoomMovement"
|
|
1124
|
+
"_lastInertiaZoomMovement",
|
|
1120
1125
|
);
|
|
1121
1126
|
if (rotatable2D) {
|
|
1122
1127
|
reactToInput(
|
|
@@ -1125,7 +1130,7 @@ function update2D(controller) {
|
|
|
1125
1130
|
controller.tiltEventTypes,
|
|
1126
1131
|
twist2D,
|
|
1127
1132
|
controller.inertiaSpin,
|
|
1128
|
-
"_lastInertiaTiltMovement"
|
|
1133
|
+
"_lastInertiaTiltMovement",
|
|
1129
1134
|
);
|
|
1130
1135
|
}
|
|
1131
1136
|
}
|
|
@@ -1144,7 +1149,7 @@ function pickPosition(controller, mousePosition, result) {
|
|
|
1144
1149
|
if (scene.pickPositionSupported) {
|
|
1145
1150
|
depthIntersection = scene.pickPositionWorldCoordinates(
|
|
1146
1151
|
mousePosition,
|
|
1147
|
-
scratchDepthIntersection
|
|
1152
|
+
scratchDepthIntersection,
|
|
1148
1153
|
);
|
|
1149
1154
|
}
|
|
1150
1155
|
|
|
@@ -1158,7 +1163,7 @@ function pickPosition(controller, mousePosition, result) {
|
|
|
1158
1163
|
ray,
|
|
1159
1164
|
scene,
|
|
1160
1165
|
cullBackFaces,
|
|
1161
|
-
scratchRayIntersection
|
|
1166
|
+
scratchRayIntersection,
|
|
1162
1167
|
);
|
|
1163
1168
|
|
|
1164
1169
|
const pickDistance = defined(depthIntersection)
|
|
@@ -1187,7 +1192,7 @@ function getDistanceFromSurface(controller) {
|
|
|
1187
1192
|
if (mode === SceneMode.SCENE3D) {
|
|
1188
1193
|
const cartographic = ellipsoid.cartesianToCartographic(
|
|
1189
1194
|
camera.position,
|
|
1190
|
-
scratchDistanceCartographic
|
|
1195
|
+
scratchDistanceCartographic,
|
|
1191
1196
|
);
|
|
1192
1197
|
if (defined(cartographic)) {
|
|
1193
1198
|
height = cartographic.height;
|
|
@@ -1222,7 +1227,7 @@ function getTiltCenterUnderground(controller, ray, pickedPosition, result) {
|
|
|
1222
1227
|
const maximumDistance = CesiumMath.clamp(
|
|
1223
1228
|
distanceFromSurface * 5.0,
|
|
1224
1229
|
controller._minimumUndergroundPickDistance,
|
|
1225
|
-
controller._maximumUndergroundPickDistance
|
|
1230
|
+
controller._maximumUndergroundPickDistance,
|
|
1226
1231
|
);
|
|
1227
1232
|
|
|
1228
1233
|
if (distance > maximumDistance) {
|
|
@@ -1238,7 +1243,7 @@ function getStrafeStartPositionUnderground(
|
|
|
1238
1243
|
controller,
|
|
1239
1244
|
ray,
|
|
1240
1245
|
pickedPosition,
|
|
1241
|
-
result
|
|
1246
|
+
result,
|
|
1242
1247
|
) {
|
|
1243
1248
|
let distance;
|
|
1244
1249
|
if (!defined(pickedPosition)) {
|
|
@@ -1263,7 +1268,7 @@ function continueStrafing(controller, movement) {
|
|
|
1263
1268
|
const inertialDelta = Cartesian2.subtract(
|
|
1264
1269
|
movement.endPosition,
|
|
1265
1270
|
movement.startPosition,
|
|
1266
|
-
scratchInertialDelta
|
|
1271
|
+
scratchInertialDelta,
|
|
1267
1272
|
);
|
|
1268
1273
|
const endPosition = controller._strafeEndMousePosition;
|
|
1269
1274
|
Cartesian2.add(endPosition, inertialDelta, endPosition);
|
|
@@ -1306,7 +1311,7 @@ function translateCV(controller, startPosition, movement) {
|
|
|
1306
1311
|
const cameraUnderground = controller._cameraUnderground;
|
|
1307
1312
|
const startMouse = Cartesian2.clone(
|
|
1308
1313
|
movement.startPosition,
|
|
1309
|
-
translateCVStartMouse
|
|
1314
|
+
translateCVStartMouse,
|
|
1310
1315
|
);
|
|
1311
1316
|
const endMouse = Cartesian2.clone(movement.endPosition, translateCVEndMouse);
|
|
1312
1317
|
let startRay = camera.getPickRay(startMouse, translateCVStartRay);
|
|
@@ -1333,7 +1338,7 @@ function translateCV(controller, startPosition, movement) {
|
|
|
1333
1338
|
controller,
|
|
1334
1339
|
startRay,
|
|
1335
1340
|
globePos,
|
|
1336
|
-
translateCVStartPos
|
|
1341
|
+
translateCVStartPos,
|
|
1337
1342
|
);
|
|
1338
1343
|
}
|
|
1339
1344
|
Cartesian2.clone(startPosition, controller._strafeMousePosition);
|
|
@@ -1350,14 +1355,14 @@ function translateCV(controller, startPosition, movement) {
|
|
|
1350
1355
|
const startPlanePos = IntersectionTests.rayPlane(
|
|
1351
1356
|
startRay,
|
|
1352
1357
|
plane,
|
|
1353
|
-
translateCVStartPos
|
|
1358
|
+
translateCVStartPos,
|
|
1354
1359
|
);
|
|
1355
1360
|
|
|
1356
1361
|
const endRay = camera.getPickRay(endMouse, translateCVEndRay);
|
|
1357
1362
|
const endPlanePos = IntersectionTests.rayPlane(
|
|
1358
1363
|
endRay,
|
|
1359
1364
|
plane,
|
|
1360
|
-
translateCVEndPos
|
|
1365
|
+
translateCVEndPos,
|
|
1361
1366
|
);
|
|
1362
1367
|
|
|
1363
1368
|
if (!defined(startPlanePos) || !defined(endPlanePos)) {
|
|
@@ -1370,7 +1375,7 @@ function translateCV(controller, startPosition, movement) {
|
|
|
1370
1375
|
const diff = Cartesian3.subtract(
|
|
1371
1376
|
startPlanePos,
|
|
1372
1377
|
endPlanePos,
|
|
1373
|
-
translateCVDifference
|
|
1378
|
+
translateCVDifference,
|
|
1374
1379
|
);
|
|
1375
1380
|
const temp = diff.x;
|
|
1376
1381
|
diff.x = diff.y;
|
|
@@ -1467,7 +1472,7 @@ function rotateCVOnPlane(controller, startPosition, movement) {
|
|
|
1467
1472
|
const transform = Transforms.eastNorthUpToFixedFrame(
|
|
1468
1473
|
center,
|
|
1469
1474
|
ellipsoid,
|
|
1470
|
-
rotateCVTransform
|
|
1475
|
+
rotateCVTransform,
|
|
1471
1476
|
);
|
|
1472
1477
|
|
|
1473
1478
|
const oldGlobe = controller._globe;
|
|
@@ -1554,7 +1559,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1554
1559
|
const verticalCenter = IntersectionTests.rayPlane(
|
|
1555
1560
|
ray,
|
|
1556
1561
|
plane,
|
|
1557
|
-
rotateCVVerticalCenter
|
|
1562
|
+
rotateCVVerticalCenter,
|
|
1558
1563
|
);
|
|
1559
1564
|
|
|
1560
1565
|
const projection = camera._projection;
|
|
@@ -1567,7 +1572,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1567
1572
|
const transform = Transforms.eastNorthUpToFixedFrame(
|
|
1568
1573
|
center,
|
|
1569
1574
|
ellipsoid,
|
|
1570
|
-
rotateCVTransform
|
|
1575
|
+
rotateCVTransform,
|
|
1571
1576
|
);
|
|
1572
1577
|
|
|
1573
1578
|
let verticalTransform;
|
|
@@ -1576,7 +1581,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1576
1581
|
verticalCenter.y,
|
|
1577
1582
|
verticalCenter.z,
|
|
1578
1583
|
verticalCenter.x,
|
|
1579
|
-
verticalCenter
|
|
1584
|
+
verticalCenter,
|
|
1580
1585
|
);
|
|
1581
1586
|
cart = projection.unproject(verticalCenter, rotateCVCart);
|
|
1582
1587
|
ellipsoid.cartographicToCartesian(cart, verticalCenter);
|
|
@@ -1584,7 +1589,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1584
1589
|
verticalTransform = Transforms.eastNorthUpToFixedFrame(
|
|
1585
1590
|
verticalCenter,
|
|
1586
1591
|
ellipsoid,
|
|
1587
|
-
rotateCVVerticalTransform
|
|
1592
|
+
rotateCVVerticalTransform,
|
|
1588
1593
|
);
|
|
1589
1594
|
} else {
|
|
1590
1595
|
verticalTransform = transform;
|
|
@@ -1605,7 +1610,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1605
1610
|
const tangent = Cartesian3.cross(
|
|
1606
1611
|
Cartesian3.UNIT_Z,
|
|
1607
1612
|
Cartesian3.normalize(camera.position, rotateCVCartesian3),
|
|
1608
|
-
rotateCVCartesian3
|
|
1613
|
+
rotateCVCartesian3,
|
|
1609
1614
|
);
|
|
1610
1615
|
const dot = Cartesian3.dot(camera.right, tangent);
|
|
1611
1616
|
|
|
@@ -1636,7 +1641,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1636
1641
|
const right = Cartesian3.cross(
|
|
1637
1642
|
camera.direction,
|
|
1638
1643
|
camera.constrainedAxis,
|
|
1639
|
-
tilt3DCartesian3
|
|
1644
|
+
tilt3DCartesian3,
|
|
1640
1645
|
);
|
|
1641
1646
|
if (
|
|
1642
1647
|
!Cartesian3.equalsEpsilon(right, Cartesian3.ZERO, CesiumMath.EPSILON6)
|
|
@@ -1663,7 +1668,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1663
1668
|
|
|
1664
1669
|
const originalPosition = Cartesian3.clone(
|
|
1665
1670
|
camera.positionWC,
|
|
1666
|
-
rotateCVCartesian3
|
|
1671
|
+
rotateCVCartesian3,
|
|
1667
1672
|
);
|
|
1668
1673
|
|
|
1669
1674
|
if (controller.enableCollisionDetection) {
|
|
@@ -1680,7 +1685,7 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1680
1685
|
Cartesian3.multiplyByScalar(
|
|
1681
1686
|
camera.position,
|
|
1682
1687
|
Math.sqrt(magSqrd),
|
|
1683
|
-
camera.position
|
|
1688
|
+
camera.position,
|
|
1684
1689
|
);
|
|
1685
1690
|
}
|
|
1686
1691
|
|
|
@@ -1688,14 +1693,14 @@ function rotateCVOnTerrain(controller, startPosition, movement) {
|
|
|
1688
1693
|
const axis = Cartesian3.cross(
|
|
1689
1694
|
originalPosition,
|
|
1690
1695
|
camera.position,
|
|
1691
|
-
originalPosition
|
|
1696
|
+
originalPosition,
|
|
1692
1697
|
);
|
|
1693
1698
|
Cartesian3.normalize(axis, axis);
|
|
1694
1699
|
|
|
1695
1700
|
const quaternion = Quaternion.fromAxisAngle(
|
|
1696
1701
|
axis,
|
|
1697
1702
|
angle,
|
|
1698
|
-
rotateCVQuaternion
|
|
1703
|
+
rotateCVQuaternion,
|
|
1699
1704
|
);
|
|
1700
1705
|
const rotation = Matrix3.fromQuaternion(quaternion, rotateCVMatrix);
|
|
1701
1706
|
Matrix3.multiplyByVector(rotation, camera.direction, camera.direction);
|
|
@@ -1751,7 +1756,7 @@ function zoomCV(controller, startPosition, movement) {
|
|
|
1751
1756
|
const distanceUnderground = getZoomDistanceUnderground(
|
|
1752
1757
|
controller,
|
|
1753
1758
|
ray,
|
|
1754
|
-
height
|
|
1759
|
+
height,
|
|
1755
1760
|
);
|
|
1756
1761
|
if (defined(distance)) {
|
|
1757
1762
|
distance = Math.min(distance, distanceUnderground);
|
|
@@ -1771,7 +1776,7 @@ function zoomCV(controller, startPosition, movement) {
|
|
|
1771
1776
|
startPosition,
|
|
1772
1777
|
movement,
|
|
1773
1778
|
controller.zoomFactor,
|
|
1774
|
-
distance
|
|
1779
|
+
distance,
|
|
1775
1780
|
);
|
|
1776
1781
|
}
|
|
1777
1782
|
|
|
@@ -1786,7 +1791,7 @@ function updateCV(controller) {
|
|
|
1786
1791
|
controller.rotateEventTypes,
|
|
1787
1792
|
rotate3D,
|
|
1788
1793
|
controller.inertiaSpin,
|
|
1789
|
-
"_lastInertiaSpinMovement"
|
|
1794
|
+
"_lastInertiaSpinMovement",
|
|
1790
1795
|
);
|
|
1791
1796
|
reactToInput(
|
|
1792
1797
|
controller,
|
|
@@ -1794,7 +1799,7 @@ function updateCV(controller) {
|
|
|
1794
1799
|
controller.zoomEventTypes,
|
|
1795
1800
|
zoom3D,
|
|
1796
1801
|
controller.inertiaZoom,
|
|
1797
|
-
"_lastInertiaZoomMovement"
|
|
1802
|
+
"_lastInertiaZoomMovement",
|
|
1798
1803
|
);
|
|
1799
1804
|
} else {
|
|
1800
1805
|
const tweens = controller._tweens;
|
|
@@ -1809,7 +1814,7 @@ function updateCV(controller) {
|
|
|
1809
1814
|
controller.tiltEventTypes,
|
|
1810
1815
|
rotateCV,
|
|
1811
1816
|
controller.inertiaSpin,
|
|
1812
|
-
"_lastInertiaTiltMovement"
|
|
1817
|
+
"_lastInertiaTiltMovement",
|
|
1813
1818
|
);
|
|
1814
1819
|
reactToInput(
|
|
1815
1820
|
controller,
|
|
@@ -1817,7 +1822,7 @@ function updateCV(controller) {
|
|
|
1817
1822
|
controller.translateEventTypes,
|
|
1818
1823
|
translateCV,
|
|
1819
1824
|
controller.inertiaTranslate,
|
|
1820
|
-
"_lastInertiaTranslateMovement"
|
|
1825
|
+
"_lastInertiaTranslateMovement",
|
|
1821
1826
|
);
|
|
1822
1827
|
reactToInput(
|
|
1823
1828
|
controller,
|
|
@@ -1825,13 +1830,13 @@ function updateCV(controller) {
|
|
|
1825
1830
|
controller.zoomEventTypes,
|
|
1826
1831
|
zoomCV,
|
|
1827
1832
|
controller.inertiaZoom,
|
|
1828
|
-
"_lastInertiaZoomMovement"
|
|
1833
|
+
"_lastInertiaZoomMovement",
|
|
1829
1834
|
);
|
|
1830
1835
|
reactToInput(
|
|
1831
1836
|
controller,
|
|
1832
1837
|
controller.enableLook,
|
|
1833
1838
|
controller.lookEventTypes,
|
|
1834
|
-
look3D
|
|
1839
|
+
look3D,
|
|
1835
1840
|
);
|
|
1836
1841
|
|
|
1837
1842
|
if (
|
|
@@ -1839,7 +1844,7 @@ function updateCV(controller) {
|
|
|
1839
1844
|
!tweens.contains(controller._tween)
|
|
1840
1845
|
) {
|
|
1841
1846
|
const tween = camera.createCorrectPositionTween(
|
|
1842
|
-
controller.bounceAnimationTime
|
|
1847
|
+
controller.bounceAnimationTime,
|
|
1843
1848
|
);
|
|
1844
1849
|
if (defined(tween)) {
|
|
1845
1850
|
controller._tween = tweens.add(tween);
|
|
@@ -1869,12 +1874,12 @@ function strafe(controller, movement, strafeStartPosition) {
|
|
|
1869
1874
|
const plane = Plane.fromPointNormal(
|
|
1870
1875
|
strafeStartPosition,
|
|
1871
1876
|
direction,
|
|
1872
|
-
scratchStrafePlane
|
|
1877
|
+
scratchStrafePlane,
|
|
1873
1878
|
);
|
|
1874
1879
|
const intersection = IntersectionTests.rayPlane(
|
|
1875
1880
|
ray,
|
|
1876
1881
|
plane,
|
|
1877
|
-
scratchStrafeIntersection
|
|
1882
|
+
scratchStrafeIntersection,
|
|
1878
1883
|
);
|
|
1879
1884
|
if (!defined(intersection)) {
|
|
1880
1885
|
return;
|
|
@@ -1941,7 +1946,7 @@ function spin3D(controller, startPosition, movement) {
|
|
|
1941
1946
|
|
|
1942
1947
|
const height = ellipsoid.cartesianToCartographic(
|
|
1943
1948
|
camera.positionWC,
|
|
1944
|
-
scratchCartographic
|
|
1949
|
+
scratchCartographic,
|
|
1945
1950
|
).height;
|
|
1946
1951
|
const globe = controller._globe;
|
|
1947
1952
|
|
|
@@ -1949,13 +1954,13 @@ function spin3D(controller, startPosition, movement) {
|
|
|
1949
1954
|
const mousePos = pickPosition(
|
|
1950
1955
|
controller,
|
|
1951
1956
|
movement.startPosition,
|
|
1952
|
-
scratchMousePosition
|
|
1957
|
+
scratchMousePosition,
|
|
1953
1958
|
);
|
|
1954
1959
|
if (defined(mousePos)) {
|
|
1955
1960
|
let strafing = false;
|
|
1956
1961
|
const ray = camera.getPickRay(
|
|
1957
1962
|
movement.startPosition,
|
|
1958
|
-
pickGlobeScratchRay
|
|
1963
|
+
pickGlobeScratchRay,
|
|
1959
1964
|
);
|
|
1960
1965
|
|
|
1961
1966
|
if (cameraUnderground) {
|
|
@@ -1998,8 +2003,8 @@ function spin3D(controller, startPosition, movement) {
|
|
|
1998
2003
|
camera.pickEllipsoid(
|
|
1999
2004
|
movement.startPosition,
|
|
2000
2005
|
controller._ellipsoid,
|
|
2001
|
-
spin3DPick
|
|
2002
|
-
)
|
|
2006
|
+
spin3DPick,
|
|
2007
|
+
),
|
|
2003
2008
|
)
|
|
2004
2009
|
) {
|
|
2005
2010
|
pan3D(controller, startPosition, movement, controller._ellipsoid);
|
|
@@ -2021,7 +2026,7 @@ function rotate3D(
|
|
|
2021
2026
|
movement,
|
|
2022
2027
|
constrainedAxis,
|
|
2023
2028
|
rotateOnlyVertical,
|
|
2024
|
-
rotateOnlyHorizontal
|
|
2029
|
+
rotateOnlyHorizontal,
|
|
2025
2030
|
) {
|
|
2026
2031
|
rotateOnlyVertical = defaultValue(rotateOnlyVertical, false);
|
|
2027
2032
|
rotateOnlyHorizontal = defaultValue(rotateOnlyHorizontal, false);
|
|
@@ -2054,7 +2059,7 @@ function rotate3D(
|
|
|
2054
2059
|
phiWindowRatio = Math.min(phiWindowRatio, controller.maximumMovementRatio);
|
|
2055
2060
|
thetaWindowRatio = Math.min(
|
|
2056
2061
|
thetaWindowRatio,
|
|
2057
|
-
controller.maximumMovementRatio
|
|
2062
|
+
controller.maximumMovementRatio,
|
|
2058
2063
|
);
|
|
2059
2064
|
|
|
2060
2065
|
const deltaPhi = rotateRate * phiWindowRatio * Math.PI * 2.0;
|
|
@@ -2089,15 +2094,15 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2089
2094
|
|
|
2090
2095
|
const startMousePosition = Cartesian2.clone(
|
|
2091
2096
|
movement.startPosition,
|
|
2092
|
-
pan3DStartMousePosition
|
|
2097
|
+
pan3DStartMousePosition,
|
|
2093
2098
|
);
|
|
2094
2099
|
const endMousePosition = Cartesian2.clone(
|
|
2095
2100
|
movement.endPosition,
|
|
2096
|
-
pan3DEndMousePosition
|
|
2101
|
+
pan3DEndMousePosition,
|
|
2097
2102
|
);
|
|
2098
2103
|
const height = ellipsoid.cartesianToCartographic(
|
|
2099
2104
|
camera.positionWC,
|
|
2100
|
-
scratchCartographic
|
|
2105
|
+
scratchCartographic,
|
|
2101
2106
|
).height;
|
|
2102
2107
|
|
|
2103
2108
|
let p0, p1;
|
|
@@ -2113,7 +2118,7 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2113
2118
|
!defined(controller._globe) &&
|
|
2114
2119
|
!Cartesian2.equalsEpsilon(
|
|
2115
2120
|
startMousePosition,
|
|
2116
|
-
controller._panLastMousePosition
|
|
2121
|
+
controller._panLastMousePosition,
|
|
2117
2122
|
)
|
|
2118
2123
|
) {
|
|
2119
2124
|
p0 = pickPosition(controller, startMousePosition, pan3DP0);
|
|
@@ -2124,7 +2129,7 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2124
2129
|
const toCenterProj = Cartesian3.multiplyByScalar(
|
|
2125
2130
|
camera.directionWC,
|
|
2126
2131
|
Cartesian3.dot(camera.directionWC, toCenter),
|
|
2127
|
-
pan3DTemp1
|
|
2132
|
+
pan3DTemp1,
|
|
2128
2133
|
);
|
|
2129
2134
|
const distanceToNearPlane = Cartesian3.magnitude(toCenterProj);
|
|
2130
2135
|
const pixelDimensions = camera.frustum.getPixelDimensions(
|
|
@@ -2132,33 +2137,35 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2132
2137
|
scene.drawingBufferHeight,
|
|
2133
2138
|
distanceToNearPlane,
|
|
2134
2139
|
scene.pixelRatio,
|
|
2135
|
-
pan3DPixelDimensions
|
|
2140
|
+
pan3DPixelDimensions,
|
|
2136
2141
|
);
|
|
2137
2142
|
|
|
2138
2143
|
const dragDelta = Cartesian2.subtract(
|
|
2139
2144
|
endMousePosition,
|
|
2140
2145
|
startMousePosition,
|
|
2141
|
-
pan3DDiffMousePosition
|
|
2146
|
+
pan3DDiffMousePosition,
|
|
2142
2147
|
);
|
|
2143
2148
|
|
|
2144
2149
|
// Move the camera to the the distance the cursor moved in worldspace
|
|
2145
2150
|
const right = Cartesian3.multiplyByScalar(
|
|
2146
2151
|
camera.rightWC,
|
|
2147
2152
|
dragDelta.x * pixelDimensions.x,
|
|
2148
|
-
pan3DTemp1
|
|
2153
|
+
pan3DTemp1,
|
|
2149
2154
|
);
|
|
2150
2155
|
|
|
2151
2156
|
// Move the camera towards the picked position in worldspace as the camera is pointed towards a horizon view
|
|
2152
2157
|
const cameraPositionNormal = Cartesian3.normalize(
|
|
2153
2158
|
camera.positionWC,
|
|
2154
|
-
scratchCameraPositionNormal
|
|
2159
|
+
scratchCameraPositionNormal,
|
|
2155
2160
|
);
|
|
2156
|
-
const endPickDirection = camera.getPickRay(
|
|
2157
|
-
|
|
2161
|
+
const endPickDirection = camera.getPickRay(
|
|
2162
|
+
endMousePosition,
|
|
2163
|
+
panRay,
|
|
2164
|
+
).direction;
|
|
2158
2165
|
const endPickProj = Cartesian3.subtract(
|
|
2159
2166
|
endPickDirection,
|
|
2160
2167
|
Cartesian3.projectVector(endPickDirection, camera.rightWC, pan3DTemp2),
|
|
2161
|
-
pan3DTemp2
|
|
2168
|
+
pan3DTemp2,
|
|
2162
2169
|
);
|
|
2163
2170
|
const angle = Cartesian3.angleBetween(endPickProj, camera.directionWC);
|
|
2164
2171
|
let forward = 1.0;
|
|
@@ -2166,7 +2173,7 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2166
2173
|
forward = Math.max(Math.tan(angle), 0.1); // Clamp so we don't make the magnitude infinitely large when the angle is small
|
|
2167
2174
|
}
|
|
2168
2175
|
let dot = Math.abs(
|
|
2169
|
-
Cartesian3.dot(camera.directionWC, cameraPositionNormal)
|
|
2176
|
+
Cartesian3.dot(camera.directionWC, cameraPositionNormal),
|
|
2170
2177
|
);
|
|
2171
2178
|
const magnitude =
|
|
2172
2179
|
((-dragDelta.y * pixelDimensions.y * 2.0) / Math.sqrt(forward)) *
|
|
@@ -2174,7 +2181,7 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2174
2181
|
const direction = Cartesian3.multiplyByScalar(
|
|
2175
2182
|
endPickDirection,
|
|
2176
2183
|
magnitude,
|
|
2177
|
-
pan3DTemp2
|
|
2184
|
+
pan3DTemp2,
|
|
2178
2185
|
);
|
|
2179
2186
|
|
|
2180
2187
|
// Move the camera up the distance the cursor moved in worldspace as the camera is pointed towards the center
|
|
@@ -2182,7 +2189,7 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2182
2189
|
const up = Cartesian3.multiplyByScalar(
|
|
2183
2190
|
camera.upWC,
|
|
2184
2191
|
-dragDelta.y * (1.0 - dot) * pixelDimensions.y,
|
|
2185
|
-
pan3DTemp3
|
|
2192
|
+
pan3DTemp3,
|
|
2186
2193
|
);
|
|
2187
2194
|
|
|
2188
2195
|
p1 = Cartesian3.add(p0, right, pan3DP1);
|
|
@@ -2267,11 +2274,11 @@ function pan3D(controller, startPosition, movement, ellipsoid) {
|
|
|
2267
2274
|
const planeNormal = Cartesian3.cross(basis0, east, pan3DTemp0);
|
|
2268
2275
|
const side0 = Cartesian3.dot(
|
|
2269
2276
|
planeNormal,
|
|
2270
|
-
Cartesian3.subtract(p0, basis0, pan3DTemp1)
|
|
2277
|
+
Cartesian3.subtract(p0, basis0, pan3DTemp1),
|
|
2271
2278
|
);
|
|
2272
2279
|
const side1 = Cartesian3.dot(
|
|
2273
2280
|
planeNormal,
|
|
2274
|
-
Cartesian3.subtract(p1, basis0, pan3DTemp1)
|
|
2281
|
+
Cartesian3.subtract(p1, basis0, pan3DTemp1),
|
|
2275
2282
|
);
|
|
2276
2283
|
|
|
2277
2284
|
let deltaTheta;
|
|
@@ -2325,7 +2332,7 @@ function zoom3D(controller, startPosition, movement) {
|
|
|
2325
2332
|
let intersection;
|
|
2326
2333
|
const height = ellipsoid.cartesianToCartographic(
|
|
2327
2334
|
camera.position,
|
|
2328
|
-
zoom3DCartographic
|
|
2335
|
+
zoom3DCartographic,
|
|
2329
2336
|
).height;
|
|
2330
2337
|
|
|
2331
2338
|
const approachingCollision =
|
|
@@ -2349,7 +2356,7 @@ function zoom3D(controller, startPosition, movement) {
|
|
|
2349
2356
|
const distanceUnderground = getZoomDistanceUnderground(
|
|
2350
2357
|
controller,
|
|
2351
2358
|
ray,
|
|
2352
|
-
height
|
|
2359
|
+
height,
|
|
2353
2360
|
);
|
|
2354
2361
|
if (defined(distance)) {
|
|
2355
2362
|
distance = Math.min(distance, distanceUnderground);
|
|
@@ -2364,7 +2371,7 @@ function zoom3D(controller, startPosition, movement) {
|
|
|
2364
2371
|
|
|
2365
2372
|
const unitPosition = Cartesian3.normalize(
|
|
2366
2373
|
camera.position,
|
|
2367
|
-
zoom3DUnitPosition
|
|
2374
|
+
zoom3DUnitPosition,
|
|
2368
2375
|
);
|
|
2369
2376
|
handleZoom(
|
|
2370
2377
|
controller,
|
|
@@ -2372,7 +2379,7 @@ function zoom3D(controller, startPosition, movement) {
|
|
|
2372
2379
|
movement,
|
|
2373
2380
|
controller.zoomFactor,
|
|
2374
2381
|
distance,
|
|
2375
|
-
Cartesian3.dot(unitPosition, camera.direction)
|
|
2382
|
+
Cartesian3.dot(unitPosition, camera.direction),
|
|
2376
2383
|
);
|
|
2377
2384
|
}
|
|
2378
2385
|
|
|
@@ -2408,7 +2415,7 @@ function tilt3D(controller, startPosition, movement) {
|
|
|
2408
2415
|
if (controller._looking) {
|
|
2409
2416
|
const up = controller._ellipsoid.geodeticSurfaceNormal(
|
|
2410
2417
|
camera.position,
|
|
2411
|
-
tilt3DLookUp
|
|
2418
|
+
tilt3DLookUp,
|
|
2412
2419
|
);
|
|
2413
2420
|
look3D(controller, startPosition, movement, up);
|
|
2414
2421
|
return;
|
|
@@ -2417,7 +2424,7 @@ function tilt3D(controller, startPosition, movement) {
|
|
|
2417
2424
|
const ellipsoid = controller._ellipsoid;
|
|
2418
2425
|
const cartographic = ellipsoid.cartesianToCartographic(
|
|
2419
2426
|
camera.position,
|
|
2420
|
-
tilt3DCart
|
|
2427
|
+
tilt3DCart,
|
|
2421
2428
|
);
|
|
2422
2429
|
|
|
2423
2430
|
if (
|
|
@@ -2440,7 +2447,7 @@ function tilt3DOnEllipsoid(controller, startPosition, movement) {
|
|
|
2440
2447
|
const minHeight = controller.minimumZoomDistance * 0.25;
|
|
2441
2448
|
const height = ellipsoid.cartesianToCartographic(
|
|
2442
2449
|
camera.positionWC,
|
|
2443
|
-
tilt3DOnEllipsoidCartographic
|
|
2450
|
+
tilt3DOnEllipsoidCartographic,
|
|
2444
2451
|
).height;
|
|
2445
2452
|
if (
|
|
2446
2453
|
height - minHeight - 1.0 < CesiumMath.EPSILON3 &&
|
|
@@ -2463,25 +2470,25 @@ function tilt3DOnEllipsoid(controller, startPosition, movement) {
|
|
|
2463
2470
|
} else if (height > controller._minimumTrackBallHeight) {
|
|
2464
2471
|
const grazingAltitudeLocation = IntersectionTests.grazingAltitudeLocation(
|
|
2465
2472
|
ray,
|
|
2466
|
-
ellipsoid
|
|
2473
|
+
ellipsoid,
|
|
2467
2474
|
);
|
|
2468
2475
|
if (!defined(grazingAltitudeLocation)) {
|
|
2469
2476
|
return;
|
|
2470
2477
|
}
|
|
2471
2478
|
const grazingAltitudeCart = ellipsoid.cartesianToCartographic(
|
|
2472
2479
|
grazingAltitudeLocation,
|
|
2473
|
-
tilt3DCart
|
|
2480
|
+
tilt3DCart,
|
|
2474
2481
|
);
|
|
2475
2482
|
grazingAltitudeCart.height = 0.0;
|
|
2476
2483
|
center = ellipsoid.cartographicToCartesian(
|
|
2477
2484
|
grazingAltitudeCart,
|
|
2478
|
-
tilt3DCenter
|
|
2485
|
+
tilt3DCenter,
|
|
2479
2486
|
);
|
|
2480
2487
|
} else {
|
|
2481
2488
|
controller._looking = true;
|
|
2482
2489
|
const up = controller._ellipsoid.geodeticSurfaceNormal(
|
|
2483
2490
|
camera.position,
|
|
2484
|
-
tilt3DLookUp
|
|
2491
|
+
tilt3DLookUp,
|
|
2485
2492
|
);
|
|
2486
2493
|
look3D(controller, startPosition, movement, up);
|
|
2487
2494
|
Cartesian2.clone(startPosition, controller._tiltCenterMousePosition);
|
|
@@ -2491,7 +2498,7 @@ function tilt3DOnEllipsoid(controller, startPosition, movement) {
|
|
|
2491
2498
|
const transform = Transforms.eastNorthUpToFixedFrame(
|
|
2492
2499
|
center,
|
|
2493
2500
|
ellipsoid,
|
|
2494
|
-
tilt3DTransform
|
|
2501
|
+
tilt3DTransform,
|
|
2495
2502
|
);
|
|
2496
2503
|
|
|
2497
2504
|
const oldGlobe = controller._globe;
|
|
@@ -2536,13 +2543,13 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2536
2543
|
if (!defined(intersection)) {
|
|
2537
2544
|
const cartographic = ellipsoid.cartesianToCartographic(
|
|
2538
2545
|
camera.position,
|
|
2539
|
-
tilt3DCart
|
|
2546
|
+
tilt3DCart,
|
|
2540
2547
|
);
|
|
2541
2548
|
if (cartographic.height <= controller._minimumTrackBallHeight) {
|
|
2542
2549
|
controller._looking = true;
|
|
2543
2550
|
const up = controller._ellipsoid.geodeticSurfaceNormal(
|
|
2544
2551
|
camera.position,
|
|
2545
|
-
tilt3DLookUp
|
|
2552
|
+
tilt3DLookUp,
|
|
2546
2553
|
);
|
|
2547
2554
|
look3D(controller, startPosition, movement, up);
|
|
2548
2555
|
Cartesian2.clone(startPosition, controller._tiltCenterMousePosition);
|
|
@@ -2588,12 +2595,12 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2588
2595
|
const transform = Transforms.eastNorthUpToFixedFrame(
|
|
2589
2596
|
center,
|
|
2590
2597
|
ellipsoid,
|
|
2591
|
-
tilt3DTransform
|
|
2598
|
+
tilt3DTransform,
|
|
2592
2599
|
);
|
|
2593
2600
|
const verticalTransform = Transforms.eastNorthUpToFixedFrame(
|
|
2594
2601
|
verticalCenter,
|
|
2595
2602
|
newEllipsoid,
|
|
2596
|
-
tilt3DVerticalTransform
|
|
2603
|
+
tilt3DVerticalTransform,
|
|
2597
2604
|
);
|
|
2598
2605
|
|
|
2599
2606
|
const oldGlobe = controller._globe;
|
|
@@ -2611,7 +2618,7 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2611
2618
|
const tangent = Cartesian3.cross(
|
|
2612
2619
|
verticalCenter,
|
|
2613
2620
|
camera.positionWC,
|
|
2614
|
-
tilt3DCartesian3
|
|
2621
|
+
tilt3DCartesian3,
|
|
2615
2622
|
);
|
|
2616
2623
|
const dot = Cartesian3.dot(camera.rightWC, tangent);
|
|
2617
2624
|
|
|
@@ -2642,7 +2649,7 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2642
2649
|
const right = Cartesian3.cross(
|
|
2643
2650
|
camera.direction,
|
|
2644
2651
|
camera.constrainedAxis,
|
|
2645
|
-
tilt3DCartesian3
|
|
2652
|
+
tilt3DCartesian3,
|
|
2646
2653
|
);
|
|
2647
2654
|
if (
|
|
2648
2655
|
!Cartesian3.equalsEpsilon(right, Cartesian3.ZERO, CesiumMath.EPSILON6)
|
|
@@ -2669,7 +2676,7 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2669
2676
|
|
|
2670
2677
|
const originalPosition = Cartesian3.clone(
|
|
2671
2678
|
camera.positionWC,
|
|
2672
|
-
tilt3DCartesian3
|
|
2679
|
+
tilt3DCartesian3,
|
|
2673
2680
|
);
|
|
2674
2681
|
|
|
2675
2682
|
if (controller.enableCollisionDetection) {
|
|
@@ -2686,7 +2693,7 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2686
2693
|
Cartesian3.multiplyByScalar(
|
|
2687
2694
|
camera.position,
|
|
2688
2695
|
Math.sqrt(magSqrd),
|
|
2689
|
-
camera.position
|
|
2696
|
+
camera.position,
|
|
2690
2697
|
);
|
|
2691
2698
|
}
|
|
2692
2699
|
|
|
@@ -2694,7 +2701,7 @@ function tilt3DOnTerrain(controller, startPosition, movement) {
|
|
|
2694
2701
|
const axis = Cartesian3.cross(
|
|
2695
2702
|
originalPosition,
|
|
2696
2703
|
camera.position,
|
|
2697
|
-
originalPosition
|
|
2704
|
+
originalPosition,
|
|
2698
2705
|
);
|
|
2699
2706
|
Cartesian3.normalize(axis, axis);
|
|
2700
2707
|
|
|
@@ -2805,17 +2812,17 @@ function look3D(controller, startPosition, movement, rotationAxis) {
|
|
|
2805
2812
|
const direction = camera.direction;
|
|
2806
2813
|
const negativeRotationAxis = Cartesian3.negate(
|
|
2807
2814
|
rotationAxis,
|
|
2808
|
-
look3DNegativeRot
|
|
2815
|
+
look3DNegativeRot,
|
|
2809
2816
|
);
|
|
2810
2817
|
const northParallel = Cartesian3.equalsEpsilon(
|
|
2811
2818
|
direction,
|
|
2812
2819
|
rotationAxis,
|
|
2813
|
-
CesiumMath.EPSILON2
|
|
2820
|
+
CesiumMath.EPSILON2,
|
|
2814
2821
|
);
|
|
2815
2822
|
const southParallel = Cartesian3.equalsEpsilon(
|
|
2816
2823
|
direction,
|
|
2817
2824
|
negativeRotationAxis,
|
|
2818
|
-
CesiumMath.EPSILON2
|
|
2825
|
+
CesiumMath.EPSILON2,
|
|
2819
2826
|
);
|
|
2820
2827
|
if (!northParallel && !southParallel) {
|
|
2821
2828
|
dot = Cartesian3.dot(direction, rotationAxis);
|
|
@@ -2847,7 +2854,7 @@ function update3D(controller) {
|
|
|
2847
2854
|
controller.rotateEventTypes,
|
|
2848
2855
|
spin3D,
|
|
2849
2856
|
controller.inertiaSpin,
|
|
2850
|
-
"_lastInertiaSpinMovement"
|
|
2857
|
+
"_lastInertiaSpinMovement",
|
|
2851
2858
|
);
|
|
2852
2859
|
reactToInput(
|
|
2853
2860
|
controller,
|
|
@@ -2855,7 +2862,7 @@ function update3D(controller) {
|
|
|
2855
2862
|
controller.zoomEventTypes,
|
|
2856
2863
|
zoom3D,
|
|
2857
2864
|
controller.inertiaZoom,
|
|
2858
|
-
"_lastInertiaZoomMovement"
|
|
2865
|
+
"_lastInertiaZoomMovement",
|
|
2859
2866
|
);
|
|
2860
2867
|
reactToInput(
|
|
2861
2868
|
controller,
|
|
@@ -2863,13 +2870,13 @@ function update3D(controller) {
|
|
|
2863
2870
|
controller.tiltEventTypes,
|
|
2864
2871
|
tilt3D,
|
|
2865
2872
|
controller.inertiaSpin,
|
|
2866
|
-
"_lastInertiaTiltMovement"
|
|
2873
|
+
"_lastInertiaTiltMovement",
|
|
2867
2874
|
);
|
|
2868
2875
|
reactToInput(
|
|
2869
2876
|
controller,
|
|
2870
2877
|
controller.enableLook,
|
|
2871
2878
|
controller.lookEventTypes,
|
|
2872
|
-
look3D
|
|
2879
|
+
look3D,
|
|
2873
2880
|
);
|
|
2874
2881
|
}
|
|
2875
2882
|
|
|
@@ -2944,7 +2951,7 @@ function adjustHeightForTerrain(controller, cameraChanged) {
|
|
|
2944
2951
|
Cartesian3.multiplyByScalar(
|
|
2945
2952
|
camera.position,
|
|
2946
2953
|
Math.max(mag, controller.minimumZoomDistance),
|
|
2947
|
-
camera.position
|
|
2954
|
+
camera.position,
|
|
2948
2955
|
);
|
|
2949
2956
|
Cartesian3.normalize(camera.direction, camera.direction);
|
|
2950
2957
|
Cartesian3.cross(camera.direction, camera.up, camera.right);
|
|
@@ -2993,17 +3000,17 @@ ScreenSpaceCameraController.prototype.update = function () {
|
|
|
2993
3000
|
this._minimumCollisionTerrainHeight = VerticalExaggeration.getHeight(
|
|
2994
3001
|
this.minimumCollisionTerrainHeight,
|
|
2995
3002
|
verticalExaggeration,
|
|
2996
|
-
verticalExaggerationRelativeHeight
|
|
3003
|
+
verticalExaggerationRelativeHeight,
|
|
2997
3004
|
);
|
|
2998
3005
|
this._minimumPickingTerrainHeight = VerticalExaggeration.getHeight(
|
|
2999
3006
|
this.minimumPickingTerrainHeight,
|
|
3000
3007
|
verticalExaggeration,
|
|
3001
|
-
verticalExaggerationRelativeHeight
|
|
3008
|
+
verticalExaggerationRelativeHeight,
|
|
3002
3009
|
);
|
|
3003
3010
|
this._minimumTrackBallHeight = VerticalExaggeration.getHeight(
|
|
3004
3011
|
this.minimumTrackBallHeight,
|
|
3005
3012
|
verticalExaggeration,
|
|
3006
|
-
verticalExaggerationRelativeHeight
|
|
3013
|
+
verticalExaggerationRelativeHeight,
|
|
3007
3014
|
);
|
|
3008
3015
|
|
|
3009
3016
|
this._cameraUnderground = scene.cameraUnderground && defined(this._globe);
|
|
@@ -3015,11 +3022,11 @@ ScreenSpaceCameraController.prototype.update = function () {
|
|
|
3015
3022
|
this._adjustedHeightForTerrain = false;
|
|
3016
3023
|
const previousPosition = Cartesian3.clone(
|
|
3017
3024
|
camera.positionWC,
|
|
3018
|
-
scratchPreviousPosition
|
|
3025
|
+
scratchPreviousPosition,
|
|
3019
3026
|
);
|
|
3020
3027
|
const previousDirection = Cartesian3.clone(
|
|
3021
3028
|
camera.directionWC,
|
|
3022
|
-
scratchPreviousDirection
|
|
3029
|
+
scratchPreviousDirection,
|
|
3023
3030
|
);
|
|
3024
3031
|
|
|
3025
3032
|
if (mode === SceneMode.SCENE2D) {
|