@cesium/engine 9.2.0 → 10.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-GOQEANLM.js → chunk-2GEAGYUY.js} +13 -13
- package/Build/Workers/{chunk-WOYQB5HM.js → chunk-2J3JKXCP.js} +5 -5
- package/Build/Workers/{chunk-IXYFH7DV.js → chunk-3WUV74WM.js} +2 -2
- package/Build/Workers/{chunk-WHDEZSAL.js → chunk-4MSUJ4I7.js} +8 -8
- package/Build/Workers/chunk-4RMIRG6T.js +1800 -0
- package/Build/Workers/{chunk-CVCVMOQA.js → chunk-4VFBBNQ3.js} +1 -1
- package/Build/Workers/{chunk-ZHJDE6JN.js → chunk-4YSNMHZ4.js} +6 -6
- package/Build/Workers/{chunk-YGNQJ4YI.js → chunk-5BLJ5ZM6.js} +5 -5
- package/Build/Workers/{chunk-4RG6WOXH.js → chunk-5KWHSZYL.js} +11 -11
- package/Build/Workers/{chunk-BBBTT36L.js → chunk-5O6JWQ4E.js} +14 -14
- package/Build/Workers/{chunk-GX2BWBN2.js → chunk-65MZOUNU.js} +14 -14
- package/Build/Workers/{chunk-K5F23SZO.js → chunk-6D66DPRV.js} +7 -7
- package/Build/Workers/{chunk-2TRB253J.js → chunk-6OFDHMHR.js} +7 -7
- package/Build/Workers/{chunk-U6MTSO6A.js → chunk-76BYYG7N.js} +424 -449
- package/Build/Workers/{chunk-3PV5HQ2R.js → chunk-A5CODJ4M.js} +6 -6
- package/Build/Workers/{chunk-IF2OX6R4.js → chunk-AA4GZKOT.js} +1 -1
- package/Build/Workers/{chunk-OYP23VAL.js → chunk-ACRTCBN5.js} +11 -11
- package/Build/Workers/chunk-B75IEX2S.js +390 -0
- package/Build/Workers/{chunk-EODIOQ35.js → chunk-BAVI3ZS2.js} +1 -1
- package/Build/Workers/{chunk-CFBGPZU6.js → chunk-BBDZYSZB.js} +10 -10
- package/Build/Workers/{chunk-LZFFO4KB.js → chunk-BGE4QVG7.js} +12 -12
- package/Build/Workers/chunk-BY3E4ONI.js +456 -0
- package/Build/Workers/{chunk-RDR4KVPA.js → chunk-C3Z23UUJ.js} +18 -18
- package/Build/Workers/{chunk-I6CW7ZE5.js → chunk-C45MU4GZ.js} +10 -8
- package/Build/Workers/chunk-CF7P7K7E.js +684 -0
- package/Build/Workers/{chunk-KTZK2UDR.js → chunk-D2U4RI64.js} +7 -7
- package/Build/Workers/{chunk-QZIWFSRM.js → chunk-D4K27X2M.js} +4 -4
- package/Build/Workers/{chunk-UYKG3UFK.js → chunk-DKVHRNFY.js} +5 -5
- package/Build/Workers/{chunk-5OK5JFDP.js → chunk-EB7PNZTK.js} +5 -5
- package/Build/Workers/{chunk-7PFZ4Z7C.js → chunk-ELI4BUOT.js} +11 -9
- package/Build/Workers/chunk-F3NDOSTZ.js +963 -0
- package/Build/Workers/{chunk-3VDHTBY5.js → chunk-FDCLACT5.js} +10 -10
- package/Build/Workers/{chunk-BNT2SNWU.js → chunk-FEVVHITK.js} +4 -4
- package/Build/Workers/{chunk-7HLZRYGD.js → chunk-FOZWUH4T.js} +7 -7
- package/Build/Workers/chunk-FQPSOOPH.js +258 -0
- package/Build/Workers/{chunk-A5CSB5ZE.js → chunk-G5V4GPZE.js} +9 -9
- package/Build/Workers/{chunk-TDIGL45B.js → chunk-GNHZH7HP.js} +1 -1
- package/Build/Workers/{chunk-26NE4LRW.js → chunk-GPJR7MPQ.js} +11 -8
- package/Build/Workers/chunk-GWT64LKY.js +171 -0
- package/Build/Workers/{chunk-PUQR43HZ.js → chunk-HGEEOMSC.js} +6 -6
- package/Build/Workers/{chunk-SC3TBKST.js → chunk-I2RC4XVN.js} +4 -4
- package/Build/Workers/chunk-IUROUBPA.js +300 -0
- package/Build/Workers/{chunk-G7IAO7CW.js → chunk-J7MQUQJY.js} +7 -7
- package/Build/Workers/chunk-JNLWLSTP.js +476 -0
- package/Build/Workers/{chunk-TP4FFUAH.js → chunk-JYQNWIQQ.js} +2 -2
- package/Build/Workers/{chunk-RRUO4QEK.js → chunk-KUN2ZA5X.js} +4 -4
- package/Build/Workers/chunk-KV4EQHK4.js +1477 -0
- package/Build/Workers/chunk-LSSWVB2X.js +138 -0
- package/Build/Workers/{chunk-EJZVBTX4.js → chunk-LXQ5QAEJ.js} +6 -6
- package/Build/Workers/chunk-MBZH7YZ7.js +945 -0
- package/Build/Workers/{chunk-WP3LCUOE.js → chunk-MKXWJTFQ.js} +13 -13
- package/Build/Workers/{chunk-AROLUUGS.js → chunk-MMV6TO3P.js} +2 -2
- package/Build/Workers/{chunk-ETC45PHH.js → chunk-MSKXMXJI.js} +4 -4
- package/Build/Workers/chunk-N4QEHO3U.js +75 -0
- package/Build/Workers/chunk-NVOABL76.js +100 -0
- package/Build/Workers/chunk-OAPA2RTG.js +239 -0
- package/Build/Workers/{chunk-PHT53MCH.js → chunk-OE4MCOC7.js} +13 -13
- package/Build/Workers/chunk-OJF4RTJG.js +634 -0
- package/Build/Workers/{chunk-UICVDDCQ.js → chunk-OOK53QUQ.js} +1 -1
- package/Build/Workers/{chunk-W4OS542B.js → chunk-OOMCT7OL.js} +13 -13
- package/Build/Workers/{chunk-YGTWKLFY.js → chunk-OWGTMVDB.js} +19 -19
- package/Build/Workers/{chunk-GUFV24F4.js → chunk-OXALEQPI.js} +61 -17
- package/Build/Workers/chunk-OXSI7N4C.js +768 -0
- package/Build/Workers/{chunk-26XJDV3D.js → chunk-PNFHVBSF.js} +15 -15
- package/Build/Workers/chunk-POSRARY7.js +834 -0
- package/Build/Workers/{chunk-GX5LMUGZ.js → chunk-PYHLO636.js} +42 -13
- package/Build/Workers/chunk-Q55ECN3Y.js +37 -0
- package/Build/Workers/chunk-QD4KM3GO.js +138 -0
- package/Build/Workers/chunk-QMLTCCYG.js +55 -0
- package/Build/Workers/chunk-QX5XS4LC.js +101 -0
- package/Build/Workers/{chunk-UKJCFXVV.js → chunk-QYQIVZBU.js} +6 -6
- package/Build/Workers/chunk-R3TKLC6E.js +1075 -0
- package/Build/Workers/chunk-R4OIEIPE.js +500 -0
- package/Build/Workers/chunk-R4ZEWO4I.js +122 -0
- package/Build/Workers/chunk-R6B7UCQB.js +44 -0
- package/Build/Workers/chunk-RCK55EDX.js +691 -0
- package/Build/Workers/chunk-RHBWXX7C.js +629 -0
- package/Build/Workers/chunk-RZLZWKFN.js +305 -0
- package/Build/Workers/{chunk-DIVFF6DK.js → chunk-S3PI2KFM.js} +2 -2
- package/Build/Workers/chunk-SAPFXU5X.js +102 -0
- package/Build/Workers/chunk-T6LPN7RI.js +2857 -0
- package/Build/Workers/{chunk-U2LSTOMA.js → chunk-T77JILCU.js} +2 -2
- package/Build/Workers/chunk-TBBFDFCS.js +368 -0
- package/Build/Workers/chunk-TF776XCO.js +1258 -0
- package/Build/Workers/chunk-TGY6H6N6.js +163 -0
- package/Build/Workers/{chunk-RTIT7UDN.js → chunk-TO2PVHKI.js} +2 -2
- package/Build/Workers/chunk-UCIPJSZX.js +398 -0
- package/Build/Workers/chunk-UOEUCKKU.js +59 -0
- package/Build/Workers/chunk-VE7BFUIX.js +39 -0
- package/Build/Workers/chunk-VFBNELXB.js +353 -0
- package/Build/Workers/chunk-VRZ46QZ5.js +781 -0
- package/Build/Workers/chunk-VYWUFRRR.js +1052 -0
- package/Build/Workers/chunk-WVSELU6O.js +2716 -0
- package/Build/Workers/chunk-X23FRWHJ.js +117 -0
- package/Build/Workers/chunk-X2ZQ7RJR.js +287 -0
- package/Build/Workers/chunk-X43SJLQL.js +10364 -0
- package/Build/Workers/chunk-XLTOBCDI.js +220 -0
- package/Build/Workers/chunk-XQI7XZHX.js +196 -0
- package/Build/Workers/chunk-XUOJCLOH.js +511 -0
- package/Build/Workers/chunk-XZZNKIEV.js +157 -0
- package/Build/Workers/chunk-YLYBLJ3Y.js +73 -0
- package/Build/Workers/chunk-ZEE2EIFD.js +430 -0
- package/Build/Workers/chunk-ZIKGV7EL.js +58 -0
- package/Build/Workers/chunk-ZU334IDQ.js +421 -0
- package/Build/Workers/combineGeometry.js +22 -22
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +29 -25
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +32 -32
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +27 -27
- 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 +22 -22
- package/Build/Workers/createGroundPolylineGeometry.js +24 -24
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +30 -30
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +26 -26
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +22 -22
- 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 +20 -20
- package/Build/Workers/createVerticesFromHeightmap.js +21 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/Build/Workers/createWallGeometry.js +23 -23
- package/Build/Workers/createWallOutlineGeometry.js +22 -22
- 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 +8 -11
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/ApproximateTerrainHeights.js +4 -4
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +12 -8
- package/Source/Core/BoundingRectangle.js +2 -0
- package/Source/Core/BoundingSphere.js +4 -2
- package/Source/Core/Cartesian3.js +13 -10
- package/Source/Core/Cartographic.js +11 -8
- package/Source/Core/CesiumTerrainProvider.js +3 -2
- package/Source/Core/CircleGeometry.js +6 -2
- package/Source/Core/CircleOutlineGeometry.js +1 -1
- package/Source/Core/CoplanarPolygonGeometry.js +3 -3
- package/Source/Core/CorridorGeometry.js +4 -4
- package/Source/Core/CorridorOutlineGeometry.js +2 -2
- package/Source/Core/Credit.js +3 -2
- package/Source/Core/CustomHeightmapTerrainProvider.js +17 -3
- package/Source/Core/EllipseGeometry.js +4 -4
- package/Source/Core/EllipseOutlineGeometry.js +2 -2
- package/Source/Core/Ellipsoid.js +34 -0
- package/Source/Core/EllipsoidGeodesic.js +2 -2
- package/Source/Core/EllipsoidRhumbLine.js +4 -4
- package/Source/Core/EllipsoidTangentPlane.js +3 -3
- package/Source/Core/EllipsoidTerrainProvider.js +3 -3
- package/Source/Core/GeographicProjection.js +4 -3
- package/Source/Core/GeographicTilingScheme.js +3 -3
- package/Source/Core/GeometryPipeline.js +2 -2
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -1
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/GroundPolylineGeometry.js +1 -1
- package/Source/Core/HeightmapTessellator.js +2 -2
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/Occluder.js +3 -3
- package/Source/Core/OrientedBoundingBox.js +2 -2
- package/Source/Core/PolygonGeometry.js +4 -4
- package/Source/Core/PolygonGeometryLibrary.js +1 -1
- package/Source/Core/PolygonOutlineGeometry.js +3 -3
- package/Source/Core/PolygonPipeline.js +2 -2
- package/Source/Core/PolylineGeometry.js +2 -2
- package/Source/Core/PolylinePipeline.js +6 -6
- package/Source/Core/PolylineVolumeGeometry.js +2 -2
- package/Source/Core/PolylineVolumeOutlineGeometry.js +2 -2
- package/Source/Core/Rectangle.js +6 -6
- package/Source/Core/RectangleGeometry.js +6 -6
- package/Source/Core/RectangleGeometryLibrary.js +3 -0
- package/Source/Core/RectangleOutlineGeometry.js +2 -2
- package/Source/Core/Simon1994PlanetaryPositions.js +4 -2
- package/Source/Core/SimplePolylineGeometry.js +2 -2
- package/Source/Core/Stereographic.js +2 -2
- package/Source/Core/Transforms.js +154 -19
- package/Source/Core/VRTheWorldTerrainProvider.js +2 -2
- package/Source/Core/WallGeometry.js +3 -3
- package/Source/Core/WallOutlineGeometry.js +3 -3
- package/Source/Core/WebMercatorTilingScheme.js +3 -3
- package/Source/Core/createWorldTerrainAsync.js +2 -0
- package/Source/DataSources/BillboardGraphics.js +16 -0
- package/Source/DataSources/BillboardVisualizer.js +7 -0
- package/Source/DataSources/BoxGeometryUpdater.js +2 -2
- package/Source/DataSources/CylinderGeometryUpdater.js +2 -2
- package/Source/DataSources/CzmlDataSource.js +8 -8
- package/Source/DataSources/EllipsoidGeometryUpdater.js +3 -3
- package/Source/DataSources/EntityCluster.js +1 -1
- package/Source/DataSources/EntityView.js +2 -2
- package/Source/DataSources/KmlDataSource.js +4 -4
- package/Source/DataSources/ModelVisualizer.js +1 -2
- package/Source/DataSources/PathVisualizer.js +4 -4
- package/Source/DataSources/PointGraphics.js +17 -0
- package/Source/DataSources/PointVisualizer.js +12 -0
- package/Source/DataSources/PolygonGeometryUpdater.js +1 -1
- package/Source/DataSources/PolylineGeometryUpdater.js +3 -2
- package/Source/DataSources/PositionProperty.js +4 -7
- package/Source/DataSources/RectangleGeometryUpdater.js +1 -1
- package/Source/DataSources/ScaledPositionProperty.js +2 -2
- package/Source/DataSources/TerrainOffsetProperty.js +3 -7
- package/Source/DataSources/VelocityOrientationProperty.js +2 -2
- package/Source/DataSources/exportKml.js +2 -2
- package/Source/Renderer/AutomaticUniforms.js +1 -1
- package/Source/Renderer/UniformState.js +6 -12
- package/Source/Scene/ArcGisMapServerImageryProvider.js +2 -2
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +35 -6
- package/Source/Scene/BillboardCollection.js +49 -0
- package/Source/Scene/BingMapsImageryProvider.js +11 -2
- package/Source/Scene/Camera.js +16 -10
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClippingPolygon.js +2 -2
- package/Source/Scene/ClippingPolygonCollection.js +1 -1
- package/Source/Scene/CreditDisplay.js +94 -104
- package/Source/Scene/Globe.js +16 -13
- package/Source/Scene/GltfLoaderUtil.js +2 -4
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +1 -1
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +1 -1
- package/Source/Scene/GridImageryProvider.js +2 -2
- package/Source/Scene/ImageBasedLighting.js +2 -2
- package/Source/Scene/ImageryLayerCollection.js +2 -2
- package/Source/Scene/MapboxImageryProvider.js +1 -1
- package/Source/Scene/MapboxStyleImageryProvider.js +1 -1
- package/Source/Scene/MetadataSemantic.js +4 -4
- package/Source/Scene/Model/InstancingPipelineStage.js +3 -3
- package/Source/Scene/Model/MaterialPipelineStage.js +49 -0
- package/Source/Scene/Model/Model.js +8 -5
- package/Source/Scene/Model/ModelSceneGraph.js +1 -1
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +3 -3
- package/Source/Scene/Model/pickModel.js +2 -2
- package/Source/Scene/ModelComponents.js +9 -0
- package/Source/Scene/OctahedralProjectedCubeMap.js +5 -6
- package/Source/Scene/Picking.js +4 -13
- package/Source/Scene/PointPrimitive.js +33 -4
- package/Source/Scene/PointPrimitiveCollection.js +22 -9
- package/Source/Scene/Scene.js +39 -31
- package/Source/Scene/SceneTransforms.js +78 -20
- package/Source/Scene/SceneTransitioner.js +2 -2
- package/Source/Scene/ScreenSpaceCameraController.js +29 -19
- package/Source/Scene/SkyBox.js +26 -0
- package/Source/Scene/Sun.js +1 -1
- package/Source/Shaders/BillboardCollectionFS.glsl +4 -0
- package/Source/Shaders/BillboardCollectionFS.js +4 -0
- package/Source/Shaders/BillboardCollectionVS.glsl +3 -1
- package/Source/Shaders/BillboardCollectionVS.js +3 -1
- package/Source/Shaders/BrdfLutGeneratorFS.glsl +30 -13
- package/Source/Shaders/BrdfLutGeneratorFS.js +30 -13
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -2
- package/Source/Shaders/Builtin/Functions/ellipsoidTextureCoordinates.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/{ellipsoidWgs84TextureCoordinates.js → ellipsoidTextureCoordinates.js} +3 -3
- package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +40 -39
- package/Source/Shaders/Builtin/Functions/pbrLighting.js +40 -39
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.js +1 -1
- package/Source/Shaders/Builtin/Structs/materialInput.glsl +1 -1
- package/Source/Shaders/Builtin/Structs/materialInput.js +1 -1
- package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +2 -0
- package/Source/Shaders/Builtin/Structs/modelMaterial.js +2 -0
- package/Source/Shaders/EllipsoidFS.glsl +1 -1
- package/Source/Shaders/EllipsoidFS.js +1 -1
- package/Source/Shaders/GlobeFS.glsl +2 -2
- package/Source/Shaders/GlobeFS.js +2 -2
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +23 -23
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +23 -23
- package/Source/Shaders/Model/LightingStageFS.glsl +6 -5
- package/Source/Shaders/Model/LightingStageFS.js +6 -5
- package/Source/Shaders/Model/MaterialStageFS.glsl +31 -26
- package/Source/Shaders/Model/MaterialStageFS.js +31 -26
- package/Source/Shaders/PointPrimitiveCollectionFS.glsl +4 -0
- package/Source/Shaders/PointPrimitiveCollectionFS.js +4 -0
- package/Source/Shaders/PointPrimitiveCollectionVS.glsl +9 -7
- package/Source/Shaders/PointPrimitiveCollectionVS.js +9 -7
- package/Source/Widget/CesiumWidget.css +0 -5
- package/Source/Widget/CesiumWidget.js +29 -28
- package/index.d.ts +254 -117
- package/index.js +45 -45
- package/package.json +4 -4
- package/Source/Shaders/Builtin/Functions/ellipsoidWgs84TextureCoordinates.glsl +0 -10
|
@@ -29,6 +29,7 @@ import createPropertyDescriptor from "./createPropertyDescriptor.js";
|
|
|
29
29
|
* @property {Property | BoundingRectangle} [imageSubRegion] A Property specifying a {@link BoundingRectangle} that defines a sub-region of the image to use for the billboard, rather than the entire image, measured in pixels from the bottom-left.
|
|
30
30
|
* @property {Property | DistanceDisplayCondition} [distanceDisplayCondition] A Property specifying at what distance from the camera that this billboard will be displayed.
|
|
31
31
|
* @property {Property | number} [disableDepthTestDistance] A Property specifying the distance from the camera at which to disable the depth test to.
|
|
32
|
+
* @property {Property | SplitDirection} [splitDirection] A Property specifying the {@link SplitDirection} of the billboard.
|
|
32
33
|
*/
|
|
33
34
|
|
|
34
35
|
/**
|
|
@@ -89,6 +90,8 @@ function BillboardGraphics(options) {
|
|
|
89
90
|
this._distanceDisplayConditionSubscription = undefined;
|
|
90
91
|
this._disableDepthTestDistance = undefined;
|
|
91
92
|
this._disableDepthTestDistanceSubscription = undefined;
|
|
93
|
+
this._splitDirection = undefined;
|
|
94
|
+
this._splitDirectionSubscription = undefined;
|
|
92
95
|
|
|
93
96
|
this.merge(defaultValue(options, defaultValue.EMPTY_OBJECT));
|
|
94
97
|
}
|
|
@@ -330,6 +333,14 @@ Object.defineProperties(BillboardGraphics.prototype, {
|
|
|
330
333
|
disableDepthTestDistance: createPropertyDescriptor(
|
|
331
334
|
"disableDepthTestDistance"
|
|
332
335
|
),
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Gets or sets the Property specifying the {@link SplitDirection} of this billboard.
|
|
339
|
+
* @memberof BillboardGraphics.prototype
|
|
340
|
+
* @type {Property|undefined}
|
|
341
|
+
* @default SplitDirection.NONE
|
|
342
|
+
*/
|
|
343
|
+
splitDirection: createPropertyDescriptor("splitDirection"),
|
|
333
344
|
});
|
|
334
345
|
|
|
335
346
|
/**
|
|
@@ -362,6 +373,7 @@ BillboardGraphics.prototype.clone = function (result) {
|
|
|
362
373
|
result.imageSubRegion = this._imageSubRegion;
|
|
363
374
|
result.distanceDisplayCondition = this._distanceDisplayCondition;
|
|
364
375
|
result.disableDepthTestDistance = this._disableDepthTestDistance;
|
|
376
|
+
result.splitDirection = this._splitDirection;
|
|
365
377
|
return result;
|
|
366
378
|
};
|
|
367
379
|
|
|
@@ -425,5 +437,9 @@ BillboardGraphics.prototype.merge = function (source) {
|
|
|
425
437
|
this._disableDepthTestDistance,
|
|
426
438
|
source.disableDepthTestDistance
|
|
427
439
|
);
|
|
440
|
+
this.splitDirection = defaultValue(
|
|
441
|
+
this.splitDirection,
|
|
442
|
+
source.splitDirection
|
|
443
|
+
);
|
|
428
444
|
};
|
|
429
445
|
export default BillboardGraphics;
|
|
@@ -13,6 +13,7 @@ import HorizontalOrigin from "../Scene/HorizontalOrigin.js";
|
|
|
13
13
|
import VerticalOrigin from "../Scene/VerticalOrigin.js";
|
|
14
14
|
import BoundingSphereState from "./BoundingSphereState.js";
|
|
15
15
|
import Property from "./Property.js";
|
|
16
|
+
import SplitDirection from "../Scene/SplitDirection.js";
|
|
16
17
|
|
|
17
18
|
const defaultColor = Color.WHITE;
|
|
18
19
|
const defaultEyeOffset = Cartesian3.ZERO;
|
|
@@ -24,6 +25,7 @@ const defaultAlignedAxis = Cartesian3.ZERO;
|
|
|
24
25
|
const defaultHorizontalOrigin = HorizontalOrigin.CENTER;
|
|
25
26
|
const defaultVerticalOrigin = VerticalOrigin.CENTER;
|
|
26
27
|
const defaultSizeInMeters = false;
|
|
28
|
+
const defaultSplitDirection = SplitDirection.NONE;
|
|
27
29
|
|
|
28
30
|
const positionScratch = new Cartesian3();
|
|
29
31
|
const colorScratch = new Color();
|
|
@@ -219,6 +221,11 @@ BillboardVisualizer.prototype.update = function (time) {
|
|
|
219
221
|
billboardGraphics._disableDepthTestDistance,
|
|
220
222
|
time
|
|
221
223
|
);
|
|
224
|
+
billboard.splitDirection = Property.getValueOrDefault(
|
|
225
|
+
billboardGraphics._splitDirection,
|
|
226
|
+
time,
|
|
227
|
+
defaultSplitDirection
|
|
228
|
+
);
|
|
222
229
|
|
|
223
230
|
const subRegion = Property.getValueOrUndefined(
|
|
224
231
|
billboardGraphics._imageSubRegion,
|
|
@@ -147,7 +147,7 @@ BoxGeometryUpdater.prototype.createFillGeometryInstance = function (time) {
|
|
|
147
147
|
time,
|
|
148
148
|
entity.box.heightReference,
|
|
149
149
|
this._options.dimensions.z * 0.5,
|
|
150
|
-
this._scene.
|
|
150
|
+
this._scene.ellipsoid
|
|
151
151
|
),
|
|
152
152
|
attributes: attributes,
|
|
153
153
|
});
|
|
@@ -215,7 +215,7 @@ BoxGeometryUpdater.prototype.createOutlineGeometryInstance = function (time) {
|
|
|
215
215
|
time,
|
|
216
216
|
entity.box.heightReference,
|
|
217
217
|
this._options.dimensions.z * 0.5,
|
|
218
|
-
this._scene.
|
|
218
|
+
this._scene.ellipsoid
|
|
219
219
|
),
|
|
220
220
|
attributes: attributes,
|
|
221
221
|
});
|
|
@@ -157,7 +157,7 @@ CylinderGeometryUpdater.prototype.createFillGeometryInstance = function (time) {
|
|
|
157
157
|
time,
|
|
158
158
|
entity.cylinder.heightReference,
|
|
159
159
|
this._options.length * 0.5,
|
|
160
|
-
this._scene.
|
|
160
|
+
this._scene.ellipsoid
|
|
161
161
|
),
|
|
162
162
|
attributes: attributes,
|
|
163
163
|
});
|
|
@@ -227,7 +227,7 @@ CylinderGeometryUpdater.prototype.createOutlineGeometryInstance = function (
|
|
|
227
227
|
time,
|
|
228
228
|
entity.cylinder.heightReference,
|
|
229
229
|
this._options.length * 0.5,
|
|
230
|
-
this._scene.
|
|
230
|
+
this._scene.ellipsoid
|
|
231
231
|
),
|
|
232
232
|
attributes: attributes,
|
|
233
233
|
});
|
|
@@ -279,7 +279,7 @@ function convertCartographicRadiansToCartesian(cartographicRadians) {
|
|
|
279
279
|
scratchCartographic.longitude = cartographicRadians[0];
|
|
280
280
|
scratchCartographic.latitude = cartographicRadians[1];
|
|
281
281
|
scratchCartographic.height = cartographicRadians[2];
|
|
282
|
-
Ellipsoid.
|
|
282
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
283
283
|
scratchCartographic,
|
|
284
284
|
scratchCartesian
|
|
285
285
|
);
|
|
@@ -293,7 +293,7 @@ function convertCartographicRadiansToCartesian(cartographicRadians) {
|
|
|
293
293
|
scratchCartographic.longitude = cartographicRadians[i + 1];
|
|
294
294
|
scratchCartographic.latitude = cartographicRadians[i + 2];
|
|
295
295
|
scratchCartographic.height = cartographicRadians[i + 3];
|
|
296
|
-
Ellipsoid.
|
|
296
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
297
297
|
scratchCartographic,
|
|
298
298
|
scratchCartesian
|
|
299
299
|
);
|
|
@@ -313,7 +313,7 @@ function convertCartographicDegreesToCartesian(cartographicDegrees) {
|
|
|
313
313
|
);
|
|
314
314
|
scratchCartographic.latitude = CesiumMath.toRadians(cartographicDegrees[1]);
|
|
315
315
|
scratchCartographic.height = cartographicDegrees[2];
|
|
316
|
-
Ellipsoid.
|
|
316
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
317
317
|
scratchCartographic,
|
|
318
318
|
scratchCartesian
|
|
319
319
|
);
|
|
@@ -331,7 +331,7 @@ function convertCartographicDegreesToCartesian(cartographicDegrees) {
|
|
|
331
331
|
cartographicDegrees[i + 2]
|
|
332
332
|
);
|
|
333
333
|
scratchCartographic.height = cartographicDegrees[i + 3];
|
|
334
|
-
Ellipsoid.
|
|
334
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
335
335
|
scratchCartographic,
|
|
336
336
|
scratchCartesian
|
|
337
337
|
);
|
|
@@ -1828,12 +1828,12 @@ function processPositionArrayPacketData(
|
|
|
1828
1828
|
} else if (defined(packetData.cartographicRadians)) {
|
|
1829
1829
|
packetData.array = Cartesian3.fromRadiansArrayHeights(
|
|
1830
1830
|
packetData.cartographicRadians,
|
|
1831
|
-
Ellipsoid.
|
|
1831
|
+
Ellipsoid.default
|
|
1832
1832
|
);
|
|
1833
1833
|
} else if (defined(packetData.cartographicDegrees)) {
|
|
1834
1834
|
packetData.array = Cartesian3.fromDegreesArrayHeights(
|
|
1835
1835
|
packetData.cartographicDegrees,
|
|
1836
|
-
Ellipsoid.
|
|
1836
|
+
Ellipsoid.default
|
|
1837
1837
|
);
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
@@ -1885,11 +1885,11 @@ function unpackCartesianArray(array) {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
1887
1887
|
function unpackCartographicRadiansArray(array) {
|
|
1888
|
-
return Cartesian3.fromRadiansArrayHeights(array, Ellipsoid.
|
|
1888
|
+
return Cartesian3.fromRadiansArrayHeights(array, Ellipsoid.default);
|
|
1889
1889
|
}
|
|
1890
1890
|
|
|
1891
1891
|
function unpackCartographicDegreesArray(array) {
|
|
1892
|
-
return Cartesian3.fromDegreesArrayHeights(array, Ellipsoid.
|
|
1892
|
+
return Cartesian3.fromDegreesArrayHeights(array, Ellipsoid.default);
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
function processPositionArrayOfArraysPacketData(
|
|
@@ -178,7 +178,7 @@ EllipsoidGeometryUpdater.prototype.createFillGeometryInstance = function (
|
|
|
178
178
|
time,
|
|
179
179
|
entity.ellipsoid.heightReference,
|
|
180
180
|
this._options.radii.z * 0.5,
|
|
181
|
-
this._scene.
|
|
181
|
+
this._scene.ellipsoid,
|
|
182
182
|
modelMatrixResult
|
|
183
183
|
),
|
|
184
184
|
attributes: attributes,
|
|
@@ -250,7 +250,7 @@ EllipsoidGeometryUpdater.prototype.createOutlineGeometryInstance = function (
|
|
|
250
250
|
time,
|
|
251
251
|
entity.ellipsoid.heightReference,
|
|
252
252
|
this._options.radii.z * 0.5,
|
|
253
|
-
this._scene.
|
|
253
|
+
this._scene.ellipsoid,
|
|
254
254
|
modelMatrixResult
|
|
255
255
|
),
|
|
256
256
|
attributes: attributes,
|
|
@@ -413,7 +413,7 @@ DynamicEllipsoidGeometryUpdater.prototype.update = function (time) {
|
|
|
413
413
|
time,
|
|
414
414
|
ellipsoid.heightReference,
|
|
415
415
|
radii.z * 0.5,
|
|
416
|
-
this._scene.
|
|
416
|
+
this._scene.ellipsoid,
|
|
417
417
|
this._modelMatrix
|
|
418
418
|
)
|
|
419
419
|
: undefined;
|
|
@@ -280,7 +280,7 @@ function createDeclutterCallback(entityCluster) {
|
|
|
280
280
|
const previousHeight = entityCluster._previousHeight;
|
|
281
281
|
const currentHeight = scene.camera.positionCartographic.height;
|
|
282
282
|
|
|
283
|
-
const ellipsoid = scene.
|
|
283
|
+
const ellipsoid = scene.ellipsoid;
|
|
284
284
|
const cameraPosition = scene.camera.positionWC;
|
|
285
285
|
const occluder = new EllipsoidalOccluder(ellipsoid, cameraPosition);
|
|
286
286
|
|
|
@@ -277,7 +277,7 @@ function updateTransform(
|
|
|
277
277
|
*
|
|
278
278
|
* @param {Entity} entity The entity to track with the camera.
|
|
279
279
|
* @param {Scene} scene The scene to use.
|
|
280
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
280
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid to use for orienting the camera.
|
|
281
281
|
*/
|
|
282
282
|
function EntityView(entity, scene, ellipsoid) {
|
|
283
283
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -301,7 +301,7 @@ function EntityView(entity, scene, ellipsoid) {
|
|
|
301
301
|
* The ellipsoid to use for orienting the camera.
|
|
302
302
|
* @type {Ellipsoid}
|
|
303
303
|
*/
|
|
304
|
-
this.ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
304
|
+
this.ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
307
|
* The bounding sphere of the object.
|
|
@@ -3545,7 +3545,7 @@ function load(dataSource, entityCollection, data, options) {
|
|
|
3545
3545
|
*
|
|
3546
3546
|
* @property {string} [sourceUri] Overrides the url to use for resolving relative links and other KML network features.
|
|
3547
3547
|
* @property {boolean} [clampToGround=false] true if we want the geometry features (Polygons, LineStrings and LinearRings) clamped to the ground.
|
|
3548
|
-
* @property {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
3548
|
+
* @property {Ellipsoid} [ellipsoid=Ellipsoid.default] The global ellipsoid used for geographical calculations.
|
|
3549
3549
|
* @property {Element|string} [screenOverlayContainer] A container for ScreenOverlay images.
|
|
3550
3550
|
*/
|
|
3551
3551
|
|
|
@@ -3560,7 +3560,7 @@ function load(dataSource, entityCollection, data, options) {
|
|
|
3560
3560
|
*
|
|
3561
3561
|
* @property {string} [sourceUri] Overrides the url to use for resolving relative links and other KML network features.
|
|
3562
3562
|
* @property {boolean} [clampToGround=false] true if we want the geometry features (Polygons, LineStrings and LinearRings) clamped to the ground.
|
|
3563
|
-
* @property {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
3563
|
+
* @property {Ellipsoid} [ellipsoid=Ellipsoid.default] The global ellipsoid used for geographical calculations.
|
|
3564
3564
|
* @property {Element|string} [screenOverlayContainer] A container for ScreenOverlay images.
|
|
3565
3565
|
|
|
3566
3566
|
*/
|
|
@@ -3647,7 +3647,7 @@ function KmlDataSource(options) {
|
|
|
3647
3647
|
: Rectangle.clone(Rectangle.MAX_VALUE),
|
|
3648
3648
|
};
|
|
3649
3649
|
|
|
3650
|
-
this._ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
3650
|
+
this._ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
3651
3651
|
|
|
3652
3652
|
// User specified credit
|
|
3653
3653
|
let credit = options.credit;
|
|
@@ -4204,7 +4204,7 @@ KmlDataSource.prototype.update = function (time) {
|
|
|
4204
4204
|
const href = networkLink.href.clone();
|
|
4205
4205
|
|
|
4206
4206
|
href.setQueryParameters(networkLink.cookie);
|
|
4207
|
-
const ellipsoid = defaultValue(that._ellipsoid, Ellipsoid.
|
|
4207
|
+
const ellipsoid = defaultValue(that._ellipsoid, Ellipsoid.default);
|
|
4208
4208
|
processNetworkLinkQueryString(
|
|
4209
4209
|
href,
|
|
4210
4210
|
that.camera,
|
|
@@ -441,8 +441,7 @@ ModelVisualizer.prototype.getBoundingSphere = function (entity, result) {
|
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
const scene = this._scene;
|
|
444
|
-
const
|
|
445
|
-
const ellipsoid = defaultValue(globe?.ellipsoid, Ellipsoid.WGS84);
|
|
444
|
+
const ellipsoid = defaultValue(scene.ellipsoid, Ellipsoid.default);
|
|
446
445
|
|
|
447
446
|
const hasHeightReference = model.heightReference !== HeightReference.NONE;
|
|
448
447
|
if (hasHeightReference) {
|
|
@@ -430,10 +430,10 @@ function PolylineUpdater(scene, referenceFrame) {
|
|
|
430
430
|
|
|
431
431
|
PolylineUpdater.prototype.update = function (time) {
|
|
432
432
|
if (this._referenceFrame === ReferenceFrame.INERTIAL) {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
433
|
+
const toFixed = Transforms.computeIcrfToCentralBodyFixedMatrix(
|
|
434
|
+
time,
|
|
435
|
+
toFixedScratch
|
|
436
|
+
);
|
|
437
437
|
Matrix4.fromRotationTranslation(
|
|
438
438
|
toFixed,
|
|
439
439
|
Cartesian3.ZERO,
|
|
@@ -19,6 +19,7 @@ import createPropertyDescriptor from "./createPropertyDescriptor.js";
|
|
|
19
19
|
* @property {Property | NearFarScalar} [translucencyByDistance] A {@link NearFarScalar} Property used to set translucency based on distance from the camera.
|
|
20
20
|
* @property {Property | DistanceDisplayCondition} [distanceDisplayCondition] A Property specifying at what distance from the camera that this point will be displayed.
|
|
21
21
|
* @property {Property | number} [disableDepthTestDistance] A Property specifying the distance from the camera at which to disable the depth test to.
|
|
22
|
+
* @property {Property | SplitDirection} [splitDirection] A Property specifying the {@link SplitDirection} split to apply to this point.
|
|
22
23
|
*/
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -51,6 +52,8 @@ function PointGraphics(options) {
|
|
|
51
52
|
this._distanceDisplayConditionSubscription = undefined;
|
|
52
53
|
this._disableDepthTestDistance = undefined;
|
|
53
54
|
this._disableDepthTestDistanceSubscription = undefined;
|
|
55
|
+
this._splitDirection = undefined;
|
|
56
|
+
this._splitDirectionSubscription = undefined;
|
|
54
57
|
|
|
55
58
|
this.merge(defaultValue(options, defaultValue.EMPTY_OBJECT));
|
|
56
59
|
}
|
|
@@ -154,6 +157,14 @@ Object.defineProperties(PointGraphics.prototype, {
|
|
|
154
157
|
disableDepthTestDistance: createPropertyDescriptor(
|
|
155
158
|
"disableDepthTestDistance"
|
|
156
159
|
),
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Gets or sets the Property specifying the {@link SplitDirection} of this point.
|
|
163
|
+
* @memberof PointGraphics.prototype
|
|
164
|
+
* @type {Property|undefined}
|
|
165
|
+
* @default SplitDirection.NONE
|
|
166
|
+
*/
|
|
167
|
+
splitDirection: createPropertyDescriptor("splitDirection"),
|
|
157
168
|
});
|
|
158
169
|
|
|
159
170
|
/**
|
|
@@ -176,6 +187,7 @@ PointGraphics.prototype.clone = function (result) {
|
|
|
176
187
|
result.translucencyByDistance = this._translucencyByDistance;
|
|
177
188
|
result.distanceDisplayCondition = this.distanceDisplayCondition;
|
|
178
189
|
result.disableDepthTestDistance = this.disableDepthTestDistance;
|
|
190
|
+
result.splitDirection = this.splitDirection;
|
|
179
191
|
return result;
|
|
180
192
|
};
|
|
181
193
|
|
|
@@ -217,5 +229,10 @@ PointGraphics.prototype.merge = function (source) {
|
|
|
217
229
|
this.disableDepthTestDistance,
|
|
218
230
|
source.disableDepthTestDistance
|
|
219
231
|
);
|
|
232
|
+
|
|
233
|
+
this.splitDirection = defaultValue(
|
|
234
|
+
this.splitDirection,
|
|
235
|
+
source.splitDirection
|
|
236
|
+
);
|
|
220
237
|
};
|
|
221
238
|
export default PointGraphics;
|
|
@@ -10,12 +10,14 @@ import createBillboardPointCallback from "../Scene/createBillboardPointCallback.
|
|
|
10
10
|
import HeightReference from "../Scene/HeightReference.js";
|
|
11
11
|
import BoundingSphereState from "./BoundingSphereState.js";
|
|
12
12
|
import Property from "./Property.js";
|
|
13
|
+
import SplitDirection from "../Scene/SplitDirection.js";
|
|
13
14
|
|
|
14
15
|
const defaultColor = Color.WHITE;
|
|
15
16
|
const defaultOutlineColor = Color.BLACK;
|
|
16
17
|
const defaultOutlineWidth = 0.0;
|
|
17
18
|
const defaultPixelSize = 1.0;
|
|
18
19
|
const defaultDisableDepthTestDistance = 0.0;
|
|
20
|
+
const defaultSplitDirection = SplitDirection.NONE;
|
|
19
21
|
|
|
20
22
|
const colorScratch = new Color();
|
|
21
23
|
const positionScratch = new Cartesian3();
|
|
@@ -192,6 +194,11 @@ PointVisualizer.prototype.update = function (time) {
|
|
|
192
194
|
time,
|
|
193
195
|
defaultDisableDepthTestDistance
|
|
194
196
|
);
|
|
197
|
+
pointPrimitive.splitDirection = Property.getValueOrDefault(
|
|
198
|
+
pointGraphics._splitDirection,
|
|
199
|
+
time,
|
|
200
|
+
defaultSplitDirection
|
|
201
|
+
);
|
|
195
202
|
} else if (defined(billboard)) {
|
|
196
203
|
billboard.show = true;
|
|
197
204
|
billboard.position = position;
|
|
@@ -215,6 +222,11 @@ PointVisualizer.prototype.update = function (time) {
|
|
|
215
222
|
time,
|
|
216
223
|
defaultDisableDepthTestDistance
|
|
217
224
|
);
|
|
225
|
+
billboard.splitDirection = Property.getValueOrDefault(
|
|
226
|
+
pointGraphics._splitDirection,
|
|
227
|
+
time,
|
|
228
|
+
defaultSplitDirection
|
|
229
|
+
);
|
|
218
230
|
billboard.heightReference = heightReference;
|
|
219
231
|
|
|
220
232
|
const newColor = Property.getValueOrDefault(
|
|
@@ -243,7 +243,7 @@ PolygonGeometryUpdater.prototype._computeCenter = function (time, result) {
|
|
|
243
243
|
if (positions.length === 0) {
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
const ellipsoid = this._scene.
|
|
246
|
+
const ellipsoid = this._scene.ellipsoid;
|
|
247
247
|
|
|
248
248
|
const tangentPlane = EllipsoidTangentPlane.fromPoints(positions, ellipsoid);
|
|
249
249
|
const positions2D = tangentPlane.projectPointsOntoPlane(
|
|
@@ -789,8 +789,9 @@ DynamicGeometryUpdater.prototype.update = function (time) {
|
|
|
789
789
|
arcType = Property.getValueOrDefault(polyline._arcType, time, arcType);
|
|
790
790
|
|
|
791
791
|
const globe = geometryUpdater._scene.globe;
|
|
792
|
+
const ellipsoid = geometryUpdater._scene.ellipsoid;
|
|
792
793
|
if (arcType !== ArcType.NONE && defined(globe)) {
|
|
793
|
-
generateCartesianArcOptions.ellipsoid =
|
|
794
|
+
generateCartesianArcOptions.ellipsoid = ellipsoid;
|
|
794
795
|
generateCartesianArcOptions.positions = positions;
|
|
795
796
|
generateCartesianArcOptions.granularity = Property.getValueOrUndefined(
|
|
796
797
|
polyline._granularity,
|
|
@@ -798,7 +799,7 @@ DynamicGeometryUpdater.prototype.update = function (time) {
|
|
|
798
799
|
);
|
|
799
800
|
generateCartesianArcOptions.height = PolylinePipeline.extractHeights(
|
|
800
801
|
positions,
|
|
801
|
-
|
|
802
|
+
ellipsoid
|
|
802
803
|
);
|
|
803
804
|
if (arcType === ArcType.GEODESIC) {
|
|
804
805
|
positions = PolylinePipeline.generateCartesianArc(
|
|
@@ -112,13 +112,10 @@ PositionProperty.convertToReferenceFrame = function (
|
|
|
112
112
|
return Cartesian3.clone(value, result);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
scratchMatrix3
|
|
120
|
-
);
|
|
121
|
-
}
|
|
115
|
+
const icrfToFixed = Transforms.computeIcrfToCentralBodyFixedMatrix(
|
|
116
|
+
time,
|
|
117
|
+
scratchMatrix3
|
|
118
|
+
);
|
|
122
119
|
if (inputFrame === ReferenceFrame.INERTIAL) {
|
|
123
120
|
return Matrix3.multiplyByVector(icrfToFixed, value, result);
|
|
124
121
|
}
|
|
@@ -220,7 +220,7 @@ RectangleGeometryUpdater.prototype._computeCenter = function (time, result) {
|
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
const center = Rectangle.center(rect, scratchCarto);
|
|
223
|
-
return Cartographic.toCartesian(center, Ellipsoid.
|
|
223
|
+
return Cartographic.toCartesian(center, Ellipsoid.default, result);
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
RectangleGeometryUpdater.prototype._isHidden = function (entity, rectangle) {
|
|
@@ -6,7 +6,7 @@ import ReferenceFrame from "../Core/ReferenceFrame.js";
|
|
|
6
6
|
import Property from "./Property.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* This is a temporary class for scaling position properties to the
|
|
9
|
+
* This is a temporary class for scaling position properties to the ellipsoid surface.
|
|
10
10
|
* It will go away or be refactored to support data with arbitrary height references.
|
|
11
11
|
* @private
|
|
12
12
|
*/
|
|
@@ -80,7 +80,7 @@ ScaledPositionProperty.prototype.getValueInReferenceFrame = function (
|
|
|
80
80
|
|
|
81
81
|
result = this._value.getValueInReferenceFrame(time, referenceFrame, result);
|
|
82
82
|
return defined(result)
|
|
83
|
-
? Ellipsoid.
|
|
83
|
+
? Ellipsoid.default.scaleToGeodeticSurface(result, result)
|
|
84
84
|
: undefined;
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -72,7 +72,7 @@ function TerrainOffsetProperty(
|
|
|
72
72
|
|
|
73
73
|
this._updateClamping();
|
|
74
74
|
|
|
75
|
-
this._normal = scene.
|
|
75
|
+
this._normal = scene.ellipsoid.geodeticSurfaceNormal(
|
|
76
76
|
position,
|
|
77
77
|
this._normal
|
|
78
78
|
);
|
|
@@ -115,14 +115,13 @@ TerrainOffsetProperty.prototype._updateClamping = function () {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
const scene = this._scene;
|
|
118
|
-
const globe = scene.globe;
|
|
119
118
|
const position = this._position;
|
|
120
119
|
|
|
121
120
|
if (Cartesian3.equals(position, Cartesian3.ZERO)) {
|
|
122
121
|
this._terrainHeight = 0;
|
|
123
122
|
return;
|
|
124
123
|
}
|
|
125
|
-
const ellipsoid =
|
|
124
|
+
const ellipsoid = scene.ellipsoid;
|
|
126
125
|
const cartographicPosition = ellipsoid.cartesianToCartographic(
|
|
127
126
|
position,
|
|
128
127
|
this._cartographicPosition
|
|
@@ -204,10 +203,7 @@ TerrainOffsetProperty.prototype.getValue = function (time, result) {
|
|
|
204
203
|
|
|
205
204
|
this._updateClamping();
|
|
206
205
|
|
|
207
|
-
const normal = scene.
|
|
208
|
-
position,
|
|
209
|
-
this._normal
|
|
210
|
-
);
|
|
206
|
+
const normal = scene.ellipsoid.geodeticSurfaceNormal(position, this._normal);
|
|
211
207
|
return Cartesian3.multiplyByScalar(normal, this._terrainHeight, result);
|
|
212
208
|
};
|
|
213
209
|
|
|
@@ -17,7 +17,7 @@ import VelocityVectorProperty from "./VelocityVectorProperty.js";
|
|
|
17
17
|
* @constructor
|
|
18
18
|
*
|
|
19
19
|
* @param {PositionProperty} [position] The position property used to compute the orientation.
|
|
20
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
20
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid used to determine which way is up.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* //Create an entity with position and orientation.
|
|
@@ -34,7 +34,7 @@ function VelocityOrientationProperty(position, ellipsoid) {
|
|
|
34
34
|
this._ellipsoid = undefined;
|
|
35
35
|
this._definitionChanged = new Event();
|
|
36
36
|
|
|
37
|
-
this.ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
37
|
+
this.ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
38
38
|
|
|
39
39
|
const that = this;
|
|
40
40
|
this._velocityVectorProperty.definitionChanged.addEventListener(function () {
|
|
@@ -249,7 +249,7 @@ IdManager.prototype.get = function (id) {
|
|
|
249
249
|
*
|
|
250
250
|
* @param {object} options An object with the following properties:
|
|
251
251
|
* @param {EntityCollection} options.entities The EntityCollection to export as KML.
|
|
252
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
252
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid for the output file.
|
|
253
253
|
* @param {exportKmlModelCallback} [options.modelCallback] A callback that will be called with a {@link ModelGraphics} instance and should return the URI to use in the KML. Required if a model exists in the entity collection.
|
|
254
254
|
* @param {JulianDate} [options.time=entities.computeAvailability().start] The time value to use to get properties that are not time varying in KML.
|
|
255
255
|
* @param {TimeInterval} [options.defaultAvailability=entities.computeAvailability()] The interval that will be sampled if an entity doesn't have an availability.
|
|
@@ -405,7 +405,7 @@ exportKml._createState = function (options) {
|
|
|
405
405
|
const kmlDoc = document.implementation.createDocument(kmlNamespace, "kml");
|
|
406
406
|
return {
|
|
407
407
|
kmlDoc: kmlDoc,
|
|
408
|
-
ellipsoid: defaultValue(options.ellipsoid, Ellipsoid.
|
|
408
|
+
ellipsoid: defaultValue(options.ellipsoid, Ellipsoid.default),
|
|
409
409
|
idManager: new IdManager(),
|
|
410
410
|
styleCache: styleCache,
|
|
411
411
|
externalFileHandler: externalFileHandler,
|
|
@@ -1454,7 +1454,7 @@ const AutomaticUniforms = {
|
|
|
1454
1454
|
* // Example: For a given roughness and NdotV value, find the material's BRDF information in the red and green channels
|
|
1455
1455
|
* float roughness = 0.5;
|
|
1456
1456
|
* float NdotV = dot(normal, view);
|
|
1457
|
-
* vec2 brdfLut = texture(czm_brdfLut, vec2(NdotV,
|
|
1457
|
+
* vec2 brdfLut = texture(czm_brdfLut, vec2(NdotV, roughness)).rg;
|
|
1458
1458
|
*/
|
|
1459
1459
|
czm_brdfLut: new AutomaticUniform({
|
|
1460
1460
|
size: 1,
|
|
@@ -1173,7 +1173,7 @@ Object.defineProperties(UniformState.prototype, {
|
|
|
1173
1173
|
*/
|
|
1174
1174
|
ellipsoid: {
|
|
1175
1175
|
get: function () {
|
|
1176
|
-
return defaultValue(this._ellipsoid, Ellipsoid.
|
|
1176
|
+
return defaultValue(this._ellipsoid, Ellipsoid.default);
|
|
1177
1177
|
},
|
|
1178
1178
|
},
|
|
1179
1179
|
});
|
|
@@ -1305,19 +1305,13 @@ function setCamera(uniformState, camera) {
|
|
|
1305
1305
|
);
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
|
-
|
|
1308
|
+
const transformMatrix = new Matrix3();
|
|
1309
1309
|
const sunCartographicScratch = new Cartographic();
|
|
1310
1310
|
function setSunAndMoonDirections(uniformState, frameState) {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
) {
|
|
1316
|
-
transformMatrix = Transforms.computeTemeToPseudoFixedMatrix(
|
|
1317
|
-
frameState.time,
|
|
1318
|
-
transformMatrix
|
|
1319
|
-
);
|
|
1320
|
-
}
|
|
1311
|
+
Transforms.computeIcrfToCentralBodyFixedMatrix(
|
|
1312
|
+
frameState.time,
|
|
1313
|
+
transformMatrix
|
|
1314
|
+
);
|
|
1321
1315
|
|
|
1322
1316
|
let position = Simon1994PlanetaryPositions.computeSunPositionInEarthInertialFrame(
|
|
1323
1317
|
frameState.time,
|
|
@@ -49,9 +49,9 @@ import DeveloperError from "../Core/DeveloperError.js";
|
|
|
49
49
|
* a tiled layer.
|
|
50
50
|
* @property {TilingScheme} [tilingScheme=new GeographicTilingScheme()] The tiling scheme to use to divide the world into tiles.
|
|
51
51
|
* This parameter is ignored when accessing a tiled server.
|
|
52
|
-
* @property {Ellipsoid} [ellipsoid] The ellipsoid. If the tilingScheme is specified and used,
|
|
52
|
+
* @property {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid. If the tilingScheme is specified and used,
|
|
53
53
|
* this parameter is ignored and the tiling scheme's ellipsoid is used instead. If neither
|
|
54
|
-
* parameter is specified, the
|
|
54
|
+
* parameter is specified, the default ellipsoid is used.
|
|
55
55
|
* @property {Credit|string} [credit] A credit for the data source, which is displayed on the canvas. This parameter is ignored when accessing a tiled server.
|
|
56
56
|
* @property {number} [tileWidth=256] The width of each tile in pixels. This parameter is ignored when accessing a tiled server.
|
|
57
57
|
* @property {number} [tileHeight=256] The height of each tile in pixels. This parameter is ignored when accessing a tiled server.
|
|
@@ -4,7 +4,7 @@ import Resource from "../Core/Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"
|
|
7
|
+
"AAPTxy8BH1VEsoebNVZXo8HurEOF051kAEKlhkOhBEc9BmTRbx8gaNqtBYKRq3vEnwSKnwUE1aRn2Siyo0gHWzzPwpJd-ZUeTyDgQZPqW8C6pXNLOE3bRO6-Jz3NFmp-qNquqGBQTATcCHbNsL-h9CPyMMPGsTcUvzPlIInazMfkWJNbFmqJeSzPj_1DHshXa0XCfkQn5mVxlF2dFt10Mq2bGo0HkpdpXwNQdoGwdphsLoU.AT1_CpQKgEim";
|
|
8
8
|
/**
|
|
9
9
|
* Default options for accessing the ArcGIS image tile service.
|
|
10
10
|
*
|