@cesium/engine 26.1.0 → 26.2.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/ThirdParty/Workers/zip-web-worker.js +586 -480
- package/Build/Workers/chunk-27FWRTJI.js +454 -0
- package/Build/Workers/chunk-2H5264K7.js +1284 -0
- package/Build/Workers/chunk-2H73KDBM.js +511 -0
- package/Build/Workers/chunk-2RGJPWQX.js +1284 -0
- package/Build/Workers/chunk-2Z4ZLVOD.js +352 -0
- package/Build/Workers/chunk-2ZKH2QZB.js +387 -0
- package/Build/Workers/chunk-36NI5E6W.js +3820 -0
- package/Build/Workers/chunk-37SW7SYS.js +778 -0
- package/Build/Workers/chunk-3GHVJ3SO.js +455 -0
- package/Build/Workers/chunk-3LB4UVPU.js +387 -0
- package/Build/Workers/chunk-3PONLKEL.js +778 -0
- package/Build/Workers/chunk-3PSS3T43.js +102 -0
- package/Build/Workers/chunk-3QR662HH.js +3820 -0
- package/Build/Workers/chunk-3SX2WYSO.js +973 -0
- package/Build/Workers/chunk-3UDN6LYX.js +476 -0
- package/Build/Workers/chunk-47MCBSXI.js +9237 -0
- package/Build/Workers/chunk-4E626OCE.js +1067 -0
- package/Build/Workers/chunk-4NW2MJKH.js +455 -0
- package/Build/Workers/chunk-52YK5BSN.js +198 -0
- package/Build/Workers/chunk-5RNAQZK6.js +9234 -0
- package/Build/Workers/chunk-5YPQBFRD.js +519 -0
- package/Build/Workers/chunk-6FHT43QR.js +140 -0
- package/Build/Workers/chunk-6FZDPMTO.js +455 -0
- package/Build/Workers/chunk-6R5X2GUA.js +1284 -0
- package/Build/Workers/chunk-7A2OGDHT.js +305 -0
- package/Build/Workers/chunk-7CGEQUM2.js +305 -0
- package/Build/Workers/chunk-7I325HV6.js +1344 -0
- package/Build/Workers/chunk-7MM3N2VE.js +1067 -0
- package/Build/Workers/chunk-7TKLTCZW.js +219 -0
- package/Build/Workers/chunk-7UUKBDH6.js +1054 -0
- package/Build/Workers/chunk-7W6DUHAB.js +693 -0
- package/Build/Workers/chunk-7XM5JK5F.js +162 -0
- package/Build/Workers/chunk-7YG3ND3P.js +454 -0
- package/Build/Workers/chunk-A62YI6S6.js +305 -0
- package/Build/Workers/chunk-A7TTWVTF.js +2719 -0
- package/Build/Workers/chunk-ACTVJHSP.js +519 -0
- package/Build/Workers/chunk-ADX3CBKD.js +9234 -0
- package/Build/Workers/chunk-AF7DTMJ7.js +398 -0
- package/Build/Workers/chunk-AJSFRY4U.js +1344 -0
- package/Build/Workers/chunk-ARZICEEP.js +301 -0
- package/Build/Workers/chunk-B3QHNA4A.js +147 -0
- package/Build/Workers/chunk-BKPQFCXH.js +511 -0
- package/Build/Workers/chunk-BSPCI2LO.js +959 -0
- package/Build/Workers/chunk-BUJWSX5S.js +301 -0
- package/Build/Workers/chunk-C7QDUNI3.js +138 -0
- package/Build/Workers/chunk-CIV5DJOQ.js +778 -0
- package/Build/Workers/chunk-CQNFIAZU.js +56 -0
- package/Build/Workers/chunk-CRCGE4J4.js +9237 -0
- package/Build/Workers/chunk-CUTRKXUQ.js +288 -0
- package/Build/Workers/chunk-D6AY775A.js +3201 -0
- package/Build/Workers/chunk-DSGLDRTI.js +278 -0
- package/Build/Workers/chunk-DZBQUULR.js +138 -0
- package/Build/Workers/chunk-DZUFEE4L.js +140 -0
- package/Build/Workers/chunk-E2NKV5YT.js +3820 -0
- package/Build/Workers/chunk-EB3Y5P3A.js +368 -0
- package/Build/Workers/chunk-ELE6SC2C.js +837 -0
- package/Build/Workers/chunk-EOWDZN5S.js +288 -0
- package/Build/Workers/chunk-ERKUET22.js +3201 -0
- package/Build/Workers/chunk-EZGQPOIG.js +162 -0
- package/Build/Workers/chunk-F2IMBMZY.js +241 -0
- package/Build/Workers/chunk-F4CSNRZO.js +219 -0
- package/Build/Workers/chunk-FBP4DUQJ.js +693 -0
- package/Build/Workers/chunk-FJWZMGOQ.js +1992 -0
- package/Build/Workers/chunk-FQ42MT7M.js +58 -0
- package/Build/Workers/chunk-FU4BGABC.js +398 -0
- package/Build/Workers/chunk-FX3VEAIU.js +2719 -0
- package/Build/Workers/chunk-GGNWQWSB.js +301 -0
- package/Build/Workers/chunk-GHXVQVUM.js +1344 -0
- package/Build/Workers/chunk-GNKXEN4C.js +682 -0
- package/Build/Workers/chunk-GVA7XQI2.js +368 -0
- package/Build/Workers/chunk-GXDHRC4J.js +1344 -0
- package/Build/Workers/chunk-GYSYP6PC.js +1067 -0
- package/Build/Workers/chunk-H2WCFXLP.js +241 -0
- package/Build/Workers/chunk-HDL4HOXZ.js +778 -0
- package/Build/Workers/chunk-HLW2ZRVK.js +368 -0
- package/Build/Workers/chunk-HT6FASOT.js +973 -0
- package/Build/Workers/chunk-I74ZH5LK.js +959 -0
- package/Build/Workers/chunk-IDVHUDZT.js +352 -0
- package/Build/Workers/chunk-IJZJMIUY.js +789 -0
- package/Build/Workers/chunk-IMBVP57H.js +44 -0
- package/Build/Workers/chunk-IOO7Z2AV.js +57 -0
- package/Build/Workers/chunk-IUIFLOYO.js +44 -0
- package/Build/Workers/chunk-J73T2VOY.js +171 -0
- package/Build/Workers/chunk-JALGQYDY.js +288 -0
- package/Build/Workers/chunk-JXYLJCTC.js +124 -0
- package/Build/Workers/chunk-K27QOAW6.js +97 -0
- package/Build/Workers/chunk-KMV25A63.js +789 -0
- package/Build/Workers/chunk-KP5QD7WU.js +693 -0
- package/Build/Workers/chunk-KZWFWJML.js +2719 -0
- package/Build/Workers/chunk-LCXRRALY.js +387 -0
- package/Build/Workers/chunk-LDRQSYBN.js +1800 -0
- package/Build/Workers/chunk-M4JZ6TSZ.js +959 -0
- package/Build/Workers/chunk-M6QKXVAU.js +1054 -0
- package/Build/Workers/chunk-MAAHFYPC.js +198 -0
- package/Build/Workers/chunk-MCJDRDJQ.js +102 -0
- package/Build/Workers/chunk-MEENMEAH.js +198 -0
- package/Build/Workers/chunk-NAWU5RF4.js +162 -0
- package/Build/Workers/chunk-NCL22ZUX.js +56 -0
- package/Build/Workers/chunk-NEFDMMLY.js +241 -0
- package/Build/Workers/chunk-NJVBJG63.js +124 -0
- package/Build/Workers/chunk-NLLCQBX3.js +73 -0
- package/Build/Workers/chunk-NSKZ6SBK.js +1483 -0
- package/Build/Workers/chunk-NXGQBQWE.js +837 -0
- package/Build/Workers/chunk-O3DKEX7Q.js +352 -0
- package/Build/Workers/chunk-O3XFXGPZ.js +476 -0
- package/Build/Workers/chunk-OA6MYL2C.js +837 -0
- package/Build/Workers/chunk-OHP4ELS7.js +198 -0
- package/Build/Workers/chunk-OZGPS7FB.js +138 -0
- package/Build/Workers/chunk-PCL3Y7H5.js +82 -0
- package/Build/Workers/chunk-PD4GK4EM.js +57 -0
- package/Build/Workers/chunk-PEDU33QG.js +2342 -0
- package/Build/Workers/chunk-PRWUMCXF.js +682 -0
- package/Build/Workers/chunk-PVTSNNVI.js +288 -0
- package/Build/Workers/chunk-QFSSCLLZ.js +973 -0
- package/Build/Workers/chunk-QHPZH22L.js +241 -0
- package/Build/Workers/chunk-QIZDWZK6.js +301 -0
- package/Build/Workers/chunk-QV6DG2YX.js +1483 -0
- package/Build/Workers/chunk-R4K7EHOU.js +171 -0
- package/Build/Workers/chunk-R7JGHDD6.js +789 -0
- package/Build/Workers/chunk-RASQEYD4.js +1483 -0
- package/Build/Workers/chunk-RW6ITX7Q.js +3820 -0
- package/Build/Workers/chunk-RYSQVJR6.js +398 -0
- package/Build/Workers/chunk-S6RJU5NM.js +1054 -0
- package/Build/Workers/chunk-SA2A2AN5.js +2342 -0
- package/Build/Workers/chunk-SDFHDNS4.js +147 -0
- package/Build/Workers/chunk-SJYSIOEM.js +414 -0
- package/Build/Workers/chunk-SMTGMFBL.js +97 -0
- package/Build/Workers/chunk-SXSP3JHS.js +38 -0
- package/Build/Workers/chunk-TN35HP5B.js +1067 -0
- package/Build/Workers/chunk-TNWKJNUZ.js +454 -0
- package/Build/Workers/chunk-TOAF47AQ.js +102 -0
- package/Build/Workers/chunk-TQ4QCOXT.js +2719 -0
- package/Build/Workers/chunk-TSDSILQB.js +124 -0
- package/Build/Workers/chunk-U5LV3F3Z.js +1054 -0
- package/Build/Workers/chunk-UAZUP4I5.js +1992 -0
- package/Build/Workers/chunk-UF46SZEZ.js +789 -0
- package/Build/Workers/chunk-UNRTMCET.js +398 -0
- package/Build/Workers/chunk-UTB7U3O6.js +1992 -0
- package/Build/Workers/chunk-V46YGZE6.js +352 -0
- package/Build/Workers/chunk-VDGOCROW.js +57 -0
- package/Build/Workers/chunk-VFWSSBPT.js +511 -0
- package/Build/Workers/chunk-VVYMXI3I.js +1284 -0
- package/Build/Workers/chunk-VXWHPYQM.js +837 -0
- package/Build/Workers/chunk-VXYUBRSB.js +219 -0
- package/Build/Workers/chunk-VZLDLEWI.js +387 -0
- package/Build/Workers/chunk-W5OCKMPJ.js +101 -0
- package/Build/Workers/chunk-WN3F4CVG.js +3201 -0
- package/Build/Workers/chunk-WPRUWXGV.js +693 -0
- package/Build/Workers/chunk-WTO2ERBP.js +414 -0
- package/Build/Workers/chunk-WVHMDVG4.js +959 -0
- package/Build/Workers/chunk-XCBZVTIV.js +280 -0
- package/Build/Workers/chunk-XGA23TAX.js +73 -0
- package/Build/Workers/chunk-XLQZNQ4Z.js +163 -0
- package/Build/Workers/chunk-XQH66YJC.js +147 -0
- package/Build/Workers/chunk-XTA7BXJG.js +682 -0
- package/Build/Workers/chunk-XTIDAFRS.js +476 -0
- package/Build/Workers/chunk-XUEDWBUD.js +682 -0
- package/Build/Workers/chunk-XYFLRH3H.js +124 -0
- package/Build/Workers/chunk-Y7JRTRTO.js +305 -0
- package/Build/Workers/chunk-Y7QSMDCJ.js +352 -0
- package/Build/Workers/chunk-YCB5TYTR.js +1483 -0
- package/Build/Workers/chunk-YEYOSTJX.js +219 -0
- package/Build/Workers/chunk-YGFVAGYF.js +630 -0
- package/Build/Workers/chunk-YIIACKQO.js +368 -0
- package/Build/Workers/chunk-YJGSP6PE.js +511 -0
- package/Build/Workers/chunk-Z4LR5EHE.js +454 -0
- package/Build/Workers/chunk-Z66EVE2A.js +44 -0
- package/Build/Workers/chunk-ZHIHHHTB.js +414 -0
- package/Build/Workers/chunk-ZNWHFSLE.js +171 -0
- package/Build/Workers/chunk-ZQLZG4IN.js +2342 -0
- package/Build/Workers/chunk-ZRTSMUZ2.js +414 -0
- package/Build/Workers/chunk-ZZUVT5BM.js +476 -0
- package/Build/Workers/combineGeometry.js +16 -16
- package/Build/Workers/createBoxGeometry.js +10 -10
- package/Build/Workers/createBoxOutlineGeometry.js +8 -8
- package/Build/Workers/createCircleGeometry.js +18 -18
- package/Build/Workers/createCircleOutlineGeometry.js +11 -11
- package/Build/Workers/createCoplanarPolygonGeometry.js +27 -27
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +23 -23
- package/Build/Workers/createCorridorGeometry.js +23 -25
- package/Build/Workers/createCorridorOutlineGeometry.js +21 -23
- package/Build/Workers/createCylinderGeometry.js +12 -12
- package/Build/Workers/createCylinderOutlineGeometry.js +10 -10
- package/Build/Workers/createEllipseGeometry.js +18 -18
- package/Build/Workers/createEllipseOutlineGeometry.js +11 -11
- package/Build/Workers/createEllipsoidGeometry.js +11 -11
- package/Build/Workers/createEllipsoidOutlineGeometry.js +10 -10
- package/Build/Workers/createFrustumGeometry.js +11 -11
- package/Build/Workers/createFrustumOutlineGeometry.js +11 -11
- package/Build/Workers/createGeometry.js +16 -16
- package/Build/Workers/createGroundPolylineGeometry.js +16 -16
- package/Build/Workers/createPlaneGeometry.js +9 -9
- package/Build/Workers/createPlaneOutlineGeometry.js +8 -8
- package/Build/Workers/createPolygonGeometry.js +25 -25
- package/Build/Workers/createPolygonOutlineGeometry.js +22 -22
- package/Build/Workers/createPolylineGeometry.js +18 -18
- package/Build/Workers/createPolylineVolumeGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +20 -20
- package/Build/Workers/createRectangleGeometry.js +19 -19
- package/Build/Workers/createRectangleOutlineGeometry.js +13 -13
- package/Build/Workers/createSimplePolylineGeometry.js +16 -16
- package/Build/Workers/createSphereGeometry.js +11 -11
- package/Build/Workers/createSphereOutlineGeometry.js +10 -10
- package/Build/Workers/createVectorTileClampedPolylines.js +7 -7
- package/Build/Workers/createVectorTileGeometries.js +15 -15
- package/Build/Workers/createVectorTilePoints.js +6 -6
- package/Build/Workers/createVectorTilePolygons.js +14 -14
- package/Build/Workers/createVectorTilePolylines.js +7 -7
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +17 -17
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +14 -14
- package/Build/Workers/createVerticesFromHeightmap.js +14 -14
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +12 -12
- package/Build/Workers/createWallGeometry.js +17 -17
- package/Build/Workers/createWallOutlineGeometry.js +17 -17
- package/Build/Workers/decodeDraco.js +2 -2
- package/Build/Workers/decodeI3S.js +5 -5
- package/Build/Workers/incrementallyBuildTerrainPicker.js +4 -4
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +14 -14
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +17 -17
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +1 -5
- package/Source/Core/BoundingSphere.js +0 -3
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +3 -4
- package/Source/Core/CoplanarPolygonGeometry.js +2 -2
- package/Source/Core/CorridorGeometry.js +2 -4
- package/Source/Core/CorridorOutlineGeometry.js +1 -3
- package/Source/Core/EarthOrientationParameters.js +2 -2
- package/Source/Core/EllipseGeometryLibrary.js +2 -2
- package/Source/Core/EllipsoidGeodesic.js +3 -3
- package/Source/Core/EllipsoidRhumbLine.js +1 -1
- package/Source/Core/GroundPolylineGeometry.js +2 -2
- package/Source/Core/Heap.js +1 -1
- package/Source/Core/HermitePolynomialApproximation.js +215 -179
- package/Source/Core/InterpolationAlgorithm.js +1 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/JulianDate.js +1 -1
- package/Source/Core/LagrangePolynomialApproximation.js +55 -52
- package/Source/Core/LinearApproximation.js +69 -66
- package/Source/Core/Math.js +59 -0
- package/Source/Core/Matrix2.js +2 -2
- package/Source/Core/Matrix3.js +2 -2
- package/Source/Core/OrthographicFrustum.js +1 -1
- package/Source/Core/PerspectiveFrustum.js +1 -1
- package/Source/Core/PolygonGeometry.js +2 -2
- package/Source/Core/PolygonGeometryLibrary.js +1 -1
- package/Source/Core/PolygonOutlineGeometry.js +1 -1
- package/Source/Core/PolylineGeometry.js +1 -1
- package/Source/Core/PolylineVolumeGeometryLibrary.js +1 -1
- package/Source/Core/Rectangle.js +7 -1
- package/Source/Core/RectangleOutlineGeometry.js +1 -1
- package/Source/Core/SimplePolylineGeometry.js +1 -1
- package/Source/Core/TerrainEncoding.js +2 -2
- package/Source/Core/TerrainPicker.js +179 -168
- package/Source/Core/TimeIntervalCollection.js +1 -3
- package/Source/Core/Tipsify.js +1 -1
- package/Source/Core/Transforms.js +5 -1
- package/Source/Core/VectorPipeline.js +1117 -0
- package/Source/Core/VectorProvider.js +429 -0
- package/Source/Core/WallOutlineGeometry.js +1 -1
- package/Source/Core/getTimestamp.js +4 -2
- package/Source/DataSources/CompositeEntityCollection.js +0 -1
- package/Source/DataSources/CzmlDataSource.js +2 -0
- package/Source/DataSources/DataSourceDisplay.js +1 -1
- package/Source/DataSources/GeoJsonDataSource.js +0 -1
- package/Source/DataSources/GeometryVisualizer.js +1 -1
- package/Source/DataSources/KmlDataSource.js +1 -2
- package/Source/DataSources/PolylineVisualizer.js +1 -1
- package/Source/DataSources/StaticOutlineGeometryBatch.js +1 -1
- package/Source/Renderer/AutomaticUniforms.js +23 -0
- package/Source/Renderer/Context.js +9 -3
- package/Source/Renderer/DrawCommand.js +22 -0
- package/Source/Renderer/Framebuffer.js +4 -0
- package/Source/Renderer/Pass.js +11 -10
- package/Source/Renderer/Texture.js +11 -0
- package/Source/Renderer/UniformState.js +7 -0
- package/Source/Renderer/VertexArray.js +0 -1
- package/Source/Scene/ArcGisMapServerImageryProvider.js +0 -5
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +2 -1
- package/Source/Scene/BillboardCollection.js +7 -3
- package/Source/Scene/BufferPrimitiveCollection.js +27 -5
- package/Source/Scene/Camera.js +71 -5
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClippingPlaneCollection.js +2 -2
- package/Source/Scene/Controllers/Controller.js +63 -0
- package/Source/Scene/Controllers/ControllerHost.js +78 -0
- package/Source/Scene/Controllers/HybridScreenSpacePanCameraController.js +106 -0
- package/Source/Scene/Controllers/MouseButton.js +32 -0
- package/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js +295 -0
- package/Source/Scene/Controllers/ScreenSpaceInputBindings.js +154 -0
- package/Source/Scene/Controllers/ScreenSpaceMapCameraController.js +310 -0
- package/Source/Scene/Controllers/ScreenSpaceTiltOrbitCameraController.js +642 -0
- package/Source/Scene/Controllers/ScreenSpaceZoomCameraController.js +431 -0
- package/Source/Scene/Controllers/defaultPickWorldPosition.js +84 -0
- package/Source/Scene/DerivedCommand.js +94 -0
- package/Source/Scene/EdgeFramebuffer.js +1 -5
- package/Source/Scene/FrameState.js +17 -0
- package/Source/Scene/Globe.js +20 -0
- package/Source/Scene/GlobeDepth.js +27 -1
- package/Source/Scene/GlobeSurfaceShaderSet.js +12 -2
- package/Source/Scene/GlobeSurfaceTile.js +48 -10
- package/Source/Scene/GlobeSurfaceTileProvider.js +121 -3
- package/Source/Scene/GltfLoader.js +32 -3
- package/Source/Scene/GltfSpzLoader.js +1 -1
- package/Source/Scene/GltfVertexBufferLoader.js +6 -3
- package/Source/Scene/I3SDataProvider.js +1 -1
- package/Source/Scene/I3SLayer.js +1 -1
- package/Source/Scene/I3SNode.js +2 -2
- package/Source/Scene/ImageryLayerCollection.js +188 -4
- package/Source/Scene/IonImageryProvider.js +1 -5
- package/Source/Scene/Label.js +4 -4
- package/Source/Scene/LabelCollection.js +1 -1
- package/Source/Scene/MVTDataProvider.js +2 -0
- package/Source/Scene/Model/B3dmLoader.js +1 -2
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +10 -8
- package/Source/Scene/Model/I3dmLoader.js +1 -1
- package/Source/Scene/Model/InstancingPipelineStage.js +4 -7
- package/Source/Scene/Model/MaterialPipelineStage.js +124 -1
- package/Source/Scene/Model/Model.js +8 -10
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +28 -1
- package/Source/Scene/Model/ModelDrawCommand.js +160 -16
- package/Source/Scene/Model/ModelDrawCommands.js +4 -0
- package/Source/Scene/Model/ModelSceneGraph.js +21 -0
- package/Source/Scene/Model/PickingPipelineStage.js +29 -0
- package/Source/Scene/Model/PrimitiveRenderResources.js +24 -0
- package/Source/Scene/ModelComponents.js +71 -0
- package/Source/Scene/Picking.js +16 -5
- package/Source/Scene/PlanarFillIdFramebuffer.js +172 -0
- package/Source/Scene/PntsParser.js +0 -1
- package/Source/Scene/PolylineCollection.js +1 -1
- package/Source/Scene/PostProcessStage.js +4 -2
- package/Source/Scene/ResourceCache.js +7 -4
- package/Source/Scene/ResourceCacheKey.js +16 -13
- package/Source/Scene/Scene.js +202 -5
- package/Source/Scene/ScreenSpaceCameraController.js +1 -2
- package/Source/Scene/ShadowMap.js +9 -3
- package/Source/Scene/ShadowMapShader.js +50 -2
- package/Source/Scene/SnapFramebuffer.js +121 -0
- package/Source/Scene/Snapping.js +184 -0
- package/Source/Scene/TerrainFillMesh.js +3 -2
- package/Source/Scene/UrlTemplate3DTilesDataProvider.js +1 -1
- package/Source/Scene/Vector3DTileContent.js +2 -3
- package/Source/Scene/VectorGltf3DTileContent.js +23 -3
- package/Source/Scene/View.js +10 -8
- package/Source/Scene/VoxelTraversal.js +1 -1
- package/Source/Scene/createElevationBandMaterial.js +1 -1
- package/Source/Scene/renderBufferPointCollection.js +1 -2
- package/Source/Scene/renderBufferPolygonCollection.js +1 -2
- package/Source/Scene/renderBufferPolylineCollection.js +1 -2
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTilePlanarFillId.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTilePlanarFillId.js +11 -0
- package/Source/Shaders/Builtin/Constants/passClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
- package/Source/Shaders/GlobeFS.glsl +10 -5
- package/Source/Shaders/GlobeFS.js +9 -5
- package/Source/Shaders/Materials/PolylineGlowMaterial.glsl +1 -1
- package/Source/Shaders/Materials/PolylineGlowMaterial.js +1 -1
- package/Source/Shaders/Model/MaterialStageFS.glsl +8 -2
- package/Source/Shaders/Model/MaterialStageFS.js +8 -2
- package/Source/Shaders/Model/ModelFS.glsl +105 -0
- package/Source/Shaders/Model/ModelFS.js +105 -0
- package/Source/Shaders/VectorCommon.glsl +178 -0
- package/Source/Shaders/VectorCommon.js +75 -0
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/Source/Widget/CesiumWidget.js +30 -0
- package/index.d.ts +770 -10
- package/index.js +177 -160
- package/package.json +1 -1
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.0
|
|
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
|
+
|
|
27
|
+
// node_modules/@cesium/wasm-splats/wasm_splats.js
|
|
28
|
+
var wasm;
|
|
29
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
|
30
|
+
throw Error("TextDecoder not available");
|
|
31
|
+
} };
|
|
32
|
+
if (typeof TextDecoder !== "undefined") {
|
|
33
|
+
cachedTextDecoder.decode();
|
|
34
|
+
}
|
|
35
|
+
var cachedUint8ArrayMemory0 = null;
|
|
36
|
+
function getUint8ArrayMemory0() {
|
|
37
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
38
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
39
|
+
}
|
|
40
|
+
return cachedUint8ArrayMemory0;
|
|
41
|
+
}
|
|
42
|
+
function getStringFromWasm0(ptr, len) {
|
|
43
|
+
ptr = ptr >>> 0;
|
|
44
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
45
|
+
}
|
|
46
|
+
var cachedUint32ArrayMemory0 = null;
|
|
47
|
+
function getUint32ArrayMemory0() {
|
|
48
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
49
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
50
|
+
}
|
|
51
|
+
return cachedUint32ArrayMemory0;
|
|
52
|
+
}
|
|
53
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
54
|
+
ptr = ptr >>> 0;
|
|
55
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
56
|
+
}
|
|
57
|
+
var WASM_VECTOR_LEN = 0;
|
|
58
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
59
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
60
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
61
|
+
WASM_VECTOR_LEN = arg.length;
|
|
62
|
+
return ptr;
|
|
63
|
+
}
|
|
64
|
+
function takeFromExternrefTable0(idx) {
|
|
65
|
+
const value = wasm.__wbindgen_export_0.get(idx);
|
|
66
|
+
wasm.__externref_table_dealloc(idx);
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
function generate_splat_texture(positions, scales, rotations, colors, count) {
|
|
70
|
+
const ret = wasm.generate_splat_texture(positions, scales, rotations, colors, count);
|
|
71
|
+
if (ret[2]) {
|
|
72
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
73
|
+
}
|
|
74
|
+
return TextureData.__wrap(ret[0]);
|
|
75
|
+
}
|
|
76
|
+
function radix_sort_gaussians_indexes(positions_arr, model_view_arr, count) {
|
|
77
|
+
const ret = wasm.radix_sort_gaussians_indexes(positions_arr, model_view_arr, count);
|
|
78
|
+
if (ret[2]) {
|
|
79
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
80
|
+
}
|
|
81
|
+
return takeFromExternrefTable0(ret[0]);
|
|
82
|
+
}
|
|
83
|
+
var TextureDataFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
84
|
+
}, unregister: () => {
|
|
85
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_texturedata_free(ptr >>> 0, 1));
|
|
86
|
+
var TextureData = class _TextureData {
|
|
87
|
+
static __wrap(ptr) {
|
|
88
|
+
ptr = ptr >>> 0;
|
|
89
|
+
const obj = Object.create(_TextureData.prototype);
|
|
90
|
+
obj.__wbg_ptr = ptr;
|
|
91
|
+
TextureDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
92
|
+
return obj;
|
|
93
|
+
}
|
|
94
|
+
__destroy_into_raw() {
|
|
95
|
+
const ptr = this.__wbg_ptr;
|
|
96
|
+
this.__wbg_ptr = 0;
|
|
97
|
+
TextureDataFinalization.unregister(this);
|
|
98
|
+
return ptr;
|
|
99
|
+
}
|
|
100
|
+
free() {
|
|
101
|
+
const ptr = this.__destroy_into_raw();
|
|
102
|
+
wasm.__wbg_texturedata_free(ptr, 0);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Getter for the underlying texture data. Always returns a copy.
|
|
106
|
+
* @returns {Uint32Array}
|
|
107
|
+
*/
|
|
108
|
+
get data() {
|
|
109
|
+
const ret = wasm.texturedata_data(this.__wbg_ptr);
|
|
110
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
111
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
112
|
+
return v1;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Getter for the width of the texture in pixels.
|
|
116
|
+
* @returns {number}
|
|
117
|
+
*/
|
|
118
|
+
get width() {
|
|
119
|
+
const ret = wasm.texturedata_width(this.__wbg_ptr);
|
|
120
|
+
return ret >>> 0;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Getter for the height of the texture in pixels.
|
|
124
|
+
* @returns {number}
|
|
125
|
+
*/
|
|
126
|
+
get height() {
|
|
127
|
+
const ret = wasm.texturedata_height(this.__wbg_ptr);
|
|
128
|
+
return ret >>> 0;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Creates a new texture data object with the underlying data, width, and height.
|
|
132
|
+
* @param {Uint32Array} data
|
|
133
|
+
* @param {number} width
|
|
134
|
+
* @param {number} height
|
|
135
|
+
* @returns {TextureData}
|
|
136
|
+
*/
|
|
137
|
+
static new(data, width, height) {
|
|
138
|
+
const ptr0 = passArray32ToWasm0(data, wasm.__wbindgen_malloc);
|
|
139
|
+
const len0 = WASM_VECTOR_LEN;
|
|
140
|
+
const ret = wasm.texturedata_new(ptr0, len0, width, height);
|
|
141
|
+
return _TextureData.__wrap(ret);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
async function __wbg_load(module, imports) {
|
|
145
|
+
if (typeof Response === "function" && module instanceof Response) {
|
|
146
|
+
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
147
|
+
try {
|
|
148
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
149
|
+
} catch (e) {
|
|
150
|
+
if (module.headers.get("Content-Type") != "application/wasm") {
|
|
151
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
152
|
+
} else {
|
|
153
|
+
throw e;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
const bytes = await module.arrayBuffer();
|
|
158
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
159
|
+
} else {
|
|
160
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
161
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
162
|
+
return { instance, module };
|
|
163
|
+
} else {
|
|
164
|
+
return instance;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function __wbg_get_imports() {
|
|
169
|
+
const imports = {};
|
|
170
|
+
imports.wbg = {};
|
|
171
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
172
|
+
const ret = arg0.buffer;
|
|
173
|
+
return ret;
|
|
174
|
+
};
|
|
175
|
+
imports.wbg.__wbg_length_3b4f022188ae8db6 = function(arg0) {
|
|
176
|
+
const ret = arg0.length;
|
|
177
|
+
return ret;
|
|
178
|
+
};
|
|
179
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
180
|
+
const ret = arg0.length;
|
|
181
|
+
return ret;
|
|
182
|
+
};
|
|
183
|
+
imports.wbg.__wbg_new_780abee5c1739fd7 = function(arg0) {
|
|
184
|
+
const ret = new Float32Array(arg0);
|
|
185
|
+
return ret;
|
|
186
|
+
};
|
|
187
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
188
|
+
const ret = new Uint8Array(arg0);
|
|
189
|
+
return ret;
|
|
190
|
+
};
|
|
191
|
+
imports.wbg.__wbg_new_e3b321dcfef89fc7 = function(arg0) {
|
|
192
|
+
const ret = new Uint32Array(arg0);
|
|
193
|
+
return ret;
|
|
194
|
+
};
|
|
195
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212 = function(arg0, arg1, arg2) {
|
|
196
|
+
const ret = new Uint32Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
197
|
+
return ret;
|
|
198
|
+
};
|
|
199
|
+
imports.wbg.__wbg_set_10bad9bee0e9c58b = function(arg0, arg1, arg2) {
|
|
200
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
201
|
+
};
|
|
202
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
203
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
204
|
+
};
|
|
205
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
206
|
+
const table = wasm.__wbindgen_export_0;
|
|
207
|
+
const offset = table.grow(4);
|
|
208
|
+
table.set(0, void 0);
|
|
209
|
+
table.set(offset + 0, void 0);
|
|
210
|
+
table.set(offset + 1, null);
|
|
211
|
+
table.set(offset + 2, true);
|
|
212
|
+
table.set(offset + 3, false);
|
|
213
|
+
;
|
|
214
|
+
};
|
|
215
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
216
|
+
const ret = wasm.memory;
|
|
217
|
+
return ret;
|
|
218
|
+
};
|
|
219
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
220
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
221
|
+
return ret;
|
|
222
|
+
};
|
|
223
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
224
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
225
|
+
};
|
|
226
|
+
return imports;
|
|
227
|
+
}
|
|
228
|
+
function __wbg_init_memory(imports, memory) {
|
|
229
|
+
}
|
|
230
|
+
function __wbg_finalize_init(instance, module) {
|
|
231
|
+
wasm = instance.exports;
|
|
232
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
233
|
+
cachedUint32ArrayMemory0 = null;
|
|
234
|
+
cachedUint8ArrayMemory0 = null;
|
|
235
|
+
wasm.__wbindgen_start();
|
|
236
|
+
return wasm;
|
|
237
|
+
}
|
|
238
|
+
function initSync(module) {
|
|
239
|
+
if (wasm !== void 0) return wasm;
|
|
240
|
+
if (typeof module !== "undefined") {
|
|
241
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
242
|
+
({ module } = module);
|
|
243
|
+
} else {
|
|
244
|
+
console.warn("using deprecated parameters for `initSync()`; pass a single object instead");
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
const imports = __wbg_get_imports();
|
|
248
|
+
__wbg_init_memory(imports);
|
|
249
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
250
|
+
module = new WebAssembly.Module(module);
|
|
251
|
+
}
|
|
252
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
253
|
+
return __wbg_finalize_init(instance, module);
|
|
254
|
+
}
|
|
255
|
+
async function __wbg_init(module_or_path) {
|
|
256
|
+
if (wasm !== void 0) return wasm;
|
|
257
|
+
if (typeof module_or_path !== "undefined") {
|
|
258
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
259
|
+
({ module_or_path } = module_or_path);
|
|
260
|
+
} else {
|
|
261
|
+
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (typeof module_or_path === "undefined") {
|
|
265
|
+
module_or_path = new URL("wasm_splats_bg.wasm", import.meta.url);
|
|
266
|
+
}
|
|
267
|
+
const imports = __wbg_get_imports();
|
|
268
|
+
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
269
|
+
module_or_path = fetch(module_or_path);
|
|
270
|
+
}
|
|
271
|
+
__wbg_init_memory(imports);
|
|
272
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
273
|
+
return __wbg_finalize_init(instance, module);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export {
|
|
277
|
+
generate_splat_texture,
|
|
278
|
+
radix_sort_gaussians_indexes,
|
|
279
|
+
initSync
|
|
280
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.0
|
|
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
|
+
Math_default
|
|
28
|
+
} from "./chunk-ACTVJHSP.js";
|
|
29
|
+
|
|
30
|
+
// packages/engine/Source/Core/CylinderGeometryLibrary.js
|
|
31
|
+
var CylinderGeometryLibrary = {};
|
|
32
|
+
CylinderGeometryLibrary.computePositions = function(length, topRadius, bottomRadius, slices, fill) {
|
|
33
|
+
const topZ = length * 0.5;
|
|
34
|
+
const bottomZ = -topZ;
|
|
35
|
+
const twoSlice = slices + slices;
|
|
36
|
+
const size = fill ? 2 * twoSlice : twoSlice;
|
|
37
|
+
const positions = new Float64Array(size * 3);
|
|
38
|
+
let i;
|
|
39
|
+
let index = 0;
|
|
40
|
+
let tbIndex = 0;
|
|
41
|
+
const bottomOffset = fill ? twoSlice * 3 : 0;
|
|
42
|
+
const topOffset = fill ? (twoSlice + slices) * 3 : slices * 3;
|
|
43
|
+
for (i = 0; i < slices; i++) {
|
|
44
|
+
const angle = i / slices * Math_default.TWO_PI;
|
|
45
|
+
const x = Math.cos(angle);
|
|
46
|
+
const y = Math.sin(angle);
|
|
47
|
+
const bottomX = x * bottomRadius;
|
|
48
|
+
const bottomY = y * bottomRadius;
|
|
49
|
+
const topX = x * topRadius;
|
|
50
|
+
const topY = y * topRadius;
|
|
51
|
+
positions[tbIndex + bottomOffset] = bottomX;
|
|
52
|
+
positions[tbIndex + bottomOffset + 1] = bottomY;
|
|
53
|
+
positions[tbIndex + bottomOffset + 2] = bottomZ;
|
|
54
|
+
positions[tbIndex + topOffset] = topX;
|
|
55
|
+
positions[tbIndex + topOffset + 1] = topY;
|
|
56
|
+
positions[tbIndex + topOffset + 2] = topZ;
|
|
57
|
+
tbIndex += 3;
|
|
58
|
+
if (fill) {
|
|
59
|
+
positions[index++] = bottomX;
|
|
60
|
+
positions[index++] = bottomY;
|
|
61
|
+
positions[index++] = bottomZ;
|
|
62
|
+
positions[index++] = topX;
|
|
63
|
+
positions[index++] = topY;
|
|
64
|
+
positions[index++] = topZ;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return positions;
|
|
68
|
+
};
|
|
69
|
+
var CylinderGeometryLibrary_default = CylinderGeometryLibrary;
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
CylinderGeometryLibrary_default
|
|
73
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.0
|
|
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
|
+
defined_default
|
|
28
|
+
} from "./chunk-PCL3Y7H5.js";
|
|
29
|
+
|
|
30
|
+
// packages/engine/Source/Core/DeveloperError.js
|
|
31
|
+
function DeveloperError(message) {
|
|
32
|
+
this.name = "DeveloperError";
|
|
33
|
+
this.message = message;
|
|
34
|
+
let stack;
|
|
35
|
+
try {
|
|
36
|
+
throw new Error();
|
|
37
|
+
} catch (e) {
|
|
38
|
+
stack = e.stack;
|
|
39
|
+
}
|
|
40
|
+
this.stack = stack;
|
|
41
|
+
}
|
|
42
|
+
if (defined_default(Object.create)) {
|
|
43
|
+
DeveloperError.prototype = Object.create(Error.prototype);
|
|
44
|
+
DeveloperError.prototype.constructor = DeveloperError;
|
|
45
|
+
}
|
|
46
|
+
DeveloperError.prototype.toString = function() {
|
|
47
|
+
let str = `${this.name}: ${this.message}`;
|
|
48
|
+
if (defined_default(this.stack)) {
|
|
49
|
+
str += `
|
|
50
|
+
${this.stack.toString()}`;
|
|
51
|
+
}
|
|
52
|
+
return str;
|
|
53
|
+
};
|
|
54
|
+
DeveloperError.throwInstantiationError = function() {
|
|
55
|
+
throw new DeveloperError(
|
|
56
|
+
"This function defines an interface and should not be called directly."
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
var DeveloperError_default = DeveloperError;
|
|
60
|
+
|
|
61
|
+
// packages/engine/Source/Core/Check.js
|
|
62
|
+
var Check = {};
|
|
63
|
+
Check.typeOf = {};
|
|
64
|
+
function getUndefinedErrorMessage(name) {
|
|
65
|
+
return `${name} is required, actual value was undefined`;
|
|
66
|
+
}
|
|
67
|
+
function getFailedTypeErrorMessage(actual, expected, name) {
|
|
68
|
+
return `Expected ${name} to be typeof ${expected}, actual typeof was ${actual}`;
|
|
69
|
+
}
|
|
70
|
+
Check.defined = function(name, test) {
|
|
71
|
+
if (!defined_default(test)) {
|
|
72
|
+
throw new DeveloperError_default(getUndefinedErrorMessage(name));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
Check.typeOf.func = function(name, test) {
|
|
76
|
+
if (typeof test !== "function") {
|
|
77
|
+
throw new DeveloperError_default(
|
|
78
|
+
getFailedTypeErrorMessage(typeof test, "function", name)
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
Check.typeOf.string = function(name, test) {
|
|
83
|
+
if (typeof test !== "string") {
|
|
84
|
+
throw new DeveloperError_default(
|
|
85
|
+
getFailedTypeErrorMessage(typeof test, "string", name)
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
Check.typeOf.number = function(name, test) {
|
|
90
|
+
if (typeof test !== "number") {
|
|
91
|
+
throw new DeveloperError_default(
|
|
92
|
+
getFailedTypeErrorMessage(typeof test, "number", name)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
Check.typeOf.number.lessThan = function(name, test, limit) {
|
|
97
|
+
Check.typeOf.number(name, test);
|
|
98
|
+
if (test >= limit) {
|
|
99
|
+
throw new DeveloperError_default(
|
|
100
|
+
`Expected ${name} to be less than ${limit}, actual value was ${test}`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
Check.typeOf.number.lessThanOrEquals = function(name, test, limit) {
|
|
105
|
+
Check.typeOf.number(name, test);
|
|
106
|
+
if (test > limit) {
|
|
107
|
+
throw new DeveloperError_default(
|
|
108
|
+
`Expected ${name} to be less than or equal to ${limit}, actual value was ${test}`
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
Check.typeOf.number.greaterThan = function(name, test, limit) {
|
|
113
|
+
Check.typeOf.number(name, test);
|
|
114
|
+
if (test <= limit) {
|
|
115
|
+
throw new DeveloperError_default(
|
|
116
|
+
`Expected ${name} to be greater than ${limit}, actual value was ${test}`
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
Check.typeOf.number.greaterThanOrEquals = function(name, test, limit) {
|
|
121
|
+
Check.typeOf.number(name, test);
|
|
122
|
+
if (test < limit) {
|
|
123
|
+
throw new DeveloperError_default(
|
|
124
|
+
`Expected ${name} to be greater than or equal to ${limit}, actual value was ${test}`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
Check.typeOf.object = function(name, test) {
|
|
129
|
+
if (typeof test !== "object") {
|
|
130
|
+
throw new DeveloperError_default(
|
|
131
|
+
getFailedTypeErrorMessage(typeof test, "object", name)
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
Check.typeOf.bool = function(name, test) {
|
|
136
|
+
if (typeof test !== "boolean") {
|
|
137
|
+
throw new DeveloperError_default(
|
|
138
|
+
getFailedTypeErrorMessage(typeof test, "boolean", name)
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
Check.typeOf.bigint = function(name, test) {
|
|
143
|
+
if (typeof test !== "bigint") {
|
|
144
|
+
throw new DeveloperError_default(
|
|
145
|
+
getFailedTypeErrorMessage(typeof test, "bigint", name)
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
Check.typeOf.number.equals = function(name1, name2, test1, test2) {
|
|
150
|
+
Check.typeOf.number(name1, test1);
|
|
151
|
+
Check.typeOf.number(name2, test2);
|
|
152
|
+
if (test1 !== test2) {
|
|
153
|
+
throw new DeveloperError_default(
|
|
154
|
+
`${name1} must be equal to ${name2}, the actual values are ${test1} and ${test2}`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
var Check_default = Check;
|
|
159
|
+
|
|
160
|
+
export {
|
|
161
|
+
DeveloperError_default,
|
|
162
|
+
Check_default
|
|
163
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
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
|
+
Cartographic_default,
|
|
28
|
+
Ellipsoid_default
|
|
29
|
+
} from "./chunk-UTB7U3O6.js";
|
|
30
|
+
import {
|
|
31
|
+
Cartesian3_default
|
|
32
|
+
} from "./chunk-ZQLZG4IN.js";
|
|
33
|
+
import {
|
|
34
|
+
Math_default
|
|
35
|
+
} from "./chunk-5YPQBFRD.js";
|
|
36
|
+
import {
|
|
37
|
+
DeveloperError_default
|
|
38
|
+
} from "./chunk-6YR6JBMY.js";
|
|
39
|
+
import {
|
|
40
|
+
defined_default
|
|
41
|
+
} from "./chunk-AHWAZRBV.js";
|
|
42
|
+
|
|
43
|
+
// packages/engine/Source/Core/WebMercatorProjection.js
|
|
44
|
+
var WebMercatorProjection = class _WebMercatorProjection {
|
|
45
|
+
/**
|
|
46
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid.
|
|
47
|
+
*/
|
|
48
|
+
constructor(ellipsoid) {
|
|
49
|
+
this._ellipsoid = ellipsoid ?? Ellipsoid_default.WGS84;
|
|
50
|
+
this._semimajorAxis = this._ellipsoid.maximumRadius;
|
|
51
|
+
this._oneOverSemimajorAxis = 1 / this._semimajorAxis;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Gets the {@link Ellipsoid}.
|
|
55
|
+
*
|
|
56
|
+
* @type {Ellipsoid}
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
get ellipsoid() {
|
|
60
|
+
return this._ellipsoid;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Converts a Mercator angle, in the range -PI to PI, to a geodetic latitude
|
|
64
|
+
* in the range -PI/2 to PI/2.
|
|
65
|
+
*
|
|
66
|
+
* @param {number} mercatorAngle The angle to convert.
|
|
67
|
+
* @returns {number} The geodetic latitude in radians.
|
|
68
|
+
*/
|
|
69
|
+
static mercatorAngleToGeodeticLatitude(mercatorAngle) {
|
|
70
|
+
return Math_default.PI_OVER_TWO - 2 * Math.atan(Math.exp(-mercatorAngle));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Converts a geodetic latitude in radians, in the range -PI/2 to PI/2, to a Mercator
|
|
74
|
+
* angle in the range -PI to PI.
|
|
75
|
+
*
|
|
76
|
+
* @param {number} latitude The geodetic latitude in radians.
|
|
77
|
+
* @returns {number} The Mercator angle.
|
|
78
|
+
*/
|
|
79
|
+
static geodeticLatitudeToMercatorAngle(latitude) {
|
|
80
|
+
if (latitude > _WebMercatorProjection.MaximumLatitude) {
|
|
81
|
+
latitude = _WebMercatorProjection.MaximumLatitude;
|
|
82
|
+
} else if (latitude < -_WebMercatorProjection.MaximumLatitude) {
|
|
83
|
+
latitude = -_WebMercatorProjection.MaximumLatitude;
|
|
84
|
+
}
|
|
85
|
+
const sinLatitude = Math.sin(latitude);
|
|
86
|
+
return 0.5 * Math.log((1 + sinLatitude) / (1 - sinLatitude));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Converts geodetic ellipsoid coordinates, in radians, to the equivalent Web Mercator
|
|
90
|
+
* X, Y, Z coordinates expressed in meters and returned in a {@link Cartesian3}. The height
|
|
91
|
+
* is copied unmodified to the Z coordinate.
|
|
92
|
+
*
|
|
93
|
+
* @param {Cartographic} cartographic The cartographic coordinates in radians.
|
|
94
|
+
* @param {Cartesian3} [result] The instance to which to copy the result, or undefined if a
|
|
95
|
+
* new instance should be created.
|
|
96
|
+
* @returns {Cartesian3} The equivalent web mercator X, Y, Z coordinates, in meters.
|
|
97
|
+
*/
|
|
98
|
+
project(cartographic, result) {
|
|
99
|
+
const semimajorAxis = this._semimajorAxis;
|
|
100
|
+
const x = cartographic.longitude * semimajorAxis;
|
|
101
|
+
const y = _WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
102
|
+
cartographic.latitude
|
|
103
|
+
) * semimajorAxis;
|
|
104
|
+
const z = cartographic.height;
|
|
105
|
+
if (!defined_default(result)) {
|
|
106
|
+
return new Cartesian3_default(x, y, z);
|
|
107
|
+
}
|
|
108
|
+
result.x = x;
|
|
109
|
+
result.y = y;
|
|
110
|
+
result.z = z;
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Converts Web Mercator X, Y coordinates, expressed in meters, to a {@link Cartographic}
|
|
115
|
+
* containing geodetic ellipsoid coordinates. The Z coordinate is copied unmodified to the
|
|
116
|
+
* height.
|
|
117
|
+
*
|
|
118
|
+
* @param {Cartesian3} cartesian The web mercator Cartesian position to unrproject with height (z) in meters.
|
|
119
|
+
* @param {Cartographic} [result] The instance to which to copy the result, or undefined if a
|
|
120
|
+
* new instance should be created.
|
|
121
|
+
* @returns {Cartographic} The equivalent cartographic coordinates.
|
|
122
|
+
*/
|
|
123
|
+
unproject(cartesian, result) {
|
|
124
|
+
if (!defined_default(cartesian)) {
|
|
125
|
+
throw new DeveloperError_default("cartesian is required");
|
|
126
|
+
}
|
|
127
|
+
const oneOverEarthSemimajorAxis = this._oneOverSemimajorAxis;
|
|
128
|
+
const longitude = cartesian.x * oneOverEarthSemimajorAxis;
|
|
129
|
+
const latitude = _WebMercatorProjection.mercatorAngleToGeodeticLatitude(
|
|
130
|
+
cartesian.y * oneOverEarthSemimajorAxis
|
|
131
|
+
);
|
|
132
|
+
const height = cartesian.z;
|
|
133
|
+
if (!defined_default(result)) {
|
|
134
|
+
return new Cartographic_default(longitude, latitude, height);
|
|
135
|
+
}
|
|
136
|
+
result.longitude = longitude;
|
|
137
|
+
result.latitude = latitude;
|
|
138
|
+
result.height = height;
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
WebMercatorProjection.MaximumLatitude = WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI);
|
|
143
|
+
var WebMercatorProjection_default = WebMercatorProjection;
|
|
144
|
+
|
|
145
|
+
export {
|
|
146
|
+
WebMercatorProjection_default
|
|
147
|
+
};
|