@cesium/engine 1.0.0 → 2.0.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/{AttributeCompression-4589338a.js → AttributeCompression-b646d393.js} +1 -1
- package/Build/Workers/{AxisAlignedBoundingBox-bfb1234f.js → AxisAlignedBoundingBox-47525601.js} +1 -1
- package/Build/Workers/{BoundingRectangle-7ffc2153.js → BoundingRectangle-93b263ac.js} +1 -1
- package/Build/Workers/{BoxGeometry-93f344a3.js → BoxGeometry-8c4b4125.js} +1 -1
- package/Build/Workers/{Color-0c5aaf47.js → Color-52c60ed7.js} +1 -1
- package/Build/Workers/{CoplanarPolygonGeometryLibrary-6597982a.js → CoplanarPolygonGeometryLibrary-33c4c1f8.js} +1 -1
- package/Build/Workers/{CorridorGeometryLibrary-2119580e.js → CorridorGeometryLibrary-5039cd8e.js} +1 -1
- package/Build/Workers/{CylinderGeometry-f9503c6d.js → CylinderGeometry-3ac44974.js} +1 -1
- package/Build/Workers/{EllipseGeometry-fedf72d5.js → EllipseGeometry-a9c9b3be.js} +1 -1
- package/Build/Workers/{EllipseGeometryLibrary-4ea68687.js → EllipseGeometryLibrary-855d4681.js} +1 -1
- package/Build/Workers/{EllipseOutlineGeometry-e2ae6a35.js → EllipseOutlineGeometry-017a5929.js} +1 -1
- package/Build/Workers/{EllipsoidGeodesic-16de63ea.js → EllipsoidGeodesic-98c62a56.js} +1 -1
- package/Build/Workers/{EllipsoidGeometry-95c0330e.js → EllipsoidGeometry-826e7bce.js} +1 -1
- package/Build/Workers/{EllipsoidOutlineGeometry-d6d2ceec.js → EllipsoidOutlineGeometry-784dcdb5.js} +1 -1
- package/Build/Workers/{EllipsoidRhumbLine-ae5e65e0.js → EllipsoidRhumbLine-19756602.js} +1 -1
- package/Build/Workers/{EllipsoidTangentPlane-bfc674bf.js → EllipsoidTangentPlane-ed9443a1.js} +1 -1
- package/Build/Workers/{EncodedCartesian3-f473ea18.js → EncodedCartesian3-81f70735.js} +1 -1
- package/Build/Workers/{FrustumGeometry-3bf2e4eb.js → FrustumGeometry-9f1ee4d8.js} +1 -1
- package/Build/Workers/{GeometryAttribute-df5f473e.js → GeometryAttribute-334718f8.js} +1 -1
- package/Build/Workers/{GeometryInstance-aa75b4cf.js → GeometryInstance-451dc1cd.js} +1 -1
- package/Build/Workers/{GeometryPipeline-f0e46c42.js → GeometryPipeline-8fb0db69.js} +1 -1
- package/Build/Workers/{IntersectionTests-9de29d51.js → IntersectionTests-27d49265.js} +1 -1
- package/Build/Workers/{Matrix2-ce637455.js → Matrix2-13178034.js} +4 -2
- package/Build/Workers/{Matrix3-4f4df527.js → Matrix3-315394f6.js} +2 -1
- package/Build/Workers/{OrientedBoundingBox-d3ff3d4d.js → OrientedBoundingBox-79ee7cbb.js} +5 -5
- package/Build/Workers/{Plane-b81241c2.js → Plane-900aa728.js} +1 -1
- package/Build/Workers/{PolygonGeometryLibrary-6f4937bb.js → PolygonGeometryLibrary-6b5a29e9.js} +1 -1
- package/Build/Workers/PolygonPipeline-21668b3f.js +1345 -0
- package/Build/Workers/{PolylinePipeline-2e2b015c.js → PolylinePipeline-5e2e1b21.js} +1 -1
- package/Build/Workers/{PolylineVolumeGeometryLibrary-7ee1d449.js → PolylineVolumeGeometryLibrary-97f0b94e.js} +1 -1
- package/Build/Workers/{PrimitivePipeline-a9b7aae0.js → PrimitivePipeline-5640850a.js} +1 -1
- package/Build/Workers/{RectangleGeometryLibrary-9aa6c8f6.js → RectangleGeometryLibrary-d5457f7b.js} +1 -1
- package/Build/Workers/{TerrainEncoding-b52dcfc5.js → TerrainEncoding-bfdf2021.js} +1 -1
- package/Build/Workers/{Transforms-2f755df8.js → Transforms-a05e5e6e.js} +114 -83
- package/Build/Workers/{WallGeometryLibrary-ab19a93d.js → WallGeometryLibrary-6db0ebb6.js} +1 -1
- package/Build/Workers/{WebMercatorProjection-9f25de49.js → WebMercatorProjection-13a90d41.js} +1 -1
- package/Build/Workers/cesiumWorkerBootstrapper.js +92 -2
- package/Build/Workers/combineGeometry.js +1 -1
- package/Build/Workers/createBoxGeometry.js +1 -1
- package/Build/Workers/createBoxOutlineGeometry.js +1 -1
- package/Build/Workers/createCircleGeometry.js +1 -1
- package/Build/Workers/createCircleOutlineGeometry.js +1 -1
- package/Build/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Build/Workers/createCorridorGeometry.js +1 -1
- package/Build/Workers/createCorridorOutlineGeometry.js +1 -1
- package/Build/Workers/createCylinderGeometry.js +1 -1
- package/Build/Workers/createCylinderOutlineGeometry.js +1 -1
- package/Build/Workers/createEllipseGeometry.js +1 -1
- package/Build/Workers/createEllipseOutlineGeometry.js +1 -1
- package/Build/Workers/createEllipsoidGeometry.js +1 -1
- package/Build/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Build/Workers/createFrustumGeometry.js +1 -1
- package/Build/Workers/createFrustumOutlineGeometry.js +1 -1
- package/Build/Workers/createGeometry.js +1 -1
- package/Build/Workers/createGroundPolylineGeometry.js +1 -1
- package/Build/Workers/createPlaneGeometry.js +1 -1
- package/Build/Workers/createPlaneOutlineGeometry.js +1 -1
- package/Build/Workers/createPolygonGeometry.js +1 -1
- package/Build/Workers/createPolygonOutlineGeometry.js +1 -1
- package/Build/Workers/createPolylineGeometry.js +1 -1
- package/Build/Workers/createPolylineVolumeGeometry.js +1 -1
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/Build/Workers/createRectangleGeometry.js +1 -1
- package/Build/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Build/Workers/createSimplePolylineGeometry.js +1 -1
- package/Build/Workers/createSphereGeometry.js +1 -1
- package/Build/Workers/createSphereOutlineGeometry.js +1 -1
- package/Build/Workers/createVectorTileClampedPolylines.js +1 -1
- package/Build/Workers/createVectorTileGeometries.js +1 -1
- package/Build/Workers/createVectorTilePoints.js +1 -1
- package/Build/Workers/createVectorTilePolygons.js +1 -1
- package/Build/Workers/createVectorTilePolylines.js +1 -1
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/Build/Workers/createVerticesFromHeightmap.js +7 -3
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/Build/Workers/createWallGeometry.js +1 -1
- package/Build/Workers/createWallOutlineGeometry.js +1 -1
- package/Build/Workers/decodeDraco.js +9 -1
- package/Build/Workers/decodeI3S.js +1 -1
- package/Build/Workers/package.js +25 -1
- package/Build/Workers/transcodeKTX2.js +22 -2
- package/Build/Workers/transferTypedArrayTest.js +25 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/README.md +14 -16
- package/Source/Core/EarthOrientationParameters.js +67 -63
- package/Source/Core/FeatureDetection.js +18 -0
- package/Source/Core/Ion.js +1 -2
- package/Source/Core/Matrix2.js +2 -1
- package/Source/Core/Matrix3.js +2 -1
- package/Source/Core/Matrix4.js +1 -0
- package/Source/Core/OrientedBoundingBox.js +4 -4
- package/Source/Core/PixelFormat.js +22 -2
- package/Source/Core/S2Cell.js +3 -3
- package/Source/Core/Transforms.js +3 -7
- package/Source/Core/sampleTerrain.js +5 -0
- package/Source/DataSources/GpxDataSource.js +4 -6
- package/Source/DataSources/KmlDataSource.js +3 -5
- package/Source/Renderer/AutomaticUniforms.js +3 -3
- package/Source/Renderer/Context.js +20 -12
- package/Source/Renderer/Pass.js +3 -2
- package/Source/Renderer/ShaderBuilder.js +13 -12
- package/Source/Renderer/ShaderSource.js +31 -26
- package/Source/Renderer/demodernizeShader.js +76 -0
- package/Source/Scene/AutoExposure.js +5 -5
- package/Source/Scene/BatchTable.js +5 -5
- package/Source/Scene/BillboardCollection.js +2 -2
- package/Source/Scene/BingMapsImageryProvider.js +1 -1
- package/Source/Scene/Cesium3DTile.js +8 -2
- package/Source/Scene/Cesium3DTileBatchTable.js +28 -28
- package/Source/Scene/Cesium3DTileContentType.js +19 -0
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +494 -0
- package/Source/Scene/Cesium3DTileset.js +6 -1
- package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
- package/Source/Scene/ClassificationPrimitive.js +3 -8
- package/Source/Scene/ContentMetadata.js +2 -2
- package/Source/Scene/DebugAppearance.js +7 -9
- package/Source/Scene/DebugInspector.js +5 -5
- package/Source/Scene/DepthPlane.js +0 -6
- package/Source/Scene/DerivedCommand.js +15 -22
- package/Source/Scene/EllipsoidPrimitive.js +0 -7
- package/Source/Scene/Expression.js +1 -1
- package/Source/Scene/Globe.js +10 -0
- package/Source/Scene/GlobeSurfaceTileProvider.js +7 -0
- package/Source/Scene/GlobeTranslucencyState.js +6 -6
- package/Source/Scene/GltfImageLoader.js +1 -1
- package/Source/Scene/GltfVertexBufferLoader.js +10 -2
- package/Source/Scene/GroundPolylinePrimitive.js +2 -4
- package/Source/Scene/GroupMetadata.js +2 -2
- package/Source/Scene/ImplicitMetadataView.js +2 -2
- package/Source/Scene/ImplicitSubtreeCache.js +127 -0
- package/Source/Scene/ImplicitSubtreeMetadata.js +2 -2
- package/Source/Scene/ImplicitTileset.js +3 -2
- package/Source/Scene/InvertClassification.js +9 -10
- package/Source/Scene/KeyframeNode.js +47 -0
- package/Source/Scene/Material.js +6 -6
- package/Source/Scene/Megatexture.js +490 -0
- package/Source/Scene/MetadataClass.js +60 -25
- package/Source/Scene/MetadataClassProperty.js +132 -68
- package/Source/Scene/MetadataComponentType.js +78 -57
- package/Source/Scene/MetadataEnum.js +59 -23
- package/Source/Scene/MetadataEnumValue.js +49 -15
- package/Source/Scene/MetadataSchema.js +53 -24
- package/Source/Scene/MetadataSchemaLoader.js +2 -2
- package/Source/Scene/MetadataSemantic.js +8 -0
- package/Source/Scene/MetadataTableProperty.js +2 -2
- package/Source/Scene/MetadataType.js +6 -14
- package/Source/Scene/Model/CustomShader.js +1 -1
- package/Source/Scene/Model/FeatureIdPipelineStage.js +4 -4
- package/Source/Scene/Model/GeoJsonLoader.js +1 -1
- package/Source/Scene/Model/LightingModel.js +1 -1
- package/Source/Scene/Model/MetadataPipelineStage.js +1 -1
- package/Source/Scene/Model/Model.js +2 -3
- package/Source/Scene/Model/PickingPipelineStage.js +1 -1
- package/Source/Scene/Model/buildDrawCommand.js +19 -11
- package/Source/Scene/OIT.js +211 -119
- package/Source/Scene/PickDepth.js +2 -2
- package/Source/Scene/PointCloud.js +12 -12
- package/Source/Scene/PointCloudEyeDomeLighting.js +9 -4
- package/Source/Scene/PolylineCollection.js +2 -7
- package/Source/Scene/PolylineMaterialAppearance.js +2 -3
- package/Source/Scene/PostProcessStage.js +13 -13
- package/Source/Scene/PostProcessStageLibrary.js +3 -3
- package/Source/Scene/Primitive.js +22 -31
- package/Source/Scene/PropertyAttribute.js +2 -2
- package/Source/Scene/PropertyAttributeProperty.js +2 -2
- package/Source/Scene/PropertyTable.js +2 -2
- package/Source/Scene/PropertyTexture.js +2 -2
- package/Source/Scene/PropertyTextureProperty.js +2 -2
- package/Source/Scene/ResourceCache.js +9 -1
- package/Source/Scene/ResourceCacheKey.js +9 -1
- package/Source/Scene/Scene.js +17 -0
- package/Source/Scene/ShadowMap.js +7 -7
- package/Source/Scene/ShadowMapShader.js +9 -9
- package/Source/Scene/ShadowVolumeAppearance.js +1 -1
- package/Source/Scene/SpatialNode.js +375 -0
- package/Source/Scene/StructuralMetadata.js +2 -2
- package/Source/Scene/TextureAtlas.js +5 -3
- package/Source/Scene/TileMetadata.js +2 -2
- package/Source/Scene/TilesetMetadata.js +2 -2
- package/Source/Scene/Vector3DTilePolylines.js +1 -1
- package/Source/Scene/Vector3DTilePrimitive.js +2 -2
- package/Source/Scene/VoxelBoxShape.js +527 -0
- package/Source/Scene/VoxelContent.js +169 -0
- package/Source/Scene/VoxelCylinderShape.js +937 -0
- package/Source/Scene/VoxelEllipsoidShape.js +945 -0
- package/Source/Scene/VoxelPrimitive.js +1919 -0
- package/Source/Scene/VoxelProvider.js +255 -0
- package/Source/Scene/VoxelRenderResources.js +224 -0
- package/Source/Scene/VoxelShape.js +152 -0
- package/Source/Scene/VoxelShapeType.js +105 -0
- package/Source/Scene/VoxelTraversal.js +1144 -0
- package/Source/Scene/buildVoxelDrawCommands.js +116 -0
- package/Source/Scene/computeFlyToLocationForRectangle.js +10 -1
- package/Source/Scene/createElevationBandMaterial.js +10 -15
- package/Source/Scene/getClipAndStyleCode.js +1 -1
- package/Source/Scene/getClippingFunction.js +3 -3
- package/Source/Scene/parseBatchTable.js +18 -2
- package/Source/Scene/preprocess3DTileContent.js +8 -0
- package/Source/Scene/processVoxelProperties.js +455 -0
- package/Source/Shaders/AdjustTranslucentFS.glsl +9 -6
- package/Source/Shaders/AdjustTranslucentFS.js +9 -6
- package/Source/Shaders/Appearances/AllMaterialAppearanceFS.glsl +7 -7
- package/Source/Shaders/Appearances/AllMaterialAppearanceFS.js +7 -7
- package/Source/Shaders/Appearances/AllMaterialAppearanceVS.glsl +12 -12
- package/Source/Shaders/Appearances/AllMaterialAppearanceVS.js +12 -12
- package/Source/Shaders/Appearances/BasicMaterialAppearanceFS.glsl +4 -4
- package/Source/Shaders/Appearances/BasicMaterialAppearanceFS.js +4 -4
- package/Source/Shaders/Appearances/BasicMaterialAppearanceVS.glsl +6 -6
- package/Source/Shaders/Appearances/BasicMaterialAppearanceVS.js +6 -6
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceFS.glsl +5 -5
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceFS.js +5 -5
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceVS.glsl +7 -7
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceVS.js +7 -7
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceFS.glsl +4 -4
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceFS.js +4 -4
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceVS.glsl +8 -8
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceVS.js +8 -8
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceFS.glsl +2 -2
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceFS.js +2 -2
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceVS.glsl +5 -5
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceVS.js +5 -5
- package/Source/Shaders/Appearances/PolylineColorAppearanceVS.glsl +10 -10
- package/Source/Shaders/Appearances/PolylineColorAppearanceVS.js +10 -10
- package/Source/Shaders/Appearances/PolylineMaterialAppearanceVS.glsl +12 -12
- package/Source/Shaders/Appearances/PolylineMaterialAppearanceVS.js +12 -12
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceFS.glsl +5 -5
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceFS.js +5 -5
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceVS.glsl +8 -8
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceVS.js +8 -8
- package/Source/Shaders/BillboardCollectionFS.glsl +15 -15
- package/Source/Shaders/BillboardCollectionFS.js +15 -15
- package/Source/Shaders/BillboardCollectionVS.glsl +24 -24
- package/Source/Shaders/BillboardCollectionVS.js +24 -24
- package/Source/Shaders/BrdfLutGeneratorFS.glsl +2 -2
- package/Source/Shaders/BrdfLutGeneratorFS.js +2 -2
- package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passVoxels.js +11 -0
- package/Source/Shaders/Builtin/CzmBuiltins.js +19 -15
- package/Source/Shaders/Builtin/Functions/depthClamp.glsl +3 -3
- package/Source/Shaders/Builtin/Functions/depthClamp.js +3 -3
- package/Source/Shaders/Builtin/Functions/getWaterNoise.glsl +4 -4
- package/Source/Shaders/Builtin/Functions/getWaterNoise.js +4 -4
- package/Source/Shaders/Builtin/Functions/phong.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/phong.js +1 -1
- package/Source/Shaders/Builtin/Functions/readDepth.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/readDepth.js +1 -1
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.glsl +5 -5
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.js +5 -5
- package/Source/Shaders/Builtin/Functions/shadowDepthCompare.glsl +3 -3
- package/Source/Shaders/Builtin/Functions/shadowDepthCompare.js +3 -3
- package/Source/Shaders/Builtin/Functions/tangentToEyeSpaceMatrix.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/tangentToEyeSpaceMatrix.js +1 -1
- package/Source/Shaders/Builtin/Functions/textureCube.glsl +17 -0
- package/Source/Shaders/Builtin/Functions/textureCube.js +18 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.js +2 -2
- package/Source/Shaders/Builtin/Functions/vertexLogDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/vertexLogDepth.js +2 -2
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +55 -43
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +55 -43
- package/Source/Shaders/Builtin/Functions/writeDepthClamp.glsl +5 -8
- package/Source/Shaders/Builtin/Functions/writeDepthClamp.js +5 -8
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +6 -6
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +6 -6
- package/Source/Shaders/CloudCollectionFS.glsl +18 -18
- package/Source/Shaders/CloudCollectionFS.js +18 -18
- package/Source/Shaders/CloudCollectionVS.glsl +11 -11
- package/Source/Shaders/CloudCollectionVS.js +11 -11
- package/Source/Shaders/CloudNoiseFS.glsl +5 -5
- package/Source/Shaders/CloudNoiseFS.js +5 -5
- package/Source/Shaders/CloudNoiseVS.glsl +2 -2
- package/Source/Shaders/CloudNoiseVS.js +2 -2
- package/Source/Shaders/CompareAndPackTranslucentDepth.glsl +4 -4
- package/Source/Shaders/CompareAndPackTranslucentDepth.js +4 -4
- package/Source/Shaders/CompositeOITFS.glsl +6 -6
- package/Source/Shaders/CompositeOITFS.js +6 -6
- package/Source/Shaders/DepthPlaneFS.glsl +2 -2
- package/Source/Shaders/DepthPlaneFS.js +2 -2
- package/Source/Shaders/DepthPlaneVS.glsl +2 -2
- package/Source/Shaders/DepthPlaneVS.js +2 -2
- package/Source/Shaders/EllipsoidFS.glsl +5 -13
- package/Source/Shaders/EllipsoidFS.js +6 -14
- package/Source/Shaders/EllipsoidVS.glsl +2 -2
- package/Source/Shaders/EllipsoidVS.js +2 -2
- package/Source/Shaders/FXAA3_11.glsl +4 -4
- package/Source/Shaders/FXAA3_11.js +4 -4
- package/Source/Shaders/GlobeFS.glsl +17 -16
- package/Source/Shaders/GlobeFS.js +17 -16
- package/Source/Shaders/GlobeVS.glsl +17 -17
- package/Source/Shaders/GlobeVS.js +17 -17
- package/Source/Shaders/Materials/AspectRampMaterial.glsl +1 -1
- package/Source/Shaders/Materials/AspectRampMaterial.js +1 -1
- package/Source/Shaders/Materials/BumpMapMaterial.glsl +3 -3
- package/Source/Shaders/Materials/BumpMapMaterial.js +3 -3
- package/Source/Shaders/Materials/ElevationBandMaterial.glsl +3 -3
- package/Source/Shaders/Materials/ElevationBandMaterial.js +3 -3
- package/Source/Shaders/Materials/ElevationContourMaterial.glsl +2 -1
- package/Source/Shaders/Materials/ElevationContourMaterial.js +2 -1
- package/Source/Shaders/Materials/ElevationRampMaterial.glsl +1 -1
- package/Source/Shaders/Materials/ElevationRampMaterial.js +1 -1
- package/Source/Shaders/Materials/GridMaterial.glsl +3 -2
- package/Source/Shaders/Materials/GridMaterial.js +3 -2
- package/Source/Shaders/Materials/NormalMapMaterial.glsl +1 -1
- package/Source/Shaders/Materials/NormalMapMaterial.js +1 -1
- package/Source/Shaders/Materials/PolylineArrowMaterial.glsl +3 -2
- package/Source/Shaders/Materials/PolylineArrowMaterial.js +3 -2
- package/Source/Shaders/Materials/PolylineDashMaterial.glsl +1 -1
- package/Source/Shaders/Materials/PolylineDashMaterial.js +1 -1
- package/Source/Shaders/Materials/PolylineOutlineMaterial.glsl +1 -1
- package/Source/Shaders/Materials/PolylineOutlineMaterial.js +1 -1
- package/Source/Shaders/Materials/SlopeRampMaterial.glsl +1 -1
- package/Source/Shaders/Materials/SlopeRampMaterial.js +1 -1
- package/Source/Shaders/Materials/Water.glsl +1 -1
- package/Source/Shaders/Materials/Water.js +1 -1
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +3 -3
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +3 -3
- package/Source/Shaders/Model/MaterialStageFS.glsl +10 -10
- package/Source/Shaders/Model/MaterialStageFS.js +10 -10
- package/Source/Shaders/Model/ModelClippingPlanesStageFS.glsl +3 -3
- package/Source/Shaders/Model/ModelClippingPlanesStageFS.js +3 -3
- package/Source/Shaders/Model/ModelFS.glsl +1 -1
- package/Source/Shaders/Model/ModelFS.js +1 -1
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.glsl +3 -3
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +3 -3
- package/Source/Shaders/Model/SelectedFeatureIdStageCommon.glsl +1 -1
- package/Source/Shaders/Model/SelectedFeatureIdStageCommon.js +1 -1
- package/Source/Shaders/OctahedralProjectionAtlasFS.glsl +8 -8
- package/Source/Shaders/OctahedralProjectionAtlasFS.js +8 -8
- package/Source/Shaders/OctahedralProjectionFS.glsl +4 -4
- package/Source/Shaders/OctahedralProjectionFS.js +4 -4
- package/Source/Shaders/OctahedralProjectionVS.glsl +3 -3
- package/Source/Shaders/OctahedralProjectionVS.js +3 -3
- package/Source/Shaders/PointPrimitiveCollectionFS.glsl +6 -6
- package/Source/Shaders/PointPrimitiveCollectionFS.js +6 -6
- package/Source/Shaders/PointPrimitiveCollectionVS.glsl +17 -14
- package/Source/Shaders/PointPrimitiveCollectionVS.js +17 -14
- package/Source/Shaders/PolylineFS.glsl +3 -3
- package/Source/Shaders/PolylineFS.js +3 -3
- package/Source/Shaders/PolylineShadowVolumeFS.glsl +12 -16
- package/Source/Shaders/PolylineShadowVolumeFS.js +12 -16
- package/Source/Shaders/PolylineShadowVolumeMorphFS.glsl +8 -8
- package/Source/Shaders/PolylineShadowVolumeMorphFS.js +8 -8
- package/Source/Shaders/PolylineShadowVolumeMorphVS.glsl +20 -20
- package/Source/Shaders/PolylineShadowVolumeMorphVS.js +20 -20
- package/Source/Shaders/PolylineShadowVolumeVS.glsl +20 -20
- package/Source/Shaders/PolylineShadowVolumeVS.js +20 -20
- package/Source/Shaders/PolylineVS.glsl +17 -17
- package/Source/Shaders/PolylineVS.js +17 -17
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.glsl +4 -4
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.js +4 -4
- package/Source/Shaders/PostProcessStages/AdditiveBlend.glsl +4 -4
- package/Source/Shaders/PostProcessStages/AdditiveBlend.js +4 -4
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +4 -4
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +4 -4
- package/Source/Shaders/PostProcessStages/AmbientOcclusionModulate.glsl +4 -4
- package/Source/Shaders/PostProcessStages/AmbientOcclusionModulate.js +4 -4
- package/Source/Shaders/PostProcessStages/BlackAndWhite.glsl +4 -4
- package/Source/Shaders/PostProcessStages/BlackAndWhite.js +4 -4
- package/Source/Shaders/PostProcessStages/BloomComposite.glsl +5 -5
- package/Source/Shaders/PostProcessStages/BloomComposite.js +5 -5
- package/Source/Shaders/PostProcessStages/BrightPass.glsl +3 -3
- package/Source/Shaders/PostProcessStages/BrightPass.js +3 -3
- package/Source/Shaders/PostProcessStages/Brightness.glsl +3 -3
- package/Source/Shaders/PostProcessStages/Brightness.js +3 -3
- package/Source/Shaders/PostProcessStages/CompositeTranslucentClassification.glsl +5 -5
- package/Source/Shaders/PostProcessStages/CompositeTranslucentClassification.js +5 -5
- package/Source/Shaders/PostProcessStages/ContrastBias.glsl +3 -3
- package/Source/Shaders/PostProcessStages/ContrastBias.js +3 -3
- package/Source/Shaders/PostProcessStages/DepthOfField.glsl +2 -2
- package/Source/Shaders/PostProcessStages/DepthOfField.js +2 -2
- package/Source/Shaders/PostProcessStages/DepthView.glsl +2 -2
- package/Source/Shaders/PostProcessStages/DepthView.js +2 -2
- package/Source/Shaders/PostProcessStages/DepthViewPacked.glsl +3 -3
- package/Source/Shaders/PostProcessStages/DepthViewPacked.js +3 -3
- package/Source/Shaders/PostProcessStages/EdgeDetection.glsl +7 -7
- package/Source/Shaders/PostProcessStages/EdgeDetection.js +7 -7
- package/Source/Shaders/PostProcessStages/FXAA.glsl +3 -3
- package/Source/Shaders/PostProcessStages/FXAA.js +3 -3
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.glsl +4 -4
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.js +4 -4
- package/Source/Shaders/PostProcessStages/GaussianBlur1D.glsl +5 -5
- package/Source/Shaders/PostProcessStages/GaussianBlur1D.js +5 -5
- package/Source/Shaders/PostProcessStages/LensFlare.glsl +13 -13
- package/Source/Shaders/PostProcessStages/LensFlare.js +13 -13
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.glsl +4 -4
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js +4 -4
- package/Source/Shaders/PostProcessStages/NightVision.glsl +3 -3
- package/Source/Shaders/PostProcessStages/NightVision.js +3 -3
- package/Source/Shaders/PostProcessStages/PassThrough.glsl +2 -2
- package/Source/Shaders/PostProcessStages/PassThrough.js +2 -2
- package/Source/Shaders/PostProcessStages/PassThroughDepth.glsl +2 -2
- package/Source/Shaders/PostProcessStages/PassThroughDepth.js +2 -2
- package/Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.glsl +7 -9
- package/Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.js +8 -10
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.glsl +4 -4
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.js +4 -4
- package/Source/Shaders/PostProcessStages/Silhouette.glsl +4 -4
- package/Source/Shaders/PostProcessStages/Silhouette.js +4 -4
- package/Source/Shaders/ReprojectWebMercatorFS.glsl +2 -2
- package/Source/Shaders/ReprojectWebMercatorFS.js +2 -2
- package/Source/Shaders/ReprojectWebMercatorVS.glsl +3 -3
- package/Source/Shaders/ReprojectWebMercatorVS.js +3 -3
- package/Source/Shaders/ShadowVolumeAppearanceFS.glsl +19 -23
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +20 -24
- package/Source/Shaders/ShadowVolumeAppearanceVS.glsl +12 -12
- package/Source/Shaders/ShadowVolumeAppearanceVS.js +12 -12
- package/Source/Shaders/ShadowVolumeFS.glsl +2 -6
- package/Source/Shaders/ShadowVolumeFS.js +3 -7
- package/Source/Shaders/SkyAtmosphereFS.glsl +6 -6
- package/Source/Shaders/SkyAtmosphereFS.js +6 -6
- package/Source/Shaders/SkyAtmosphereVS.glsl +6 -6
- package/Source/Shaders/SkyAtmosphereVS.js +6 -6
- package/Source/Shaders/SkyBoxFS.glsl +3 -3
- package/Source/Shaders/SkyBoxFS.js +3 -3
- package/Source/Shaders/SkyBoxVS.glsl +2 -2
- package/Source/Shaders/SkyBoxVS.js +2 -2
- package/Source/Shaders/SunFS.glsl +3 -3
- package/Source/Shaders/SunFS.js +3 -3
- package/Source/Shaders/SunTextureFS.glsl +2 -2
- package/Source/Shaders/SunTextureFS.js +2 -2
- package/Source/Shaders/SunVS.glsl +2 -2
- package/Source/Shaders/SunVS.js +2 -2
- package/Source/Shaders/Vector3DTileClampedPolylinesFS.glsl +9 -13
- package/Source/Shaders/Vector3DTileClampedPolylinesFS.js +9 -13
- package/Source/Shaders/Vector3DTileClampedPolylinesVS.glsl +12 -12
- package/Source/Shaders/Vector3DTileClampedPolylinesVS.js +12 -12
- package/Source/Shaders/Vector3DTilePolylinesVS.glsl +5 -5
- package/Source/Shaders/Vector3DTilePolylinesVS.js +5 -5
- package/Source/Shaders/VectorTileVS.glsl +2 -2
- package/Source/Shaders/VectorTileVS.js +2 -2
- package/Source/Shaders/ViewportQuadFS.glsl +2 -2
- package/Source/Shaders/ViewportQuadFS.js +2 -2
- package/Source/Shaders/ViewportQuadVS.glsl +3 -3
- package/Source/Shaders/ViewportQuadVS.js +3 -3
- package/Source/Shaders/Voxels/IntersectBox.glsl +79 -0
- package/Source/Shaders/Voxels/IntersectBox.js +81 -0
- package/Source/Shaders/Voxels/IntersectClippingPlanes.glsl +70 -0
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +72 -0
- package/Source/Shaders/Voxels/IntersectCylinder.glsl +273 -0
- package/Source/Shaders/Voxels/IntersectCylinder.js +275 -0
- package/Source/Shaders/Voxels/IntersectDepth.glsl +23 -0
- package/Source/Shaders/Voxels/IntersectDepth.js +25 -0
- package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +347 -0
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +349 -0
- package/Source/Shaders/Voxels/Intersection.glsl +54 -0
- package/Source/Shaders/Voxels/Intersection.js +56 -0
- package/Source/Shaders/Voxels/IntersectionUtils.glsl +151 -0
- package/Source/Shaders/Voxels/IntersectionUtils.js +153 -0
- package/Source/Shaders/Voxels/Megatexture.glsl +136 -0
- package/Source/Shaders/Voxels/Megatexture.js +138 -0
- package/Source/Shaders/Voxels/Octree.glsl +221 -0
- package/Source/Shaders/Voxels/Octree.js +223 -0
- package/Source/Shaders/Voxels/VoxelFS.glsl +150 -0
- package/Source/Shaders/Voxels/VoxelFS.js +152 -0
- package/Source/Shaders/Voxels/VoxelVS.glsl +11 -0
- package/Source/Shaders/Voxels/VoxelVS.js +13 -0
- package/Source/Shaders/Voxels/convertUvToBox.glsl +16 -0
- package/Source/Shaders/Voxels/convertUvToBox.js +18 -0
- package/Source/Shaders/Voxels/convertUvToCylinder.glsl +75 -0
- package/Source/Shaders/Voxels/convertUvToCylinder.js +77 -0
- package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +130 -0
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +132 -0
- package/Source/ThirdParty/Workers/z-worker-pako.js +0 -0
- package/Source/WorkersES6/decodeDraco.js +9 -1
- package/index.d.ts +3148 -2297
- package/index.js +1118 -1085
- package/package.json +3 -4
- package/Build/Workers/PolygonPipeline-774a8aaf.js +0 -1341
- package/Source/Renderer/modernizeShader.js +0 -242
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './Matrix3-
|
|
1
|
+
define(['exports', './Matrix3-315394f6', './defaultValue-0a909f67', './Check-666ab1a0', './EllipsoidGeodesic-98c62a56', './EllipsoidRhumbLine-19756602', './IntersectionTests-27d49265', './Math-2dbd6b93', './Matrix2-13178034', './Plane-900aa728'], (function (exports, Matrix3, defaultValue, Check, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Math$1, Matrix2, Plane) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @private
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './Matrix2-
|
|
1
|
+
define(['exports', './Matrix2-13178034', './Matrix3-315394f6', './EllipsoidTangentPlane-ed9443a1', './Math-2dbd6b93', './PolylinePipeline-5e2e1b21', './Transforms-a05e5e6e', './defaultValue-0a909f67', './Check-666ab1a0'], (function (exports, Matrix2, Matrix3, EllipsoidTangentPlane, Math$1, PolylinePipeline, Transforms, defaultValue, Check) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Style options for corners.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './Transforms-
|
|
1
|
+
define(['exports', './Transforms-a05e5e6e', './ComponentDatatype-f7b11d02', './defaultValue-0a909f67', './Check-666ab1a0', './Matrix3-315394f6', './GeometryAttribute-334718f8', './GeometryAttributes-f06a2792', './GeometryPipeline-8fb0db69', './IndexDatatype-a55ceaa1', './Matrix2-13178034', './WebMercatorProjection-13a90d41'], (function (exports, Transforms, ComponentDatatype, defaultValue, Check, Matrix3, GeometryAttribute, GeometryAttributes, GeometryPipeline, IndexDatatype, Matrix2, WebMercatorProjection) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Value and type information for per-instance geometry attribute that determines the geometry instance offset
|
package/Build/Workers/{RectangleGeometryLibrary-9aa6c8f6.js → RectangleGeometryLibrary-d5457f7b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './Matrix3-
|
|
1
|
+
define(['exports', './Matrix3-315394f6', './defaultValue-0a909f67', './Check-666ab1a0', './Transforms-a05e5e6e', './Math-2dbd6b93', './Matrix2-13178034'], (function (exports, Matrix3, defaultValue, Check, Transforms, Math$1, Matrix2) { 'use strict';
|
|
2
2
|
|
|
3
3
|
const cos = Math.cos;
|
|
4
4
|
const sin = Math.sin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './Transforms-
|
|
1
|
+
define(['exports', './Transforms-a05e5e6e', './Matrix3-315394f6', './Check-666ab1a0', './defaultValue-0a909f67', './Matrix2-13178034', './AttributeCompression-b646d393', './ComponentDatatype-f7b11d02', './Math-2dbd6b93'], (function (exports, Transforms, Matrix3, Check, defaultValue, Matrix2, AttributeCompression, ComponentDatatype, Math$1) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Determine whether or not other objects are visible or hidden behind the visible horizon defined by
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['require', 'exports', './Matrix3-
|
|
1
|
+
define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defaultValue-0a909f67', './Math-2dbd6b93', './Matrix2-13178034', './combine-ca22a614', './RuntimeError-06c93819'], (function (require, exports, Matrix3, Check, defaultValue, Math$1, Matrix2, combine, RuntimeError) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopNamespace(e) {
|
|
4
4
|
if (e && e.__esModule) return e;
|
|
@@ -2320,6 +2320,23 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
2320
2320
|
FeatureDetection.supportsWebAssembly = function () {
|
|
2321
2321
|
return typeof WebAssembly !== "undefined";
|
|
2322
2322
|
};
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Detects whether the current browser supports a WebGL2 rendering context for the specified scene.
|
|
2326
|
+
*
|
|
2327
|
+
* @param {Scene} scene the Cesium scene specifying the rendering context
|
|
2328
|
+
* @returns {Boolean} true if the browser supports a WebGL2 rendering context, false if not.
|
|
2329
|
+
*
|
|
2330
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext|WebGL2RenderingContext}
|
|
2331
|
+
*/
|
|
2332
|
+
FeatureDetection.supportsWebgl2 = function (scene) {
|
|
2333
|
+
//>>includeStart('debug', pragmas.debug);
|
|
2334
|
+
Check.Check.defined("scene", scene);
|
|
2335
|
+
//>>includeEnd('debug');
|
|
2336
|
+
|
|
2337
|
+
return scene.context.webgl2;
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2323
2340
|
var FeatureDetection$1 = FeatureDetection;
|
|
2324
2341
|
|
|
2325
2342
|
/**
|
|
@@ -5009,16 +5026,24 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
5009
5026
|
new LeapSecond(new JulianDate(2457754, 43237.0, TimeStandard$1.TAI), 37), // January 1, 2017 00:00:00 UTC
|
|
5010
5027
|
];
|
|
5011
5028
|
|
|
5012
|
-
var
|
|
5029
|
+
var URIExports = {};
|
|
5030
|
+
var URI = {
|
|
5031
|
+
get exports(){ return URIExports; },
|
|
5032
|
+
set exports(v){ URIExports = v; },
|
|
5033
|
+
};
|
|
5013
5034
|
|
|
5014
|
-
var
|
|
5035
|
+
var punycodeExports = {};
|
|
5036
|
+
var punycode = {
|
|
5037
|
+
get exports(){ return punycodeExports; },
|
|
5038
|
+
set exports(v){ punycodeExports = v; },
|
|
5039
|
+
};
|
|
5015
5040
|
|
|
5016
5041
|
/*! https://mths.be/punycode v1.4.0 by @mathias */
|
|
5017
5042
|
|
|
5018
5043
|
var hasRequiredPunycode;
|
|
5019
5044
|
|
|
5020
5045
|
function requirePunycode () {
|
|
5021
|
-
if (hasRequiredPunycode) return
|
|
5046
|
+
if (hasRequiredPunycode) return punycodeExports;
|
|
5022
5047
|
hasRequiredPunycode = 1;
|
|
5023
5048
|
(function (module, exports) {
|
|
5024
5049
|
(function(root) {
|
|
@@ -5545,11 +5570,15 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
5545
5570
|
}
|
|
5546
5571
|
|
|
5547
5572
|
}(commonjsGlobal));
|
|
5548
|
-
} (punycode,
|
|
5549
|
-
return
|
|
5573
|
+
} (punycode, punycodeExports));
|
|
5574
|
+
return punycodeExports;
|
|
5550
5575
|
}
|
|
5551
5576
|
|
|
5552
|
-
var
|
|
5577
|
+
var IPv6Exports = {};
|
|
5578
|
+
var IPv6 = {
|
|
5579
|
+
get exports(){ return IPv6Exports; },
|
|
5580
|
+
set exports(v){ IPv6Exports = v; },
|
|
5581
|
+
};
|
|
5553
5582
|
|
|
5554
5583
|
/*!
|
|
5555
5584
|
* URI.js - Mutating URLs
|
|
@@ -5568,7 +5597,7 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
5568
5597
|
var hasRequiredIPv6;
|
|
5569
5598
|
|
|
5570
5599
|
function requireIPv6 () {
|
|
5571
|
-
if (hasRequiredIPv6) return
|
|
5600
|
+
if (hasRequiredIPv6) return IPv6Exports;
|
|
5572
5601
|
hasRequiredIPv6 = 1;
|
|
5573
5602
|
(function (module) {
|
|
5574
5603
|
(function (root, factory) {
|
|
@@ -5738,10 +5767,14 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
5738
5767
|
};
|
|
5739
5768
|
}));
|
|
5740
5769
|
} (IPv6));
|
|
5741
|
-
return
|
|
5770
|
+
return IPv6Exports;
|
|
5742
5771
|
}
|
|
5743
5772
|
|
|
5744
|
-
var
|
|
5773
|
+
var SecondLevelDomainsExports = {};
|
|
5774
|
+
var SecondLevelDomains = {
|
|
5775
|
+
get exports(){ return SecondLevelDomainsExports; },
|
|
5776
|
+
set exports(v){ SecondLevelDomainsExports = v; },
|
|
5777
|
+
};
|
|
5745
5778
|
|
|
5746
5779
|
/*!
|
|
5747
5780
|
* URI.js - Mutating URLs
|
|
@@ -5760,7 +5793,7 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
5760
5793
|
var hasRequiredSecondLevelDomains;
|
|
5761
5794
|
|
|
5762
5795
|
function requireSecondLevelDomains () {
|
|
5763
|
-
if (hasRequiredSecondLevelDomains) return
|
|
5796
|
+
if (hasRequiredSecondLevelDomains) return SecondLevelDomainsExports;
|
|
5764
5797
|
hasRequiredSecondLevelDomains = 1;
|
|
5765
5798
|
(function (module) {
|
|
5766
5799
|
(function (root, factory) {
|
|
@@ -5990,7 +6023,7 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
5990
6023
|
return SLD;
|
|
5991
6024
|
}));
|
|
5992
6025
|
} (SecondLevelDomains));
|
|
5993
|
-
return
|
|
6026
|
+
return SecondLevelDomainsExports;
|
|
5994
6027
|
}
|
|
5995
6028
|
|
|
5996
6029
|
/*!
|
|
@@ -8356,7 +8389,7 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
8356
8389
|
}));
|
|
8357
8390
|
} (URI));
|
|
8358
8391
|
|
|
8359
|
-
var Uri =
|
|
8392
|
+
var Uri = URIExports;
|
|
8360
8393
|
|
|
8361
8394
|
/**
|
|
8362
8395
|
* @private
|
|
@@ -12468,15 +12501,12 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12468
12501
|
* These Earth Orientation Parameters (EOP) are primarily used in the transformation from
|
|
12469
12502
|
* the International Celestial Reference Frame (ICRF) to the International Terrestrial
|
|
12470
12503
|
* Reference Frame (ITRF).
|
|
12504
|
+
* This object is normally not instantiated directly, use {@link EarthOrientationParameters.fromUrl}.
|
|
12471
12505
|
*
|
|
12472
12506
|
* @alias EarthOrientationParameters
|
|
12473
12507
|
* @constructor
|
|
12474
12508
|
*
|
|
12475
12509
|
* @param {Object} [options] Object with the following properties:
|
|
12476
|
-
* @param {Resource|String} [options.url] The URL from which to obtain EOP data. If neither this
|
|
12477
|
-
* parameter nor options.data is specified, all EOP values are assumed
|
|
12478
|
-
* to be 0.0. If options.data is specified, this parameter is
|
|
12479
|
-
* ignored.
|
|
12480
12510
|
* @param {Object} [options.data] The actual EOP data. If neither this
|
|
12481
12511
|
* parameter nor options.data is specified, all EOP values are assumed
|
|
12482
12512
|
* to be 0.0.
|
|
@@ -12486,22 +12516,6 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12486
12516
|
* new leap seconds should be handled correctly in the context
|
|
12487
12517
|
* of the EOP data but otherwise ignored.
|
|
12488
12518
|
*
|
|
12489
|
-
* @example
|
|
12490
|
-
* // An example EOP data file, EOP.json:
|
|
12491
|
-
* {
|
|
12492
|
-
* "columnNames" : ["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],
|
|
12493
|
-
* "samples" : [
|
|
12494
|
-
* "2011-07-01T00:00:00Z",55743.0,2.117957047295119e-7,2.111518721609984e-6,-0.2908948,-2.956e-4,3.393695767766752e-11,3.3452143996557983e-10,34.0,
|
|
12495
|
-
* "2011-07-02T00:00:00Z",55744.0,2.193297093339541e-7,2.115460256837405e-6,-0.29065,-1.824e-4,-8.241832578862112e-11,5.623838700870617e-10,34.0,
|
|
12496
|
-
* "2011-07-03T00:00:00Z",55745.0,2.262286080161428e-7,2.1191157519929706e-6,-0.2905572,1.9e-6,-3.490658503988659e-10,6.981317007977318e-10,34.0
|
|
12497
|
-
* ]
|
|
12498
|
-
* }
|
|
12499
|
-
*
|
|
12500
|
-
* @example
|
|
12501
|
-
* // Loading the EOP data
|
|
12502
|
-
* const eop = new Cesium.EarthOrientationParameters({ url : 'Data/EOP.json' });
|
|
12503
|
-
* Cesium.Transforms.earthOrientationParameters = eop;
|
|
12504
|
-
*
|
|
12505
12519
|
* @private
|
|
12506
12520
|
*/
|
|
12507
12521
|
function EarthOrientationParameters(options) {
|
|
@@ -12521,27 +12535,11 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12521
12535
|
this._columnCount = 0;
|
|
12522
12536
|
this._lastIndex = -1;
|
|
12523
12537
|
|
|
12524
|
-
this._downloadPromise = undefined;
|
|
12525
|
-
this._dataError = undefined;
|
|
12526
|
-
|
|
12527
12538
|
this._addNewLeapSeconds = defaultValue.defaultValue(options.addNewLeapSeconds, true);
|
|
12528
12539
|
|
|
12529
12540
|
if (defaultValue.defined(options.data)) {
|
|
12530
12541
|
// Use supplied EOP data.
|
|
12531
12542
|
onDataReady(this, options.data);
|
|
12532
|
-
} else if (defaultValue.defined(options.url)) {
|
|
12533
|
-
const resource = Resource.createIfNeeded(options.url);
|
|
12534
|
-
|
|
12535
|
-
// Download EOP data.
|
|
12536
|
-
const that = this;
|
|
12537
|
-
this._downloadPromise = resource
|
|
12538
|
-
.fetchJson()
|
|
12539
|
-
.then(function (eopData) {
|
|
12540
|
-
onDataReady(that, eopData);
|
|
12541
|
-
})
|
|
12542
|
-
.catch(function () {
|
|
12543
|
-
that._dataError = `An error occurred while retrieving the EOP data from the URL ${resource.url}.`;
|
|
12544
|
-
});
|
|
12545
12543
|
} else {
|
|
12546
12544
|
// Use all zeros for EOP data.
|
|
12547
12545
|
onDataReady(this, {
|
|
@@ -12561,13 +12559,64 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12561
12559
|
}
|
|
12562
12560
|
}
|
|
12563
12561
|
|
|
12562
|
+
/**
|
|
12563
|
+
*
|
|
12564
|
+
* @param {Resource|String} [url] The URL from which to obtain EOP data. If neither this
|
|
12565
|
+
* parameter nor options.data is specified, all EOP values are assumed
|
|
12566
|
+
* to be 0.0. If options.data is specified, this parameter is
|
|
12567
|
+
* ignored.
|
|
12568
|
+
* @param {Object} [options] Object with the following properties:
|
|
12569
|
+
* @param {Boolean} [options.addNewLeapSeconds=true] True if leap seconds that
|
|
12570
|
+
* are specified in the EOP data but not in {@link JulianDate.leapSeconds}
|
|
12571
|
+
* should be added to {@link JulianDate.leapSeconds}. False if
|
|
12572
|
+
* new leap seconds should be handled correctly in the context
|
|
12573
|
+
* of the EOP data but otherwise ignored.
|
|
12574
|
+
*
|
|
12575
|
+
* @example
|
|
12576
|
+
* // An example EOP data file, EOP.json:
|
|
12577
|
+
* {
|
|
12578
|
+
* "columnNames" : ["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],
|
|
12579
|
+
* "samples" : [
|
|
12580
|
+
* "2011-07-01T00:00:00Z",55743.0,2.117957047295119e-7,2.111518721609984e-6,-0.2908948,-2.956e-4,3.393695767766752e-11,3.3452143996557983e-10,34.0,
|
|
12581
|
+
* "2011-07-02T00:00:00Z",55744.0,2.193297093339541e-7,2.115460256837405e-6,-0.29065,-1.824e-4,-8.241832578862112e-11,5.623838700870617e-10,34.0,
|
|
12582
|
+
* "2011-07-03T00:00:00Z",55745.0,2.262286080161428e-7,2.1191157519929706e-6,-0.2905572,1.9e-6,-3.490658503988659e-10,6.981317007977318e-10,34.0
|
|
12583
|
+
* ]
|
|
12584
|
+
* }
|
|
12585
|
+
*
|
|
12586
|
+
* @example
|
|
12587
|
+
* // Loading the EOP data
|
|
12588
|
+
* const eop = await Cesium.EarthOrientationParameters.fromUrl('Data/EOP.json');
|
|
12589
|
+
* Cesium.Transforms.earthOrientationParameters = eop;
|
|
12590
|
+
*/
|
|
12591
|
+
EarthOrientationParameters.fromUrl = async function (url, options) {
|
|
12592
|
+
//>>includeStart('debug', pragmas.debug);
|
|
12593
|
+
Check.Check.defined("url", url);
|
|
12594
|
+
//>>includeEnd('debug');
|
|
12595
|
+
|
|
12596
|
+
options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
|
|
12597
|
+
|
|
12598
|
+
const resource = Resource.createIfNeeded(url);
|
|
12599
|
+
|
|
12600
|
+
// Download EOP data.
|
|
12601
|
+
let eopData;
|
|
12602
|
+
try {
|
|
12603
|
+
eopData = await resource.fetchJson();
|
|
12604
|
+
} catch (e) {
|
|
12605
|
+
throw new RuntimeError.RuntimeError(
|
|
12606
|
+
`An error occurred while retrieving the EOP data from the URL ${resource.url}.`
|
|
12607
|
+
);
|
|
12608
|
+
}
|
|
12609
|
+
|
|
12610
|
+
return new EarthOrientationParameters({
|
|
12611
|
+
addNewLeapSeconds: options.addNewLeapSeconds,
|
|
12612
|
+
data: eopData,
|
|
12613
|
+
});
|
|
12614
|
+
};
|
|
12615
|
+
|
|
12564
12616
|
/**
|
|
12565
12617
|
* A default {@link EarthOrientationParameters} instance that returns zero for all EOP values.
|
|
12566
12618
|
*/
|
|
12567
12619
|
EarthOrientationParameters.NONE = Object.freeze({
|
|
12568
|
-
getPromiseToLoad: function () {
|
|
12569
|
-
return Promise.resolve();
|
|
12570
|
-
},
|
|
12571
12620
|
compute: function (date, result) {
|
|
12572
12621
|
if (!defaultValue.defined(result)) {
|
|
12573
12622
|
result = new EarthOrientationParametersSample(0.0, 0.0, 0.0, 0.0, 0.0);
|
|
@@ -12582,16 +12631,6 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12582
12631
|
},
|
|
12583
12632
|
});
|
|
12584
12633
|
|
|
12585
|
-
/**
|
|
12586
|
-
* Gets a promise that, when resolved, indicates that the EOP data has been loaded and is
|
|
12587
|
-
* ready to use.
|
|
12588
|
-
*
|
|
12589
|
-
* @returns {Promise<void>} The promise.
|
|
12590
|
-
*/
|
|
12591
|
-
EarthOrientationParameters.prototype.getPromiseToLoad = function () {
|
|
12592
|
-
return Promise.resolve(this._downloadPromise);
|
|
12593
|
-
};
|
|
12594
|
-
|
|
12595
12634
|
/**
|
|
12596
12635
|
* Computes the Earth Orientation Parameters (EOP) for a given date by interpolating.
|
|
12597
12636
|
* If the EOP data has not yet been download, this method returns undefined.
|
|
@@ -12605,15 +12644,11 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12605
12644
|
*
|
|
12606
12645
|
* @exception {RuntimeError} The loaded EOP data has an error and cannot be used.
|
|
12607
12646
|
*
|
|
12608
|
-
* @see EarthOrientationParameters#
|
|
12647
|
+
* @see EarthOrientationParameters#fromUrl
|
|
12609
12648
|
*/
|
|
12610
12649
|
EarthOrientationParameters.prototype.compute = function (date, result) {
|
|
12611
12650
|
// We cannot compute until the samples are available.
|
|
12612
12651
|
if (!defaultValue.defined(this._samples)) {
|
|
12613
|
-
if (defaultValue.defined(this._dataError)) {
|
|
12614
|
-
throw new RuntimeError.RuntimeError(this._dataError);
|
|
12615
|
-
}
|
|
12616
|
-
|
|
12617
12652
|
return undefined;
|
|
12618
12653
|
}
|
|
12619
12654
|
|
|
@@ -12691,15 +12726,15 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12691
12726
|
|
|
12692
12727
|
function onDataReady(eop, eopData) {
|
|
12693
12728
|
if (!defaultValue.defined(eopData.columnNames)) {
|
|
12694
|
-
|
|
12695
|
-
"Error in loaded EOP data: The columnNames property is required."
|
|
12696
|
-
|
|
12729
|
+
throw new RuntimeError.RuntimeError(
|
|
12730
|
+
"Error in loaded EOP data: The columnNames property is required."
|
|
12731
|
+
);
|
|
12697
12732
|
}
|
|
12698
12733
|
|
|
12699
12734
|
if (!defaultValue.defined(eopData.samples)) {
|
|
12700
|
-
|
|
12701
|
-
"Error in loaded EOP data: The samples property is required."
|
|
12702
|
-
|
|
12735
|
+
throw new RuntimeError.RuntimeError(
|
|
12736
|
+
"Error in loaded EOP data: The samples property is required."
|
|
12737
|
+
);
|
|
12703
12738
|
}
|
|
12704
12739
|
|
|
12705
12740
|
const dateColumn = eopData.columnNames.indexOf("modifiedJulianDateUtc");
|
|
@@ -12731,9 +12766,9 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
12731
12766
|
yCelestialPoleOffsetRadiansColumn < 0 ||
|
|
12732
12767
|
taiMinusUtcSecondsColumn < 0
|
|
12733
12768
|
) {
|
|
12734
|
-
|
|
12735
|
-
"Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns"
|
|
12736
|
-
|
|
12769
|
+
throw new RuntimeError.RuntimeError(
|
|
12770
|
+
"Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns"
|
|
12771
|
+
);
|
|
12737
12772
|
}
|
|
12738
12773
|
|
|
12739
12774
|
const samples = (eop._samples = eopData.samples);
|
|
@@ -14200,9 +14235,8 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
14200
14235
|
*
|
|
14201
14236
|
* @example
|
|
14202
14237
|
* const interval = new Cesium.TimeInterval(...);
|
|
14203
|
-
*
|
|
14204
|
-
*
|
|
14205
|
-
* });
|
|
14238
|
+
* await Cesium.Transforms.preloadIcrfFixed(interval));
|
|
14239
|
+
* // the data is now loaded
|
|
14206
14240
|
*
|
|
14207
14241
|
* @see Transforms.computeIcrfToFixedMatrix
|
|
14208
14242
|
* @see Transforms.computeFixedToIcrfMatrix
|
|
@@ -14213,15 +14247,12 @@ define(['require', 'exports', './Matrix3-4f4df527', './Check-666ab1a0', './defau
|
|
|
14213
14247
|
const stopDayTT = timeInterval.stop.dayNumber;
|
|
14214
14248
|
const stopSecondTT = timeInterval.stop.secondsOfDay + ttMinusTai;
|
|
14215
14249
|
|
|
14216
|
-
|
|
14250
|
+
return Transforms.iau2006XysData.preload(
|
|
14217
14251
|
startDayTT,
|
|
14218
14252
|
startSecondTT,
|
|
14219
14253
|
stopDayTT,
|
|
14220
14254
|
stopSecondTT
|
|
14221
14255
|
);
|
|
14222
|
-
const eopPromise = Transforms.earthOrientationParameters.getPromiseToLoad();
|
|
14223
|
-
|
|
14224
|
-
return Promise.all([xysPromise, eopPromise]);
|
|
14225
14256
|
};
|
|
14226
14257
|
|
|
14227
14258
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './arrayRemoveDuplicates-c2038105', './Matrix3-
|
|
1
|
+
define(['exports', './arrayRemoveDuplicates-c2038105', './Matrix3-315394f6', './defaultValue-0a909f67', './Math-2dbd6b93', './PolylinePipeline-5e2e1b21'], (function (exports, arrayRemoveDuplicates, Matrix3, defaultValue, Math, PolylinePipeline) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @private
|
package/Build/Workers/{WebMercatorProjection-9f25de49.js → WebMercatorProjection-13a90d41.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './Matrix3-
|
|
1
|
+
define(['exports', './Matrix3-315394f6', './defaultValue-0a909f67', './Check-666ab1a0', './Math-2dbd6b93'], (function (exports, Matrix3, defaultValue, Check, Math$1) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.102
|
|
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
|
+
|
|
2
26
|
if (typeof self === "undefined") {
|
|
3
27
|
self = {};
|
|
4
28
|
}
|
|
@@ -125,6 +149,9 @@ var requirejs, require, define;
|
|
|
125
149
|
}
|
|
126
150
|
function newContext(contextName) {
|
|
127
151
|
var inCheckLoaded, Module, context, handlers, checkLoadedTimeoutId, config = {
|
|
152
|
+
//Defaults. Do not set a default for map
|
|
153
|
+
//config to speed up normalize(), which
|
|
154
|
+
//will run faster if there is no default.
|
|
128
155
|
waitSeconds: 7,
|
|
129
156
|
baseUrl: "./",
|
|
130
157
|
paths: {},
|
|
@@ -507,6 +534,11 @@ var requirejs, require, define;
|
|
|
507
534
|
context.load(this.map.id, url);
|
|
508
535
|
}
|
|
509
536
|
},
|
|
537
|
+
/**
|
|
538
|
+
* Checks if the module is ready to define itself, and if so,
|
|
539
|
+
* define it.
|
|
540
|
+
* @private
|
|
541
|
+
*/
|
|
510
542
|
check: function() {
|
|
511
543
|
if (!this.enabled || this.enabling) {
|
|
512
544
|
return;
|
|
@@ -816,6 +848,11 @@ var requirejs, require, define;
|
|
|
816
848
|
makeModuleMap,
|
|
817
849
|
nextTick: req.nextTick,
|
|
818
850
|
onError,
|
|
851
|
+
/**
|
|
852
|
+
* @private
|
|
853
|
+
* Set a configuration for the context.
|
|
854
|
+
* @param {Object} cfg config object to integrate.
|
|
855
|
+
*/
|
|
819
856
|
configure: function(cfg2) {
|
|
820
857
|
if (cfg2.baseUrl) {
|
|
821
858
|
if (cfg2.baseUrl.charAt(cfg2.baseUrl.length - 1) !== "/") {
|
|
@@ -938,6 +975,11 @@ var requirejs, require, define;
|
|
|
938
975
|
}
|
|
939
976
|
mixin(localRequire, {
|
|
940
977
|
isBrowser,
|
|
978
|
+
/**
|
|
979
|
+
* Converts a module name + .extension into an URL path.
|
|
980
|
+
* *Requires* the use of a module name. It does not support using
|
|
981
|
+
* plain URLs like nameToUrl.
|
|
982
|
+
*/
|
|
941
983
|
toUrl: function(moduleNamePlusExt) {
|
|
942
984
|
var ext, index = moduleNamePlusExt.lastIndexOf("."), segment = moduleNamePlusExt.split("/")[0], isRelative = segment === "." || segment === "..";
|
|
943
985
|
if (index !== -1 && (!isRelative || index > 1)) {
|
|
@@ -986,12 +1028,26 @@ var requirejs, require, define;
|
|
|
986
1028
|
}
|
|
987
1029
|
return localRequire;
|
|
988
1030
|
},
|
|
1031
|
+
/**
|
|
1032
|
+
* @private
|
|
1033
|
+
* Called to enable a module if it is still in the registry
|
|
1034
|
+
* awaiting enablement. A second arg, parent, the parent module,
|
|
1035
|
+
* is passed in for context, when this method is overridden by
|
|
1036
|
+
* the optimizer. Not shown here to keep code compact.
|
|
1037
|
+
*/
|
|
989
1038
|
enable: function(depMap) {
|
|
990
1039
|
var mod = getOwn(registry, depMap.id);
|
|
991
1040
|
if (mod) {
|
|
992
1041
|
getModule(depMap).enable();
|
|
993
1042
|
}
|
|
994
1043
|
},
|
|
1044
|
+
/**
|
|
1045
|
+
* Internal method used by environment adapters to complete a load event.
|
|
1046
|
+
* A load event could be a script load or just a load pass from a synchronous
|
|
1047
|
+
* load call.
|
|
1048
|
+
* @param {String} moduleName the name of the module to potentially complete.
|
|
1049
|
+
* @private
|
|
1050
|
+
*/
|
|
995
1051
|
completeLoad: function(moduleName) {
|
|
996
1052
|
var found, args, mod, shim = getOwn(config.shim, moduleName) || {}, shExports = shim.exports;
|
|
997
1053
|
takeGlobalQueue();
|
|
@@ -1030,6 +1086,14 @@ var requirejs, require, define;
|
|
|
1030
1086
|
}
|
|
1031
1087
|
checkLoaded();
|
|
1032
1088
|
},
|
|
1089
|
+
/**
|
|
1090
|
+
* @private
|
|
1091
|
+
* Converts a module name to a file path. Supports cases where
|
|
1092
|
+
* moduleName may actually be just an URL.
|
|
1093
|
+
* Note that it **does not** call normalize on the moduleName,
|
|
1094
|
+
* it is assumed to have already been normalized. This is an
|
|
1095
|
+
* internal API, not a public one. Use toUrl for the public API.
|
|
1096
|
+
*/
|
|
1033
1097
|
nameToUrl: function(moduleName, ext, skipExt) {
|
|
1034
1098
|
var paths, syms, i, parentModule, url, parentPath, bundleId, pkgMain = getOwn(config.pkgs, moduleName);
|
|
1035
1099
|
if (pkgMain) {
|
|
@@ -1061,12 +1125,27 @@ var requirejs, require, define;
|
|
|
1061
1125
|
}
|
|
1062
1126
|
return config.urlArgs ? url + ((url.indexOf("?") === -1 ? "?" : "&") + config.urlArgs) : url;
|
|
1063
1127
|
},
|
|
1128
|
+
//Delegates to req.load. Broken out as a separate function to
|
|
1129
|
+
//allow overriding in the optimizer.
|
|
1064
1130
|
load: function(id, url) {
|
|
1065
1131
|
req.load(context, id, url);
|
|
1066
1132
|
},
|
|
1133
|
+
/**
|
|
1134
|
+
* Executes a module callback function. Broken out as a separate function
|
|
1135
|
+
* solely to allow the build system to sequence the files in the built
|
|
1136
|
+
* layer in the right sequence.
|
|
1137
|
+
*
|
|
1138
|
+
* @private
|
|
1139
|
+
*/
|
|
1067
1140
|
execCb: function(name, callback, args, exports) {
|
|
1068
1141
|
return callback.apply(exports, args);
|
|
1069
1142
|
},
|
|
1143
|
+
/**
|
|
1144
|
+
* callback for script loads, used to check status of loading.
|
|
1145
|
+
* @private
|
|
1146
|
+
* @param {Event} evt the event from the browser for the script
|
|
1147
|
+
* that was loaded.
|
|
1148
|
+
*/
|
|
1070
1149
|
onScriptLoad: function(evt) {
|
|
1071
1150
|
if (evt.type === "load" || readyRegExp.test((evt.currentTarget || evt.srcElement).readyState)) {
|
|
1072
1151
|
interactiveScript = null;
|
|
@@ -1074,6 +1153,10 @@ var requirejs, require, define;
|
|
|
1074
1153
|
context.completeLoad(data.id);
|
|
1075
1154
|
}
|
|
1076
1155
|
},
|
|
1156
|
+
/**
|
|
1157
|
+
* @private
|
|
1158
|
+
* Callback for script errors.
|
|
1159
|
+
*/
|
|
1077
1160
|
onScriptError: function(evt) {
|
|
1078
1161
|
var data = getScriptData(evt);
|
|
1079
1162
|
if (!hasPathFallback(data.id)) {
|
|
@@ -1161,7 +1244,14 @@ var requirejs, require, define;
|
|
|
1161
1244
|
}
|
|
1162
1245
|
node.setAttribute("data-requirecontext", context.contextName);
|
|
1163
1246
|
node.setAttribute("data-requiremodule", moduleName);
|
|
1164
|
-
if (node.attachEvent &&
|
|
1247
|
+
if (node.attachEvent && //Check if node.attachEvent is artificially added by custom script or
|
|
1248
|
+
//natively supported by browser
|
|
1249
|
+
//read https://github.com/jrburke/requirejs/issues/187
|
|
1250
|
+
//if we can NOT find [native code] then it must NOT natively supported.
|
|
1251
|
+
//in IE8, node.attachEvent does not have toString()
|
|
1252
|
+
//Note the test for "[native code" with no closing brace, see:
|
|
1253
|
+
//https://github.com/jrburke/requirejs/issues/273
|
|
1254
|
+
!(node.attachEvent.toString && node.attachEvent.toString().indexOf("[native code") < 0) && !isOpera) {
|
|
1165
1255
|
useInteractive = true;
|
|
1166
1256
|
node.attachEvent("onreadystatechange", context.onScriptLoad);
|
|
1167
1257
|
} else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./PrimitivePipeline-
|
|
1
|
+
define(['./PrimitivePipeline-5640850a', './createTaskProcessorWorker', './Transforms-a05e5e6e', './Matrix3-315394f6', './Check-666ab1a0', './defaultValue-0a909f67', './Math-2dbd6b93', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './ComponentDatatype-f7b11d02', './WebGLConstants-a8cc3e8c', './GeometryAttribute-334718f8', './GeometryAttributes-f06a2792', './GeometryPipeline-8fb0db69', './AttributeCompression-b646d393', './EncodedCartesian3-81f70735', './IndexDatatype-a55ceaa1', './IntersectionTests-27d49265', './Plane-900aa728', './WebMercatorProjection-13a90d41'], (function (PrimitivePipeline, createTaskProcessorWorker, Transforms, Matrix3, Check, defaultValue, Math, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryPipeline, AttributeCompression, EncodedCartesian3, IndexDatatype, IntersectionTests, Plane, WebMercatorProjection) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function combineGeometry(packedParameters, transferableObjects) {
|
|
4
4
|
const parameters = PrimitivePipeline.PrimitivePipeline.unpackCombineGeometryParameters(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./BoxGeometry-
|
|
1
|
+
define(['./BoxGeometry-8c4b4125', './defaultValue-0a909f67', './Transforms-a05e5e6e', './Matrix3-315394f6', './Check-666ab1a0', './Math-2dbd6b93', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './ComponentDatatype-f7b11d02', './WebGLConstants-a8cc3e8c', './GeometryAttribute-334718f8', './GeometryAttributes-f06a2792', './GeometryOffsetAttribute-04332ce7', './VertexFormat-6b480673'], (function (BoxGeometry, defaultValue, Transforms, Matrix3, Check, Math, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, VertexFormat) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function createBoxGeometry(boxGeometry, offset) {
|
|
4
4
|
if (defaultValue.defined(offset)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./Transforms-
|
|
1
|
+
define(['./Transforms-a05e5e6e', './Matrix3-315394f6', './Check-666ab1a0', './ComponentDatatype-f7b11d02', './defaultValue-0a909f67', './GeometryAttribute-334718f8', './GeometryAttributes-f06a2792', './GeometryOffsetAttribute-04332ce7', './Math-2dbd6b93', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './WebGLConstants-a8cc3e8c'], (function (Transforms, Matrix3, Check, ComponentDatatype, defaultValue, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, Math, Matrix2, RuntimeError, combine, WebGLConstants) { 'use strict';
|
|
2
2
|
|
|
3
3
|
const diffScratch = new Matrix3.Cartesian3();
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./Matrix3-
|
|
1
|
+
define(['./Matrix3-315394f6', './Check-666ab1a0', './defaultValue-0a909f67', './EllipseGeometry-a9c9b3be', './VertexFormat-6b480673', './Math-2dbd6b93', './Transforms-a05e5e6e', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './ComponentDatatype-f7b11d02', './WebGLConstants-a8cc3e8c', './EllipseGeometryLibrary-855d4681', './GeometryAttribute-334718f8', './GeometryAttributes-f06a2792', './GeometryInstance-451dc1cd', './GeometryOffsetAttribute-04332ce7', './GeometryPipeline-8fb0db69', './AttributeCompression-b646d393', './EncodedCartesian3-81f70735', './IndexDatatype-a55ceaa1', './IntersectionTests-27d49265', './Plane-900aa728'], (function (Matrix3, Check, defaultValue, EllipseGeometry, VertexFormat, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, EllipseGeometryLibrary, GeometryAttribute, GeometryAttributes, GeometryInstance, GeometryOffsetAttribute, GeometryPipeline, AttributeCompression, EncodedCartesian3, IndexDatatype, IntersectionTests, Plane) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A description of a circle on the ellipsoid. Circle geometry can be rendered with both {@link Primitive} and {@link GroundPrimitive}.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./Matrix3-
|
|
1
|
+
define(['./Matrix3-315394f6', './Check-666ab1a0', './defaultValue-0a909f67', './EllipseOutlineGeometry-017a5929', './Math-2dbd6b93', './Transforms-a05e5e6e', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './ComponentDatatype-f7b11d02', './WebGLConstants-a8cc3e8c', './EllipseGeometryLibrary-855d4681', './GeometryAttribute-334718f8', './GeometryAttributes-f06a2792', './GeometryOffsetAttribute-04332ce7', './IndexDatatype-a55ceaa1'], (function (Matrix3, Check, defaultValue, EllipseOutlineGeometry, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, EllipseGeometryLibrary, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A description of the outline of a circle on the ellipsoid.
|