@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,198 @@
|
|
|
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
|
+
PolylinePipeline_default
|
|
28
|
+
} from "./chunk-WTO2ERBP.js";
|
|
29
|
+
import {
|
|
30
|
+
arrayRemoveDuplicates_default
|
|
31
|
+
} from "./chunk-K27QOAW6.js";
|
|
32
|
+
import {
|
|
33
|
+
Cartographic_default
|
|
34
|
+
} from "./chunk-UTB7U3O6.js";
|
|
35
|
+
import {
|
|
36
|
+
Cartesian3_default
|
|
37
|
+
} from "./chunk-ZQLZG4IN.js";
|
|
38
|
+
import {
|
|
39
|
+
Math_default
|
|
40
|
+
} from "./chunk-5YPQBFRD.js";
|
|
41
|
+
import {
|
|
42
|
+
defined_default
|
|
43
|
+
} from "./chunk-AHWAZRBV.js";
|
|
44
|
+
|
|
45
|
+
// packages/engine/Source/Core/WallGeometryLibrary.js
|
|
46
|
+
var WallGeometryLibrary = {};
|
|
47
|
+
function latLonEquals(c0, c1) {
|
|
48
|
+
return Math_default.equalsEpsilon(c0.latitude, c1.latitude, Math_default.EPSILON10) && Math_default.equalsEpsilon(c0.longitude, c1.longitude, Math_default.EPSILON10);
|
|
49
|
+
}
|
|
50
|
+
var scratchCartographic1 = new Cartographic_default();
|
|
51
|
+
var scratchCartographic2 = new Cartographic_default();
|
|
52
|
+
function removeDuplicates(ellipsoid, positions, topHeights, bottomHeights) {
|
|
53
|
+
positions = arrayRemoveDuplicates_default(positions, Cartesian3_default.equalsEpsilon);
|
|
54
|
+
const length = positions.length;
|
|
55
|
+
if (length < 2) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const hasBottomHeights = defined_default(bottomHeights);
|
|
59
|
+
const hasTopHeights = defined_default(topHeights);
|
|
60
|
+
const cleanedPositions = new Array(length);
|
|
61
|
+
const cleanedTopHeights = new Array(length);
|
|
62
|
+
const cleanedBottomHeights = new Array(length);
|
|
63
|
+
const v0 = positions[0];
|
|
64
|
+
cleanedPositions[0] = v0;
|
|
65
|
+
const c0 = ellipsoid.cartesianToCartographic(v0, scratchCartographic1);
|
|
66
|
+
if (hasTopHeights) {
|
|
67
|
+
c0.height = topHeights[0];
|
|
68
|
+
}
|
|
69
|
+
cleanedTopHeights[0] = c0.height;
|
|
70
|
+
if (hasBottomHeights) {
|
|
71
|
+
cleanedBottomHeights[0] = bottomHeights[0];
|
|
72
|
+
} else {
|
|
73
|
+
cleanedBottomHeights[0] = 0;
|
|
74
|
+
}
|
|
75
|
+
const startTopHeight = cleanedTopHeights[0];
|
|
76
|
+
const startBottomHeight = cleanedBottomHeights[0];
|
|
77
|
+
let hasAllSameHeights = startTopHeight === startBottomHeight;
|
|
78
|
+
let index = 1;
|
|
79
|
+
for (let i = 1; i < length; ++i) {
|
|
80
|
+
const v1 = positions[i];
|
|
81
|
+
const c1 = ellipsoid.cartesianToCartographic(v1, scratchCartographic2);
|
|
82
|
+
if (hasTopHeights) {
|
|
83
|
+
c1.height = topHeights[i];
|
|
84
|
+
}
|
|
85
|
+
hasAllSameHeights = hasAllSameHeights && c1.height === 0;
|
|
86
|
+
if (!latLonEquals(c0, c1)) {
|
|
87
|
+
cleanedPositions[index] = v1;
|
|
88
|
+
cleanedTopHeights[index] = c1.height;
|
|
89
|
+
if (hasBottomHeights) {
|
|
90
|
+
cleanedBottomHeights[index] = bottomHeights[i];
|
|
91
|
+
} else {
|
|
92
|
+
cleanedBottomHeights[index] = 0;
|
|
93
|
+
}
|
|
94
|
+
hasAllSameHeights = hasAllSameHeights && cleanedTopHeights[index] === cleanedBottomHeights[index];
|
|
95
|
+
Cartographic_default.clone(c1, c0);
|
|
96
|
+
++index;
|
|
97
|
+
} else if (c0.height < c1.height) {
|
|
98
|
+
cleanedTopHeights[index - 1] = c1.height;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (hasAllSameHeights || index < 2) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
cleanedPositions.length = index;
|
|
105
|
+
cleanedTopHeights.length = index;
|
|
106
|
+
cleanedBottomHeights.length = index;
|
|
107
|
+
return {
|
|
108
|
+
positions: cleanedPositions,
|
|
109
|
+
topHeights: cleanedTopHeights,
|
|
110
|
+
bottomHeights: cleanedBottomHeights
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
var positionsArrayScratch = new Array(2);
|
|
114
|
+
var heightsArrayScratch = new Array(2);
|
|
115
|
+
var generateArcOptionsScratch = {
|
|
116
|
+
positions: void 0,
|
|
117
|
+
height: void 0,
|
|
118
|
+
granularity: void 0,
|
|
119
|
+
ellipsoid: void 0
|
|
120
|
+
};
|
|
121
|
+
WallGeometryLibrary.computePositions = function(ellipsoid, wallPositions, maximumHeights, minimumHeights, granularity, duplicateCorners) {
|
|
122
|
+
const o = removeDuplicates(
|
|
123
|
+
ellipsoid,
|
|
124
|
+
wallPositions,
|
|
125
|
+
maximumHeights,
|
|
126
|
+
minimumHeights
|
|
127
|
+
);
|
|
128
|
+
if (!defined_default(o)) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
wallPositions = o.positions;
|
|
132
|
+
maximumHeights = o.topHeights;
|
|
133
|
+
minimumHeights = o.bottomHeights;
|
|
134
|
+
const length = wallPositions.length;
|
|
135
|
+
const numCorners = length - 2;
|
|
136
|
+
let topPositions;
|
|
137
|
+
let bottomPositions;
|
|
138
|
+
const minDistance = Math_default.chordLength(
|
|
139
|
+
granularity,
|
|
140
|
+
ellipsoid.maximumRadius
|
|
141
|
+
);
|
|
142
|
+
const generateArcOptions = generateArcOptionsScratch;
|
|
143
|
+
generateArcOptions.minDistance = minDistance;
|
|
144
|
+
generateArcOptions.ellipsoid = ellipsoid;
|
|
145
|
+
if (duplicateCorners) {
|
|
146
|
+
let count = 0;
|
|
147
|
+
let i;
|
|
148
|
+
for (i = 0; i < length - 1; i++) {
|
|
149
|
+
count += PolylinePipeline_default.numberOfPoints(
|
|
150
|
+
wallPositions[i],
|
|
151
|
+
wallPositions[i + 1],
|
|
152
|
+
minDistance
|
|
153
|
+
) + 1;
|
|
154
|
+
}
|
|
155
|
+
topPositions = new Float64Array(count * 3);
|
|
156
|
+
bottomPositions = new Float64Array(count * 3);
|
|
157
|
+
const generateArcPositions = positionsArrayScratch;
|
|
158
|
+
const generateArcHeights = heightsArrayScratch;
|
|
159
|
+
generateArcOptions.positions = generateArcPositions;
|
|
160
|
+
generateArcOptions.height = generateArcHeights;
|
|
161
|
+
let offset = 0;
|
|
162
|
+
for (i = 0; i < length - 1; i++) {
|
|
163
|
+
generateArcPositions[0] = wallPositions[i];
|
|
164
|
+
generateArcPositions[1] = wallPositions[i + 1];
|
|
165
|
+
generateArcHeights[0] = maximumHeights[i];
|
|
166
|
+
generateArcHeights[1] = maximumHeights[i + 1];
|
|
167
|
+
const pos = PolylinePipeline_default.generateArc(generateArcOptions);
|
|
168
|
+
topPositions.set(pos, offset);
|
|
169
|
+
generateArcHeights[0] = minimumHeights[i];
|
|
170
|
+
generateArcHeights[1] = minimumHeights[i + 1];
|
|
171
|
+
bottomPositions.set(
|
|
172
|
+
PolylinePipeline_default.generateArc(generateArcOptions),
|
|
173
|
+
offset
|
|
174
|
+
);
|
|
175
|
+
offset += pos.length;
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
generateArcOptions.positions = wallPositions;
|
|
179
|
+
generateArcOptions.height = maximumHeights;
|
|
180
|
+
topPositions = new Float64Array(
|
|
181
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
182
|
+
);
|
|
183
|
+
generateArcOptions.height = minimumHeights;
|
|
184
|
+
bottomPositions = new Float64Array(
|
|
185
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
bottomPositions,
|
|
190
|
+
topPositions,
|
|
191
|
+
numCorners
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
var WallGeometryLibrary_default = WallGeometryLibrary;
|
|
195
|
+
|
|
196
|
+
export {
|
|
197
|
+
WallGeometryLibrary_default
|
|
198
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
Frozen_default
|
|
28
|
+
} from "./chunk-PEDU33QG.js";
|
|
29
|
+
import {
|
|
30
|
+
DeveloperError_default
|
|
31
|
+
} from "./chunk-6YR6JBMY.js";
|
|
32
|
+
import {
|
|
33
|
+
defined_default
|
|
34
|
+
} from "./chunk-AHWAZRBV.js";
|
|
35
|
+
|
|
36
|
+
// packages/engine/Source/Core/VertexFormat.js
|
|
37
|
+
function VertexFormat(options) {
|
|
38
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
39
|
+
this.position = options.position ?? false;
|
|
40
|
+
this.normal = options.normal ?? false;
|
|
41
|
+
this.st = options.st ?? false;
|
|
42
|
+
this.bitangent = options.bitangent ?? false;
|
|
43
|
+
this.tangent = options.tangent ?? false;
|
|
44
|
+
this.color = options.color ?? false;
|
|
45
|
+
}
|
|
46
|
+
VertexFormat.POSITION_ONLY = Object.freeze(
|
|
47
|
+
new VertexFormat({
|
|
48
|
+
position: true
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
VertexFormat.POSITION_AND_NORMAL = Object.freeze(
|
|
52
|
+
new VertexFormat({
|
|
53
|
+
position: true,
|
|
54
|
+
normal: true
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
VertexFormat.POSITION_NORMAL_AND_ST = Object.freeze(
|
|
58
|
+
new VertexFormat({
|
|
59
|
+
position: true,
|
|
60
|
+
normal: true,
|
|
61
|
+
st: true
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
VertexFormat.POSITION_AND_ST = Object.freeze(
|
|
65
|
+
new VertexFormat({
|
|
66
|
+
position: true,
|
|
67
|
+
st: true
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
VertexFormat.POSITION_AND_COLOR = Object.freeze(
|
|
71
|
+
new VertexFormat({
|
|
72
|
+
position: true,
|
|
73
|
+
color: true
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
VertexFormat.ALL = Object.freeze(
|
|
77
|
+
new VertexFormat({
|
|
78
|
+
position: true,
|
|
79
|
+
normal: true,
|
|
80
|
+
st: true,
|
|
81
|
+
tangent: true,
|
|
82
|
+
bitangent: true
|
|
83
|
+
})
|
|
84
|
+
);
|
|
85
|
+
VertexFormat.DEFAULT = VertexFormat.POSITION_NORMAL_AND_ST;
|
|
86
|
+
VertexFormat.packedLength = 6;
|
|
87
|
+
VertexFormat.pack = function(value, array, startingIndex) {
|
|
88
|
+
if (!defined_default(value)) {
|
|
89
|
+
throw new DeveloperError_default("value is required");
|
|
90
|
+
}
|
|
91
|
+
if (!defined_default(array)) {
|
|
92
|
+
throw new DeveloperError_default("array is required");
|
|
93
|
+
}
|
|
94
|
+
startingIndex = startingIndex ?? 0;
|
|
95
|
+
array[startingIndex++] = value.position ? 1 : 0;
|
|
96
|
+
array[startingIndex++] = value.normal ? 1 : 0;
|
|
97
|
+
array[startingIndex++] = value.st ? 1 : 0;
|
|
98
|
+
array[startingIndex++] = value.tangent ? 1 : 0;
|
|
99
|
+
array[startingIndex++] = value.bitangent ? 1 : 0;
|
|
100
|
+
array[startingIndex] = value.color ? 1 : 0;
|
|
101
|
+
return array;
|
|
102
|
+
};
|
|
103
|
+
VertexFormat.unpack = function(array, startingIndex, result) {
|
|
104
|
+
if (!defined_default(array)) {
|
|
105
|
+
throw new DeveloperError_default("array is required");
|
|
106
|
+
}
|
|
107
|
+
startingIndex = startingIndex ?? 0;
|
|
108
|
+
if (!defined_default(result)) {
|
|
109
|
+
result = new VertexFormat();
|
|
110
|
+
}
|
|
111
|
+
result.position = array[startingIndex++] === 1;
|
|
112
|
+
result.normal = array[startingIndex++] === 1;
|
|
113
|
+
result.st = array[startingIndex++] === 1;
|
|
114
|
+
result.tangent = array[startingIndex++] === 1;
|
|
115
|
+
result.bitangent = array[startingIndex++] === 1;
|
|
116
|
+
result.color = array[startingIndex] === 1;
|
|
117
|
+
return result;
|
|
118
|
+
};
|
|
119
|
+
VertexFormat.clone = function(vertexFormat, result) {
|
|
120
|
+
if (!defined_default(vertexFormat)) {
|
|
121
|
+
return void 0;
|
|
122
|
+
}
|
|
123
|
+
if (!defined_default(result)) {
|
|
124
|
+
result = new VertexFormat();
|
|
125
|
+
}
|
|
126
|
+
result.position = vertexFormat.position;
|
|
127
|
+
result.normal = vertexFormat.normal;
|
|
128
|
+
result.st = vertexFormat.st;
|
|
129
|
+
result.tangent = vertexFormat.tangent;
|
|
130
|
+
result.bitangent = vertexFormat.bitangent;
|
|
131
|
+
result.color = vertexFormat.color;
|
|
132
|
+
return result;
|
|
133
|
+
};
|
|
134
|
+
var VertexFormat_default = VertexFormat;
|
|
135
|
+
|
|
136
|
+
export {
|
|
137
|
+
VertexFormat_default
|
|
138
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
var __create = Object.create;
|
|
27
|
+
var __defProp = Object.defineProperty;
|
|
28
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
29
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
30
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
31
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
32
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
33
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
34
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
35
|
+
}) : x)(function(x) {
|
|
36
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
37
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
38
|
+
});
|
|
39
|
+
var __glob = (map) => (path) => {
|
|
40
|
+
var fn = map[path];
|
|
41
|
+
if (fn) return fn();
|
|
42
|
+
throw new Error("Module not found in bundle: " + path);
|
|
43
|
+
};
|
|
44
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
45
|
+
try {
|
|
46
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
47
|
+
} catch (e) {
|
|
48
|
+
throw mod = 0, e;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var __copyProps = (to, from, except, desc) => {
|
|
52
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
53
|
+
for (let key of __getOwnPropNames(from))
|
|
54
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
55
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
56
|
+
}
|
|
57
|
+
return to;
|
|
58
|
+
};
|
|
59
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
60
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
61
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
62
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
63
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
64
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
65
|
+
mod
|
|
66
|
+
));
|
|
67
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
68
|
+
|
|
69
|
+
// packages/engine/Source/Core/defined.js
|
|
70
|
+
function defined(value) {
|
|
71
|
+
return value !== void 0 && value !== null;
|
|
72
|
+
}
|
|
73
|
+
var defined_default = defined;
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
__require,
|
|
77
|
+
__glob,
|
|
78
|
+
__commonJS,
|
|
79
|
+
__toESM,
|
|
80
|
+
__publicField,
|
|
81
|
+
defined_default
|
|
82
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
Matrix4_default
|
|
28
|
+
} from "./chunk-ERKUET22.js";
|
|
29
|
+
import {
|
|
30
|
+
Frozen_default
|
|
31
|
+
} from "./chunk-SA2A2AN5.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-XLQZNQ4Z.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-PCL3Y7H5.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/GeometryInstance.js
|
|
40
|
+
function GeometryInstance(options) {
|
|
41
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
42
|
+
if (!defined_default(options.geometry)) {
|
|
43
|
+
throw new DeveloperError_default("options.geometry is required.");
|
|
44
|
+
}
|
|
45
|
+
this.geometry = options.geometry;
|
|
46
|
+
this.modelMatrix = Matrix4_default.clone(options.modelMatrix ?? Matrix4_default.IDENTITY);
|
|
47
|
+
this.id = options.id;
|
|
48
|
+
this.pickPrimitive = options.pickPrimitive;
|
|
49
|
+
this.attributes = options.attributes ?? {};
|
|
50
|
+
this.westHemisphereGeometry = void 0;
|
|
51
|
+
this.eastHemisphereGeometry = void 0;
|
|
52
|
+
}
|
|
53
|
+
var GeometryInstance_default = GeometryInstance;
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
GeometryInstance_default
|
|
57
|
+
};
|