@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
import {
|
|
27
27
|
Cartesian4_default,
|
|
28
28
|
Matrix4_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OXALEQPI.js";
|
|
30
30
|
import {
|
|
31
31
|
Cartesian3_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-T6LPN7RI.js";
|
|
33
33
|
import {
|
|
34
34
|
Math_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-R4OIEIPE.js";
|
|
36
36
|
import {
|
|
37
37
|
Check_default,
|
|
38
38
|
DeveloperError_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TGY6H6N6.js";
|
|
40
40
|
import {
|
|
41
41
|
defined_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-N4QEHO3U.js";
|
|
43
43
|
|
|
44
44
|
// packages/engine/Source/Core/Plane.js
|
|
45
45
|
function Plane(normal, distance) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,37 +25,37 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
GeometryOffsetAttribute_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GNHZH7HP.js";
|
|
29
29
|
import {
|
|
30
30
|
VertexFormat_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LSSWVB2X.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryAttributes_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JYQNWIQQ.js";
|
|
35
35
|
import {
|
|
36
36
|
GeometryAttribute_default,
|
|
37
37
|
Geometry_default,
|
|
38
38
|
PrimitiveType_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IUROUBPA.js";
|
|
40
40
|
import {
|
|
41
41
|
BoundingSphere_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ELI4BUOT.js";
|
|
43
43
|
import {
|
|
44
44
|
ComponentDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FQPSOOPH.js";
|
|
46
46
|
import {
|
|
47
47
|
Cartesian3_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-T6LPN7RI.js";
|
|
49
49
|
import {
|
|
50
50
|
defaultValue_default
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BAVI3ZS2.js";
|
|
52
52
|
import {
|
|
53
53
|
Check_default,
|
|
54
54
|
DeveloperError_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-TGY6H6N6.js";
|
|
56
56
|
import {
|
|
57
57
|
defined_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-N4QEHO3U.js";
|
|
59
59
|
|
|
60
60
|
// packages/engine/Source/Core/BoxGeometry.js
|
|
61
61
|
var diffScratch = new Cartesian3_default();
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.119
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
EllipseGeometryLibrary_default
|
|
28
|
+
} from "./chunk-RZLZWKFN.js";
|
|
29
|
+
import {
|
|
30
|
+
GeometryOffsetAttribute_default
|
|
31
|
+
} from "./chunk-Q55ECN3Y.js";
|
|
32
|
+
import {
|
|
33
|
+
IndexDatatype_default
|
|
34
|
+
} from "./chunk-QD4KM3GO.js";
|
|
35
|
+
import {
|
|
36
|
+
GeometryAttributes_default
|
|
37
|
+
} from "./chunk-R6B7UCQB.js";
|
|
38
|
+
import {
|
|
39
|
+
GeometryAttribute_default,
|
|
40
|
+
Geometry_default,
|
|
41
|
+
PrimitiveType_default
|
|
42
|
+
} from "./chunk-FOZWUH4T.js";
|
|
43
|
+
import {
|
|
44
|
+
BoundingSphere_default
|
|
45
|
+
} from "./chunk-F3NDOSTZ.js";
|
|
46
|
+
import {
|
|
47
|
+
ComponentDatatype_default
|
|
48
|
+
} from "./chunk-2J3JKXCP.js";
|
|
49
|
+
import {
|
|
50
|
+
Cartesian3_default,
|
|
51
|
+
Ellipsoid_default
|
|
52
|
+
} from "./chunk-PYHLO636.js";
|
|
53
|
+
import {
|
|
54
|
+
Math_default
|
|
55
|
+
} from "./chunk-MSKXMXJI.js";
|
|
56
|
+
import {
|
|
57
|
+
defaultValue_default
|
|
58
|
+
} from "./chunk-VE7BFUIX.js";
|
|
59
|
+
import {
|
|
60
|
+
DeveloperError_default
|
|
61
|
+
} from "./chunk-S3PI2KFM.js";
|
|
62
|
+
import {
|
|
63
|
+
defined_default
|
|
64
|
+
} from "./chunk-AA4GZKOT.js";
|
|
65
|
+
|
|
66
|
+
// packages/engine/Source/Core/EllipseOutlineGeometry.js
|
|
67
|
+
var scratchCartesian1 = new Cartesian3_default();
|
|
68
|
+
var boundingSphereCenter = new Cartesian3_default();
|
|
69
|
+
function computeEllipse(options) {
|
|
70
|
+
const center = options.center;
|
|
71
|
+
boundingSphereCenter = Cartesian3_default.multiplyByScalar(
|
|
72
|
+
options.ellipsoid.geodeticSurfaceNormal(center, boundingSphereCenter),
|
|
73
|
+
options.height,
|
|
74
|
+
boundingSphereCenter
|
|
75
|
+
);
|
|
76
|
+
boundingSphereCenter = Cartesian3_default.add(
|
|
77
|
+
center,
|
|
78
|
+
boundingSphereCenter,
|
|
79
|
+
boundingSphereCenter
|
|
80
|
+
);
|
|
81
|
+
const boundingSphere = new BoundingSphere_default(
|
|
82
|
+
boundingSphereCenter,
|
|
83
|
+
options.semiMajorAxis
|
|
84
|
+
);
|
|
85
|
+
const positions = EllipseGeometryLibrary_default.computeEllipsePositions(
|
|
86
|
+
options,
|
|
87
|
+
false,
|
|
88
|
+
true
|
|
89
|
+
).outerPositions;
|
|
90
|
+
const attributes = new GeometryAttributes_default({
|
|
91
|
+
position: new GeometryAttribute_default({
|
|
92
|
+
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
93
|
+
componentsPerAttribute: 3,
|
|
94
|
+
values: EllipseGeometryLibrary_default.raisePositionsToHeight(
|
|
95
|
+
positions,
|
|
96
|
+
options,
|
|
97
|
+
false
|
|
98
|
+
)
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
const length = positions.length / 3;
|
|
102
|
+
const indices = IndexDatatype_default.createTypedArray(length, length * 2);
|
|
103
|
+
let index = 0;
|
|
104
|
+
for (let i = 0; i < length; ++i) {
|
|
105
|
+
indices[index++] = i;
|
|
106
|
+
indices[index++] = (i + 1) % length;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
boundingSphere,
|
|
110
|
+
attributes,
|
|
111
|
+
indices
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
var topBoundingSphere = new BoundingSphere_default();
|
|
115
|
+
var bottomBoundingSphere = new BoundingSphere_default();
|
|
116
|
+
function computeExtrudedEllipse(options) {
|
|
117
|
+
const center = options.center;
|
|
118
|
+
const ellipsoid = options.ellipsoid;
|
|
119
|
+
const semiMajorAxis = options.semiMajorAxis;
|
|
120
|
+
let scaledNormal = Cartesian3_default.multiplyByScalar(
|
|
121
|
+
ellipsoid.geodeticSurfaceNormal(center, scratchCartesian1),
|
|
122
|
+
options.height,
|
|
123
|
+
scratchCartesian1
|
|
124
|
+
);
|
|
125
|
+
topBoundingSphere.center = Cartesian3_default.add(
|
|
126
|
+
center,
|
|
127
|
+
scaledNormal,
|
|
128
|
+
topBoundingSphere.center
|
|
129
|
+
);
|
|
130
|
+
topBoundingSphere.radius = semiMajorAxis;
|
|
131
|
+
scaledNormal = Cartesian3_default.multiplyByScalar(
|
|
132
|
+
ellipsoid.geodeticSurfaceNormal(center, scaledNormal),
|
|
133
|
+
options.extrudedHeight,
|
|
134
|
+
scaledNormal
|
|
135
|
+
);
|
|
136
|
+
bottomBoundingSphere.center = Cartesian3_default.add(
|
|
137
|
+
center,
|
|
138
|
+
scaledNormal,
|
|
139
|
+
bottomBoundingSphere.center
|
|
140
|
+
);
|
|
141
|
+
bottomBoundingSphere.radius = semiMajorAxis;
|
|
142
|
+
let positions = EllipseGeometryLibrary_default.computeEllipsePositions(
|
|
143
|
+
options,
|
|
144
|
+
false,
|
|
145
|
+
true
|
|
146
|
+
).outerPositions;
|
|
147
|
+
const attributes = new GeometryAttributes_default({
|
|
148
|
+
position: new GeometryAttribute_default({
|
|
149
|
+
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
150
|
+
componentsPerAttribute: 3,
|
|
151
|
+
values: EllipseGeometryLibrary_default.raisePositionsToHeight(
|
|
152
|
+
positions,
|
|
153
|
+
options,
|
|
154
|
+
true
|
|
155
|
+
)
|
|
156
|
+
})
|
|
157
|
+
});
|
|
158
|
+
positions = attributes.position.values;
|
|
159
|
+
const boundingSphere = BoundingSphere_default.union(
|
|
160
|
+
topBoundingSphere,
|
|
161
|
+
bottomBoundingSphere
|
|
162
|
+
);
|
|
163
|
+
let length = positions.length / 3;
|
|
164
|
+
if (defined_default(options.offsetAttribute)) {
|
|
165
|
+
let applyOffset = new Uint8Array(length);
|
|
166
|
+
if (options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
|
|
167
|
+
applyOffset = applyOffset.fill(1, 0, length / 2);
|
|
168
|
+
} else {
|
|
169
|
+
const offsetValue = options.offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
|
170
|
+
applyOffset = applyOffset.fill(offsetValue);
|
|
171
|
+
}
|
|
172
|
+
attributes.applyOffset = new GeometryAttribute_default({
|
|
173
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
|
174
|
+
componentsPerAttribute: 1,
|
|
175
|
+
values: applyOffset
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
let numberOfVerticalLines = defaultValue_default(options.numberOfVerticalLines, 16);
|
|
179
|
+
numberOfVerticalLines = Math_default.clamp(
|
|
180
|
+
numberOfVerticalLines,
|
|
181
|
+
0,
|
|
182
|
+
length / 2
|
|
183
|
+
);
|
|
184
|
+
const indices = IndexDatatype_default.createTypedArray(
|
|
185
|
+
length,
|
|
186
|
+
length * 2 + numberOfVerticalLines * 2
|
|
187
|
+
);
|
|
188
|
+
length /= 2;
|
|
189
|
+
let index = 0;
|
|
190
|
+
let i;
|
|
191
|
+
for (i = 0; i < length; ++i) {
|
|
192
|
+
indices[index++] = i;
|
|
193
|
+
indices[index++] = (i + 1) % length;
|
|
194
|
+
indices[index++] = i + length;
|
|
195
|
+
indices[index++] = (i + 1) % length + length;
|
|
196
|
+
}
|
|
197
|
+
let numSide;
|
|
198
|
+
if (numberOfVerticalLines > 0) {
|
|
199
|
+
const numSideLines = Math.min(numberOfVerticalLines, length);
|
|
200
|
+
numSide = Math.round(length / numSideLines);
|
|
201
|
+
const maxI = Math.min(numSide * numberOfVerticalLines, length);
|
|
202
|
+
for (i = 0; i < maxI; i += numSide) {
|
|
203
|
+
indices[index++] = i;
|
|
204
|
+
indices[index++] = i + length;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return {
|
|
208
|
+
boundingSphere,
|
|
209
|
+
attributes,
|
|
210
|
+
indices
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function EllipseOutlineGeometry(options) {
|
|
214
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
215
|
+
const center = options.center;
|
|
216
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.default);
|
|
217
|
+
const semiMajorAxis = options.semiMajorAxis;
|
|
218
|
+
const semiMinorAxis = options.semiMinorAxis;
|
|
219
|
+
const granularity = defaultValue_default(
|
|
220
|
+
options.granularity,
|
|
221
|
+
Math_default.RADIANS_PER_DEGREE
|
|
222
|
+
);
|
|
223
|
+
if (!defined_default(center)) {
|
|
224
|
+
throw new DeveloperError_default("center is required.");
|
|
225
|
+
}
|
|
226
|
+
if (!defined_default(semiMajorAxis)) {
|
|
227
|
+
throw new DeveloperError_default("semiMajorAxis is required.");
|
|
228
|
+
}
|
|
229
|
+
if (!defined_default(semiMinorAxis)) {
|
|
230
|
+
throw new DeveloperError_default("semiMinorAxis is required.");
|
|
231
|
+
}
|
|
232
|
+
if (semiMajorAxis < semiMinorAxis) {
|
|
233
|
+
throw new DeveloperError_default(
|
|
234
|
+
"semiMajorAxis must be greater than or equal to the semiMinorAxis."
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
if (granularity <= 0) {
|
|
238
|
+
throw new DeveloperError_default("granularity must be greater than zero.");
|
|
239
|
+
}
|
|
240
|
+
const height = defaultValue_default(options.height, 0);
|
|
241
|
+
const extrudedHeight = defaultValue_default(options.extrudedHeight, height);
|
|
242
|
+
this._center = Cartesian3_default.clone(center);
|
|
243
|
+
this._semiMajorAxis = semiMajorAxis;
|
|
244
|
+
this._semiMinorAxis = semiMinorAxis;
|
|
245
|
+
this._ellipsoid = Ellipsoid_default.clone(ellipsoid);
|
|
246
|
+
this._rotation = defaultValue_default(options.rotation, 0);
|
|
247
|
+
this._height = Math.max(extrudedHeight, height);
|
|
248
|
+
this._granularity = granularity;
|
|
249
|
+
this._extrudedHeight = Math.min(extrudedHeight, height);
|
|
250
|
+
this._numberOfVerticalLines = Math.max(
|
|
251
|
+
defaultValue_default(options.numberOfVerticalLines, 16),
|
|
252
|
+
0
|
|
253
|
+
);
|
|
254
|
+
this._offsetAttribute = options.offsetAttribute;
|
|
255
|
+
this._workerName = "createEllipseOutlineGeometry";
|
|
256
|
+
}
|
|
257
|
+
EllipseOutlineGeometry.packedLength = Cartesian3_default.packedLength + Ellipsoid_default.packedLength + 8;
|
|
258
|
+
EllipseOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
259
|
+
if (!defined_default(value)) {
|
|
260
|
+
throw new DeveloperError_default("value is required");
|
|
261
|
+
}
|
|
262
|
+
if (!defined_default(array)) {
|
|
263
|
+
throw new DeveloperError_default("array is required");
|
|
264
|
+
}
|
|
265
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
266
|
+
Cartesian3_default.pack(value._center, array, startingIndex);
|
|
267
|
+
startingIndex += Cartesian3_default.packedLength;
|
|
268
|
+
Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
|
|
269
|
+
startingIndex += Ellipsoid_default.packedLength;
|
|
270
|
+
array[startingIndex++] = value._semiMajorAxis;
|
|
271
|
+
array[startingIndex++] = value._semiMinorAxis;
|
|
272
|
+
array[startingIndex++] = value._rotation;
|
|
273
|
+
array[startingIndex++] = value._height;
|
|
274
|
+
array[startingIndex++] = value._granularity;
|
|
275
|
+
array[startingIndex++] = value._extrudedHeight;
|
|
276
|
+
array[startingIndex++] = value._numberOfVerticalLines;
|
|
277
|
+
array[startingIndex] = defaultValue_default(value._offsetAttribute, -1);
|
|
278
|
+
return array;
|
|
279
|
+
};
|
|
280
|
+
var scratchCenter = new Cartesian3_default();
|
|
281
|
+
var scratchEllipsoid = new Ellipsoid_default();
|
|
282
|
+
var scratchOptions = {
|
|
283
|
+
center: scratchCenter,
|
|
284
|
+
ellipsoid: scratchEllipsoid,
|
|
285
|
+
semiMajorAxis: void 0,
|
|
286
|
+
semiMinorAxis: void 0,
|
|
287
|
+
rotation: void 0,
|
|
288
|
+
height: void 0,
|
|
289
|
+
granularity: void 0,
|
|
290
|
+
extrudedHeight: void 0,
|
|
291
|
+
numberOfVerticalLines: void 0,
|
|
292
|
+
offsetAttribute: void 0
|
|
293
|
+
};
|
|
294
|
+
EllipseOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
295
|
+
if (!defined_default(array)) {
|
|
296
|
+
throw new DeveloperError_default("array is required");
|
|
297
|
+
}
|
|
298
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
299
|
+
const center = Cartesian3_default.unpack(array, startingIndex, scratchCenter);
|
|
300
|
+
startingIndex += Cartesian3_default.packedLength;
|
|
301
|
+
const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
|
|
302
|
+
startingIndex += Ellipsoid_default.packedLength;
|
|
303
|
+
const semiMajorAxis = array[startingIndex++];
|
|
304
|
+
const semiMinorAxis = array[startingIndex++];
|
|
305
|
+
const rotation = array[startingIndex++];
|
|
306
|
+
const height = array[startingIndex++];
|
|
307
|
+
const granularity = array[startingIndex++];
|
|
308
|
+
const extrudedHeight = array[startingIndex++];
|
|
309
|
+
const numberOfVerticalLines = array[startingIndex++];
|
|
310
|
+
const offsetAttribute = array[startingIndex];
|
|
311
|
+
if (!defined_default(result)) {
|
|
312
|
+
scratchOptions.height = height;
|
|
313
|
+
scratchOptions.extrudedHeight = extrudedHeight;
|
|
314
|
+
scratchOptions.granularity = granularity;
|
|
315
|
+
scratchOptions.rotation = rotation;
|
|
316
|
+
scratchOptions.semiMajorAxis = semiMajorAxis;
|
|
317
|
+
scratchOptions.semiMinorAxis = semiMinorAxis;
|
|
318
|
+
scratchOptions.numberOfVerticalLines = numberOfVerticalLines;
|
|
319
|
+
scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
|
320
|
+
return new EllipseOutlineGeometry(scratchOptions);
|
|
321
|
+
}
|
|
322
|
+
result._center = Cartesian3_default.clone(center, result._center);
|
|
323
|
+
result._ellipsoid = Ellipsoid_default.clone(ellipsoid, result._ellipsoid);
|
|
324
|
+
result._semiMajorAxis = semiMajorAxis;
|
|
325
|
+
result._semiMinorAxis = semiMinorAxis;
|
|
326
|
+
result._rotation = rotation;
|
|
327
|
+
result._height = height;
|
|
328
|
+
result._granularity = granularity;
|
|
329
|
+
result._extrudedHeight = extrudedHeight;
|
|
330
|
+
result._numberOfVerticalLines = numberOfVerticalLines;
|
|
331
|
+
result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
|
332
|
+
return result;
|
|
333
|
+
};
|
|
334
|
+
EllipseOutlineGeometry.createGeometry = function(ellipseGeometry) {
|
|
335
|
+
if (ellipseGeometry._semiMajorAxis <= 0 || ellipseGeometry._semiMinorAxis <= 0) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
const height = ellipseGeometry._height;
|
|
339
|
+
const extrudedHeight = ellipseGeometry._extrudedHeight;
|
|
340
|
+
const extrude = !Math_default.equalsEpsilon(
|
|
341
|
+
height,
|
|
342
|
+
extrudedHeight,
|
|
343
|
+
0,
|
|
344
|
+
Math_default.EPSILON2
|
|
345
|
+
);
|
|
346
|
+
ellipseGeometry._center = ellipseGeometry._ellipsoid.scaleToGeodeticSurface(
|
|
347
|
+
ellipseGeometry._center,
|
|
348
|
+
ellipseGeometry._center
|
|
349
|
+
);
|
|
350
|
+
const options = {
|
|
351
|
+
center: ellipseGeometry._center,
|
|
352
|
+
semiMajorAxis: ellipseGeometry._semiMajorAxis,
|
|
353
|
+
semiMinorAxis: ellipseGeometry._semiMinorAxis,
|
|
354
|
+
ellipsoid: ellipseGeometry._ellipsoid,
|
|
355
|
+
rotation: ellipseGeometry._rotation,
|
|
356
|
+
height,
|
|
357
|
+
granularity: ellipseGeometry._granularity,
|
|
358
|
+
numberOfVerticalLines: ellipseGeometry._numberOfVerticalLines
|
|
359
|
+
};
|
|
360
|
+
let geometry;
|
|
361
|
+
if (extrude) {
|
|
362
|
+
options.extrudedHeight = extrudedHeight;
|
|
363
|
+
options.offsetAttribute = ellipseGeometry._offsetAttribute;
|
|
364
|
+
geometry = computeExtrudedEllipse(options);
|
|
365
|
+
} else {
|
|
366
|
+
geometry = computeEllipse(options);
|
|
367
|
+
if (defined_default(ellipseGeometry._offsetAttribute)) {
|
|
368
|
+
const length = geometry.attributes.position.values.length;
|
|
369
|
+
const offsetValue = ellipseGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
|
370
|
+
const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
|
|
371
|
+
geometry.attributes.applyOffset = new GeometryAttribute_default({
|
|
372
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
|
373
|
+
componentsPerAttribute: 1,
|
|
374
|
+
values: applyOffset
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return new Geometry_default({
|
|
379
|
+
attributes: geometry.attributes,
|
|
380
|
+
indices: geometry.indices,
|
|
381
|
+
primitiveType: PrimitiveType_default.LINES,
|
|
382
|
+
boundingSphere: geometry.boundingSphere,
|
|
383
|
+
offsetAttribute: ellipseGeometry._offsetAttribute
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
var EllipseOutlineGeometry_default = EllipseOutlineGeometry;
|
|
387
|
+
|
|
388
|
+
export {
|
|
389
|
+
EllipseOutlineGeometry_default
|
|
390
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.119
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,40 +25,40 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
AxisAlignedBoundingBox_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HGEEOMSC.js";
|
|
29
29
|
import {
|
|
30
30
|
IntersectionTests_default,
|
|
31
31
|
Ray_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6OFDHMHR.js";
|
|
33
33
|
import {
|
|
34
34
|
Plane_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GWT64LKY.js";
|
|
36
36
|
import {
|
|
37
37
|
Cartesian4_default,
|
|
38
38
|
Matrix4_default,
|
|
39
39
|
Transforms_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-X43SJLQL.js";
|
|
41
41
|
import {
|
|
42
42
|
Cartesian2_default,
|
|
43
43
|
Cartesian3_default,
|
|
44
44
|
Ellipsoid_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PYHLO636.js";
|
|
46
46
|
import {
|
|
47
47
|
defaultValue_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-VE7BFUIX.js";
|
|
49
49
|
import {
|
|
50
50
|
Check_default,
|
|
51
51
|
DeveloperError_default
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-S3PI2KFM.js";
|
|
53
53
|
import {
|
|
54
54
|
defined_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AA4GZKOT.js";
|
|
56
56
|
|
|
57
57
|
// packages/engine/Source/Core/EllipsoidTangentPlane.js
|
|
58
58
|
var scratchCart4 = new Cartesian4_default();
|
|
59
59
|
function EllipsoidTangentPlane(origin, ellipsoid) {
|
|
60
60
|
Check_default.defined("origin", origin);
|
|
61
|
-
ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.
|
|
61
|
+
ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.default);
|
|
62
62
|
origin = ellipsoid.scaleToGeodeticSurface(origin);
|
|
63
63
|
if (!defined_default(origin)) {
|
|
64
64
|
throw new DeveloperError_default(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,40 +25,40 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
GeometryOffsetAttribute_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GNHZH7HP.js";
|
|
29
29
|
import {
|
|
30
30
|
IndexDatatype_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EB7PNZTK.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryAttributes_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JYQNWIQQ.js";
|
|
35
35
|
import {
|
|
36
36
|
GeometryAttribute_default,
|
|
37
37
|
Geometry_default,
|
|
38
38
|
PrimitiveType_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IUROUBPA.js";
|
|
40
40
|
import {
|
|
41
41
|
BoundingSphere_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ELI4BUOT.js";
|
|
43
43
|
import {
|
|
44
44
|
ComponentDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FQPSOOPH.js";
|
|
46
46
|
import {
|
|
47
47
|
Cartesian3_default,
|
|
48
48
|
Ellipsoid_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-T6LPN7RI.js";
|
|
50
50
|
import {
|
|
51
51
|
Math_default
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-R4OIEIPE.js";
|
|
53
53
|
import {
|
|
54
54
|
defaultValue_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-BAVI3ZS2.js";
|
|
56
56
|
import {
|
|
57
57
|
DeveloperError_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TGY6H6N6.js";
|
|
59
59
|
import {
|
|
60
60
|
defined_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-N4QEHO3U.js";
|
|
62
62
|
|
|
63
63
|
// packages/engine/Source/Core/EllipsoidOutlineGeometry.js
|
|
64
64
|
var defaultRadii = new Cartesian3_default(1, 1, 1);
|