@cesium/engine 1.1.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/{ArcType-ce2e50ab.js → ArcType-2d9abbbc.js} +4 -4
- package/Build/Workers/{AttributeCompression-b646d393.js → AttributeCompression-8a5a065e.js} +24 -24
- package/Build/Workers/{AxisAlignedBoundingBox-a4321399.js → AxisAlignedBoundingBox-a6f9f0e5.js} +3 -3
- package/Build/Workers/{BoundingRectangle-80d8801f.js → BoundingRectangle-b0a68595.js} +18 -18
- package/Build/Workers/{BoxGeometry-33c10a4f.js → BoxGeometry-baedd794.js} +9 -9
- package/Build/Workers/{Check-666ab1a0.js → Check-6ede7e26.js} +22 -22
- package/Build/Workers/{Color-1bf9a6e0.js → Color-f85df1be.js} +59 -59
- package/Build/Workers/{ComponentDatatype-f7b11d02.js → ComponentDatatype-cf1fa08e.js} +16 -16
- package/Build/Workers/{CoplanarPolygonGeometryLibrary-5c5b981b.js → CoplanarPolygonGeometryLibrary-30516950.js} +1 -1
- package/Build/Workers/{CorridorGeometryLibrary-7cbae7a0.js → CorridorGeometryLibrary-5d5d3b3a.js} +1 -1
- package/Build/Workers/{CylinderGeometry-42740df0.js → CylinderGeometry-d899ae26.js} +12 -12
- package/Build/Workers/{CylinderGeometryLibrary-372c07d8.js → CylinderGeometryLibrary-135b0858.js} +1 -1
- package/Build/Workers/{EllipseGeometry-49a3ac21.js → EllipseGeometry-a49f8449.js} +20 -20
- package/Build/Workers/{EllipseGeometryLibrary-b891b2f8.js → EllipseGeometryLibrary-cba7edde.js} +1 -1
- package/Build/Workers/{EllipseOutlineGeometry-fbd72e07.js → EllipseOutlineGeometry-8095c8cb.js} +15 -15
- package/Build/Workers/{EllipsoidGeodesic-98c62a56.js → EllipsoidGeodesic-dcff5cbd.js} +6 -6
- package/Build/Workers/{EllipsoidGeometry-a351dba8.js → EllipsoidGeometry-ed93f571.js} +14 -14
- package/Build/Workers/{EllipsoidOutlineGeometry-3e8779bf.js → EllipsoidOutlineGeometry-e4854854.js} +15 -15
- package/Build/Workers/{EllipsoidRhumbLine-19756602.js → EllipsoidRhumbLine-b672d507.js} +9 -9
- package/Build/Workers/{EllipsoidTangentPlane-cfb50678.js → EllipsoidTangentPlane-7ae1aa9a.js} +1 -1
- package/Build/Workers/{EncodedCartesian3-81f70735.js → EncodedCartesian3-e8bbca36.js} +6 -6
- package/Build/Workers/{FrustumGeometry-c5754412.js → FrustumGeometry-b62db3e3.js} +108 -108
- package/Build/Workers/{GeometryAttribute-0bfd05e8.js → GeometryAttribute-780af4fa.js} +20 -20
- package/Build/Workers/{GeometryAttributes-f06a2792.js → GeometryAttributes-ad136444.js} +1 -1
- package/Build/Workers/{GeometryInstance-451dc1cd.js → GeometryInstance-3fb607b7.js} +6 -6
- package/Build/Workers/{GeometryPipeline-0166905d.js → GeometryPipeline-36b61c99.js} +22 -22
- package/Build/Workers/{IndexDatatype-a55ceaa1.js → IndexDatatype-b8f3e09d.js} +13 -13
- package/Build/Workers/{IntersectionTests-a93d3de9.js → IntersectionTests-e889fcf0.js} +37 -37
- package/Build/Workers/{Math-2dbd6b93.js → Math-dad82b4d.js} +137 -137
- package/Build/Workers/{Matrix2-13178034.js → Matrix2-1e403d0e.js} +256 -256
- package/Build/Workers/{Matrix3-315394f6.js → Matrix3-fa806b97.js} +150 -150
- package/Build/Workers/{OrientedBoundingBox-b450cb61.js → OrientedBoundingBox-43478ac8.js} +15 -15
- package/Build/Workers/{Plane-900aa728.js → Plane-c27e1ac6.js} +5 -5
- package/Build/Workers/{PolygonGeometryLibrary-f918ac26.js → PolygonGeometryLibrary-38a98276.js} +6 -6
- package/Build/Workers/{PolygonPipeline-f59a8f0a.js → PolygonPipeline-d31ff61c.js} +14 -14
- package/Build/Workers/{PolylinePipeline-d8e6bd9b.js → PolylinePipeline-30e4cec9.js} +16 -16
- package/Build/Workers/{PolylineVolumeGeometryLibrary-125d2edf.js → PolylineVolumeGeometryLibrary-90551d26.js} +7 -7
- package/Build/Workers/{PrimitivePipeline-0d7b5ed4.js → PrimitivePipeline-558d9cb0.js} +6 -6
- package/Build/Workers/{RectangleGeometryLibrary-0768db63.js → RectangleGeometryLibrary-815c68df.js} +1 -1
- package/Build/Workers/{RuntimeError-06c93819.js → RuntimeError-ef395448.js} +5 -5
- package/Build/Workers/{TerrainEncoding-06470d7f.js → TerrainEncoding-341ead52.js} +30 -30
- package/Build/Workers/{Transforms-26539bce.js → Transforms-9e9df299.js} +541 -524
- package/Build/Workers/{VertexFormat-6b480673.js → VertexFormat-030f11ff.js} +14 -14
- package/Build/Workers/{WallGeometryLibrary-6167b0fc.js → WallGeometryLibrary-ccf90976.js} +1 -1
- package/Build/Workers/{WebGLConstants-a8cc3e8c.js → WebGLConstants-0b1ce7ba.js} +1 -1
- package/Build/Workers/{WebMercatorProjection-13a90d41.js → WebMercatorProjection-76a3fcc0.js} +6 -6
- package/Build/Workers/{arrayRemoveDuplicates-c2038105.js → arrayRemoveDuplicates-fac118a8.js} +5 -5
- package/Build/Workers/cesiumWorkerBootstrapper.js +70 -4
- package/Build/Workers/{combine-ca22a614.js → combine-d9581036.js} +5 -5
- package/Build/Workers/combineGeometry.js +1 -1
- package/Build/Workers/createBoxGeometry.js +1 -1
- package/Build/Workers/createBoxOutlineGeometry.js +9 -9
- package/Build/Workers/createCircleGeometry.js +13 -13
- package/Build/Workers/createCircleOutlineGeometry.js +13 -13
- package/Build/Workers/createCoplanarPolygonGeometry.js +11 -11
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +9 -9
- package/Build/Workers/createCorridorGeometry.js +14 -14
- package/Build/Workers/createCorridorOutlineGeometry.js +12 -12
- package/Build/Workers/createCylinderGeometry.js +1 -1
- package/Build/Workers/createCylinderOutlineGeometry.js +13 -13
- 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 +8 -8
- package/Build/Workers/createGeometry.js +1 -1
- package/Build/Workers/createGroundPolylineGeometry.js +33 -33
- package/Build/Workers/createPlaneGeometry.js +8 -8
- package/Build/Workers/createPlaneOutlineGeometry.js +6 -6
- package/Build/Workers/createPolygonGeometry.js +25 -25
- package/Build/Workers/createPolygonOutlineGeometry.js +17 -17
- package/Build/Workers/createPolylineGeometry.js +11 -11
- package/Build/Workers/createPolylineVolumeGeometry.js +9 -9
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +9 -9
- package/Build/Workers/createRectangleGeometry.js +16 -16
- package/Build/Workers/createRectangleOutlineGeometry.js +12 -12
- package/Build/Workers/createSimplePolylineGeometry.js +10 -10
- package/Build/Workers/createSphereGeometry.js +11 -11
- package/Build/Workers/createSphereOutlineGeometry.js +12 -12
- package/Build/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Workers/createVectorTileClampedPolylines.js +1 -1
- package/Build/Workers/createVectorTileGeometries.js +8 -8
- 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 +23 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +24 -24
- package/Build/Workers/createWallGeometry.js +14 -14
- package/Build/Workers/createWallOutlineGeometry.js +14 -14
- package/Build/Workers/decodeDraco.js +10 -2
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +15 -15
- package/Build/Workers/decodeI3S.js +1 -1
- package/Build/Workers/{defaultValue-0a909f67.js → defaultValue-fe22d8c0.js} +2 -2
- package/Build/Workers/package.js +1 -1
- package/Build/Workers/transcodeKTX2.js +46 -26
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -24
- package/README.md +14 -16
- package/Source/Core/ApproximateTerrainHeights.js +3 -3
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +20 -20
- package/Source/Core/ArcType.js +4 -4
- package/Source/Core/ArticulationStageType.js +1 -1
- package/Source/Core/AssociativeArray.js +7 -7
- package/Source/Core/AttributeCompression.js +12 -12
- package/Source/Core/AxisAlignedBoundingBox.js +2 -2
- package/Source/Core/BingMapsGeocoderService.js +6 -6
- package/Source/Core/BoundingRectangle.js +17 -17
- package/Source/Core/BoundingSphere.js +25 -25
- package/Source/Core/BoxGeometry.js +8 -8
- package/Source/Core/BoxOutlineGeometry.js +8 -8
- package/Source/Core/Cartesian2.js +38 -38
- package/Source/Core/Cartesian3.js +50 -50
- package/Source/Core/Cartesian4.js +44 -44
- package/Source/Core/Cartographic.js +19 -19
- package/Source/Core/CartographicGeocoderService.js +1 -1
- package/Source/Core/CatmullRomSpline.js +10 -10
- package/Source/Core/CesiumTerrainProvider.js +33 -33
- package/Source/Core/Check.js +17 -17
- package/Source/Core/CircleGeometry.js +12 -12
- package/Source/Core/CircleOutlineGeometry.js +12 -12
- package/Source/Core/Clock.js +7 -7
- package/Source/Core/ClockRange.js +4 -4
- package/Source/Core/ClockStep.js +4 -4
- package/Source/Core/Color.js +58 -58
- package/Source/Core/ColorGeometryInstanceAttribute.js +7 -7
- package/Source/Core/ComponentDatatype.js +15 -15
- package/Source/Core/CompressedTextureBuffer.js +7 -7
- package/Source/Core/ConstantSpline.js +9 -9
- package/Source/Core/CoplanarPolygonGeometry.js +10 -10
- package/Source/Core/CoplanarPolygonOutlineGeometry.js +8 -8
- package/Source/Core/CornerType.js +4 -4
- package/Source/Core/CorridorGeometry.js +13 -13
- package/Source/Core/CorridorOutlineGeometry.js +11 -11
- package/Source/Core/Credit.js +7 -7
- package/Source/Core/CubicRealPolynomial.js +10 -10
- package/Source/Core/CullingVolume.js +7 -7
- package/Source/Core/CustomHeightmapTerrainProvider.js +28 -28
- package/Source/Core/CylinderGeometry.js +11 -11
- package/Source/Core/CylinderOutlineGeometry.js +12 -12
- package/Source/Core/DefaultProxy.js +3 -3
- package/Source/Core/DeveloperError.js +4 -4
- package/Source/Core/DistanceDisplayCondition.js +12 -12
- package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +5 -5
- package/Source/Core/DoubleEndedPriorityQueue.js +5 -5
- package/Source/Core/EarthOrientationParameters.js +6 -6
- package/Source/Core/EarthOrientationParametersSample.js +10 -10
- package/Source/Core/EasingFunction.js +2 -2
- package/Source/Core/EllipseGeometry.js +19 -19
- package/Source/Core/EllipseOutlineGeometry.js +14 -14
- package/Source/Core/Ellipsoid.js +20 -20
- package/Source/Core/EllipsoidGeodesic.js +5 -5
- package/Source/Core/EllipsoidGeometry.js +13 -13
- package/Source/Core/EllipsoidOutlineGeometry.js +14 -14
- package/Source/Core/EllipsoidRhumbLine.js +8 -8
- package/Source/Core/EllipsoidTerrainProvider.js +18 -18
- package/Source/Core/EllipsoidalOccluder.js +9 -9
- package/Source/Core/EncodedCartesian3.js +5 -5
- package/Source/Core/Event.js +4 -4
- package/Source/Core/EventHelper.js +1 -1
- package/Source/Core/ExtrapolationType.js +4 -4
- package/Source/Core/FeatureDetection.js +26 -8
- package/Source/Core/FrustumGeometry.js +7 -7
- package/Source/Core/FrustumOutlineGeometry.js +7 -7
- package/Source/Core/Fullscreen.js +8 -8
- package/Source/Core/GeocodeType.js +3 -3
- package/Source/Core/GeocoderService.js +3 -3
- package/Source/Core/GeographicTilingScheme.js +16 -16
- package/Source/Core/Geometry.js +5 -5
- package/Source/Core/GeometryAttribute.js +6 -6
- package/Source/Core/GeometryInstance.js +5 -5
- package/Source/Core/GeometryInstanceAttribute.js +7 -7
- package/Source/Core/GeometryPipeline.js +11 -11
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +22 -22
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +29 -29
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +21 -21
- package/Source/Core/GoogleEarthEnterpriseTileInformation.js +14 -14
- package/Source/Core/GregorianDate.js +16 -16
- package/Source/Core/GroundPolylineGeometry.js +13 -13
- package/Source/Core/HeadingPitchRange.js +6 -6
- package/Source/Core/HeadingPitchRoll.js +18 -18
- package/Source/Core/Heap.js +7 -7
- package/Source/Core/HeightmapEncoding.js +3 -3
- package/Source/Core/HeightmapTerrainData.js +44 -44
- package/Source/Core/HeightmapTessellator.js +16 -16
- package/Source/Core/HermitePolynomialApproximation.js +17 -17
- package/Source/Core/HermiteSpline.js +17 -17
- package/Source/Core/HilbertOrder.js +7 -7
- package/Source/Core/Iau2006XysData.js +13 -13
- package/Source/Core/Iau2006XysSample.js +6 -6
- package/Source/Core/IauOrientationParameters.js +4 -4
- package/Source/Core/IndexDatatype.js +12 -12
- package/Source/Core/InterpolationAlgorithm.js +17 -17
- package/Source/Core/InterpolationType.js +1 -1
- package/Source/Core/Intersect.js +4 -4
- package/Source/Core/IntersectionTests.js +5 -5
- package/Source/Core/Intersections2D.js +23 -23
- package/Source/Core/Interval.js +4 -4
- package/Source/Core/Ion.js +3 -4
- package/Source/Core/IonGeocoderService.js +4 -4
- package/Source/Core/IonResource.js +6 -6
- package/Source/Core/JulianDate.js +27 -27
- package/Source/Core/KeyboardEventModifier.js +4 -4
- package/Source/Core/LagrangePolynomialApproximation.js +8 -8
- package/Source/Core/LeapSecond.js +2 -2
- package/Source/Core/LinearApproximation.js +8 -8
- package/Source/Core/LinearSpline.js +13 -13
- package/Source/Core/ManagedArray.js +8 -8
- package/Source/Core/Math.js +136 -136
- package/Source/Core/Matrix2.js +44 -44
- package/Source/Core/Matrix3.js +59 -59
- package/Source/Core/Matrix4.js +91 -91
- package/Source/Core/MorphWeightSpline.js +14 -14
- package/Source/Core/MortonOrder.js +21 -21
- package/Source/Core/NearFarScalar.js +16 -16
- package/Source/Core/Occluder.js +5 -5
- package/Source/Core/OffsetGeometryInstanceAttribute.js +5 -5
- package/Source/Core/OpenCageGeocoderService.js +18 -18
- package/Source/Core/OrientedBoundingBox.js +14 -14
- package/Source/Core/OrthographicFrustum.js +23 -23
- package/Source/Core/OrthographicOffCenterFrustum.js +21 -21
- package/Source/Core/Packable.js +7 -7
- package/Source/Core/PackableForInterpolation.js +11 -11
- package/Source/Core/PeliasGeocoderService.js +2 -2
- package/Source/Core/PerspectiveFrustum.js +28 -28
- package/Source/Core/PerspectiveOffCenterFrustum.js +21 -21
- package/Source/Core/PinBuilder.js +9 -9
- package/Source/Core/PixelFormat.js +43 -23
- package/Source/Core/Plane.js +4 -4
- package/Source/Core/PlaneGeometry.js +7 -7
- package/Source/Core/PlaneOutlineGeometry.js +5 -5
- package/Source/Core/PolygonGeometry.js +24 -24
- package/Source/Core/PolygonGeometryLibrary.js +4 -4
- package/Source/Core/PolygonOutlineGeometry.js +16 -16
- package/Source/Core/PolygonPipeline.js +10 -10
- package/Source/Core/PolylineGeometry.js +10 -10
- package/Source/Core/PolylinePipeline.js +15 -15
- package/Source/Core/PolylineVolumeGeometry.js +8 -8
- package/Source/Core/PolylineVolumeOutlineGeometry.js +8 -8
- package/Source/Core/PrimitiveType.js +8 -8
- package/Source/Core/Proxy.js +2 -2
- package/Source/Core/QuadraticRealPolynomial.js +8 -8
- package/Source/Core/QuantizedMeshTerrainData.js +37 -37
- package/Source/Core/QuarticRealPolynomial.js +12 -12
- package/Source/Core/Quaternion.js +42 -42
- package/Source/Core/QuaternionSpline.js +10 -10
- package/Source/Core/Queue.js +2 -2
- package/Source/Core/Ray.js +1 -1
- package/Source/Core/Rectangle.js +38 -38
- package/Source/Core/RectangleCollisionChecker.js +3 -3
- package/Source/Core/RectangleGeometry.js +15 -15
- package/Source/Core/RectangleOutlineGeometry.js +11 -11
- package/Source/Core/ReferenceFrame.js +3 -3
- package/Source/Core/Request.js +13 -13
- package/Source/Core/RequestErrorEvent.js +7 -7
- package/Source/Core/RequestScheduler.js +14 -14
- package/Source/Core/RequestState.js +7 -7
- package/Source/Core/RequestType.js +5 -5
- package/Source/Core/Resource.js +223 -223
- package/Source/Core/RuntimeError.js +4 -4
- package/Source/Core/S2Cell.js +15 -15
- package/Source/Core/ScreenSpaceEventHandler.js +7 -7
- package/Source/Core/ScreenSpaceEventType.js +16 -16
- package/Source/Core/ShowGeometryInstanceAttribute.js +4 -4
- package/Source/Core/SimplePolylineGeometry.js +9 -9
- package/Source/Core/SphereGeometry.js +10 -10
- package/Source/Core/SphereOutlineGeometry.js +11 -11
- package/Source/Core/Spherical.js +13 -13
- package/Source/Core/Spline.js +14 -14
- package/Source/Core/SteppedSpline.js +14 -14
- package/Source/Core/TaskProcessor.js +10 -10
- package/Source/Core/TerrainData.js +25 -25
- package/Source/Core/TerrainEncoding.js +14 -14
- package/Source/Core/TerrainExaggeration.js +3 -3
- package/Source/Core/TerrainMesh.js +18 -18
- package/Source/Core/TerrainProvider.js +23 -23
- package/Source/Core/TerrainQuantization.js +3 -3
- package/Source/Core/TileAvailability.js +16 -16
- package/Source/Core/TileProviderError.js +15 -15
- package/Source/Core/TilingScheme.js +13 -13
- package/Source/Core/TimeConstants.js +10 -10
- package/Source/Core/TimeInterval.js +23 -23
- package/Source/Core/TimeIntervalCollection.js +39 -39
- package/Source/Core/TimeStandard.js +3 -3
- package/Source/Core/Tipsify.js +10 -10
- package/Source/Core/Transforms.js +2 -2
- package/Source/Core/TranslationRotationScale.js +1 -1
- package/Source/Core/TridiagonalSystemSolver.js +3 -3
- package/Source/Core/TrustedServers.js +5 -5
- package/Source/Core/VRTheWorldTerrainProvider.js +20 -20
- package/Source/Core/VertexFormat.js +13 -13
- package/Source/Core/VideoSynchronizer.js +4 -4
- package/Source/Core/Visibility.js +4 -4
- package/Source/Core/VulkanConstants.js +1 -1
- package/Source/Core/WallGeometry.js +13 -13
- package/Source/Core/WallOutlineGeometry.js +13 -13
- package/Source/Core/WebGLConstants.js +1 -1
- package/Source/Core/WebMercatorProjection.js +5 -5
- package/Source/Core/WebMercatorTilingScheme.js +16 -16
- package/Source/Core/WindingOrder.js +3 -3
- package/Source/Core/WireframeIndexGenerator.js +3 -3
- package/Source/Core/arrayRemoveDuplicates.js +4 -4
- package/Source/Core/binarySearch.js +2 -2
- package/Source/Core/buildModuleUrl.js +4 -4
- package/Source/Core/clone.js +3 -3
- package/Source/Core/combine.js +4 -4
- package/Source/Core/createGuid.js +1 -1
- package/Source/Core/createWorldTerrain.js +3 -3
- package/Source/Core/defaultValue.js +1 -1
- package/Source/Core/defer.js +1 -1
- package/Source/Core/defined.js +1 -1
- package/Source/Core/deprecationWarning.js +2 -2
- package/Source/Core/destroyObject.js +2 -2
- package/Source/Core/formatError.js +1 -1
- package/Source/Core/getAbsoluteUri.js +3 -3
- package/Source/Core/getBaseUri.js +3 -3
- package/Source/Core/getExtensionFromUri.js +2 -2
- package/Source/Core/getFilenameFromUri.js +2 -2
- package/Source/Core/getImageFromTypedArray.js +2 -2
- package/Source/Core/getImagePixels.js +4 -3
- package/Source/Core/getJsonFromTypedArray.js +3 -3
- package/Source/Core/getStringFromTypedArray.js +3 -3
- package/Source/Core/getTimestamp.js +1 -1
- package/Source/Core/isBlobUri.js +2 -2
- package/Source/Core/isDataUri.js +2 -2
- package/Source/Core/isLeapYear.js +2 -2
- package/Source/Core/loadKTX2.js +8 -8
- package/Source/Core/mergeSort.js +1 -1
- package/Source/Core/objectToQuery.js +2 -2
- package/Source/Core/oneTimeWarning.js +2 -2
- package/Source/Core/parseResponseHeaders.js +2 -2
- package/Source/Core/pointInsideTriangle.js +1 -1
- package/Source/Core/queryToObject.js +2 -2
- package/Source/Core/sampleTerrain.js +12 -7
- package/Source/Core/sampleTerrainMostDetailed.js +1 -1
- package/Source/Core/scaleToGeodeticSurface.js +1 -1
- package/Source/Core/subdivideArray.js +1 -1
- package/Source/Core/writeTextToCanvas.js +10 -9
- package/Source/DataSources/BillboardGraphics.js +1 -1
- package/Source/DataSources/BillboardVisualizer.js +2 -2
- package/Source/DataSources/BoundingSphereState.js +1 -1
- package/Source/DataSources/BoxGraphics.js +1 -1
- package/Source/DataSources/CallbackProperty.js +8 -8
- package/Source/DataSources/Cesium3DTilesetGraphics.js +1 -1
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +2 -2
- package/Source/DataSources/CheckerboardMaterialProperty.js +6 -6
- package/Source/DataSources/ColorMaterialProperty.js +5 -5
- package/Source/DataSources/CompositeEntityCollection.js +8 -8
- package/Source/DataSources/CompositeMaterialProperty.js +5 -5
- package/Source/DataSources/CompositePositionProperty.js +2 -2
- package/Source/DataSources/CompositeProperty.js +4 -4
- package/Source/DataSources/ConstantPositionProperty.js +4 -4
- package/Source/DataSources/ConstantProperty.js +5 -5
- package/Source/DataSources/CorridorGraphics.js +1 -1
- package/Source/DataSources/CustomDataSource.js +5 -5
- package/Source/DataSources/CylinderGraphics.js +1 -1
- package/Source/DataSources/CzmlDataSource.js +26 -26
- package/Source/DataSources/DataSource.js +4 -4
- package/Source/DataSources/DataSourceClock.js +2 -2
- package/Source/DataSources/DataSourceCollection.js +11 -11
- package/Source/DataSources/DataSourceDisplay.js +5 -5
- package/Source/DataSources/DynamicGeometryUpdater.js +1 -1
- package/Source/DataSources/EllipseGraphics.js +1 -1
- package/Source/DataSources/EllipsoidGeometryUpdater.js +2 -2
- package/Source/DataSources/EllipsoidGraphics.js +1 -1
- package/Source/DataSources/Entity.js +14 -14
- package/Source/DataSources/EntityCluster.js +16 -16
- package/Source/DataSources/EntityCollection.js +8 -8
- package/Source/DataSources/GeoJsonDataSource.js +27 -27
- package/Source/DataSources/GeometryUpdater.js +22 -22
- package/Source/DataSources/GeometryVisualizer.js +2 -2
- package/Source/DataSources/GpxDataSource.js +23 -23
- package/Source/DataSources/GridMaterialProperty.js +7 -7
- package/Source/DataSources/GroundGeometryUpdater.js +5 -5
- package/Source/DataSources/ImageMaterialProperty.js +8 -8
- package/Source/DataSources/KmlDataSource.js +32 -32
- package/Source/DataSources/KmlTour.js +7 -7
- package/Source/DataSources/KmlTourFlyTo.js +6 -6
- package/Source/DataSources/KmlTourWait.js +2 -2
- package/Source/DataSources/LabelGraphics.js +1 -1
- package/Source/DataSources/LabelVisualizer.js +2 -2
- package/Source/DataSources/MaterialProperty.js +5 -5
- package/Source/DataSources/ModelGraphics.js +3 -3
- package/Source/DataSources/ModelVisualizer.js +2 -2
- package/Source/DataSources/NodeTransformationProperty.js +3 -3
- package/Source/DataSources/PathGraphics.js +1 -1
- package/Source/DataSources/PathVisualizer.js +2 -2
- package/Source/DataSources/PlaneGraphics.js +1 -1
- package/Source/DataSources/PointGraphics.js +1 -1
- package/Source/DataSources/PointVisualizer.js +2 -2
- package/Source/DataSources/PolygonGraphics.js +3 -3
- package/Source/DataSources/PolylineArrowMaterialProperty.js +5 -5
- package/Source/DataSources/PolylineDashMaterialProperty.js +8 -8
- package/Source/DataSources/PolylineGeometryUpdater.js +13 -13
- package/Source/DataSources/PolylineGlowMaterialProperty.js +8 -8
- package/Source/DataSources/PolylineGraphics.js +2 -2
- package/Source/DataSources/PolylineOutlineMaterialProperty.js +7 -7
- package/Source/DataSources/PolylineVisualizer.js +2 -2
- package/Source/DataSources/PolylineVolumeGraphics.js +3 -3
- package/Source/DataSources/PositionProperty.js +2 -2
- package/Source/DataSources/PositionPropertyArray.js +2 -2
- package/Source/DataSources/Property.js +4 -4
- package/Source/DataSources/PropertyArray.js +2 -2
- package/Source/DataSources/PropertyBag.js +10 -10
- package/Source/DataSources/RectangleGraphics.js +1 -1
- package/Source/DataSources/ReferenceProperty.js +10 -10
- package/Source/DataSources/Rotation.js +14 -14
- package/Source/DataSources/SampledPositionProperty.js +11 -11
- package/Source/DataSources/SampledProperty.js +12 -12
- package/Source/DataSources/StripeMaterialProperty.js +8 -8
- package/Source/DataSources/StripeOrientation.js +3 -3
- package/Source/DataSources/TerrainOffsetProperty.js +1 -1
- package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +3 -3
- package/Source/DataSources/TimeIntervalCollectionProperty.js +4 -4
- package/Source/DataSources/VelocityOrientationProperty.js +2 -2
- package/Source/DataSources/VelocityVectorProperty.js +4 -4
- package/Source/DataSources/Visualizer.js +2 -2
- package/Source/DataSources/WallGraphics.js +4 -4
- package/Source/DataSources/exportKml.js +9 -9
- package/Source/Renderer/AutomaticUniforms.js +3 -3
- package/Source/Renderer/Buffer.js +4 -4
- package/Source/Renderer/ClearCommand.js +3 -3
- package/Source/Renderer/ComputeCommand.js +3 -3
- package/Source/Renderer/Context.js +49 -59
- package/Source/Renderer/ContextLimits.js +22 -22
- package/Source/Renderer/CubeMapFace.js +11 -11
- package/Source/Renderer/DrawCommand.js +15 -15
- package/Source/Renderer/Framebuffer.js +4 -4
- package/Source/Renderer/FramebufferManager.js +9 -9
- package/Source/Renderer/MultisampleFramebuffer.js +1 -1
- package/Source/Renderer/PassState.js +2 -2
- package/Source/Renderer/PixelDatatype.js +1 -1
- package/Source/Renderer/RenderState.js +1 -1
- package/Source/Renderer/ShaderBuilder.js +37 -36
- package/Source/Renderer/ShaderCache.js +8 -8
- package/Source/Renderer/ShaderDestination.js +2 -2
- package/Source/Renderer/ShaderFunction.js +3 -3
- package/Source/Renderer/ShaderSource.js +38 -33
- package/Source/Renderer/ShaderStruct.js +4 -4
- package/Source/Renderer/Texture.js +18 -18
- package/Source/Renderer/TextureMagnificationFilter.js +4 -4
- package/Source/Renderer/TextureMinificationFilter.js +8 -8
- package/Source/Renderer/UniformState.js +14 -14
- package/Source/Renderer/VertexArray.js +2 -2
- package/Source/Renderer/createUniform.js +12 -12
- package/Source/Renderer/createUniformArray.js +12 -12
- package/Source/Renderer/demodernizeShader.js +76 -0
- package/Source/Renderer/freezeRenderState.js +2 -2
- package/Source/Renderer/loadCubeMap.js +3 -3
- package/Source/Scene/AlphaMode.js +4 -4
- package/Source/Scene/Appearance.js +14 -14
- package/Source/Scene/ArcGisMapServerImageryProvider.js +43 -43
- package/Source/Scene/AttributeType.js +11 -11
- package/Source/Scene/AutoExposure.js +11 -11
- package/Source/Scene/Axis.js +6 -6
- package/Source/Scene/B3dmParser.js +2 -2
- package/Source/Scene/BatchTable.js +18 -18
- package/Source/Scene/BatchTableHierarchy.js +22 -22
- package/Source/Scene/BatchTexture.js +14 -14
- package/Source/Scene/Billboard.js +17 -17
- package/Source/Scene/BillboardCollection.js +15 -15
- package/Source/Scene/BingMapsImageryProvider.js +41 -41
- package/Source/Scene/BingMapsStyle.js +11 -11
- package/Source/Scene/BlendEquation.js +6 -6
- package/Source/Scene/BlendFunction.js +16 -16
- package/Source/Scene/BlendOption.js +4 -4
- package/Source/Scene/BlendingState.js +4 -4
- package/Source/Scene/BufferLoader.js +5 -5
- package/Source/Scene/Camera.js +57 -57
- package/Source/Scene/CameraEventAggregator.js +26 -16
- package/Source/Scene/CameraEventType.js +6 -6
- package/Source/Scene/Cesium3DContentGroup.js +1 -1
- package/Source/Scene/Cesium3DTile.js +32 -26
- package/Source/Scene/Cesium3DTileBatchTable.js +29 -29
- package/Source/Scene/Cesium3DTileColorBlendMode.js +4 -4
- package/Source/Scene/Cesium3DTileContent.js +15 -15
- package/Source/Scene/Cesium3DTileContentType.js +17 -17
- package/Source/Scene/Cesium3DTileFeature.js +16 -16
- package/Source/Scene/Cesium3DTileOptimizationHint.js +1 -1
- package/Source/Scene/Cesium3DTileOptimizations.js +1 -1
- package/Source/Scene/Cesium3DTilePassState.js +1 -1
- package/Source/Scene/Cesium3DTilePointFeature.js +23 -23
- package/Source/Scene/Cesium3DTileRefine.js +3 -3
- package/Source/Scene/Cesium3DTileStyle.js +17 -17
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +14 -2
- package/Source/Scene/Cesium3DTileset.js +117 -112
- package/Source/Scene/Cesium3DTilesetHeatmap.js +4 -4
- package/Source/Scene/Cesium3DTilesetMetadata.js +5 -5
- package/Source/Scene/CircleEmitter.js +2 -2
- package/Source/Scene/ClassificationPrimitive.js +28 -33
- package/Source/Scene/ClassificationType.js +4 -4
- package/Source/Scene/ClippingPlane.js +2 -2
- package/Source/Scene/ClippingPlaneCollection.js +17 -17
- package/Source/Scene/CloudCollection.js +16 -16
- package/Source/Scene/CloudType.js +3 -3
- package/Source/Scene/ColorBlendMode.js +1 -1
- package/Source/Scene/ConditionsExpression.js +11 -11
- package/Source/Scene/ConeEmitter.js +2 -2
- package/Source/Scene/ContentMetadata.js +16 -16
- package/Source/Scene/CreditDisplay.js +2 -2
- package/Source/Scene/CullFace.js +4 -4
- package/Source/Scene/CumulusCloud.js +3 -3
- package/Source/Scene/DebugAppearance.js +24 -26
- package/Source/Scene/DebugCameraPrimitive.js +7 -7
- package/Source/Scene/DebugInspector.js +5 -5
- package/Source/Scene/DebugModelMatrixPrimitive.js +9 -9
- package/Source/Scene/DepthFunction.js +9 -9
- package/Source/Scene/DepthPlane.js +0 -6
- package/Source/Scene/DerivedCommand.js +8 -22
- package/Source/Scene/DeviceOrientationCameraController.js +1 -1
- package/Source/Scene/DirectionalLight.js +3 -3
- package/Source/Scene/DiscardEmptyTileImagePolicy.js +2 -2
- package/Source/Scene/DiscardMissingTileImagePolicy.js +5 -5
- package/Source/Scene/DracoLoader.js +4 -4
- package/Source/Scene/EllipsoidPrimitive.js +8 -15
- package/Source/Scene/EllipsoidSurfaceAppearance.js +19 -19
- package/Source/Scene/Expression.js +14 -14
- package/Source/Scene/Fog.js +5 -5
- package/Source/Scene/FrameRateMonitor.js +14 -14
- package/Source/Scene/FrameState.js +36 -36
- package/Source/Scene/FrustumCommands.js +2 -2
- package/Source/Scene/GetFeatureInfoFormat.js +2 -2
- package/Source/Scene/Globe.js +34 -34
- package/Source/Scene/GlobeSurfaceTile.js +1 -1
- package/Source/Scene/GlobeSurfaceTileProvider.js +6 -6
- package/Source/Scene/GlobeTranslucency.js +3 -3
- package/Source/Scene/GlobeTranslucencyState.js +6 -6
- package/Source/Scene/GltfBufferViewLoader.js +7 -7
- package/Source/Scene/GltfDracoLoader.js +8 -8
- package/Source/Scene/GltfImageLoader.js +7 -7
- package/Source/Scene/GltfIndexBufferLoader.js +11 -11
- package/Source/Scene/GltfJsonLoader.js +7 -7
- package/Source/Scene/GltfLoader.js +24 -24
- package/Source/Scene/GltfLoaderUtil.js +11 -11
- package/Source/Scene/GltfPipeline/addBuffer.js +2 -2
- package/Source/Scene/GltfPipeline/addDefaults.js +2 -2
- package/Source/Scene/GltfPipeline/addExtensionsRequired.js +2 -2
- package/Source/Scene/GltfPipeline/addExtensionsUsed.js +2 -2
- package/Source/Scene/GltfPipeline/addPipelineExtras.js +2 -2
- package/Source/Scene/GltfPipeline/addToArray.js +2 -2
- package/Source/Scene/GltfPipeline/findAccessorMinMax.js +2 -2
- package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +3 -3
- package/Source/Scene/GltfPipeline/getAccessorByteStride.js +3 -3
- package/Source/Scene/GltfPipeline/getComponentReader.js +5 -5
- package/Source/Scene/GltfPipeline/moveTechniqueRenderStates.js +2 -2
- package/Source/Scene/GltfPipeline/moveTechniquesToExtension.js +2 -2
- package/Source/Scene/GltfPipeline/numberOfComponentsForType.js +2 -2
- package/Source/Scene/GltfPipeline/parseGlb.js +1 -1
- package/Source/Scene/GltfPipeline/readAccessorPacked.js +2 -2
- package/Source/Scene/GltfPipeline/removeExtension.js +2 -2
- package/Source/Scene/GltfPipeline/removeExtensionsRequired.js +2 -2
- package/Source/Scene/GltfPipeline/removeExtensionsUsed.js +2 -2
- package/Source/Scene/GltfPipeline/removePipelineExtras.js +2 -2
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +2 -2
- package/Source/Scene/GltfPipeline/updateAccessorComponentTypes.js +2 -2
- package/Source/Scene/GltfPipeline/updateVersion.js +4 -4
- package/Source/Scene/GltfPipeline/usesExtension.js +3 -3
- package/Source/Scene/GltfStructuralMetadataLoader.js +9 -9
- package/Source/Scene/GltfTextureLoader.js +8 -8
- package/Source/Scene/GltfVertexBufferLoader.js +13 -13
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +33 -33
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +38 -38
- package/Source/Scene/GridImageryProvider.js +33 -33
- package/Source/Scene/GroundPolylinePrimitive.js +22 -24
- package/Source/Scene/GroundPrimitive.js +26 -26
- package/Source/Scene/GroupMetadata.js +17 -17
- package/Source/Scene/HeightReference.js +4 -4
- package/Source/Scene/HorizontalOrigin.js +4 -4
- package/Source/Scene/I3SDataProvider.js +13 -13
- package/Source/Scene/I3SFeature.js +1 -1
- package/Source/Scene/I3SField.js +5 -5
- package/Source/Scene/I3SGeometry.js +8 -8
- package/Source/Scene/I3SLayer.js +7 -7
- package/Source/Scene/I3SNode.js +6 -6
- package/Source/Scene/I3dmParser.js +2 -2
- package/Source/Scene/ImageBasedLighting.js +21 -17
- package/Source/Scene/ImageryLayer.js +39 -39
- package/Source/Scene/ImageryLayerCollection.js +11 -11
- package/Source/Scene/ImageryLayerFeatureInfo.js +6 -6
- package/Source/Scene/ImageryProvider.js +30 -30
- package/Source/Scene/Implicit3DTileContent.js +56 -56
- package/Source/Scene/ImplicitAvailabilityBitstream.js +10 -10
- package/Source/Scene/ImplicitMetadataView.js +16 -16
- package/Source/Scene/ImplicitSubdivisionScheme.js +4 -4
- package/Source/Scene/ImplicitSubtree.js +48 -48
- package/Source/Scene/ImplicitSubtreeCache.js +6 -6
- package/Source/Scene/ImplicitSubtreeMetadata.js +16 -16
- package/Source/Scene/ImplicitTileCoordinates.js +27 -27
- package/Source/Scene/ImplicitTileset.js +10 -10
- package/Source/Scene/InstanceAttributeSemantic.js +5 -5
- package/Source/Scene/InvertClassification.js +9 -10
- package/Source/Scene/IonImageryProvider.js +32 -32
- package/Source/Scene/IonWorldImageryStyle.js +4 -4
- package/Source/Scene/JsonMetadataTable.js +11 -11
- package/Source/Scene/KeyframeNode.js +1 -1
- package/Source/Scene/Label.js +14 -14
- package/Source/Scene/LabelCollection.js +12 -11
- package/Source/Scene/LabelStyle.js +4 -4
- package/Source/Scene/Light.js +1 -1
- package/Source/Scene/MapMode2D.js +3 -3
- package/Source/Scene/MapboxImageryProvider.js +37 -37
- package/Source/Scene/MapboxStyleImageryProvider.js +39 -39
- package/Source/Scene/Material.js +53 -53
- package/Source/Scene/MaterialAppearance.js +21 -21
- package/Source/Scene/Megatexture.js +17 -17
- package/Source/Scene/MetadataClass.js +16 -16
- package/Source/Scene/MetadataClassProperty.js +41 -41
- package/Source/Scene/MetadataComponentType.js +21 -21
- package/Source/Scene/MetadataEntity.js +31 -31
- package/Source/Scene/MetadataEnum.js +14 -14
- package/Source/Scene/MetadataEnumValue.js +10 -10
- package/Source/Scene/MetadataSchema.js +16 -16
- package/Source/Scene/MetadataSchemaLoader.js +6 -6
- package/Source/Scene/MetadataSemantic.js +24 -16
- package/Source/Scene/MetadataTable.js +24 -24
- package/Source/Scene/MetadataTableProperty.js +9 -9
- package/Source/Scene/MetadataType.js +15 -15
- package/Source/Scene/Model/B3dmLoader.js +13 -13
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +3 -3
- package/Source/Scene/Model/CustomShader.js +19 -19
- package/Source/Scene/Model/CustomShaderMode.js +4 -4
- package/Source/Scene/Model/CustomShaderTranslucencyMode.js +4 -4
- package/Source/Scene/Model/FeatureIdPipelineStage.js +4 -4
- package/Source/Scene/Model/GeoJsonLoader.js +5 -5
- package/Source/Scene/Model/I3dmLoader.js +11 -11
- package/Source/Scene/Model/LightingModel.js +4 -4
- package/Source/Scene/Model/MaterialPipelineStage.js +6 -6
- package/Source/Scene/Model/MetadataPipelineStage.js +26 -27
- package/Source/Scene/Model/Model.js +85 -85
- package/Source/Scene/Model/ModelAlphaOptions.js +1 -1
- package/Source/Scene/Model/ModelAnimation.js +11 -11
- package/Source/Scene/Model/ModelAnimationChannel.js +2 -2
- package/Source/Scene/Model/ModelAnimationCollection.js +18 -18
- package/Source/Scene/Model/ModelArticulation.js +4 -4
- package/Source/Scene/Model/ModelArticulationStage.js +5 -5
- package/Source/Scene/Model/ModelDrawCommand.js +3 -3
- package/Source/Scene/Model/ModelFeature.js +12 -12
- package/Source/Scene/Model/ModelFeatureTable.js +5 -5
- package/Source/Scene/Model/ModelLightingOptions.js +1 -1
- package/Source/Scene/Model/ModelNode.js +3 -3
- package/Source/Scene/Model/ModelRenderResources.js +4 -4
- package/Source/Scene/Model/ModelRuntimeNode.js +7 -7
- package/Source/Scene/Model/ModelRuntimePrimitive.js +3 -3
- package/Source/Scene/Model/ModelSceneGraph.js +11 -11
- package/Source/Scene/Model/ModelSilhouettePipelineStage.js +1 -1
- package/Source/Scene/Model/ModelSkin.js +1 -1
- package/Source/Scene/Model/ModelStatistics.js +7 -7
- package/Source/Scene/Model/ModelType.js +8 -8
- package/Source/Scene/Model/ModelUtility.js +10 -10
- package/Source/Scene/Model/NodeRenderResources.js +7 -7
- package/Source/Scene/Model/PickingPipelineStage.js +1 -1
- package/Source/Scene/Model/PntsLoader.js +6 -6
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +1 -1
- package/Source/Scene/Model/PrimitiveOutlineGenerator.js +28 -28
- package/Source/Scene/Model/PrimitiveRenderResources.js +10 -10
- package/Source/Scene/Model/StyleCommandsNeeded.js +1 -1
- package/Source/Scene/Model/TextureManager.js +3 -3
- package/Source/Scene/Model/TextureUniform.js +6 -6
- package/Source/Scene/Model/UniformType.js +17 -17
- package/Source/Scene/Model/VaryingType.js +8 -8
- package/Source/Scene/ModelAnimationLoop.js +4 -4
- package/Source/Scene/ModelComponents.js +61 -61
- package/Source/Scene/Moon.js +8 -8
- package/Source/Scene/Multiple3DTileContent.js +14 -14
- package/Source/Scene/NeverTileDiscardPolicy.js +2 -2
- package/Source/Scene/OIT.js +211 -119
- package/Source/Scene/OctahedralProjectedCubeMap.js +28 -39
- package/Source/Scene/OpenStreetMapImageryProvider.js +6 -6
- package/Source/Scene/OrderedGroundPrimitiveCollection.js +9 -9
- package/Source/Scene/Particle.js +13 -13
- package/Source/Scene/ParticleBurst.js +8 -8
- package/Source/Scene/ParticleSystem.js +41 -36
- package/Source/Scene/PerInstanceColorAppearance.js +18 -18
- package/Source/Scene/PerformanceDisplay.js +2 -2
- package/Source/Scene/PickDepth.js +2 -2
- package/Source/Scene/PntsParser.js +1 -1
- package/Source/Scene/PointCloud.js +11 -11
- package/Source/Scene/PointCloudEyeDomeLighting.js +10 -5
- package/Source/Scene/PointCloudShading.js +20 -20
- package/Source/Scene/PointPrimitive.js +6 -6
- package/Source/Scene/PointPrimitiveCollection.js +11 -11
- package/Source/Scene/Polyline.js +9 -9
- package/Source/Scene/PolylineCollection.js +13 -18
- package/Source/Scene/PolylineColorAppearance.js +13 -13
- package/Source/Scene/PolylineMaterialAppearance.js +15 -16
- package/Source/Scene/PostProcessStage.js +28 -28
- package/Source/Scene/PostProcessStageCollection.js +10 -10
- package/Source/Scene/PostProcessStageComposite.js +13 -13
- package/Source/Scene/PostProcessStageLibrary.js +11 -11
- package/Source/Scene/PostProcessStageSampleMode.js +3 -3
- package/Source/Scene/PostProcessStageTextureCache.js +4 -4
- package/Source/Scene/Primitive.js +52 -61
- package/Source/Scene/PrimitiveCollection.js +20 -20
- package/Source/Scene/PrimitiveLoadPlan.js +6 -6
- package/Source/Scene/PropertyAttribute.js +9 -9
- package/Source/Scene/PropertyAttributeProperty.js +6 -6
- package/Source/Scene/PropertyTable.js +34 -34
- package/Source/Scene/PropertyTexture.js +9 -9
- package/Source/Scene/PropertyTextureProperty.js +8 -8
- package/Source/Scene/QuadtreePrimitive.js +9 -9
- package/Source/Scene/QuadtreeTile.js +11 -11
- package/Source/Scene/QuadtreeTileLoadState.js +1 -1
- package/Source/Scene/QuadtreeTileProvider.js +6 -6
- package/Source/Scene/ResourceCache.js +39 -39
- package/Source/Scene/ResourceCacheKey.js +42 -42
- package/Source/Scene/ResourceCacheStatistics.js +2 -2
- package/Source/Scene/ResourceLoader.js +5 -5
- package/Source/Scene/ResourceLoaderState.js +5 -5
- package/Source/Scene/SDFSettings.js +4 -4
- package/Source/Scene/Scene.js +88 -88
- package/Source/Scene/SceneMode.js +6 -6
- package/Source/Scene/SceneTransitioner.js +1 -1
- package/Source/Scene/ScreenSpaceCameraController.js +40 -22
- package/Source/Scene/ShadowMap.js +29 -29
- package/Source/Scene/ShadowMapShader.js +9 -9
- package/Source/Scene/ShadowMode.js +5 -5
- package/Source/Scene/ShadowVolumeAppearance.js +18 -18
- package/Source/Scene/SingleTileImageryProvider.js +31 -31
- package/Source/Scene/SkyAtmosphere.js +10 -10
- package/Source/Scene/SkyBox.js +6 -6
- package/Source/Scene/SpatialNode.js +103 -87
- package/Source/Scene/SphereEmitter.js +2 -2
- package/Source/Scene/SplitDirection.js +4 -4
- package/Source/Scene/Splitter.js +2 -2
- package/Source/Scene/StencilFunction.js +9 -9
- package/Source/Scene/StencilOperation.js +9 -9
- package/Source/Scene/StructuralMetadata.js +11 -11
- package/Source/Scene/StyleExpression.js +8 -8
- package/Source/Scene/Sun.js +3 -3
- package/Source/Scene/SunLight.js +3 -3
- package/Source/Scene/SupportedImageFormats.js +3 -3
- package/Source/Scene/TextureAtlas.js +21 -19
- package/Source/Scene/TileBoundingRegion.js +6 -6
- package/Source/Scene/TileBoundingS2Cell.js +6 -6
- package/Source/Scene/TileBoundingSphere.js +5 -5
- package/Source/Scene/TileBoundingVolume.js +2 -2
- package/Source/Scene/TileCoordinatesImageryProvider.js +30 -30
- package/Source/Scene/TileDiscardPolicy.js +2 -2
- package/Source/Scene/TileImagery.js +3 -3
- package/Source/Scene/TileMapServiceImageryProvider.js +9 -9
- package/Source/Scene/TileMetadata.js +16 -16
- package/Source/Scene/TileOrientedBoundingBox.js +2 -2
- package/Source/Scene/TileReplacementQueue.js +1 -1
- package/Source/Scene/TileSelectionResult.js +1 -1
- package/Source/Scene/TilesetMetadata.js +15 -15
- package/Source/Scene/TimeDynamicImagery.js +8 -8
- package/Source/Scene/TimeDynamicPointCloud.js +9 -9
- package/Source/Scene/Tonemapper.js +5 -5
- package/Source/Scene/TranslucentTileClassification.js +1 -1
- package/Source/Scene/TweenCollection.js +31 -31
- package/Source/Scene/UrlTemplateImageryProvider.js +47 -47
- package/Source/Scene/Vector3DTileBatch.js +7 -7
- package/Source/Scene/Vector3DTileClampedPolylines.js +9 -9
- package/Source/Scene/Vector3DTileGeometry.js +8 -8
- package/Source/Scene/Vector3DTilePoints.js +7 -7
- package/Source/Scene/Vector3DTilePolygons.js +10 -10
- package/Source/Scene/Vector3DTilePolylines.js +10 -10
- package/Source/Scene/Vector3DTilePrimitive.js +10 -10
- package/Source/Scene/VertexAttributeSemantic.js +15 -15
- package/Source/Scene/VerticalOrigin.js +5 -5
- package/Source/Scene/ViewportQuad.js +2 -2
- package/Source/Scene/VoxelBoxShape.js +27 -118
- package/Source/Scene/VoxelContent.js +3 -3
- package/Source/Scene/VoxelCylinderShape.js +21 -21
- package/Source/Scene/VoxelEllipsoidShape.js +28 -20
- package/Source/Scene/VoxelPrimitive.js +48 -48
- package/Source/Scene/VoxelProvider.js +13 -13
- package/Source/Scene/VoxelRenderResources.js +6 -3
- package/Source/Scene/VoxelShape.js +9 -9
- package/Source/Scene/VoxelShapeType.js +4 -4
- package/Source/Scene/VoxelTraversal.js +86 -144
- package/Source/Scene/WebMapServiceImageryProvider.js +49 -49
- package/Source/Scene/WebMapTileServiceImageryProvider.js +43 -43
- package/Source/Scene/buildVoxelDrawCommands.js +1 -0
- package/Source/Scene/computeFlyToLocationForRectangle.js +10 -1
- package/Source/Scene/createBillboardPointCallback.js +5 -5
- package/Source/Scene/createElevationBandMaterial.js +15 -20
- package/Source/Scene/createOsmBuildings.js +3 -3
- package/Source/Scene/createTangentSpaceDebugPrimitive.js +2 -2
- package/Source/Scene/createWorldImagery.js +1 -1
- package/Source/Scene/findContentMetadata.js +1 -1
- package/Source/Scene/findGroupMetadata.js +1 -1
- package/Source/Scene/findTileMetadata.js +1 -1
- package/Source/Scene/getClipAndStyleCode.js +5 -5
- package/Source/Scene/getClippingFunction.js +4 -4
- package/Source/Scene/hasExtension.js +3 -3
- package/Source/Scene/parseBatchTable.js +14 -14
- package/Source/Scene/parseBoundingVolumeSemantics.js +7 -7
- package/Source/Scene/parseFeatureMetadataLegacy.js +4 -4
- package/Source/Scene/parseStructuralMetadata.js +4 -4
- package/Source/Scene/preprocess3DTileContent.js +2 -2
- package/Source/Scene/processVoxelProperties.js +9 -8
- 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 +23 -23
- package/Source/Shaders/BillboardCollectionVS.js +23 -23
- package/Source/Shaders/BrdfLutGeneratorFS.glsl +2 -2
- package/Source/Shaders/BrdfLutGeneratorFS.js +2 -2
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
- 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/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 +15 -15
- package/Source/Shaders/GlobeFS.js +15 -15
- 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 +12 -12
- package/Source/Shaders/PointPrimitiveCollectionVS.js +12 -12
- 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 +52 -58
- package/Source/Shaders/Voxels/IntersectBox.js +52 -58
- package/Source/Shaders/Voxels/IntersectClippingPlanes.glsl +38 -30
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +38 -30
- package/Source/Shaders/Voxels/IntersectDepth.glsl +2 -2
- package/Source/Shaders/Voxels/IntersectDepth.js +2 -2
- package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +12 -2
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -2
- package/Source/Shaders/Voxels/Intersection.glsl +10 -12
- package/Source/Shaders/Voxels/Intersection.js +10 -12
- package/Source/Shaders/Voxels/IntersectionUtils.glsl +52 -59
- package/Source/Shaders/Voxels/IntersectionUtils.js +52 -59
- package/Source/Shaders/Voxels/Megatexture.glsl +1 -1
- package/Source/Shaders/Voxels/Megatexture.js +1 -1
- package/Source/Shaders/Voxels/Octree.glsl +75 -76
- package/Source/Shaders/Voxels/Octree.js +75 -76
- package/Source/Shaders/Voxels/VoxelFS.glsl +44 -24
- package/Source/Shaders/Voxels/VoxelFS.js +44 -24
- package/Source/Shaders/Voxels/VoxelVS.glsl +1 -1
- package/Source/Shaders/Voxels/VoxelVS.js +1 -1
- package/Source/Shaders/Voxels/convertUvToBox.glsl +13 -5
- package/Source/Shaders/Voxels/convertUvToBox.js +13 -5
- package/Source/Shaders/Voxels/convertUvToCylinder.glsl +5 -9
- package/Source/Shaders/Voxels/convertUvToCylinder.js +5 -9
- package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +3 -6
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +3 -6
- package/Source/ThirdParty/Workers/draco_decoder_nodejs.js +91 -91
- package/Source/ThirdParty/draco_decoder.wasm +0 -0
- package/Source/Widget/CesiumWidget.js +23 -23
- package/Source/Workers/cesiumWorkerBootstrapper.js +18 -18
- package/Source/WorkersES6/createTaskProcessorWorker.js +3 -3
- package/Source/WorkersES6/decodeDraco.js +9 -1
- package/index.d.ts +37 -46
- package/index.js +103 -104
- package/package.json +1 -1
- package/Source/Core/cancelAnimationFrame.js +0 -53
- package/Source/Core/requestAnimationFrame.js +0 -83
- package/Source/Renderer/modernizeShader.js +0 -242
- /package/Build/Workers/{GeometryOffsetAttribute-04332ce7.js → GeometryOffsetAttribute-9ad0019c.js} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
define(['require', 'exports', './Matrix3-
|
|
1
|
+
define(['require', 'exports', './Matrix3-fa806b97', './Check-6ede7e26', './defaultValue-fe22d8c0', './Math-dad82b4d', './Matrix2-1e403d0e', './combine-d9581036', './RuntimeError-ef395448'], (function (require, exports, Matrix3, Check, defaultValue, Math$1, Matrix2, combine, RuntimeError) { 'use strict';
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
if (e && e.__esModule) return e;
|
|
3
|
+
function _interopNamespaceDefault(e) {
|
|
5
4
|
var n = Object.create(null);
|
|
6
5
|
if (e) {
|
|
7
6
|
Object.keys(e).forEach(function (k) {
|
|
@@ -14,7 +13,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
14
13
|
}
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
|
-
n
|
|
16
|
+
n.default = e;
|
|
18
17
|
return Object.freeze(n);
|
|
19
18
|
}
|
|
20
19
|
|
|
@@ -124,13 +123,13 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
124
123
|
* partially inside the frustum and partially outside (INTERSECTING), or somewhere entirely
|
|
125
124
|
* outside of the frustum's 6 planes (OUTSIDE).
|
|
126
125
|
*
|
|
127
|
-
* @enum {
|
|
126
|
+
* @enum {number}
|
|
128
127
|
*/
|
|
129
128
|
const Intersect = {
|
|
130
129
|
/**
|
|
131
130
|
* Represents that an object is not contained within the frustum.
|
|
132
131
|
*
|
|
133
|
-
* @type {
|
|
132
|
+
* @type {number}
|
|
134
133
|
* @constant
|
|
135
134
|
*/
|
|
136
135
|
OUTSIDE: -1,
|
|
@@ -138,7 +137,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
138
137
|
/**
|
|
139
138
|
* Represents that an object intersects one of the frustum's planes.
|
|
140
139
|
*
|
|
141
|
-
* @type {
|
|
140
|
+
* @type {number}
|
|
142
141
|
* @constant
|
|
143
142
|
*/
|
|
144
143
|
INTERSECTING: 0,
|
|
@@ -146,7 +145,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
146
145
|
/**
|
|
147
146
|
* Represents that an object is fully within the frustum.
|
|
148
147
|
*
|
|
149
|
-
* @type {
|
|
148
|
+
* @type {number}
|
|
150
149
|
* @constant
|
|
151
150
|
*/
|
|
152
151
|
INSIDE: 1,
|
|
@@ -158,19 +157,19 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
158
157
|
* @alias Interval
|
|
159
158
|
* @constructor
|
|
160
159
|
*
|
|
161
|
-
* @param {
|
|
162
|
-
* @param {
|
|
160
|
+
* @param {number} [start=0.0] The beginning of the interval.
|
|
161
|
+
* @param {number} [stop=0.0] The end of the interval.
|
|
163
162
|
*/
|
|
164
163
|
function Interval(start, stop) {
|
|
165
164
|
/**
|
|
166
165
|
* The beginning of the interval.
|
|
167
|
-
* @type {
|
|
166
|
+
* @type {number}
|
|
168
167
|
* @default 0.0
|
|
169
168
|
*/
|
|
170
169
|
this.start = defaultValue.defaultValue(start, 0.0);
|
|
171
170
|
/**
|
|
172
171
|
* The end of the interval.
|
|
173
|
-
* @type {
|
|
172
|
+
* @type {number}
|
|
174
173
|
* @default 0.0
|
|
175
174
|
*/
|
|
176
175
|
this.stop = defaultValue.defaultValue(stop, 0.0);
|
|
@@ -182,7 +181,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
182
181
|
* @constructor
|
|
183
182
|
*
|
|
184
183
|
* @param {Cartesian3} [center=Cartesian3.ZERO] The center of the bounding sphere.
|
|
185
|
-
* @param {
|
|
184
|
+
* @param {number} [radius=0.0] The radius of the bounding sphere.
|
|
186
185
|
*
|
|
187
186
|
* @see AxisAlignedBoundingBox
|
|
188
187
|
* @see BoundingRectangle
|
|
@@ -198,7 +197,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
198
197
|
|
|
199
198
|
/**
|
|
200
199
|
* The radius of the sphere.
|
|
201
|
-
* @type {
|
|
200
|
+
* @type {number}
|
|
202
201
|
* @default 0.0
|
|
203
202
|
*/
|
|
204
203
|
this.radius = defaultValue.defaultValue(radius, 0.0);
|
|
@@ -397,7 +396,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
397
396
|
* Computes a bounding sphere from a rectangle projected in 2D.
|
|
398
397
|
*
|
|
399
398
|
* @param {Rectangle} [rectangle] The rectangle around which to create a bounding sphere.
|
|
400
|
-
* @param {
|
|
399
|
+
* @param {object} [projection=GeographicProjection] The projection used to project the rectangle into 2D.
|
|
401
400
|
* @param {BoundingSphere} [result] The object onto which to store the result.
|
|
402
401
|
* @returns {BoundingSphere} The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
403
402
|
*/
|
|
@@ -416,9 +415,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
416
415
|
* object's minimum and maximum heights over the rectangle.
|
|
417
416
|
*
|
|
418
417
|
* @param {Rectangle} [rectangle] The rectangle around which to create a bounding sphere.
|
|
419
|
-
* @param {
|
|
420
|
-
* @param {
|
|
421
|
-
* @param {
|
|
418
|
+
* @param {object} [projection=GeographicProjection] The projection used to project the rectangle into 2D.
|
|
419
|
+
* @param {number} [minimumHeight=0.0] The minimum height over the rectangle.
|
|
420
|
+
* @param {number} [maximumHeight=0.0] The maximum height over the rectangle.
|
|
422
421
|
* @param {BoundingSphere} [result] The object onto which to store the result.
|
|
423
422
|
* @returns {BoundingSphere} The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
424
423
|
*/
|
|
@@ -476,7 +475,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
476
475
|
*
|
|
477
476
|
* @param {Rectangle} [rectangle] The valid rectangle used to create a bounding sphere.
|
|
478
477
|
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid used to determine positions of the rectangle.
|
|
479
|
-
* @param {
|
|
478
|
+
* @param {number} [surfaceHeight=0.0] The height above the surface of the ellipsoid.
|
|
480
479
|
* @param {BoundingSphere} [result] The object onto which to store the result.
|
|
481
480
|
* @returns {BoundingSphere} The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
482
481
|
*/
|
|
@@ -514,12 +513,12 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
514
513
|
* algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to
|
|
515
514
|
* ensure a tight fit.
|
|
516
515
|
*
|
|
517
|
-
* @param {
|
|
516
|
+
* @param {number[]} [positions] An array of points that the bounding sphere will enclose. Each point
|
|
518
517
|
* is formed from three elements in the array in the order X, Y, Z.
|
|
519
518
|
* @param {Cartesian3} [center=Cartesian3.ZERO] The position to which the positions are relative, which need not be the
|
|
520
519
|
* origin of the coordinate system. This is useful when the positions are to be used for
|
|
521
520
|
* relative-to-center (RTC) rendering.
|
|
522
|
-
* @param {
|
|
521
|
+
* @param {number} [stride=3] The number of array elements per vertex. It must be at least 3, but it may
|
|
523
522
|
* be higher. Regardless of the value of this parameter, the X coordinate of the first position
|
|
524
523
|
* is at array index 0, the Y coordinate is at array index 1, and the Z coordinate is at array index
|
|
525
524
|
* 2. When stride is 3, the X coordinate of the next position then begins at array index 3. If
|
|
@@ -719,9 +718,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
719
718
|
* algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to
|
|
720
719
|
* ensure a tight fit.
|
|
721
720
|
*
|
|
722
|
-
* @param {
|
|
721
|
+
* @param {number[]} [positionsHigh] An array of high bits of the encoded cartesians that the bounding sphere will enclose. Each point
|
|
723
722
|
* is formed from three elements in the array in the order X, Y, Z.
|
|
724
|
-
* @param {
|
|
723
|
+
* @param {number[]} [positionsLow] An array of low bits of the encoded cartesians that the bounding sphere will enclose. Each point
|
|
725
724
|
* is formed from three elements in the array in the order X, Y, Z.
|
|
726
725
|
* @param {BoundingSphere} [result] The object onto which to store the result.
|
|
727
726
|
* @returns {BoundingSphere} The modified result parameter or a new BoundingSphere instance if one was not provided.
|
|
@@ -1100,7 +1099,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1100
1099
|
|
|
1101
1100
|
/**
|
|
1102
1101
|
* The number of elements used to pack the object into an array.
|
|
1103
|
-
* @type {
|
|
1102
|
+
* @type {number}
|
|
1104
1103
|
*/
|
|
1105
1104
|
BoundingSphere.packedLength = 4;
|
|
1106
1105
|
|
|
@@ -1108,10 +1107,10 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1108
1107
|
* Stores the provided instance into the provided array.
|
|
1109
1108
|
*
|
|
1110
1109
|
* @param {BoundingSphere} value The value to pack.
|
|
1111
|
-
* @param {
|
|
1112
|
-
* @param {
|
|
1110
|
+
* @param {number[]} array The array to pack into.
|
|
1111
|
+
* @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
|
|
1113
1112
|
*
|
|
1114
|
-
* @returns {
|
|
1113
|
+
* @returns {number[]} The array that was packed into
|
|
1115
1114
|
*/
|
|
1116
1115
|
BoundingSphere.pack = function (value, array, startingIndex) {
|
|
1117
1116
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -1133,8 +1132,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1133
1132
|
/**
|
|
1134
1133
|
* Retrieves an instance from a packed array.
|
|
1135
1134
|
*
|
|
1136
|
-
* @param {
|
|
1137
|
-
* @param {
|
|
1135
|
+
* @param {number[]} array The packed array.
|
|
1136
|
+
* @param {number} [startingIndex=0] The starting index of the element to be unpacked.
|
|
1138
1137
|
* @param {BoundingSphere} [result] The object into which to store the result.
|
|
1139
1138
|
* @returns {BoundingSphere} The modified result parameter or a new BoundingSphere instance if one was not provided.
|
|
1140
1139
|
*/
|
|
@@ -1311,7 +1310,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1311
1310
|
*
|
|
1312
1311
|
* @param {BoundingSphere} sphere The sphere.
|
|
1313
1312
|
* @param {Cartesian3} cartesian The point
|
|
1314
|
-
* @returns {
|
|
1313
|
+
* @returns {number} The distance squared from the bounding sphere to the point. Returns 0 if the point is inside the sphere.
|
|
1315
1314
|
*
|
|
1316
1315
|
* @example
|
|
1317
1316
|
* // Sort bounding spheres from back to front
|
|
@@ -1432,7 +1431,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1432
1431
|
* Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates.
|
|
1433
1432
|
*
|
|
1434
1433
|
* @param {BoundingSphere} sphere The bounding sphere to transform to 2D.
|
|
1435
|
-
* @param {
|
|
1434
|
+
* @param {object} [projection=GeographicProjection] The projection to 2D.
|
|
1436
1435
|
* @param {BoundingSphere} [result] The object onto which to store the result.
|
|
1437
1436
|
* @returns {BoundingSphere} The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1438
1437
|
*/
|
|
@@ -1545,7 +1544,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1545
1544
|
*
|
|
1546
1545
|
* @param {BoundingSphere} sphere The bounding sphere surrounding the occludee object.
|
|
1547
1546
|
* @param {Occluder} occluder The occluder.
|
|
1548
|
-
* @returns {
|
|
1547
|
+
* @returns {boolean} <code>true</code> if the sphere is not visible; otherwise <code>false</code>.
|
|
1549
1548
|
*/
|
|
1550
1549
|
BoundingSphere.isOccluded = function (sphere, occluder) {
|
|
1551
1550
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -1561,7 +1560,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1561
1560
|
*
|
|
1562
1561
|
* @param {BoundingSphere} [left] The first BoundingSphere.
|
|
1563
1562
|
* @param {BoundingSphere} [right] The second BoundingSphere.
|
|
1564
|
-
* @returns {
|
|
1563
|
+
* @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
1565
1564
|
*/
|
|
1566
1565
|
BoundingSphere.equals = function (left, right) {
|
|
1567
1566
|
return (
|
|
@@ -1590,7 +1589,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1590
1589
|
* Computes the estimated distance squared from the closest point on a bounding sphere to a point.
|
|
1591
1590
|
*
|
|
1592
1591
|
* @param {Cartesian3} cartesian The point
|
|
1593
|
-
* @returns {
|
|
1592
|
+
* @returns {number} The estimated distance squared from the bounding sphere to the point.
|
|
1594
1593
|
*
|
|
1595
1594
|
* @example
|
|
1596
1595
|
* // Sort bounding spheres from back to front
|
|
@@ -1631,7 +1630,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1631
1630
|
* Determines whether or not a sphere is hidden from view by the occluder.
|
|
1632
1631
|
*
|
|
1633
1632
|
* @param {Occluder} occluder The occluder.
|
|
1634
|
-
* @returns {
|
|
1633
|
+
* @returns {boolean} <code>true</code> if the sphere is not visible; otherwise <code>false</code>.
|
|
1635
1634
|
*/
|
|
1636
1635
|
BoundingSphere.prototype.isOccluded = function (occluder) {
|
|
1637
1636
|
return BoundingSphere.isOccluded(this, occluder);
|
|
@@ -1642,7 +1641,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1642
1641
|
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
1643
1642
|
*
|
|
1644
1643
|
* @param {BoundingSphere} [right] The right hand side BoundingSphere.
|
|
1645
|
-
* @returns {
|
|
1644
|
+
* @returns {boolean} <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
1646
1645
|
*/
|
|
1647
1646
|
BoundingSphere.prototype.equals = function (right) {
|
|
1648
1647
|
return BoundingSphere.equals(this, right);
|
|
@@ -1660,7 +1659,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1660
1659
|
|
|
1661
1660
|
/**
|
|
1662
1661
|
* Computes the radius of the BoundingSphere.
|
|
1663
|
-
* @returns {
|
|
1662
|
+
* @returns {number} The radius of the BoundingSphere.
|
|
1664
1663
|
*/
|
|
1665
1664
|
BoundingSphere.prototype.volume = function () {
|
|
1666
1665
|
const radius = this.radius;
|
|
@@ -1691,7 +1690,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1691
1690
|
* The element that is currently fullscreen, if any. To simply check if the
|
|
1692
1691
|
* browser is in fullscreen mode or not, use {@link Fullscreen#fullscreen}.
|
|
1693
1692
|
* @memberof Fullscreen
|
|
1694
|
-
* @type {
|
|
1693
|
+
* @type {object}
|
|
1695
1694
|
* @readonly
|
|
1696
1695
|
*/
|
|
1697
1696
|
element: {
|
|
@@ -1710,7 +1709,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1710
1709
|
* In your event handler, to determine if the browser is in fullscreen mode or not,
|
|
1711
1710
|
* use {@link Fullscreen#fullscreen}.
|
|
1712
1711
|
* @memberof Fullscreen
|
|
1713
|
-
* @type {
|
|
1712
|
+
* @type {string}
|
|
1714
1713
|
* @readonly
|
|
1715
1714
|
*/
|
|
1716
1715
|
changeEventName: {
|
|
@@ -1727,7 +1726,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1727
1726
|
* The name of the event that is fired when a fullscreen error
|
|
1728
1727
|
* occurs. This event name is intended for use with addEventListener.
|
|
1729
1728
|
* @memberof Fullscreen
|
|
1730
|
-
* @type {
|
|
1729
|
+
* @type {string}
|
|
1731
1730
|
* @readonly
|
|
1732
1731
|
*/
|
|
1733
1732
|
errorEventName: {
|
|
@@ -1745,7 +1744,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1745
1744
|
* For example, by default, iframes cannot go fullscreen unless the containing page
|
|
1746
1745
|
* adds an "allowfullscreen" attribute (or prefixed equivalent).
|
|
1747
1746
|
* @memberof Fullscreen
|
|
1748
|
-
* @type {
|
|
1747
|
+
* @type {boolean}
|
|
1749
1748
|
* @readonly
|
|
1750
1749
|
*/
|
|
1751
1750
|
enabled: {
|
|
@@ -1761,7 +1760,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1761
1760
|
/**
|
|
1762
1761
|
* Determines if the browser is currently in fullscreen mode.
|
|
1763
1762
|
* @memberof Fullscreen
|
|
1764
|
-
* @type {
|
|
1763
|
+
* @type {boolean}
|
|
1765
1764
|
* @readonly
|
|
1766
1765
|
*/
|
|
1767
1766
|
fullscreen: {
|
|
@@ -1778,7 +1777,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1778
1777
|
/**
|
|
1779
1778
|
* Detects whether the browser supports the standard fullscreen API.
|
|
1780
1779
|
*
|
|
1781
|
-
* @returns {
|
|
1780
|
+
* @returns {boolean} <code>true</code> if the browser supports the standard fullscreen API,
|
|
1782
1781
|
* <code>false</code> otherwise.
|
|
1783
1782
|
*/
|
|
1784
1783
|
Fullscreen.supportsFullscreen = function () {
|
|
@@ -1881,8 +1880,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
1881
1880
|
* Asynchronously requests the browser to enter fullscreen mode on the given element.
|
|
1882
1881
|
* If fullscreen mode is not supported by the browser, does nothing.
|
|
1883
1882
|
*
|
|
1884
|
-
* @param {
|
|
1885
|
-
* @param {
|
|
1883
|
+
* @param {object} element The HTML element which will be placed into fullscreen mode.
|
|
1884
|
+
* @param {object} [vrDevice] The HMDVRDevice device.
|
|
1886
1885
|
*
|
|
1887
1886
|
* @example
|
|
1888
1887
|
* // Put the entire page into fullscreen.
|
|
@@ -2237,7 +2236,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2237
2236
|
* Detects whether the current browser supports Basis Universal textures and the web assembly modules needed to transcode them.
|
|
2238
2237
|
*
|
|
2239
2238
|
* @param {Scene} scene
|
|
2240
|
-
* @returns {
|
|
2239
|
+
* @returns {boolean} true if the browser supports web assembly modules and the scene supports Basis Universal textures, false if not.
|
|
2241
2240
|
*/
|
|
2242
2241
|
FeatureDetection.supportsBasis = function (scene) {
|
|
2243
2242
|
return FeatureDetection.supportsWebAssembly() && scene.context.supportsBasis;
|
|
@@ -2246,7 +2245,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2246
2245
|
/**
|
|
2247
2246
|
* Detects whether the current browser supports the full screen standard.
|
|
2248
2247
|
*
|
|
2249
|
-
* @returns {
|
|
2248
|
+
* @returns {boolean} true if the browser supports the full screen standard, false if not.
|
|
2250
2249
|
*
|
|
2251
2250
|
* @see Fullscreen
|
|
2252
2251
|
* @see {@link http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html|W3C Fullscreen Living Specification}
|
|
@@ -2258,7 +2257,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2258
2257
|
/**
|
|
2259
2258
|
* Detects whether the current browser supports typed arrays.
|
|
2260
2259
|
*
|
|
2261
|
-
* @returns {
|
|
2260
|
+
* @returns {boolean} true if the browser supports typed arrays, false if not.
|
|
2262
2261
|
*
|
|
2263
2262
|
* @see {@link https://tc39.es/ecma262/#sec-typedarray-objects|Typed Array Specification}
|
|
2264
2263
|
*/
|
|
@@ -2269,7 +2268,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2269
2268
|
/**
|
|
2270
2269
|
* Detects whether the current browser supports BigInt64Array typed arrays.
|
|
2271
2270
|
*
|
|
2272
|
-
* @returns {
|
|
2271
|
+
* @returns {boolean} true if the browser supports BigInt64Array typed arrays, false if not.
|
|
2273
2272
|
*
|
|
2274
2273
|
* @see {@link https://tc39.es/ecma262/#sec-typedarray-objects|Typed Array Specification}
|
|
2275
2274
|
*/
|
|
@@ -2280,7 +2279,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2280
2279
|
/**
|
|
2281
2280
|
* Detects whether the current browser supports BigUint64Array typed arrays.
|
|
2282
2281
|
*
|
|
2283
|
-
* @returns {
|
|
2282
|
+
* @returns {boolean} true if the browser supports BigUint64Array typed arrays, false if not.
|
|
2284
2283
|
*
|
|
2285
2284
|
* @see {@link https://tc39.es/ecma262/#sec-typedarray-objects|Typed Array Specification}
|
|
2286
2285
|
*/
|
|
@@ -2291,7 +2290,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2291
2290
|
/**
|
|
2292
2291
|
* Detects whether the current browser supports BigInt.
|
|
2293
2292
|
*
|
|
2294
|
-
* @returns {
|
|
2293
|
+
* @returns {boolean} true if the browser supports BigInt, false if not.
|
|
2295
2294
|
*
|
|
2296
2295
|
* @see {@link https://tc39.es/ecma262/#sec-bigint-objects|BigInt Specification}
|
|
2297
2296
|
*/
|
|
@@ -2302,7 +2301,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2302
2301
|
/**
|
|
2303
2302
|
* Detects whether the current browser supports Web Workers.
|
|
2304
2303
|
*
|
|
2305
|
-
* @returns {
|
|
2304
|
+
* @returns {boolean} true if the browsers supports Web Workers, false if not.
|
|
2306
2305
|
*
|
|
2307
2306
|
* @see {@link http://www.w3.org/TR/workers/}
|
|
2308
2307
|
*/
|
|
@@ -2313,13 +2312,30 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2313
2312
|
/**
|
|
2314
2313
|
* Detects whether the current browser supports Web Assembly.
|
|
2315
2314
|
*
|
|
2316
|
-
* @returns {
|
|
2315
|
+
* @returns {boolean} true if the browsers supports Web Assembly, false if not.
|
|
2317
2316
|
*
|
|
2318
2317
|
* @see {@link https://developer.mozilla.org/en-US/docs/WebAssembly}
|
|
2319
2318
|
*/
|
|
2320
2319
|
FeatureDetection.supportsWebAssembly = function () {
|
|
2321
2320
|
return typeof WebAssembly !== "undefined";
|
|
2322
2321
|
};
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Detects whether the current browser supports a WebGL2 rendering context for the specified scene.
|
|
2325
|
+
*
|
|
2326
|
+
* @param {Scene} scene the Cesium scene specifying the rendering context
|
|
2327
|
+
* @returns {boolean} true if the browser supports a WebGL2 rendering context, false if not.
|
|
2328
|
+
*
|
|
2329
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext|WebGL2RenderingContext}
|
|
2330
|
+
*/
|
|
2331
|
+
FeatureDetection.supportsWebgl2 = function (scene) {
|
|
2332
|
+
//>>includeStart('debug', pragmas.debug);
|
|
2333
|
+
Check.Check.defined("scene", scene);
|
|
2334
|
+
//>>includeEnd('debug');
|
|
2335
|
+
|
|
2336
|
+
return scene.context.webgl2;
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2323
2339
|
var FeatureDetection$1 = FeatureDetection;
|
|
2324
2340
|
|
|
2325
2341
|
/**
|
|
@@ -2327,38 +2343,38 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2327
2343
|
* @alias Quaternion
|
|
2328
2344
|
* @constructor
|
|
2329
2345
|
*
|
|
2330
|
-
* @param {
|
|
2331
|
-
* @param {
|
|
2332
|
-
* @param {
|
|
2333
|
-
* @param {
|
|
2346
|
+
* @param {number} [x=0.0] The X component.
|
|
2347
|
+
* @param {number} [y=0.0] The Y component.
|
|
2348
|
+
* @param {number} [z=0.0] The Z component.
|
|
2349
|
+
* @param {number} [w=0.0] The W component.
|
|
2334
2350
|
*
|
|
2335
2351
|
* @see PackableForInterpolation
|
|
2336
2352
|
*/
|
|
2337
2353
|
function Quaternion(x, y, z, w) {
|
|
2338
2354
|
/**
|
|
2339
2355
|
* The X component.
|
|
2340
|
-
* @type {
|
|
2356
|
+
* @type {number}
|
|
2341
2357
|
* @default 0.0
|
|
2342
2358
|
*/
|
|
2343
2359
|
this.x = defaultValue.defaultValue(x, 0.0);
|
|
2344
2360
|
|
|
2345
2361
|
/**
|
|
2346
2362
|
* The Y component.
|
|
2347
|
-
* @type {
|
|
2363
|
+
* @type {number}
|
|
2348
2364
|
* @default 0.0
|
|
2349
2365
|
*/
|
|
2350
2366
|
this.y = defaultValue.defaultValue(y, 0.0);
|
|
2351
2367
|
|
|
2352
2368
|
/**
|
|
2353
2369
|
* The Z component.
|
|
2354
|
-
* @type {
|
|
2370
|
+
* @type {number}
|
|
2355
2371
|
* @default 0.0
|
|
2356
2372
|
*/
|
|
2357
2373
|
this.z = defaultValue.defaultValue(z, 0.0);
|
|
2358
2374
|
|
|
2359
2375
|
/**
|
|
2360
2376
|
* The W component.
|
|
2361
|
-
* @type {
|
|
2377
|
+
* @type {number}
|
|
2362
2378
|
* @default 0.0
|
|
2363
2379
|
*/
|
|
2364
2380
|
this.w = defaultValue.defaultValue(w, 0.0);
|
|
@@ -2370,7 +2386,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2370
2386
|
* Computes a quaternion representing a rotation around an axis.
|
|
2371
2387
|
*
|
|
2372
2388
|
* @param {Cartesian3} axis The axis of rotation.
|
|
2373
|
-
* @param {
|
|
2389
|
+
* @param {number} angle The angle in radians to rotate around the axis.
|
|
2374
2390
|
* @param {Quaternion} [result] The object onto which to store the result.
|
|
2375
2391
|
* @returns {Quaternion} The modified result parameter or a new Quaternion instance if one was not provided.
|
|
2376
2392
|
*/
|
|
@@ -2536,7 +2552,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2536
2552
|
|
|
2537
2553
|
/**
|
|
2538
2554
|
* The number of elements used to pack the object into an array.
|
|
2539
|
-
* @type {
|
|
2555
|
+
* @type {number}
|
|
2540
2556
|
*/
|
|
2541
2557
|
Quaternion.packedLength = 4;
|
|
2542
2558
|
|
|
@@ -2544,10 +2560,10 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2544
2560
|
* Stores the provided instance into the provided array.
|
|
2545
2561
|
*
|
|
2546
2562
|
* @param {Quaternion} value The value to pack.
|
|
2547
|
-
* @param {
|
|
2548
|
-
* @param {
|
|
2563
|
+
* @param {number[]} array The array to pack into.
|
|
2564
|
+
* @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
|
|
2549
2565
|
*
|
|
2550
|
-
* @returns {
|
|
2566
|
+
* @returns {number[]} The array that was packed into
|
|
2551
2567
|
*/
|
|
2552
2568
|
Quaternion.pack = function (value, array, startingIndex) {
|
|
2553
2569
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -2568,8 +2584,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2568
2584
|
/**
|
|
2569
2585
|
* Retrieves an instance from a packed array.
|
|
2570
2586
|
*
|
|
2571
|
-
* @param {
|
|
2572
|
-
* @param {
|
|
2587
|
+
* @param {number[]} array The packed array.
|
|
2588
|
+
* @param {number} [startingIndex=0] The starting index of the element to be unpacked.
|
|
2573
2589
|
* @param {Quaternion} [result] The object into which to store the result.
|
|
2574
2590
|
* @returns {Quaternion} The modified result parameter or a new Quaternion instance if one was not provided.
|
|
2575
2591
|
*/
|
|
@@ -2592,17 +2608,17 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2592
2608
|
|
|
2593
2609
|
/**
|
|
2594
2610
|
* The number of elements used to store the object into an array in its interpolatable form.
|
|
2595
|
-
* @type {
|
|
2611
|
+
* @type {number}
|
|
2596
2612
|
*/
|
|
2597
2613
|
Quaternion.packedInterpolationLength = 3;
|
|
2598
2614
|
|
|
2599
2615
|
/**
|
|
2600
2616
|
* Converts a packed array into a form suitable for interpolation.
|
|
2601
2617
|
*
|
|
2602
|
-
* @param {
|
|
2603
|
-
* @param {
|
|
2604
|
-
* @param {
|
|
2605
|
-
* @param {
|
|
2618
|
+
* @param {number[]} packedArray The packed array.
|
|
2619
|
+
* @param {number} [startingIndex=0] The index of the first element to be converted.
|
|
2620
|
+
* @param {number} [lastIndex=packedArray.length] The index of the last element to be converted.
|
|
2621
|
+
* @param {number[]} [result] The object into which to store the result.
|
|
2606
2622
|
*/
|
|
2607
2623
|
Quaternion.convertPackedArrayForInterpolation = function (
|
|
2608
2624
|
packedArray,
|
|
@@ -2658,10 +2674,10 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2658
2674
|
/**
|
|
2659
2675
|
* Retrieves an instance from a packed array converted with {@link convertPackedArrayForInterpolation}.
|
|
2660
2676
|
*
|
|
2661
|
-
* @param {
|
|
2662
|
-
* @param {
|
|
2663
|
-
* @param {
|
|
2664
|
-
* @param {
|
|
2677
|
+
* @param {number[]} array The array previously packed for interpolation.
|
|
2678
|
+
* @param {number[]} sourceArray The original packed array.
|
|
2679
|
+
* @param {number} [firstIndex=0] The firstIndex used to convert the array.
|
|
2680
|
+
* @param {number} [lastIndex=packedArray.length] The lastIndex used to convert the array.
|
|
2665
2681
|
* @param {Quaternion} [result] The object into which to store the result.
|
|
2666
2682
|
* @returns {Quaternion} The modified result parameter or a new Quaternion instance if one was not provided.
|
|
2667
2683
|
*/
|
|
@@ -2749,7 +2765,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2749
2765
|
* Computes magnitude squared for the provided quaternion.
|
|
2750
2766
|
*
|
|
2751
2767
|
* @param {Quaternion} quaternion The quaternion to conjugate.
|
|
2752
|
-
* @returns {
|
|
2768
|
+
* @returns {number} The magnitude squared.
|
|
2753
2769
|
*/
|
|
2754
2770
|
Quaternion.magnitudeSquared = function (quaternion) {
|
|
2755
2771
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -2768,7 +2784,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2768
2784
|
* Computes magnitude for the provided quaternion.
|
|
2769
2785
|
*
|
|
2770
2786
|
* @param {Quaternion} quaternion The quaternion to conjugate.
|
|
2771
|
-
* @returns {
|
|
2787
|
+
* @returns {number} The magnitude.
|
|
2772
2788
|
*/
|
|
2773
2789
|
Quaternion.magnitude = function (quaternion) {
|
|
2774
2790
|
return Math.sqrt(Quaternion.magnitudeSquared(quaternion));
|
|
@@ -2885,7 +2901,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2885
2901
|
*
|
|
2886
2902
|
* @param {Quaternion} left The first quaternion.
|
|
2887
2903
|
* @param {Quaternion} right The second quaternion.
|
|
2888
|
-
* @returns {
|
|
2904
|
+
* @returns {number} The dot product.
|
|
2889
2905
|
*/
|
|
2890
2906
|
Quaternion.dot = function (left, right) {
|
|
2891
2907
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -2939,7 +2955,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2939
2955
|
* Multiplies the provided quaternion componentwise by the provided scalar.
|
|
2940
2956
|
*
|
|
2941
2957
|
* @param {Quaternion} quaternion The quaternion to be scaled.
|
|
2942
|
-
* @param {
|
|
2958
|
+
* @param {number} scalar The scalar to multiply with.
|
|
2943
2959
|
* @param {Quaternion} result The object onto which to store the result.
|
|
2944
2960
|
* @returns {Quaternion} The modified result parameter.
|
|
2945
2961
|
*/
|
|
@@ -2961,7 +2977,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
2961
2977
|
* Divides the provided quaternion componentwise by the provided scalar.
|
|
2962
2978
|
*
|
|
2963
2979
|
* @param {Quaternion} quaternion The quaternion to be divided.
|
|
2964
|
-
* @param {
|
|
2980
|
+
* @param {number} scalar The scalar to divide by.
|
|
2965
2981
|
* @param {Quaternion} result The object onto which to store the result.
|
|
2966
2982
|
* @returns {Quaternion} The modified result parameter.
|
|
2967
2983
|
*/
|
|
@@ -3010,7 +3026,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3010
3026
|
* Computes the angle of rotation of the provided quaternion.
|
|
3011
3027
|
*
|
|
3012
3028
|
* @param {Quaternion} quaternion The quaternion to use.
|
|
3013
|
-
* @returns {
|
|
3029
|
+
* @returns {number} The angle of rotation.
|
|
3014
3030
|
*/
|
|
3015
3031
|
Quaternion.computeAngle = function (quaternion) {
|
|
3016
3032
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -3029,7 +3045,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3029
3045
|
*
|
|
3030
3046
|
* @param {Quaternion} start The value corresponding to t at 0.0.
|
|
3031
3047
|
* @param {Quaternion} end The value corresponding to t at 1.0.
|
|
3032
|
-
* @param {
|
|
3048
|
+
* @param {number} t The point along t at which to interpolate.
|
|
3033
3049
|
* @param {Quaternion} result The object onto which to store the result.
|
|
3034
3050
|
* @returns {Quaternion} The modified result parameter.
|
|
3035
3051
|
*/
|
|
@@ -3054,7 +3070,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3054
3070
|
*
|
|
3055
3071
|
* @param {Quaternion} start The value corresponding to t at 0.0.
|
|
3056
3072
|
* @param {Quaternion} end The value corresponding to t at 1.0.
|
|
3057
|
-
* @param {
|
|
3073
|
+
* @param {number} t The point along t at which to interpolate.
|
|
3058
3074
|
* @param {Quaternion} result The object onto which to store the result.
|
|
3059
3075
|
* @returns {Quaternion} The modified result parameter.
|
|
3060
3076
|
*
|
|
@@ -3197,7 +3213,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3197
3213
|
* @param {Quaternion} q1 The second quaternion.
|
|
3198
3214
|
* @param {Quaternion} s0 The first inner quadrangle.
|
|
3199
3215
|
* @param {Quaternion} s1 The second inner quadrangle.
|
|
3200
|
-
* @param {
|
|
3216
|
+
* @param {number} t The time in [0,1] used to interpolate.
|
|
3201
3217
|
* @param {Quaternion} result The object onto which to store the result.
|
|
3202
3218
|
* @returns {Quaternion} The modified result parameter.
|
|
3203
3219
|
*
|
|
@@ -3253,7 +3269,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3253
3269
|
*
|
|
3254
3270
|
* @param {Quaternion} start The value corresponding to t at 0.0.
|
|
3255
3271
|
* @param {Quaternion} end The value corresponding to t at 1.0.
|
|
3256
|
-
* @param {
|
|
3272
|
+
* @param {number} t The point along t at which to interpolate.
|
|
3257
3273
|
* @param {Quaternion} result The object onto which to store the result.
|
|
3258
3274
|
* @returns {Quaternion} The modified result parameter.
|
|
3259
3275
|
*
|
|
@@ -3332,7 +3348,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3332
3348
|
* @param {Quaternion} q1 The second quaternion.
|
|
3333
3349
|
* @param {Quaternion} s0 The first inner quadrangle.
|
|
3334
3350
|
* @param {Quaternion} s1 The second inner quadrangle.
|
|
3335
|
-
* @param {
|
|
3351
|
+
* @param {number} t The time in [0,1] used to interpolate.
|
|
3336
3352
|
* @param {Quaternion} result The object onto which to store the result.
|
|
3337
3353
|
* @returns {Quaternion} The modified result parameter or a new instance if none was provided.
|
|
3338
3354
|
*
|
|
@@ -3359,7 +3375,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3359
3375
|
*
|
|
3360
3376
|
* @param {Quaternion} [left] The first quaternion.
|
|
3361
3377
|
* @param {Quaternion} [right] The second quaternion.
|
|
3362
|
-
* @returns {
|
|
3378
|
+
* @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
3363
3379
|
*/
|
|
3364
3380
|
Quaternion.equals = function (left, right) {
|
|
3365
3381
|
return (
|
|
@@ -3380,8 +3396,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3380
3396
|
*
|
|
3381
3397
|
* @param {Quaternion} [left] The first quaternion.
|
|
3382
3398
|
* @param {Quaternion} [right] The second quaternion.
|
|
3383
|
-
* @param {
|
|
3384
|
-
* @returns {
|
|
3399
|
+
* @param {number} [epsilon=0] The epsilon to use for equality testing.
|
|
3400
|
+
* @returns {boolean} <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
3385
3401
|
*/
|
|
3386
3402
|
Quaternion.equalsEpsilon = function (left, right, epsilon) {
|
|
3387
3403
|
epsilon = defaultValue.defaultValue(epsilon, 0);
|
|
@@ -3428,7 +3444,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3428
3444
|
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
3429
3445
|
*
|
|
3430
3446
|
* @param {Quaternion} [right] The right hand side quaternion.
|
|
3431
|
-
* @returns {
|
|
3447
|
+
* @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
3432
3448
|
*/
|
|
3433
3449
|
Quaternion.prototype.equals = function (right) {
|
|
3434
3450
|
return Quaternion.equals(this, right);
|
|
@@ -3440,8 +3456,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3440
3456
|
* <code>false</code> otherwise.
|
|
3441
3457
|
*
|
|
3442
3458
|
* @param {Quaternion} [right] The right hand side quaternion.
|
|
3443
|
-
* @param {
|
|
3444
|
-
* @returns {
|
|
3459
|
+
* @param {number} [epsilon=0] The epsilon to use for equality testing.
|
|
3460
|
+
* @returns {boolean} <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
3445
3461
|
*/
|
|
3446
3462
|
Quaternion.prototype.equalsEpsilon = function (right, epsilon) {
|
|
3447
3463
|
return Quaternion.equalsEpsilon(this, right, epsilon);
|
|
@@ -3450,7 +3466,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3450
3466
|
/**
|
|
3451
3467
|
* Returns a string representing this quaternion in the format (x, y, z, w).
|
|
3452
3468
|
*
|
|
3453
|
-
* @returns {
|
|
3469
|
+
* @returns {string} A string representing this Quaternion.
|
|
3454
3470
|
*/
|
|
3455
3471
|
Quaternion.prototype.toString = function () {
|
|
3456
3472
|
return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`;
|
|
@@ -3464,7 +3480,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3464
3480
|
* @param {*} itemToFind The item to find in the array.
|
|
3465
3481
|
* @param {binarySearchComparator} comparator The function to use to compare the item to
|
|
3466
3482
|
* elements in the array.
|
|
3467
|
-
* @returns {
|
|
3483
|
+
* @returns {number} The index of <code>itemToFind</code> in the array, if it exists. If <code>itemToFind</code>
|
|
3468
3484
|
* does not exist, the return value is a negative number which is the bitwise complement (~)
|
|
3469
3485
|
* of the index before which the itemToFind should be inserted in order to maintain the
|
|
3470
3486
|
* sorted order of the array.
|
|
@@ -3511,11 +3527,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3511
3527
|
* @alias EarthOrientationParametersSample
|
|
3512
3528
|
* @constructor
|
|
3513
3529
|
*
|
|
3514
|
-
* @param {
|
|
3515
|
-
* @param {
|
|
3516
|
-
* @param {
|
|
3517
|
-
* @param {
|
|
3518
|
-
* @param {
|
|
3530
|
+
* @param {number} xPoleWander The pole wander about the X axis, in radians.
|
|
3531
|
+
* @param {number} yPoleWander The pole wander about the Y axis, in radians.
|
|
3532
|
+
* @param {number} xPoleOffset The offset to the Celestial Intermediate Pole (CIP) about the X axis, in radians.
|
|
3533
|
+
* @param {number} yPoleOffset The offset to the Celestial Intermediate Pole (CIP) about the Y axis, in radians.
|
|
3534
|
+
* @param {number} ut1MinusUtc The difference in time standards, UT1 - UTC, in seconds.
|
|
3519
3535
|
*
|
|
3520
3536
|
* @private
|
|
3521
3537
|
*/
|
|
@@ -3528,31 +3544,31 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3528
3544
|
) {
|
|
3529
3545
|
/**
|
|
3530
3546
|
* The pole wander about the X axis, in radians.
|
|
3531
|
-
* @type {
|
|
3547
|
+
* @type {number}
|
|
3532
3548
|
*/
|
|
3533
3549
|
this.xPoleWander = xPoleWander;
|
|
3534
3550
|
|
|
3535
3551
|
/**
|
|
3536
3552
|
* The pole wander about the Y axis, in radians.
|
|
3537
|
-
* @type {
|
|
3553
|
+
* @type {number}
|
|
3538
3554
|
*/
|
|
3539
3555
|
this.yPoleWander = yPoleWander;
|
|
3540
3556
|
|
|
3541
3557
|
/**
|
|
3542
3558
|
* The offset to the Celestial Intermediate Pole (CIP) about the X axis, in radians.
|
|
3543
|
-
* @type {
|
|
3559
|
+
* @type {number}
|
|
3544
3560
|
*/
|
|
3545
3561
|
this.xPoleOffset = xPoleOffset;
|
|
3546
3562
|
|
|
3547
3563
|
/**
|
|
3548
3564
|
* The offset to the Celestial Intermediate Pole (CIP) about the Y axis, in radians.
|
|
3549
|
-
* @type {
|
|
3565
|
+
* @type {number}
|
|
3550
3566
|
*/
|
|
3551
3567
|
this.yPoleOffset = yPoleOffset;
|
|
3552
3568
|
|
|
3553
3569
|
/**
|
|
3554
3570
|
* The difference in time standards, UT1 - UTC, in seconds.
|
|
3555
|
-
* @type {
|
|
3571
|
+
* @type {number}
|
|
3556
3572
|
*/
|
|
3557
3573
|
this.ut1MinusUtc = ut1MinusUtc;
|
|
3558
3574
|
}
|
|
@@ -3563,14 +3579,14 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3563
3579
|
* @alias GregorianDate
|
|
3564
3580
|
* @constructor
|
|
3565
3581
|
*
|
|
3566
|
-
* @param {
|
|
3567
|
-
* @param {
|
|
3568
|
-
* @param {
|
|
3569
|
-
* @param {
|
|
3570
|
-
* @param {
|
|
3571
|
-
* @param {
|
|
3572
|
-
* @param {
|
|
3573
|
-
* @param {
|
|
3582
|
+
* @param {number} [year] The year as a whole number.
|
|
3583
|
+
* @param {number} [month] The month as a whole number with range [1, 12].
|
|
3584
|
+
* @param {number} [day] The day of the month as a whole number starting at 1.
|
|
3585
|
+
* @param {number} [hour] The hour as a whole number with range [0, 23].
|
|
3586
|
+
* @param {number} [minute] The minute of the hour as a whole number with range [0, 59].
|
|
3587
|
+
* @param {number} [second] The second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
|
|
3588
|
+
* @param {number} [millisecond] The millisecond of the second as a floating point number with range [0.0, 1000.0).
|
|
3589
|
+
* @param {boolean} [isLeapSecond] Whether this time is during a leap second.
|
|
3574
3590
|
*
|
|
3575
3591
|
* @see JulianDate#toGregorianDate
|
|
3576
3592
|
*/
|
|
@@ -3586,42 +3602,42 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3586
3602
|
) {
|
|
3587
3603
|
/**
|
|
3588
3604
|
* Gets or sets the year as a whole number.
|
|
3589
|
-
* @type {
|
|
3605
|
+
* @type {number}
|
|
3590
3606
|
*/
|
|
3591
3607
|
this.year = year;
|
|
3592
3608
|
/**
|
|
3593
3609
|
* Gets or sets the month as a whole number with range [1, 12].
|
|
3594
|
-
* @type {
|
|
3610
|
+
* @type {number}
|
|
3595
3611
|
*/
|
|
3596
3612
|
this.month = month;
|
|
3597
3613
|
/**
|
|
3598
3614
|
* Gets or sets the day of the month as a whole number starting at 1.
|
|
3599
|
-
* @type {
|
|
3615
|
+
* @type {number}
|
|
3600
3616
|
*/
|
|
3601
3617
|
this.day = day;
|
|
3602
3618
|
/**
|
|
3603
3619
|
* Gets or sets the hour as a whole number with range [0, 23].
|
|
3604
|
-
* @type {
|
|
3620
|
+
* @type {number}
|
|
3605
3621
|
*/
|
|
3606
3622
|
this.hour = hour;
|
|
3607
3623
|
/**
|
|
3608
3624
|
* Gets or sets the minute of the hour as a whole number with range [0, 59].
|
|
3609
|
-
* @type {
|
|
3625
|
+
* @type {number}
|
|
3610
3626
|
*/
|
|
3611
3627
|
this.minute = minute;
|
|
3612
3628
|
/**
|
|
3613
3629
|
* Gets or sets the second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
|
|
3614
|
-
* @type {
|
|
3630
|
+
* @type {number}
|
|
3615
3631
|
*/
|
|
3616
3632
|
this.second = second;
|
|
3617
3633
|
/**
|
|
3618
3634
|
* Gets or sets the millisecond of the second as a floating point number with range [0.0, 1000.0).
|
|
3619
|
-
* @type {
|
|
3635
|
+
* @type {number}
|
|
3620
3636
|
*/
|
|
3621
3637
|
this.millisecond = millisecond;
|
|
3622
3638
|
/**
|
|
3623
3639
|
* Gets or sets whether this time is during a leap second.
|
|
3624
|
-
* @type {
|
|
3640
|
+
* @type {boolean}
|
|
3625
3641
|
*/
|
|
3626
3642
|
this.isLeapSecond = isLeapSecond;
|
|
3627
3643
|
}
|
|
@@ -3631,8 +3647,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3631
3647
|
*
|
|
3632
3648
|
* @function isLeapYear
|
|
3633
3649
|
*
|
|
3634
|
-
* @param {
|
|
3635
|
-
* @returns {
|
|
3650
|
+
* @param {number} year The year to be tested.
|
|
3651
|
+
* @returns {boolean} True if <code>year</code> is a leap year.
|
|
3636
3652
|
*
|
|
3637
3653
|
* @example
|
|
3638
3654
|
* const leapYear = Cesium.isLeapYear(2000); // true
|
|
@@ -3654,7 +3670,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3654
3670
|
* @constructor
|
|
3655
3671
|
*
|
|
3656
3672
|
* @param {JulianDate} [date] A Julian date representing the time of the leap second.
|
|
3657
|
-
* @param {
|
|
3673
|
+
* @param {number} [offset] The cumulative number of seconds that TAI is ahead of UTC at the provided date.
|
|
3658
3674
|
*/
|
|
3659
3675
|
function LeapSecond(date, offset) {
|
|
3660
3676
|
/**
|
|
@@ -3666,7 +3682,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3666
3682
|
/**
|
|
3667
3683
|
* Gets or sets the cumulative number of seconds between the UTC and TAI time standards at the time
|
|
3668
3684
|
* of this leap second.
|
|
3669
|
-
* @type {
|
|
3685
|
+
* @type {number}
|
|
3670
3686
|
*/
|
|
3671
3687
|
this.offset = offset;
|
|
3672
3688
|
}
|
|
@@ -3683,63 +3699,63 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3683
3699
|
const TimeConstants = {
|
|
3684
3700
|
/**
|
|
3685
3701
|
* The number of seconds in one millisecond: <code>0.001</code>
|
|
3686
|
-
* @type {
|
|
3702
|
+
* @type {number}
|
|
3687
3703
|
* @constant
|
|
3688
3704
|
*/
|
|
3689
3705
|
SECONDS_PER_MILLISECOND: 0.001,
|
|
3690
3706
|
|
|
3691
3707
|
/**
|
|
3692
3708
|
* The number of seconds in one minute: <code>60</code>.
|
|
3693
|
-
* @type {
|
|
3709
|
+
* @type {number}
|
|
3694
3710
|
* @constant
|
|
3695
3711
|
*/
|
|
3696
3712
|
SECONDS_PER_MINUTE: 60.0,
|
|
3697
3713
|
|
|
3698
3714
|
/**
|
|
3699
3715
|
* The number of minutes in one hour: <code>60</code>.
|
|
3700
|
-
* @type {
|
|
3716
|
+
* @type {number}
|
|
3701
3717
|
* @constant
|
|
3702
3718
|
*/
|
|
3703
3719
|
MINUTES_PER_HOUR: 60.0,
|
|
3704
3720
|
|
|
3705
3721
|
/**
|
|
3706
3722
|
* The number of hours in one day: <code>24</code>.
|
|
3707
|
-
* @type {
|
|
3723
|
+
* @type {number}
|
|
3708
3724
|
* @constant
|
|
3709
3725
|
*/
|
|
3710
3726
|
HOURS_PER_DAY: 24.0,
|
|
3711
3727
|
|
|
3712
3728
|
/**
|
|
3713
3729
|
* The number of seconds in one hour: <code>3600</code>.
|
|
3714
|
-
* @type {
|
|
3730
|
+
* @type {number}
|
|
3715
3731
|
* @constant
|
|
3716
3732
|
*/
|
|
3717
3733
|
SECONDS_PER_HOUR: 3600.0,
|
|
3718
3734
|
|
|
3719
3735
|
/**
|
|
3720
3736
|
* The number of minutes in one day: <code>1440</code>.
|
|
3721
|
-
* @type {
|
|
3737
|
+
* @type {number}
|
|
3722
3738
|
* @constant
|
|
3723
3739
|
*/
|
|
3724
3740
|
MINUTES_PER_DAY: 1440.0,
|
|
3725
3741
|
|
|
3726
3742
|
/**
|
|
3727
3743
|
* The number of seconds in one day, ignoring leap seconds: <code>86400</code>.
|
|
3728
|
-
* @type {
|
|
3744
|
+
* @type {number}
|
|
3729
3745
|
* @constant
|
|
3730
3746
|
*/
|
|
3731
3747
|
SECONDS_PER_DAY: 86400.0,
|
|
3732
3748
|
|
|
3733
3749
|
/**
|
|
3734
3750
|
* The number of days in one Julian century: <code>36525</code>.
|
|
3735
|
-
* @type {
|
|
3751
|
+
* @type {number}
|
|
3736
3752
|
* @constant
|
|
3737
3753
|
*/
|
|
3738
3754
|
DAYS_PER_JULIAN_CENTURY: 36525.0,
|
|
3739
3755
|
|
|
3740
3756
|
/**
|
|
3741
3757
|
* One trillionth of a second.
|
|
3742
|
-
* @type {
|
|
3758
|
+
* @type {number}
|
|
3743
3759
|
* @constant
|
|
3744
3760
|
*/
|
|
3745
3761
|
PICOSECOND: 0.000000001,
|
|
@@ -3748,7 +3764,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3748
3764
|
* The number of days to subtract from a Julian date to determine the
|
|
3749
3765
|
* modified Julian date, which gives the number of days since midnight
|
|
3750
3766
|
* on November 17, 1858.
|
|
3751
|
-
* @type {
|
|
3767
|
+
* @type {number}
|
|
3752
3768
|
* @constant
|
|
3753
3769
|
*/
|
|
3754
3770
|
MODIFIED_JULIAN_DATE_DIFFERENCE: 2400000.5,
|
|
@@ -3758,7 +3774,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3758
3774
|
/**
|
|
3759
3775
|
* Provides the type of time standards which JulianDate can take as input.
|
|
3760
3776
|
*
|
|
3761
|
-
* @enum {
|
|
3777
|
+
* @enum {number}
|
|
3762
3778
|
*
|
|
3763
3779
|
* @see JulianDate
|
|
3764
3780
|
*/
|
|
@@ -3770,7 +3786,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3770
3786
|
* <code>UTC = TAI - deltaT</code> where <code>deltaT</code> is the number of leap
|
|
3771
3787
|
* seconds which have been introduced as of the time in TAI.
|
|
3772
3788
|
*
|
|
3773
|
-
* @type {
|
|
3789
|
+
* @type {number}
|
|
3774
3790
|
* @constant
|
|
3775
3791
|
*/
|
|
3776
3792
|
UTC: 0,
|
|
@@ -3779,7 +3795,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3779
3795
|
* Represents the International Atomic Time (TAI) time standard.
|
|
3780
3796
|
* TAI is the principal time standard to which the other time standards are related.
|
|
3781
3797
|
*
|
|
3782
|
-
* @type {
|
|
3798
|
+
* @type {number}
|
|
3783
3799
|
* @constant
|
|
3784
3800
|
*/
|
|
3785
3801
|
TAI: 1,
|
|
@@ -3977,20 +3993,20 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
3977
3993
|
* @alias JulianDate
|
|
3978
3994
|
* @constructor
|
|
3979
3995
|
*
|
|
3980
|
-
* @param {
|
|
3981
|
-
* @param {
|
|
3996
|
+
* @param {number} [julianDayNumber=0.0] The Julian Day Number representing the number of whole days. Fractional days will also be handled correctly.
|
|
3997
|
+
* @param {number} [secondsOfDay=0.0] The number of seconds into the current Julian Day Number. Fractional seconds, negative seconds and seconds greater than a day will be handled correctly.
|
|
3982
3998
|
* @param {TimeStandard} [timeStandard=TimeStandard.UTC] The time standard in which the first two parameters are defined.
|
|
3983
3999
|
*/
|
|
3984
4000
|
function JulianDate(julianDayNumber, secondsOfDay, timeStandard) {
|
|
3985
4001
|
/**
|
|
3986
4002
|
* Gets or sets the number of whole days.
|
|
3987
|
-
* @type {
|
|
4003
|
+
* @type {number}
|
|
3988
4004
|
*/
|
|
3989
4005
|
this.dayNumber = undefined;
|
|
3990
4006
|
|
|
3991
4007
|
/**
|
|
3992
4008
|
* Gets or sets the number of seconds into the current day.
|
|
3993
|
-
* @type {
|
|
4009
|
+
* @type {number}
|
|
3994
4010
|
*/
|
|
3995
4011
|
this.secondsOfDay = undefined;
|
|
3996
4012
|
|
|
@@ -4082,7 +4098,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4082
4098
|
* This method is superior to <code>Date.parse</code> because it will handle all valid formats defined by the ISO 8601
|
|
4083
4099
|
* specification, including leap seconds and sub-millisecond times, which discarded by most JavaScript implementations.
|
|
4084
4100
|
*
|
|
4085
|
-
* @param {
|
|
4101
|
+
* @param {string} iso8601String An ISO 8601 date.
|
|
4086
4102
|
* @param {JulianDate} [result] An existing instance to use for the result.
|
|
4087
4103
|
* @returns {JulianDate} The modified result parameter or a new instance if none was provided.
|
|
4088
4104
|
*
|
|
@@ -4523,8 +4539,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4523
4539
|
* Creates an ISO8601 representation of the provided date.
|
|
4524
4540
|
*
|
|
4525
4541
|
* @param {JulianDate} julianDate The date to be converted.
|
|
4526
|
-
* @param {
|
|
4527
|
-
* @returns {
|
|
4542
|
+
* @param {number} [precision] The number of fractional digits used to represent the seconds component. By default, the most precise representation is used.
|
|
4543
|
+
* @returns {string} The ISO8601 representation of the provided date.
|
|
4528
4544
|
*/
|
|
4529
4545
|
JulianDate.toIso8601 = function (julianDate, precision) {
|
|
4530
4546
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -4636,7 +4652,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4636
4652
|
*
|
|
4637
4653
|
* @param {JulianDate} left The first instance.
|
|
4638
4654
|
* @param {JulianDate} right The second instance.
|
|
4639
|
-
* @returns {
|
|
4655
|
+
* @returns {number} A negative value if left is less than right, a positive value if left is greater than right, or zero if left and right are equal.
|
|
4640
4656
|
*/
|
|
4641
4657
|
JulianDate.compare = function (left, right) {
|
|
4642
4658
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -4660,7 +4676,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4660
4676
|
*
|
|
4661
4677
|
* @param {JulianDate} [left] The first instance.
|
|
4662
4678
|
* @param {JulianDate} [right] The second instance.
|
|
4663
|
-
* @returns {
|
|
4679
|
+
* @returns {boolean} <code>true</code> if the dates are equal; otherwise, <code>false</code>.
|
|
4664
4680
|
*/
|
|
4665
4681
|
JulianDate.equals = function (left, right) {
|
|
4666
4682
|
return (
|
|
@@ -4680,8 +4696,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4680
4696
|
*
|
|
4681
4697
|
* @param {JulianDate} [left] The first instance.
|
|
4682
4698
|
* @param {JulianDate} [right] The second instance.
|
|
4683
|
-
* @param {
|
|
4684
|
-
* @returns {
|
|
4699
|
+
* @param {number} [epsilon=0] The maximum number of seconds that should separate the two instances.
|
|
4700
|
+
* @returns {boolean} <code>true</code> if the two dates are within <code>epsilon</code> seconds of each other; otherwise <code>false</code>.
|
|
4685
4701
|
*/
|
|
4686
4702
|
JulianDate.equalsEpsilon = function (left, right, epsilon) {
|
|
4687
4703
|
epsilon = defaultValue.defaultValue(epsilon, 0);
|
|
@@ -4698,7 +4714,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4698
4714
|
* Computes the total number of whole and fractional days represented by the provided instance.
|
|
4699
4715
|
*
|
|
4700
4716
|
* @param {JulianDate} julianDate The date.
|
|
4701
|
-
* @returns {
|
|
4717
|
+
* @returns {number} The Julian date as single floating point number.
|
|
4702
4718
|
*/
|
|
4703
4719
|
JulianDate.totalDays = function (julianDate) {
|
|
4704
4720
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -4717,7 +4733,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4717
4733
|
*
|
|
4718
4734
|
* @param {JulianDate} left The first instance.
|
|
4719
4735
|
* @param {JulianDate} right The second instance.
|
|
4720
|
-
* @returns {
|
|
4736
|
+
* @returns {number} The difference, in seconds, when subtracting <code>right</code> from <code>left</code>.
|
|
4721
4737
|
*/
|
|
4722
4738
|
JulianDate.secondsDifference = function (left, right) {
|
|
4723
4739
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -4739,7 +4755,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4739
4755
|
*
|
|
4740
4756
|
* @param {JulianDate} left The first instance.
|
|
4741
4757
|
* @param {JulianDate} right The second instance.
|
|
4742
|
-
* @returns {
|
|
4758
|
+
* @returns {number} The difference, in days, when subtracting <code>right</code> from <code>left</code>.
|
|
4743
4759
|
*/
|
|
4744
4760
|
JulianDate.daysDifference = function (left, right) {
|
|
4745
4761
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -4761,7 +4777,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4761
4777
|
* Computes the number of seconds the provided instance is ahead of UTC.
|
|
4762
4778
|
*
|
|
4763
4779
|
* @param {JulianDate} julianDate The date.
|
|
4764
|
-
* @returns {
|
|
4780
|
+
* @returns {number} The number of seconds the provided instance is ahead of UTC
|
|
4765
4781
|
*/
|
|
4766
4782
|
JulianDate.computeTaiMinusUtc = function (julianDate) {
|
|
4767
4783
|
binarySearchScratchLeapSecond.julianDate = julianDate;
|
|
@@ -4785,7 +4801,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4785
4801
|
* Adds the provided number of seconds to the provided date instance.
|
|
4786
4802
|
*
|
|
4787
4803
|
* @param {JulianDate} julianDate The date.
|
|
4788
|
-
* @param {
|
|
4804
|
+
* @param {number} seconds The number of seconds to add or subtract.
|
|
4789
4805
|
* @param {JulianDate} result An existing instance to use for the result.
|
|
4790
4806
|
* @returns {JulianDate} The modified result parameter.
|
|
4791
4807
|
*/
|
|
@@ -4813,7 +4829,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4813
4829
|
* Adds the provided number of minutes to the provided date instance.
|
|
4814
4830
|
*
|
|
4815
4831
|
* @param {JulianDate} julianDate The date.
|
|
4816
|
-
* @param {
|
|
4832
|
+
* @param {number} minutes The number of minutes to add or subtract.
|
|
4817
4833
|
* @param {JulianDate} result An existing instance to use for the result.
|
|
4818
4834
|
* @returns {JulianDate} The modified result parameter.
|
|
4819
4835
|
*/
|
|
@@ -4839,7 +4855,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4839
4855
|
* Adds the provided number of hours to the provided date instance.
|
|
4840
4856
|
*
|
|
4841
4857
|
* @param {JulianDate} julianDate The date.
|
|
4842
|
-
* @param {
|
|
4858
|
+
* @param {number} hours The number of hours to add or subtract.
|
|
4843
4859
|
* @param {JulianDate} result An existing instance to use for the result.
|
|
4844
4860
|
* @returns {JulianDate} The modified result parameter.
|
|
4845
4861
|
*/
|
|
@@ -4865,7 +4881,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4865
4881
|
* Adds the provided number of days to the provided date instance.
|
|
4866
4882
|
*
|
|
4867
4883
|
* @param {JulianDate} julianDate The date.
|
|
4868
|
-
* @param {
|
|
4884
|
+
* @param {number} days The number of days to add or subtract.
|
|
4869
4885
|
* @param {JulianDate} result An existing instance to use for the result.
|
|
4870
4886
|
* @returns {JulianDate} The modified result parameter.
|
|
4871
4887
|
*/
|
|
@@ -4891,7 +4907,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4891
4907
|
*
|
|
4892
4908
|
* @param {JulianDate} left The first instance.
|
|
4893
4909
|
* @param {JulianDate} right The second instance.
|
|
4894
|
-
* @returns {
|
|
4910
|
+
* @returns {boolean} <code>true</code> if <code>left</code> is earlier than <code>right</code>, <code>false</code> otherwise.
|
|
4895
4911
|
*/
|
|
4896
4912
|
JulianDate.lessThan = function (left, right) {
|
|
4897
4913
|
return JulianDate.compare(left, right) < 0;
|
|
@@ -4902,7 +4918,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4902
4918
|
*
|
|
4903
4919
|
* @param {JulianDate} left The first instance.
|
|
4904
4920
|
* @param {JulianDate} right The second instance.
|
|
4905
|
-
* @returns {
|
|
4921
|
+
* @returns {boolean} <code>true</code> if <code>left</code> is earlier than or equal to <code>right</code>, <code>false</code> otherwise.
|
|
4906
4922
|
*/
|
|
4907
4923
|
JulianDate.lessThanOrEquals = function (left, right) {
|
|
4908
4924
|
return JulianDate.compare(left, right) <= 0;
|
|
@@ -4913,7 +4929,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4913
4929
|
*
|
|
4914
4930
|
* @param {JulianDate} left The first instance.
|
|
4915
4931
|
* @param {JulianDate} right The second instance.
|
|
4916
|
-
* @returns {
|
|
4932
|
+
* @returns {boolean} <code>true</code> if <code>left</code> is later than <code>right</code>, <code>false</code> otherwise.
|
|
4917
4933
|
*/
|
|
4918
4934
|
JulianDate.greaterThan = function (left, right) {
|
|
4919
4935
|
return JulianDate.compare(left, right) > 0;
|
|
@@ -4924,7 +4940,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4924
4940
|
*
|
|
4925
4941
|
* @param {JulianDate} left The first instance.
|
|
4926
4942
|
* @param {JulianDate} right The second instance.
|
|
4927
|
-
* @returns {
|
|
4943
|
+
* @returns {boolean} <code>true</code> if <code>left</code> is later than or equal to <code>right</code>, <code>false</code> otherwise.
|
|
4928
4944
|
*/
|
|
4929
4945
|
JulianDate.greaterThanOrEquals = function (left, right) {
|
|
4930
4946
|
return JulianDate.compare(left, right) >= 0;
|
|
@@ -4944,7 +4960,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4944
4960
|
* Compares this and the provided instance and returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
4945
4961
|
*
|
|
4946
4962
|
* @param {JulianDate} [right] The second instance.
|
|
4947
|
-
* @returns {
|
|
4963
|
+
* @returns {boolean} <code>true</code> if the dates are equal; otherwise, <code>false</code>.
|
|
4948
4964
|
*/
|
|
4949
4965
|
JulianDate.prototype.equals = function (right) {
|
|
4950
4966
|
return JulianDate.equals(this, right);
|
|
@@ -4957,8 +4973,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4957
4973
|
* seconds, must be less than <code>epsilon</code>.
|
|
4958
4974
|
*
|
|
4959
4975
|
* @param {JulianDate} [right] The second instance.
|
|
4960
|
-
* @param {
|
|
4961
|
-
* @returns {
|
|
4976
|
+
* @param {number} [epsilon=0] The maximum number of seconds that should separate the two instances.
|
|
4977
|
+
* @returns {boolean} <code>true</code> if the two dates are within <code>epsilon</code> seconds of each other; otherwise <code>false</code>.
|
|
4962
4978
|
*/
|
|
4963
4979
|
JulianDate.prototype.equalsEpsilon = function (right, epsilon) {
|
|
4964
4980
|
return JulianDate.equalsEpsilon(this, right, epsilon);
|
|
@@ -4967,7 +4983,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
4967
4983
|
/**
|
|
4968
4984
|
* Creates a string representing this date in ISO8601 format.
|
|
4969
4985
|
*
|
|
4970
|
-
* @returns {
|
|
4986
|
+
* @returns {string} A string representing this date in ISO8601 format.
|
|
4971
4987
|
*/
|
|
4972
4988
|
JulianDate.prototype.toString = function () {
|
|
4973
4989
|
return JulianDate.toIso8601(this);
|
|
@@ -8389,9 +8405,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8389
8405
|
*
|
|
8390
8406
|
* @function
|
|
8391
8407
|
*
|
|
8392
|
-
* @param {
|
|
8393
|
-
* @param {
|
|
8394
|
-
* @returns {
|
|
8408
|
+
* @param {object} object The object to clone.
|
|
8409
|
+
* @param {boolean} [deep=false] If true, all properties will be deep cloned recursively.
|
|
8410
|
+
* @returns {object} The cloned object.
|
|
8395
8411
|
*/
|
|
8396
8412
|
function clone(object, deep) {
|
|
8397
8413
|
if (object === null || typeof object !== "object") {
|
|
@@ -8431,7 +8447,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8431
8447
|
/**
|
|
8432
8448
|
* An object which contains a promise object, and functions to resolve or reject the promise.
|
|
8433
8449
|
*
|
|
8434
|
-
* @typedef {
|
|
8450
|
+
* @typedef {object} defer.deferred
|
|
8435
8451
|
* @property {defer.resolve} resolve Resolves the promise when called.
|
|
8436
8452
|
* @property {defer.reject} reject Rejects the promise when called.
|
|
8437
8453
|
* @property {Promise} promise Promise object.
|
|
@@ -8461,9 +8477,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8461
8477
|
* Given a relative Uri and a base Uri, returns the absolute Uri of the relative Uri.
|
|
8462
8478
|
* @function
|
|
8463
8479
|
*
|
|
8464
|
-
* @param {
|
|
8465
|
-
* @param {
|
|
8466
|
-
* @returns {
|
|
8480
|
+
* @param {string} relative The relative Uri.
|
|
8481
|
+
* @param {string} [base] The base Uri.
|
|
8482
|
+
* @returns {string} The absolute Uri of the given relative Uri.
|
|
8467
8483
|
*
|
|
8468
8484
|
* @example
|
|
8469
8485
|
* //absolute Uri will be "https://test.com/awesome.png";
|
|
@@ -8503,9 +8519,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8503
8519
|
* Given a URI, returns the base path of the URI.
|
|
8504
8520
|
* @function
|
|
8505
8521
|
*
|
|
8506
|
-
* @param {
|
|
8507
|
-
* @param {
|
|
8508
|
-
* @returns {
|
|
8522
|
+
* @param {string} uri The Uri.
|
|
8523
|
+
* @param {boolean} [includeQuery = false] Whether or not to include the query string and fragment form the uri
|
|
8524
|
+
* @returns {string} The base path of the Uri.
|
|
8509
8525
|
*
|
|
8510
8526
|
* @example
|
|
8511
8527
|
* // basePath will be "/Gallery/";
|
|
@@ -8546,8 +8562,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8546
8562
|
* Given a URI, returns the extension of the URI.
|
|
8547
8563
|
* @function getExtensionFromUri
|
|
8548
8564
|
*
|
|
8549
|
-
* @param {
|
|
8550
|
-
* @returns {
|
|
8565
|
+
* @param {string} uri The Uri.
|
|
8566
|
+
* @returns {string} The extension of the Uri.
|
|
8551
8567
|
*
|
|
8552
8568
|
* @example
|
|
8553
8569
|
* //extension will be "czml";
|
|
@@ -8585,8 +8601,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8585
8601
|
* @function getImagePixels
|
|
8586
8602
|
*
|
|
8587
8603
|
* @param {HTMLImageElement|ImageBitmap} image The image to extract pixels from.
|
|
8588
|
-
* @param {
|
|
8589
|
-
* @param {
|
|
8604
|
+
* @param {number} width The width of the image. If not defined, then image.width is assigned.
|
|
8605
|
+
* @param {number} height The height of the image. If not defined, then image.height is assigned.
|
|
8590
8606
|
* @returns {ImageData} The pixels of the image.
|
|
8591
8607
|
*/
|
|
8592
8608
|
function getImagePixels(image, width, height) {
|
|
@@ -8608,7 +8624,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8608
8624
|
const canvas = document.createElement("canvas");
|
|
8609
8625
|
canvas.width = width;
|
|
8610
8626
|
canvas.height = height;
|
|
8611
|
-
|
|
8627
|
+
// Since we re-use contexts, use the willReadFrequently option – See https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
|
|
8628
|
+
context2d = canvas.getContext("2d", { willReadFrequently: true });
|
|
8612
8629
|
context2d.globalCompositeOperation = "copy";
|
|
8613
8630
|
context2DsByHeight[height] = context2d;
|
|
8614
8631
|
}
|
|
@@ -8624,8 +8641,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8624
8641
|
*
|
|
8625
8642
|
* @function isBlobUri
|
|
8626
8643
|
*
|
|
8627
|
-
* @param {
|
|
8628
|
-
* @returns {
|
|
8644
|
+
* @param {string} uri The uri to test.
|
|
8645
|
+
* @returns {boolean} true when the uri is a blob uri; otherwise, false.
|
|
8629
8646
|
*
|
|
8630
8647
|
* @private
|
|
8631
8648
|
*/
|
|
@@ -8672,8 +8689,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8672
8689
|
*
|
|
8673
8690
|
* @function isDataUri
|
|
8674
8691
|
*
|
|
8675
|
-
* @param {
|
|
8676
|
-
* @returns {
|
|
8692
|
+
* @param {string} uri The uri to test.
|
|
8693
|
+
* @returns {boolean} true when the uri is a data uri; otherwise, false.
|
|
8677
8694
|
*
|
|
8678
8695
|
* @private
|
|
8679
8696
|
*/
|
|
@@ -8718,8 +8735,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8718
8735
|
* will produce multiple values with the same name.
|
|
8719
8736
|
* @function objectToQuery
|
|
8720
8737
|
*
|
|
8721
|
-
* @param {
|
|
8722
|
-
* @returns {
|
|
8738
|
+
* @param {object} obj The object containing data to encode.
|
|
8739
|
+
* @returns {string} An encoded query string.
|
|
8723
8740
|
*
|
|
8724
8741
|
*
|
|
8725
8742
|
* @example
|
|
@@ -8772,8 +8789,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8772
8789
|
* the value in the object will be an array of values.
|
|
8773
8790
|
* @function queryToObject
|
|
8774
8791
|
*
|
|
8775
|
-
* @param {
|
|
8776
|
-
* @returns {
|
|
8792
|
+
* @param {string} queryString The query string.
|
|
8793
|
+
* @returns {object} An object containing the parameters parsed from the query string.
|
|
8777
8794
|
*
|
|
8778
8795
|
*
|
|
8779
8796
|
* @example
|
|
@@ -8826,13 +8843,13 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8826
8843
|
/**
|
|
8827
8844
|
* State of the request.
|
|
8828
8845
|
*
|
|
8829
|
-
* @enum {
|
|
8846
|
+
* @enum {number}
|
|
8830
8847
|
*/
|
|
8831
8848
|
const RequestState = {
|
|
8832
8849
|
/**
|
|
8833
8850
|
* Initial unissued state.
|
|
8834
8851
|
*
|
|
8835
|
-
* @type
|
|
8852
|
+
* @type {number}
|
|
8836
8853
|
* @constant
|
|
8837
8854
|
*/
|
|
8838
8855
|
UNISSUED: 0,
|
|
@@ -8840,7 +8857,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8840
8857
|
/**
|
|
8841
8858
|
* Issued but not yet active. Will become active when open slots are available.
|
|
8842
8859
|
*
|
|
8843
|
-
* @type
|
|
8860
|
+
* @type {number}
|
|
8844
8861
|
* @constant
|
|
8845
8862
|
*/
|
|
8846
8863
|
ISSUED: 1,
|
|
@@ -8848,7 +8865,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8848
8865
|
/**
|
|
8849
8866
|
* Actual http request has been sent.
|
|
8850
8867
|
*
|
|
8851
|
-
* @type
|
|
8868
|
+
* @type {number}
|
|
8852
8869
|
* @constant
|
|
8853
8870
|
*/
|
|
8854
8871
|
ACTIVE: 2,
|
|
@@ -8856,7 +8873,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8856
8873
|
/**
|
|
8857
8874
|
* Request completed successfully.
|
|
8858
8875
|
*
|
|
8859
|
-
* @type
|
|
8876
|
+
* @type {number}
|
|
8860
8877
|
* @constant
|
|
8861
8878
|
*/
|
|
8862
8879
|
RECEIVED: 3,
|
|
@@ -8864,7 +8881,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8864
8881
|
/**
|
|
8865
8882
|
* Request was cancelled, either explicitly or automatically because of low priority.
|
|
8866
8883
|
*
|
|
8867
|
-
* @type
|
|
8884
|
+
* @type {number}
|
|
8868
8885
|
* @constant
|
|
8869
8886
|
*/
|
|
8870
8887
|
CANCELLED: 4,
|
|
@@ -8872,7 +8889,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8872
8889
|
/**
|
|
8873
8890
|
* Request failed.
|
|
8874
8891
|
*
|
|
8875
|
-
* @type
|
|
8892
|
+
* @type {number}
|
|
8876
8893
|
* @constant
|
|
8877
8894
|
*/
|
|
8878
8895
|
FAILED: 5,
|
|
@@ -8882,13 +8899,13 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8882
8899
|
/**
|
|
8883
8900
|
* An enum identifying the type of request. Used for finer grained logging and priority sorting.
|
|
8884
8901
|
*
|
|
8885
|
-
* @enum {
|
|
8902
|
+
* @enum {number}
|
|
8886
8903
|
*/
|
|
8887
8904
|
const RequestType = {
|
|
8888
8905
|
/**
|
|
8889
8906
|
* Terrain request.
|
|
8890
8907
|
*
|
|
8891
|
-
* @type
|
|
8908
|
+
* @type {number}
|
|
8892
8909
|
* @constant
|
|
8893
8910
|
*/
|
|
8894
8911
|
TERRAIN: 0,
|
|
@@ -8896,7 +8913,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8896
8913
|
/**
|
|
8897
8914
|
* Imagery request.
|
|
8898
8915
|
*
|
|
8899
|
-
* @type
|
|
8916
|
+
* @type {number}
|
|
8900
8917
|
* @constant
|
|
8901
8918
|
*/
|
|
8902
8919
|
IMAGERY: 1,
|
|
@@ -8904,7 +8921,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8904
8921
|
/**
|
|
8905
8922
|
* 3D Tiles request.
|
|
8906
8923
|
*
|
|
8907
|
-
* @type
|
|
8924
|
+
* @type {number}
|
|
8908
8925
|
* @constant
|
|
8909
8926
|
*/
|
|
8910
8927
|
TILES3D: 2,
|
|
@@ -8912,7 +8929,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8912
8929
|
/**
|
|
8913
8930
|
* Other request.
|
|
8914
8931
|
*
|
|
8915
|
-
* @type
|
|
8932
|
+
* @type {number}
|
|
8916
8933
|
* @constant
|
|
8917
8934
|
*/
|
|
8918
8935
|
OTHER: 3,
|
|
@@ -8925,14 +8942,14 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8925
8942
|
* @alias Request
|
|
8926
8943
|
* @constructor
|
|
8927
8944
|
|
|
8928
|
-
* @param {
|
|
8929
|
-
* @param {
|
|
8945
|
+
* @param {object} [options] An object with the following properties:
|
|
8946
|
+
* @param {string} [options.url] The url to request.
|
|
8930
8947
|
* @param {Request.RequestCallback} [options.requestFunction] The function that makes the actual data request.
|
|
8931
8948
|
* @param {Request.CancelCallback} [options.cancelFunction] The function that is called when the request is cancelled.
|
|
8932
8949
|
* @param {Request.PriorityCallback} [options.priorityFunction] The function that is called to update the request's priority, which occurs once per frame.
|
|
8933
|
-
* @param {
|
|
8934
|
-
* @param {
|
|
8935
|
-
* @param {
|
|
8950
|
+
* @param {number} [options.priority=0.0] The initial priority of the request.
|
|
8951
|
+
* @param {boolean} [options.throttle=false] Whether to throttle and prioritize the request. If false, the request will be sent immediately. If true, the request will be throttled and sent based on priority.
|
|
8952
|
+
* @param {boolean} [options.throttleByServer=false] Whether to throttle the request by server.
|
|
8936
8953
|
* @param {RequestType} [options.type=RequestType.OTHER] The type of request.
|
|
8937
8954
|
*/
|
|
8938
8955
|
function Request(options) {
|
|
@@ -8944,7 +8961,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8944
8961
|
/**
|
|
8945
8962
|
* The URL to request.
|
|
8946
8963
|
*
|
|
8947
|
-
* @type {
|
|
8964
|
+
* @type {string}
|
|
8948
8965
|
*/
|
|
8949
8966
|
this.url = options.url;
|
|
8950
8967
|
|
|
@@ -8976,7 +8993,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8976
8993
|
*
|
|
8977
8994
|
* If priorityFunction is defined, this value is updated every frame with the result of that call.
|
|
8978
8995
|
*
|
|
8979
|
-
* @type {
|
|
8996
|
+
* @type {number}
|
|
8980
8997
|
* @default 0.0
|
|
8981
8998
|
*/
|
|
8982
8999
|
this.priority = defaultValue.defaultValue(options.priority, 0.0);
|
|
@@ -8985,7 +9002,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8985
9002
|
* Whether to throttle and prioritize the request. If false, the request will be sent immediately. If true, the
|
|
8986
9003
|
* request will be throttled and sent based on priority.
|
|
8987
9004
|
*
|
|
8988
|
-
* @type {
|
|
9005
|
+
* @type {boolean}
|
|
8989
9006
|
* @readonly
|
|
8990
9007
|
*
|
|
8991
9008
|
* @default false
|
|
@@ -8997,7 +9014,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
8997
9014
|
* for HTTP/1 servers, and an unlimited amount of connections for HTTP/2 servers. Setting this value
|
|
8998
9015
|
* to <code>true</code> is preferable for requests going through HTTP/1 servers.
|
|
8999
9016
|
*
|
|
9000
|
-
* @type {
|
|
9017
|
+
* @type {boolean}
|
|
9001
9018
|
* @readonly
|
|
9002
9019
|
*
|
|
9003
9020
|
* @default false
|
|
@@ -9017,7 +9034,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9017
9034
|
/**
|
|
9018
9035
|
* A key used to identify the server that a request is going to. It is derived from the url's authority and scheme.
|
|
9019
9036
|
*
|
|
9020
|
-
* @type {
|
|
9037
|
+
* @type {string}
|
|
9021
9038
|
*
|
|
9022
9039
|
* @private
|
|
9023
9040
|
*/
|
|
@@ -9034,7 +9051,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9034
9051
|
/**
|
|
9035
9052
|
* The requests's deferred promise.
|
|
9036
9053
|
*
|
|
9037
|
-
* @type {
|
|
9054
|
+
* @type {object}
|
|
9038
9055
|
*
|
|
9039
9056
|
* @private
|
|
9040
9057
|
*/
|
|
@@ -9043,7 +9060,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9043
9060
|
/**
|
|
9044
9061
|
* Whether the request was explicitly cancelled.
|
|
9045
9062
|
*
|
|
9046
|
-
* @type {
|
|
9063
|
+
* @type {boolean}
|
|
9047
9064
|
*
|
|
9048
9065
|
* @private
|
|
9049
9066
|
*/
|
|
@@ -9095,9 +9112,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9095
9112
|
*
|
|
9096
9113
|
* @function parseResponseHeaders
|
|
9097
9114
|
*
|
|
9098
|
-
* @param {
|
|
9115
|
+
* @param {string} headerString The header string returned by getAllResponseHeaders(). The format is
|
|
9099
9116
|
* described here: http://www.w3.org/TR/XMLHttpRequest/#the-getallresponseheaders()-method
|
|
9100
|
-
* @returns {
|
|
9117
|
+
* @returns {object} A dictionary of key/value pairs, where each key is the name of a header and the corresponding value
|
|
9101
9118
|
* is that header's value.
|
|
9102
9119
|
*
|
|
9103
9120
|
* @private
|
|
@@ -9132,9 +9149,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9132
9149
|
* @constructor
|
|
9133
9150
|
* @alias RequestErrorEvent
|
|
9134
9151
|
*
|
|
9135
|
-
* @param {
|
|
9136
|
-
* @param {
|
|
9137
|
-
* @param {
|
|
9152
|
+
* @param {number} [statusCode] The HTTP error status code, such as 404.
|
|
9153
|
+
* @param {object} [response] The response included along with the error.
|
|
9154
|
+
* @param {string|object} [responseHeaders] The response headers, represented either as an object literal or as a
|
|
9138
9155
|
* string in the format returned by XMLHttpRequest's getAllResponseHeaders() function.
|
|
9139
9156
|
*/
|
|
9140
9157
|
function RequestErrorEvent(statusCode, response, responseHeaders) {
|
|
@@ -9142,7 +9159,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9142
9159
|
* The HTTP error status code, such as 404. If the error does not have a particular
|
|
9143
9160
|
* HTTP code, this property will be undefined.
|
|
9144
9161
|
*
|
|
9145
|
-
* @type {
|
|
9162
|
+
* @type {number}
|
|
9146
9163
|
*/
|
|
9147
9164
|
this.statusCode = statusCode;
|
|
9148
9165
|
|
|
@@ -9150,7 +9167,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9150
9167
|
* The response included along with the error. If the error does not include a response,
|
|
9151
9168
|
* this property will be undefined.
|
|
9152
9169
|
*
|
|
9153
|
-
* @type {
|
|
9170
|
+
* @type {object}
|
|
9154
9171
|
*/
|
|
9155
9172
|
this.response = response;
|
|
9156
9173
|
|
|
@@ -9158,7 +9175,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9158
9175
|
* The headers included in the response, represented as an object literal of key/value pairs.
|
|
9159
9176
|
* If the error does not include any headers, this property will be undefined.
|
|
9160
9177
|
*
|
|
9161
|
-
* @type {
|
|
9178
|
+
* @type {object}
|
|
9162
9179
|
*/
|
|
9163
9180
|
this.responseHeaders = responseHeaders;
|
|
9164
9181
|
|
|
@@ -9171,7 +9188,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9171
9188
|
* Creates a string representing this RequestErrorEvent.
|
|
9172
9189
|
* @memberof RequestErrorEvent
|
|
9173
9190
|
*
|
|
9174
|
-
* @returns {
|
|
9191
|
+
* @returns {string} A string representing the provided RequestErrorEvent.
|
|
9175
9192
|
*/
|
|
9176
9193
|
RequestErrorEvent.prototype.toString = function () {
|
|
9177
9194
|
let str = "Request has failed.";
|
|
@@ -9212,7 +9229,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9212
9229
|
/**
|
|
9213
9230
|
* The number of listeners currently subscribed to the event.
|
|
9214
9231
|
* @memberof Event.prototype
|
|
9215
|
-
* @type {
|
|
9232
|
+
* @type {number}
|
|
9216
9233
|
* @readonly
|
|
9217
9234
|
*/
|
|
9218
9235
|
numberOfListeners: {
|
|
@@ -9228,7 +9245,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9228
9245
|
* in which the function will execute.
|
|
9229
9246
|
*
|
|
9230
9247
|
* @param {Listener} listener The function to be executed when the event is raised.
|
|
9231
|
-
* @param {
|
|
9248
|
+
* @param {object} [scope] An optional object scope to serve as the <code>this</code>
|
|
9232
9249
|
* pointer in which the listener function will execute.
|
|
9233
9250
|
* @returns {Event.RemoveCallback} A function that will remove this event listener when invoked.
|
|
9234
9251
|
*
|
|
@@ -9253,8 +9270,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9253
9270
|
* Unregisters a previously registered callback.
|
|
9254
9271
|
*
|
|
9255
9272
|
* @param {Listener} listener The function to be unregistered.
|
|
9256
|
-
* @param {
|
|
9257
|
-
* @returns {
|
|
9273
|
+
* @param {object} [scope] The scope that was originally passed to addEventListener.
|
|
9274
|
+
* @returns {boolean} <code>true</code> if the listener was removed; <code>false</code> if the listener and scope are not registered with the event.
|
|
9258
9275
|
*
|
|
9259
9276
|
* @see Event#addEventListener
|
|
9260
9277
|
* @see Event#raiseEvent
|
|
@@ -9343,7 +9360,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9343
9360
|
* @constructor
|
|
9344
9361
|
* @private
|
|
9345
9362
|
*
|
|
9346
|
-
* @param {
|
|
9363
|
+
* @param {object} options Object with the following properties:
|
|
9347
9364
|
* @param {Heap.ComparatorCallback} options.comparator The comparator to use for the heap. If comparator(a, b) is less than 0, sort a to a lower index than b, otherwise sort to a higher index.
|
|
9348
9365
|
*/
|
|
9349
9366
|
function Heap(options) {
|
|
@@ -9364,7 +9381,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9364
9381
|
*
|
|
9365
9382
|
* @memberof Heap.prototype
|
|
9366
9383
|
*
|
|
9367
|
-
* @type {
|
|
9384
|
+
* @type {number}
|
|
9368
9385
|
* @readonly
|
|
9369
9386
|
*/
|
|
9370
9387
|
length: {
|
|
@@ -9392,7 +9409,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9392
9409
|
*
|
|
9393
9410
|
* @memberof Heap.prototype
|
|
9394
9411
|
*
|
|
9395
|
-
* @type {
|
|
9412
|
+
* @type {number}
|
|
9396
9413
|
*/
|
|
9397
9414
|
maximumLength: {
|
|
9398
9415
|
get: function () {
|
|
@@ -9439,7 +9456,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9439
9456
|
/**
|
|
9440
9457
|
* Resizes the internal array of the heap.
|
|
9441
9458
|
*
|
|
9442
|
-
* @param {
|
|
9459
|
+
* @param {number} [length] The length to resize internal array to. Defaults to the current length of the heap.
|
|
9443
9460
|
*/
|
|
9444
9461
|
Heap.prototype.reserve = function (length) {
|
|
9445
9462
|
length = defaultValue.defaultValue(length, this._length);
|
|
@@ -9449,7 +9466,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9449
9466
|
/**
|
|
9450
9467
|
* Update the heap so that index and all descendants satisfy the heap property.
|
|
9451
9468
|
*
|
|
9452
|
-
* @param {
|
|
9469
|
+
* @param {number} [index=0] The starting index to heapify from.
|
|
9453
9470
|
*/
|
|
9454
9471
|
Heap.prototype.heapify = function (index) {
|
|
9455
9472
|
index = defaultValue.defaultValue(index, 0);
|
|
@@ -9538,7 +9555,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9538
9555
|
/**
|
|
9539
9556
|
* Remove the element specified by index from the heap and return it.
|
|
9540
9557
|
*
|
|
9541
|
-
* @param {
|
|
9558
|
+
* @param {number} [index=0] The index to remove.
|
|
9542
9559
|
* @returns {*} The specified element of the heap.
|
|
9543
9560
|
*/
|
|
9544
9561
|
Heap.prototype.pop = function (index) {
|
|
@@ -9600,7 +9617,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9600
9617
|
|
|
9601
9618
|
/**
|
|
9602
9619
|
* The maximum number of simultaneous active requests. Un-throttled requests do not observe this limit.
|
|
9603
|
-
* @type {
|
|
9620
|
+
* @type {number}
|
|
9604
9621
|
* @default 50
|
|
9605
9622
|
*/
|
|
9606
9623
|
RequestScheduler.maximumRequests = 50;
|
|
@@ -9608,14 +9625,14 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9608
9625
|
/**
|
|
9609
9626
|
* The maximum number of simultaneous active requests per server. Un-throttled requests or servers specifically
|
|
9610
9627
|
* listed in {@link requestsByServer} do not observe this limit.
|
|
9611
|
-
* @type {
|
|
9628
|
+
* @type {number}
|
|
9612
9629
|
* @default 6
|
|
9613
9630
|
*/
|
|
9614
9631
|
RequestScheduler.maximumRequestsPerServer = 6;
|
|
9615
9632
|
|
|
9616
9633
|
/**
|
|
9617
9634
|
* A per server key list of overrides to use for throttling instead of <code>maximumRequestsPerServer</code>
|
|
9618
|
-
* @type {
|
|
9635
|
+
* @type {object}
|
|
9619
9636
|
*
|
|
9620
9637
|
* @example
|
|
9621
9638
|
* RequestScheduler.requestsByServer = {
|
|
@@ -9630,14 +9647,14 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9630
9647
|
|
|
9631
9648
|
/**
|
|
9632
9649
|
* Specifies if the request scheduler should throttle incoming requests, or let the browser queue requests under its control.
|
|
9633
|
-
* @type {
|
|
9650
|
+
* @type {boolean}
|
|
9634
9651
|
* @default true
|
|
9635
9652
|
*/
|
|
9636
9653
|
RequestScheduler.throttleRequests = true;
|
|
9637
9654
|
|
|
9638
9655
|
/**
|
|
9639
9656
|
* When true, log statistics to the console every frame
|
|
9640
|
-
* @type {
|
|
9657
|
+
* @type {boolean}
|
|
9641
9658
|
* @default false
|
|
9642
9659
|
* @private
|
|
9643
9660
|
*/
|
|
@@ -9659,7 +9676,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9659
9676
|
*
|
|
9660
9677
|
* @memberof RequestScheduler
|
|
9661
9678
|
*
|
|
9662
|
-
* @type
|
|
9679
|
+
* @type {object}
|
|
9663
9680
|
* @readonly
|
|
9664
9681
|
* @private
|
|
9665
9682
|
*/
|
|
@@ -9674,7 +9691,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9674
9691
|
*
|
|
9675
9692
|
* @memberof RequestScheduler
|
|
9676
9693
|
*
|
|
9677
|
-
* @type {
|
|
9694
|
+
* @type {number}
|
|
9678
9695
|
* @default 20
|
|
9679
9696
|
* @private
|
|
9680
9697
|
*/
|
|
@@ -9706,9 +9723,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9706
9723
|
|
|
9707
9724
|
/**
|
|
9708
9725
|
* Check if there are open slots for a particular server key. If desiredRequests is greater than 1, this checks if the queue has room for scheduling multiple requests.
|
|
9709
|
-
* @param {
|
|
9710
|
-
* @param {
|
|
9711
|
-
* @return {
|
|
9726
|
+
* @param {string} serverKey The server key returned by {@link RequestScheduler.getServerKey}.
|
|
9727
|
+
* @param {number} [desiredRequests=1] How many requests the caller plans to request
|
|
9728
|
+
* @return {boolean} True if there are enough open slots for <code>desiredRequests</code> more requests.
|
|
9712
9729
|
* @private
|
|
9713
9730
|
*/
|
|
9714
9731
|
RequestScheduler.serverHasOpenSlots = function (serverKey, desiredRequests) {
|
|
@@ -9728,8 +9745,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9728
9745
|
* Check if the priority heap has open slots, regardless of which server they
|
|
9729
9746
|
* are from. This is used in {@link Multiple3DTileContent} for determining when
|
|
9730
9747
|
* all requests can be scheduled
|
|
9731
|
-
* @param {
|
|
9732
|
-
* @return {
|
|
9748
|
+
* @param {number} desiredRequests The number of requests the caller intends to make
|
|
9749
|
+
* @return {boolean} <code>true</code> if the heap has enough available slots to meet the desiredRequests. <code>false</code> otherwise.
|
|
9733
9750
|
*
|
|
9734
9751
|
* @private
|
|
9735
9752
|
*/
|
|
@@ -9890,8 +9907,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
9890
9907
|
/**
|
|
9891
9908
|
* Get the server key from a given url.
|
|
9892
9909
|
*
|
|
9893
|
-
* @param {
|
|
9894
|
-
* @returns {
|
|
9910
|
+
* @param {string} url The url.
|
|
9911
|
+
* @returns {string} The server key.
|
|
9895
9912
|
* @private
|
|
9896
9913
|
*/
|
|
9897
9914
|
RequestScheduler.getServerKey = function (url) {
|
|
@@ -10081,8 +10098,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10081
10098
|
/**
|
|
10082
10099
|
* Adds a trusted server to the registry
|
|
10083
10100
|
*
|
|
10084
|
-
* @param {
|
|
10085
|
-
* @param {
|
|
10101
|
+
* @param {string} host The host to be added.
|
|
10102
|
+
* @param {number} port The port used to access the host.
|
|
10086
10103
|
*
|
|
10087
10104
|
* @example
|
|
10088
10105
|
* // Add a trusted server
|
|
@@ -10107,8 +10124,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10107
10124
|
/**
|
|
10108
10125
|
* Removes a trusted server from the registry
|
|
10109
10126
|
*
|
|
10110
|
-
* @param {
|
|
10111
|
-
* @param {
|
|
10127
|
+
* @param {string} host The host to be removed.
|
|
10128
|
+
* @param {number} port The port used to access the host.
|
|
10112
10129
|
*
|
|
10113
10130
|
* @example
|
|
10114
10131
|
* // Remove a trusted server
|
|
@@ -10168,7 +10185,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10168
10185
|
/**
|
|
10169
10186
|
* Tests whether a server is trusted or not. The server must have been added with the port if it is included in the url.
|
|
10170
10187
|
*
|
|
10171
|
-
* @param {
|
|
10188
|
+
* @param {string} url The url to be tested against the trusted list
|
|
10172
10189
|
*
|
|
10173
10190
|
* @returns {boolean} Returns true if url is trusted, false otherwise.
|
|
10174
10191
|
*
|
|
@@ -10226,8 +10243,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10226
10243
|
*
|
|
10227
10244
|
* @param {Uri} uri The Uri with a query object.
|
|
10228
10245
|
* @param {Resource} resource The Resource that will be assigned queryParameters.
|
|
10229
|
-
* @param {
|
|
10230
|
-
* @param {
|
|
10246
|
+
* @param {boolean} merge If true, we'll merge with the resource's existing queryParameters. Otherwise they will be replaced.
|
|
10247
|
+
* @param {boolean} preserveQueryParameters If true duplicate parameters will be concatenated into an array. If false, keys in uri will take precedence.
|
|
10231
10248
|
*
|
|
10232
10249
|
* @private
|
|
10233
10250
|
*/
|
|
@@ -10320,11 +10337,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10320
10337
|
/**
|
|
10321
10338
|
* This combines a map of query parameters.
|
|
10322
10339
|
*
|
|
10323
|
-
* @param {
|
|
10324
|
-
* @param {
|
|
10325
|
-
* @param {
|
|
10340
|
+
* @param {object} q1 The first map of query parameters. Values in this map will take precedence if preserveQueryParameters is false.
|
|
10341
|
+
* @param {object} q2 The second map of query parameters.
|
|
10342
|
+
* @param {boolean} preserveQueryParameters If true duplicate parameters will be concatenated into an array. If false, keys in q1 will take precedence.
|
|
10326
10343
|
*
|
|
10327
|
-
* @returns {
|
|
10344
|
+
* @returns {object} The combined map of query parameters.
|
|
10328
10345
|
*
|
|
10329
10346
|
* @example
|
|
10330
10347
|
* const q1 = {
|
|
@@ -10400,17 +10417,17 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10400
10417
|
}
|
|
10401
10418
|
|
|
10402
10419
|
/**
|
|
10403
|
-
* @typedef {
|
|
10420
|
+
* @typedef {object} Resource.ConstructorOptions
|
|
10404
10421
|
*
|
|
10405
10422
|
* Initialization options for the Resource constructor
|
|
10406
10423
|
*
|
|
10407
|
-
* @property {
|
|
10408
|
-
* @property {
|
|
10409
|
-
* @property {
|
|
10410
|
-
* @property {
|
|
10424
|
+
* @property {string} url The url of the resource.
|
|
10425
|
+
* @property {object} [queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
10426
|
+
* @property {object} [templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
10427
|
+
* @property {object} [headers={}] Additional HTTP headers that will be sent.
|
|
10411
10428
|
* @property {Proxy} [proxy] A proxy to be used when loading the resource.
|
|
10412
10429
|
* @property {Resource.RetryCallback} [retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
10413
|
-
* @property {
|
|
10430
|
+
* @property {number} [retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
10414
10431
|
* @property {Request} [request] A Request object that will be used. Intended for internal use only.
|
|
10415
10432
|
*/
|
|
10416
10433
|
|
|
@@ -10420,7 +10437,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10420
10437
|
* @alias Resource
|
|
10421
10438
|
* @constructor
|
|
10422
10439
|
*
|
|
10423
|
-
* @param {
|
|
10440
|
+
* @param {string|Resource.ConstructorOptions} options A url or an object describing initialization options
|
|
10424
10441
|
*
|
|
10425
10442
|
* @example
|
|
10426
10443
|
* function refreshTokenRetryCallback(resource, error) {
|
|
@@ -10471,7 +10488,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10471
10488
|
/**
|
|
10472
10489
|
* Additional HTTP headers that will be sent with the request.
|
|
10473
10490
|
*
|
|
10474
|
-
* @type {
|
|
10491
|
+
* @type {object}
|
|
10475
10492
|
*/
|
|
10476
10493
|
this.headers = defaultClone(options.headers, {});
|
|
10477
10494
|
|
|
@@ -10499,7 +10516,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10499
10516
|
/**
|
|
10500
10517
|
* The number of times the retryCallback should be called before giving up.
|
|
10501
10518
|
*
|
|
10502
|
-
* @type {
|
|
10519
|
+
* @type {number}
|
|
10503
10520
|
*/
|
|
10504
10521
|
this.retryAttempts = defaultValue.defaultValue(options.retryAttempts, 0);
|
|
10505
10522
|
this._retryCount = 0;
|
|
@@ -10516,7 +10533,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10516
10533
|
/**
|
|
10517
10534
|
* A helper function to create a resource depending on whether we have a String or a Resource
|
|
10518
10535
|
*
|
|
10519
|
-
* @param {Resource|
|
|
10536
|
+
* @param {Resource|string} resource A Resource or a String to use when creating a new Resource.
|
|
10520
10537
|
*
|
|
10521
10538
|
* @returns {Resource} If resource is a String, a Resource constructed with the url and options. Otherwise the resource parameter is returned.
|
|
10522
10539
|
*
|
|
@@ -10546,7 +10563,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10546
10563
|
/**
|
|
10547
10564
|
* A helper function to check whether createImageBitmap supports passing ImageBitmapOptions.
|
|
10548
10565
|
*
|
|
10549
|
-
* @returns {Promise<
|
|
10566
|
+
* @returns {Promise<boolean>} A promise that resolves to true if this browser supports creating an ImageBitmap with options.
|
|
10550
10567
|
*
|
|
10551
10568
|
* @private
|
|
10552
10569
|
*/
|
|
@@ -10605,7 +10622,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10605
10622
|
* Returns true if blobs are supported.
|
|
10606
10623
|
*
|
|
10607
10624
|
* @memberof Resource
|
|
10608
|
-
* @type {
|
|
10625
|
+
* @type {boolean}
|
|
10609
10626
|
*
|
|
10610
10627
|
* @readonly
|
|
10611
10628
|
*/
|
|
@@ -10621,7 +10638,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10621
10638
|
* Query parameters appended to the url.
|
|
10622
10639
|
*
|
|
10623
10640
|
* @memberof Resource.prototype
|
|
10624
|
-
* @type {
|
|
10641
|
+
* @type {object}
|
|
10625
10642
|
*
|
|
10626
10643
|
* @readonly
|
|
10627
10644
|
*/
|
|
@@ -10635,7 +10652,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10635
10652
|
* The key/value pairs used to replace template parameters in the url.
|
|
10636
10653
|
*
|
|
10637
10654
|
* @memberof Resource.prototype
|
|
10638
|
-
* @type {
|
|
10655
|
+
* @type {object}
|
|
10639
10656
|
*
|
|
10640
10657
|
* @readonly
|
|
10641
10658
|
*/
|
|
@@ -10649,7 +10666,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10649
10666
|
* The url to the resource with template values replaced, query string appended and encoded by proxy if one was set.
|
|
10650
10667
|
*
|
|
10651
10668
|
* @memberof Resource.prototype
|
|
10652
|
-
* @type {
|
|
10669
|
+
* @type {string}
|
|
10653
10670
|
*/
|
|
10654
10671
|
url: {
|
|
10655
10672
|
get: function () {
|
|
@@ -10671,7 +10688,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10671
10688
|
* The file extension of the resource.
|
|
10672
10689
|
*
|
|
10673
10690
|
* @memberof Resource.prototype
|
|
10674
|
-
* @type {
|
|
10691
|
+
* @type {string}
|
|
10675
10692
|
*
|
|
10676
10693
|
* @readonly
|
|
10677
10694
|
*/
|
|
@@ -10685,7 +10702,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10685
10702
|
* True if the Resource refers to a data URI.
|
|
10686
10703
|
*
|
|
10687
10704
|
* @memberof Resource.prototype
|
|
10688
|
-
* @type {
|
|
10705
|
+
* @type {boolean}
|
|
10689
10706
|
*/
|
|
10690
10707
|
isDataUri: {
|
|
10691
10708
|
get: function () {
|
|
@@ -10697,7 +10714,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10697
10714
|
* True if the Resource refers to a blob URI.
|
|
10698
10715
|
*
|
|
10699
10716
|
* @memberof Resource.prototype
|
|
10700
|
-
* @type {
|
|
10717
|
+
* @type {boolean}
|
|
10701
10718
|
*/
|
|
10702
10719
|
isBlobUri: {
|
|
10703
10720
|
get: function () {
|
|
@@ -10709,7 +10726,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10709
10726
|
* True if the Resource refers to a cross origin URL.
|
|
10710
10727
|
*
|
|
10711
10728
|
* @memberof Resource.prototype
|
|
10712
|
-
* @type {
|
|
10729
|
+
* @type {boolean}
|
|
10713
10730
|
*/
|
|
10714
10731
|
isCrossOriginUrl: {
|
|
10715
10732
|
get: function () {
|
|
@@ -10721,7 +10738,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10721
10738
|
* True if the Resource has request headers. This is equivalent to checking if the headers property has any keys.
|
|
10722
10739
|
*
|
|
10723
10740
|
* @memberof Resource.prototype
|
|
10724
|
-
* @type {
|
|
10741
|
+
* @type {boolean}
|
|
10725
10742
|
*/
|
|
10726
10743
|
hasHeaders: {
|
|
10727
10744
|
get: function () {
|
|
@@ -10734,7 +10751,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10734
10751
|
* Override Object#toString so that implicit string conversion gives the
|
|
10735
10752
|
* complete URL represented by this Resource.
|
|
10736
10753
|
*
|
|
10737
|
-
* @returns {
|
|
10754
|
+
* @returns {string} The URL represented by this Resource
|
|
10738
10755
|
*/
|
|
10739
10756
|
Resource.prototype.toString = function () {
|
|
10740
10757
|
return this.getUrlComponent(true, true);
|
|
@@ -10743,10 +10760,10 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10743
10760
|
/**
|
|
10744
10761
|
* Returns the url, optional with the query string and processed by a proxy.
|
|
10745
10762
|
*
|
|
10746
|
-
* @param {
|
|
10747
|
-
* @param {
|
|
10763
|
+
* @param {boolean} [query=false] If true, the query string is included.
|
|
10764
|
+
* @param {boolean} [proxy=false] If true, the url is processed by the proxy object, if defined.
|
|
10748
10765
|
*
|
|
10749
|
-
* @returns {
|
|
10766
|
+
* @returns {string} The url with all the requested components.
|
|
10750
10767
|
*/
|
|
10751
10768
|
Resource.prototype.getUrlComponent = function (query, proxy) {
|
|
10752
10769
|
if (this.isDataUri) {
|
|
@@ -10783,8 +10800,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10783
10800
|
* Combines the specified object and the existing query parameters. This allows you to add many parameters at once,
|
|
10784
10801
|
* as opposed to adding them one at a time to the queryParameters property. If a value is already set, it will be replaced with the new value.
|
|
10785
10802
|
*
|
|
10786
|
-
* @param {
|
|
10787
|
-
* @param {
|
|
10803
|
+
* @param {object} params The query parameters
|
|
10804
|
+
* @param {boolean} [useAsDefault=false] If true the params will be used as the default values, so they will only be set if they are undefined.
|
|
10788
10805
|
*/
|
|
10789
10806
|
Resource.prototype.setQueryParameters = function (params, useAsDefault) {
|
|
10790
10807
|
if (useAsDefault) {
|
|
@@ -10806,7 +10823,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10806
10823
|
* Combines the specified object and the existing query parameters. This allows you to add many parameters at once,
|
|
10807
10824
|
* as opposed to adding them one at a time to the queryParameters property.
|
|
10808
10825
|
*
|
|
10809
|
-
* @param {
|
|
10826
|
+
* @param {object} params The query parameters
|
|
10810
10827
|
*/
|
|
10811
10828
|
Resource.prototype.appendQueryParameters = function (params) {
|
|
10812
10829
|
this._queryParameters = combineQueryParameters(
|
|
@@ -10820,8 +10837,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10820
10837
|
* Combines the specified object and the existing template values. This allows you to add many values at once,
|
|
10821
10838
|
* as opposed to adding them one at a time to the templateValues property. If a value is already set, it will become an array and the new value will be appended.
|
|
10822
10839
|
*
|
|
10823
|
-
* @param {
|
|
10824
|
-
* @param {
|
|
10840
|
+
* @param {object} template The template values
|
|
10841
|
+
* @param {boolean} [useAsDefault=false] If true the values will be used as the default values, so they will only be set if they are undefined.
|
|
10825
10842
|
*/
|
|
10826
10843
|
Resource.prototype.setTemplateValues = function (template, useAsDefault) {
|
|
10827
10844
|
if (useAsDefault) {
|
|
@@ -10834,16 +10851,16 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10834
10851
|
/**
|
|
10835
10852
|
* Returns a resource relative to the current instance. All properties remain the same as the current instance unless overridden in options.
|
|
10836
10853
|
*
|
|
10837
|
-
* @param {
|
|
10838
|
-
* @param {
|
|
10839
|
-
* @param {
|
|
10840
|
-
* @param {
|
|
10841
|
-
* @param {
|
|
10854
|
+
* @param {object} options An object with the following properties
|
|
10855
|
+
* @param {string} [options.url] The url that will be resolved relative to the url of the current instance.
|
|
10856
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be combined with those of the current instance.
|
|
10857
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}). These will be combined with those of the current instance.
|
|
10858
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
10842
10859
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
10843
10860
|
* @param {Resource.RetryCallback} [options.retryCallback] The function to call when loading the resource fails.
|
|
10844
|
-
* @param {
|
|
10861
|
+
* @param {number} [options.retryAttempts] The number of times the retryCallback should be called before giving up.
|
|
10845
10862
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
10846
|
-
* @param {
|
|
10863
|
+
* @param {boolean} [options.preserveQueryParameters=false] If true, this will keep all query parameters from the current resource and derived resource. If false, derived parameters will replace those of the current resource.
|
|
10847
10864
|
*
|
|
10848
10865
|
* @returns {Resource} The resource derived from the current one.
|
|
10849
10866
|
*/
|
|
@@ -10908,7 +10925,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10908
10925
|
*
|
|
10909
10926
|
* @param {Error} [error] The error that was encountered.
|
|
10910
10927
|
*
|
|
10911
|
-
* @returns {Promise<
|
|
10928
|
+
* @returns {Promise<boolean>} A promise to a boolean, that if true will cause the resource request to be retried.
|
|
10912
10929
|
*
|
|
10913
10930
|
* @private
|
|
10914
10931
|
*/
|
|
@@ -10959,9 +10976,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10959
10976
|
/**
|
|
10960
10977
|
* Returns the base path of the Resource.
|
|
10961
10978
|
*
|
|
10962
|
-
* @param {
|
|
10979
|
+
* @param {boolean} [includeQuery = false] Whether or not to include the query string and fragment form the uri
|
|
10963
10980
|
*
|
|
10964
|
-
* @returns {
|
|
10981
|
+
* @returns {string} The base URI of the resource
|
|
10965
10982
|
*/
|
|
10966
10983
|
Resource.prototype.getBaseUri = function (includeQuery) {
|
|
10967
10984
|
return getBaseUri(this.getUrlComponent(includeQuery), includeQuery);
|
|
@@ -10980,7 +10997,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
10980
10997
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
10981
10998
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
10982
10999
|
*
|
|
10983
|
-
* @returns {Promise
|
|
11000
|
+
* @returns {Promise<ArrayBuffer>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
10984
11001
|
*
|
|
10985
11002
|
* @example
|
|
10986
11003
|
* // load a single URL asynchronously
|
|
@@ -11002,16 +11019,16 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11002
11019
|
/**
|
|
11003
11020
|
* Creates a Resource and calls fetchArrayBuffer() on it.
|
|
11004
11021
|
*
|
|
11005
|
-
* @param {
|
|
11006
|
-
* @param {
|
|
11007
|
-
* @param {
|
|
11008
|
-
* @param {
|
|
11009
|
-
* @param {
|
|
11022
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11023
|
+
* @param {string} options.url The url of the resource.
|
|
11024
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11025
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11026
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11010
11027
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11011
11028
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11012
|
-
* @param {
|
|
11029
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11013
11030
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11014
|
-
* @returns {Promise
|
|
11031
|
+
* @returns {Promise<ArrayBuffer>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11015
11032
|
*/
|
|
11016
11033
|
Resource.fetchArrayBuffer = function (options) {
|
|
11017
11034
|
const resource = new Resource(options);
|
|
@@ -11024,7 +11041,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11024
11041
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11025
11042
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11026
11043
|
*
|
|
11027
|
-
* @returns {Promise
|
|
11044
|
+
* @returns {Promise<Blob>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11028
11045
|
*
|
|
11029
11046
|
* @example
|
|
11030
11047
|
* // load a single URL asynchronously
|
|
@@ -11046,16 +11063,16 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11046
11063
|
/**
|
|
11047
11064
|
* Creates a Resource and calls fetchBlob() on it.
|
|
11048
11065
|
*
|
|
11049
|
-
* @param {
|
|
11050
|
-
* @param {
|
|
11051
|
-
* @param {
|
|
11052
|
-
* @param {
|
|
11053
|
-
* @param {
|
|
11066
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11067
|
+
* @param {string} options.url The url of the resource.
|
|
11068
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11069
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11070
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11054
11071
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11055
11072
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11056
|
-
* @param {
|
|
11073
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11057
11074
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11058
|
-
* @returns {Promise
|
|
11075
|
+
* @returns {Promise<Blob>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11059
11076
|
*/
|
|
11060
11077
|
Resource.fetchBlob = function (options) {
|
|
11061
11078
|
const resource = new Resource(options);
|
|
@@ -11067,12 +11084,12 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11067
11084
|
* an {@link https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap|ImageBitmap} if <code>preferImageBitmap</code> is true and the browser supports <code>createImageBitmap</code> or otherwise an
|
|
11068
11085
|
* {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement|Image} once loaded, or reject if the image failed to load.
|
|
11069
11086
|
*
|
|
11070
|
-
* @param {
|
|
11071
|
-
* @param {
|
|
11072
|
-
* @param {
|
|
11073
|
-
* @param {
|
|
11074
|
-
* @param {
|
|
11075
|
-
* @returns {Promise
|
|
11087
|
+
* @param {object} [options] An object with the following properties.
|
|
11088
|
+
* @param {boolean} [options.preferBlob=false] If true, we will load the image via a blob.
|
|
11089
|
+
* @param {boolean} [options.preferImageBitmap=false] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
|
|
11090
|
+
* @param {boolean} [options.flipY=false] If true, image will be vertically flipped during decode. Only applies if the browser supports <code>createImageBitmap</code>.
|
|
11091
|
+
* @param {boolean} [options.skipColorSpaceConversion=false] If true, any custom gamma or color profiles in the image will be ignored. Only applies if the browser supports <code>createImageBitmap</code>.
|
|
11092
|
+
* @returns {Promise<ImageBitmap|HTMLImageElement>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11076
11093
|
*
|
|
11077
11094
|
*
|
|
11078
11095
|
* @example
|
|
@@ -11194,11 +11211,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11194
11211
|
/**
|
|
11195
11212
|
* Fetches an image and returns a promise to it.
|
|
11196
11213
|
*
|
|
11197
|
-
* @param {
|
|
11214
|
+
* @param {object} [options] An object with the following properties.
|
|
11198
11215
|
* @param {Resource} [options.resource] Resource object that points to an image to fetch.
|
|
11199
|
-
* @param {
|
|
11200
|
-
* @param {
|
|
11201
|
-
* @param {
|
|
11216
|
+
* @param {boolean} [options.preferImageBitmap] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
|
|
11217
|
+
* @param {boolean} [options.flipY] If true, image will be vertically flipped during decode. Only applies if the browser supports <code>createImageBitmap</code>.
|
|
11218
|
+
* @param {boolean} [options.skipColorSpaceConversion=false] If true, any custom gamma or color profiles in the image will be ignored. Only applies if the browser supports <code>createImageBitmap</code>.
|
|
11202
11219
|
* @private
|
|
11203
11220
|
*/
|
|
11204
11221
|
function fetchImage(options) {
|
|
@@ -11261,20 +11278,20 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11261
11278
|
/**
|
|
11262
11279
|
* Creates a Resource and calls fetchImage() on it.
|
|
11263
11280
|
*
|
|
11264
|
-
* @param {
|
|
11265
|
-
* @param {
|
|
11266
|
-
* @param {
|
|
11267
|
-
* @param {
|
|
11268
|
-
* @param {
|
|
11281
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11282
|
+
* @param {string} options.url The url of the resource.
|
|
11283
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11284
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11285
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11269
11286
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11270
|
-
* @param {
|
|
11287
|
+
* @param {boolean} [options.flipY=false] Whether to vertically flip the image during fetch and decode. Only applies when requesting an image and the browser supports <code>createImageBitmap</code>.
|
|
11271
11288
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11272
|
-
* @param {
|
|
11289
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11273
11290
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11274
|
-
* @param {
|
|
11275
|
-
* @param {
|
|
11276
|
-
* @param {
|
|
11277
|
-
* @returns {Promise
|
|
11291
|
+
* @param {boolean} [options.preferBlob=false] If true, we will load the image via a blob.
|
|
11292
|
+
* @param {boolean} [options.preferImageBitmap=false] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
|
|
11293
|
+
* @param {boolean} [options.skipColorSpaceConversion=false] If true, any custom gamma or color profiles in the image will be ignored. Only applies when requesting an image and the browser supports <code>createImageBitmap</code>.
|
|
11294
|
+
* @returns {Promise<ImageBitmap|HTMLImageElement>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11278
11295
|
*/
|
|
11279
11296
|
Resource.fetchImage = function (options) {
|
|
11280
11297
|
const resource = new Resource(options);
|
|
@@ -11292,7 +11309,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11292
11309
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11293
11310
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11294
11311
|
*
|
|
11295
|
-
* @returns {Promise
|
|
11312
|
+
* @returns {Promise<string>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11296
11313
|
*
|
|
11297
11314
|
* @example
|
|
11298
11315
|
* // load text from a URL, setting a custom header
|
|
@@ -11321,16 +11338,16 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11321
11338
|
/**
|
|
11322
11339
|
* Creates a Resource and calls fetchText() on it.
|
|
11323
11340
|
*
|
|
11324
|
-
* @param {
|
|
11325
|
-
* @param {
|
|
11326
|
-
* @param {
|
|
11327
|
-
* @param {
|
|
11328
|
-
* @param {
|
|
11341
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11342
|
+
* @param {string} options.url The url of the resource.
|
|
11343
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11344
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11345
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11329
11346
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11330
11347
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11331
|
-
* @param {
|
|
11348
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11332
11349
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11333
|
-
* @returns {Promise
|
|
11350
|
+
* @returns {Promise<string>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11334
11351
|
*/
|
|
11335
11352
|
Resource.fetchText = function (options) {
|
|
11336
11353
|
const resource = new Resource(options);
|
|
@@ -11346,7 +11363,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11346
11363
|
* adds 'Accept: application/json,*/*;q=0.01' to the request headers, if not
|
|
11347
11364
|
* already specified.
|
|
11348
11365
|
*
|
|
11349
|
-
* @returns {Promise
|
|
11366
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11350
11367
|
*
|
|
11351
11368
|
*
|
|
11352
11369
|
* @example
|
|
@@ -11382,16 +11399,16 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11382
11399
|
/**
|
|
11383
11400
|
* Creates a Resource and calls fetchJson() on it.
|
|
11384
11401
|
*
|
|
11385
|
-
* @param {
|
|
11386
|
-
* @param {
|
|
11387
|
-
* @param {
|
|
11388
|
-
* @param {
|
|
11389
|
-
* @param {
|
|
11402
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11403
|
+
* @param {string} options.url The url of the resource.
|
|
11404
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11405
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11406
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11390
11407
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11391
11408
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11392
|
-
* @param {
|
|
11409
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11393
11410
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11394
|
-
* @returns {Promise
|
|
11411
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11395
11412
|
*/
|
|
11396
11413
|
Resource.fetchJson = function (options) {
|
|
11397
11414
|
const resource = new Resource(options);
|
|
@@ -11404,7 +11421,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11404
11421
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11405
11422
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11406
11423
|
*
|
|
11407
|
-
* @returns {Promise
|
|
11424
|
+
* @returns {Promise<XMLDocument>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11408
11425
|
*
|
|
11409
11426
|
*
|
|
11410
11427
|
* @example
|
|
@@ -11431,16 +11448,16 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11431
11448
|
/**
|
|
11432
11449
|
* Creates a Resource and calls fetchXML() on it.
|
|
11433
11450
|
*
|
|
11434
|
-
* @param {
|
|
11435
|
-
* @param {
|
|
11436
|
-
* @param {
|
|
11437
|
-
* @param {
|
|
11438
|
-
* @param {
|
|
11451
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11452
|
+
* @param {string} options.url The url of the resource.
|
|
11453
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11454
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11455
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11439
11456
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11440
11457
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11441
|
-
* @param {
|
|
11458
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11442
11459
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11443
|
-
* @returns {Promise
|
|
11460
|
+
* @returns {Promise<XMLDocument>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11444
11461
|
*/
|
|
11445
11462
|
Resource.fetchXML = function (options) {
|
|
11446
11463
|
const resource = new Resource(options);
|
|
@@ -11450,8 +11467,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11450
11467
|
/**
|
|
11451
11468
|
* Requests a resource using JSONP.
|
|
11452
11469
|
*
|
|
11453
|
-
* @param {
|
|
11454
|
-
* @returns {Promise
|
|
11470
|
+
* @param {string} [callbackParameterName='callback'] The callback parameter name that the server expects.
|
|
11471
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11455
11472
|
*
|
|
11456
11473
|
*
|
|
11457
11474
|
* @example
|
|
@@ -11536,17 +11553,17 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11536
11553
|
/**
|
|
11537
11554
|
* Creates a Resource from a URL and calls fetchJsonp() on it.
|
|
11538
11555
|
*
|
|
11539
|
-
* @param {
|
|
11540
|
-
* @param {
|
|
11541
|
-
* @param {
|
|
11542
|
-
* @param {
|
|
11543
|
-
* @param {
|
|
11556
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11557
|
+
* @param {string} options.url The url of the resource.
|
|
11558
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11559
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11560
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11544
11561
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11545
11562
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11546
|
-
* @param {
|
|
11563
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11547
11564
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11548
|
-
* @param {
|
|
11549
|
-
* @returns {Promise
|
|
11565
|
+
* @param {string} [options.callbackParameterName='callback'] The callback parameter name that the server expects.
|
|
11566
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11550
11567
|
*/
|
|
11551
11568
|
Resource.fetchJsonp = function (options) {
|
|
11552
11569
|
const resource = new Resource(options);
|
|
@@ -11679,11 +11696,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11679
11696
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled. It's recommended that you use
|
|
11680
11697
|
* the more specific functions eg. fetchJson, fetchBlob, etc.
|
|
11681
11698
|
*
|
|
11682
|
-
* @param {
|
|
11683
|
-
* @param {
|
|
11684
|
-
* @param {
|
|
11685
|
-
* @param {
|
|
11686
|
-
* @returns {Promise
|
|
11699
|
+
* @param {object} [options] Object with the following properties:
|
|
11700
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11701
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
11702
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11703
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11687
11704
|
*
|
|
11688
11705
|
*
|
|
11689
11706
|
* @example
|
|
@@ -11707,18 +11724,18 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11707
11724
|
/**
|
|
11708
11725
|
* Creates a Resource from a URL and calls fetch() on it.
|
|
11709
11726
|
*
|
|
11710
|
-
* @param {
|
|
11711
|
-
* @param {
|
|
11712
|
-
* @param {
|
|
11713
|
-
* @param {
|
|
11714
|
-
* @param {
|
|
11727
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11728
|
+
* @param {string} options.url The url of the resource.
|
|
11729
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11730
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11731
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11715
11732
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11716
11733
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11717
|
-
* @param {
|
|
11734
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11718
11735
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11719
|
-
* @param {
|
|
11720
|
-
* @param {
|
|
11721
|
-
* @returns {Promise
|
|
11736
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11737
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11738
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11722
11739
|
*/
|
|
11723
11740
|
Resource.fetch = function (options) {
|
|
11724
11741
|
const resource = new Resource(options);
|
|
@@ -11735,11 +11752,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11735
11752
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11736
11753
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11737
11754
|
*
|
|
11738
|
-
* @param {
|
|
11739
|
-
* @param {
|
|
11740
|
-
* @param {
|
|
11741
|
-
* @param {
|
|
11742
|
-
* @returns {Promise
|
|
11755
|
+
* @param {object} [options] Object with the following properties:
|
|
11756
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11757
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
11758
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11759
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11743
11760
|
*
|
|
11744
11761
|
*
|
|
11745
11762
|
* @example
|
|
@@ -11763,19 +11780,19 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11763
11780
|
/**
|
|
11764
11781
|
* Creates a Resource from a URL and calls delete() on it.
|
|
11765
11782
|
*
|
|
11766
|
-
* @param {
|
|
11767
|
-
* @param {
|
|
11768
|
-
* @param {
|
|
11769
|
-
* @param {
|
|
11770
|
-
* @param {
|
|
11771
|
-
* @param {
|
|
11783
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11784
|
+
* @param {string} options.url The url of the resource.
|
|
11785
|
+
* @param {object} [options.data] Data that is posted with the resource.
|
|
11786
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11787
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11788
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11772
11789
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11773
11790
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11774
|
-
* @param {
|
|
11791
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11775
11792
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11776
|
-
* @param {
|
|
11777
|
-
* @param {
|
|
11778
|
-
* @returns {Promise
|
|
11793
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11794
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11795
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11779
11796
|
*/
|
|
11780
11797
|
Resource.delete = function (options) {
|
|
11781
11798
|
const resource = new Resource(options);
|
|
@@ -11793,11 +11810,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11793
11810
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11794
11811
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11795
11812
|
*
|
|
11796
|
-
* @param {
|
|
11797
|
-
* @param {
|
|
11798
|
-
* @param {
|
|
11799
|
-
* @param {
|
|
11800
|
-
* @returns {Promise
|
|
11813
|
+
* @param {object} [options] Object with the following properties:
|
|
11814
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11815
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
11816
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11817
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11801
11818
|
*
|
|
11802
11819
|
*
|
|
11803
11820
|
* @example
|
|
@@ -11821,18 +11838,18 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11821
11838
|
/**
|
|
11822
11839
|
* Creates a Resource from a URL and calls head() on it.
|
|
11823
11840
|
*
|
|
11824
|
-
* @param {
|
|
11825
|
-
* @param {
|
|
11826
|
-
* @param {
|
|
11827
|
-
* @param {
|
|
11828
|
-
* @param {
|
|
11841
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11842
|
+
* @param {string} options.url The url of the resource.
|
|
11843
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11844
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11845
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11829
11846
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11830
11847
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11831
|
-
* @param {
|
|
11848
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11832
11849
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11833
|
-
* @param {
|
|
11834
|
-
* @param {
|
|
11835
|
-
* @returns {Promise
|
|
11850
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11851
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11852
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11836
11853
|
*/
|
|
11837
11854
|
Resource.head = function (options) {
|
|
11838
11855
|
const resource = new Resource(options);
|
|
@@ -11849,11 +11866,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11849
11866
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11850
11867
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11851
11868
|
*
|
|
11852
|
-
* @param {
|
|
11853
|
-
* @param {
|
|
11854
|
-
* @param {
|
|
11855
|
-
* @param {
|
|
11856
|
-
* @returns {Promise
|
|
11869
|
+
* @param {object} [options] Object with the following properties:
|
|
11870
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11871
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
11872
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11873
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11857
11874
|
*
|
|
11858
11875
|
*
|
|
11859
11876
|
* @example
|
|
@@ -11877,18 +11894,18 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11877
11894
|
/**
|
|
11878
11895
|
* Creates a Resource from a URL and calls options() on it.
|
|
11879
11896
|
*
|
|
11880
|
-
* @param {
|
|
11881
|
-
* @param {
|
|
11882
|
-
* @param {
|
|
11883
|
-
* @param {
|
|
11884
|
-
* @param {
|
|
11897
|
+
* @param {string|object} options A url or an object with the following properties
|
|
11898
|
+
* @param {string} options.url The url of the resource.
|
|
11899
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11900
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11901
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11885
11902
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11886
11903
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11887
|
-
* @param {
|
|
11904
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11888
11905
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11889
|
-
* @param {
|
|
11890
|
-
* @param {
|
|
11891
|
-
* @returns {Promise
|
|
11906
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11907
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11908
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11892
11909
|
*/
|
|
11893
11910
|
Resource.options = function (options) {
|
|
11894
11911
|
const resource = new Resource(options);
|
|
@@ -11905,13 +11922,13 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11905
11922
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11906
11923
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11907
11924
|
*
|
|
11908
|
-
* @param {
|
|
11909
|
-
* @param {
|
|
11910
|
-
* @param {
|
|
11911
|
-
* @param {
|
|
11912
|
-
* @param {
|
|
11913
|
-
* @param {
|
|
11914
|
-
* @returns {Promise
|
|
11925
|
+
* @param {object} data Data that is posted with the resource.
|
|
11926
|
+
* @param {object} [options] Object with the following properties:
|
|
11927
|
+
* @param {object} [options.data] Data that is posted with the resource.
|
|
11928
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11929
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
11930
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11931
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11915
11932
|
*
|
|
11916
11933
|
*
|
|
11917
11934
|
* @example
|
|
@@ -11938,19 +11955,19 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11938
11955
|
/**
|
|
11939
11956
|
* Creates a Resource from a URL and calls post() on it.
|
|
11940
11957
|
*
|
|
11941
|
-
* @param {
|
|
11942
|
-
* @param {
|
|
11943
|
-
* @param {
|
|
11944
|
-
* @param {
|
|
11945
|
-
* @param {
|
|
11946
|
-
* @param {
|
|
11958
|
+
* @param {object} options A url or an object with the following properties
|
|
11959
|
+
* @param {string} options.url The url of the resource.
|
|
11960
|
+
* @param {object} options.data Data that is posted with the resource.
|
|
11961
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
11962
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
11963
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
11947
11964
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
11948
11965
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
11949
|
-
* @param {
|
|
11966
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
11950
11967
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
11951
|
-
* @param {
|
|
11952
|
-
* @param {
|
|
11953
|
-
* @returns {Promise
|
|
11968
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11969
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11970
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11954
11971
|
*/
|
|
11955
11972
|
Resource.post = function (options) {
|
|
11956
11973
|
const resource = new Resource(options);
|
|
@@ -11967,12 +11984,12 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11967
11984
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
11968
11985
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
11969
11986
|
*
|
|
11970
|
-
* @param {
|
|
11971
|
-
* @param {
|
|
11972
|
-
* @param {
|
|
11973
|
-
* @param {
|
|
11974
|
-
* @param {
|
|
11975
|
-
* @returns {Promise
|
|
11987
|
+
* @param {object} data Data that is posted with the resource.
|
|
11988
|
+
* @param {object} [options] Object with the following properties:
|
|
11989
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
11990
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
11991
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
11992
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
11976
11993
|
*
|
|
11977
11994
|
*
|
|
11978
11995
|
* @example
|
|
@@ -11999,19 +12016,19 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
11999
12016
|
/**
|
|
12000
12017
|
* Creates a Resource from a URL and calls put() on it.
|
|
12001
12018
|
*
|
|
12002
|
-
* @param {
|
|
12003
|
-
* @param {
|
|
12004
|
-
* @param {
|
|
12005
|
-
* @param {
|
|
12006
|
-
* @param {
|
|
12007
|
-
* @param {
|
|
12019
|
+
* @param {object} options A url or an object with the following properties
|
|
12020
|
+
* @param {string} options.url The url of the resource.
|
|
12021
|
+
* @param {object} options.data Data that is posted with the resource.
|
|
12022
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
12023
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
12024
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
12008
12025
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
12009
12026
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
12010
|
-
* @param {
|
|
12027
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
12011
12028
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
12012
|
-
* @param {
|
|
12013
|
-
* @param {
|
|
12014
|
-
* @returns {Promise
|
|
12029
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
12030
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
12031
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
12015
12032
|
*/
|
|
12016
12033
|
Resource.put = function (options) {
|
|
12017
12034
|
const resource = new Resource(options);
|
|
@@ -12028,12 +12045,12 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12028
12045
|
* using XMLHttpRequest, which means that in order to make requests to another origin,
|
|
12029
12046
|
* the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
|
|
12030
12047
|
*
|
|
12031
|
-
* @param {
|
|
12032
|
-
* @param {
|
|
12033
|
-
* @param {
|
|
12034
|
-
* @param {
|
|
12035
|
-
* @param {
|
|
12036
|
-
* @returns {Promise
|
|
12048
|
+
* @param {object} data Data that is posted with the resource.
|
|
12049
|
+
* @param {object} [options] Object with the following properties:
|
|
12050
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
12051
|
+
* @param {object} [options.headers] Additional HTTP headers to send with the request, if any.
|
|
12052
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
12053
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
12037
12054
|
*
|
|
12038
12055
|
*
|
|
12039
12056
|
* @example
|
|
@@ -12060,19 +12077,19 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12060
12077
|
/**
|
|
12061
12078
|
* Creates a Resource from a URL and calls patch() on it.
|
|
12062
12079
|
*
|
|
12063
|
-
* @param {
|
|
12064
|
-
* @param {
|
|
12065
|
-
* @param {
|
|
12066
|
-
* @param {
|
|
12067
|
-
* @param {
|
|
12068
|
-
* @param {
|
|
12080
|
+
* @param {object} options A url or an object with the following properties
|
|
12081
|
+
* @param {string} options.url The url of the resource.
|
|
12082
|
+
* @param {object} options.data Data that is posted with the resource.
|
|
12083
|
+
* @param {object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
|
|
12084
|
+
* @param {object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
|
|
12085
|
+
* @param {object} [options.headers={}] Additional HTTP headers that will be sent.
|
|
12069
12086
|
* @param {Proxy} [options.proxy] A proxy to be used when loading the resource.
|
|
12070
12087
|
* @param {Resource.RetryCallback} [options.retryCallback] The Function to call when a request for this resource fails. If it returns true, the request will be retried.
|
|
12071
|
-
* @param {
|
|
12088
|
+
* @param {number} [options.retryAttempts=0] The number of times the retryCallback should be called before giving up.
|
|
12072
12089
|
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
|
|
12073
|
-
* @param {
|
|
12074
|
-
* @param {
|
|
12075
|
-
* @returns {Promise
|
|
12090
|
+
* @param {string} [options.responseType] The type of response. This controls the type of item returned.
|
|
12091
|
+
* @param {string} [options.overrideMimeType] Overrides the MIME type returned by the server.
|
|
12092
|
+
* @returns {Promise<any>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
|
|
12076
12093
|
*/
|
|
12077
12094
|
Resource.patch = function (options) {
|
|
12078
12095
|
const resource = new Resource(options);
|
|
@@ -12246,12 +12263,12 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12246
12263
|
// Note: only the 'json' and 'text' responseTypes transforms the loaded buffer
|
|
12247
12264
|
let URL;
|
|
12248
12265
|
let zlib;
|
|
12249
|
-
Promise.all([new Promise(function (resolve, reject) { require(['url'], function (m) { resolve(/*#__PURE__*/
|
|
12266
|
+
Promise.all([new Promise(function (resolve, reject) { require(['url'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }), new Promise(function (resolve, reject) { require(['zlib'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); })])
|
|
12250
12267
|
.then(([urlImport, zlibImport]) => {
|
|
12251
12268
|
URL = urlImport.parse(url);
|
|
12252
12269
|
zlib = zlibImport;
|
|
12253
12270
|
|
|
12254
|
-
return URL.protocol === "https:" ? new Promise(function (resolve, reject) { require(['https'], function (m) { resolve(/*#__PURE__*/
|
|
12271
|
+
return URL.protocol === "https:" ? new Promise(function (resolve, reject) { require(['https'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); }) : new Promise(function (resolve, reject) { require(['http'], function (m) { resolve(/*#__PURE__*/_interopNamespaceDefault(m)); }, reject); });
|
|
12255
12272
|
})
|
|
12256
12273
|
.then((http) => {
|
|
12257
12274
|
const options = {
|
|
@@ -12489,11 +12506,11 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12489
12506
|
* @alias EarthOrientationParameters
|
|
12490
12507
|
* @constructor
|
|
12491
12508
|
*
|
|
12492
|
-
* @param {
|
|
12493
|
-
* @param {
|
|
12509
|
+
* @param {object} [options] Object with the following properties:
|
|
12510
|
+
* @param {object} [options.data] The actual EOP data. If neither this
|
|
12494
12511
|
* parameter nor options.data is specified, all EOP values are assumed
|
|
12495
12512
|
* to be 0.0.
|
|
12496
|
-
* @param {
|
|
12513
|
+
* @param {boolean} [options.addNewLeapSeconds=true] True if leap seconds that
|
|
12497
12514
|
* are specified in the EOP data but not in {@link JulianDate.leapSeconds}
|
|
12498
12515
|
* should be added to {@link JulianDate.leapSeconds}. False if
|
|
12499
12516
|
* new leap seconds should be handled correctly in the context
|
|
@@ -12544,12 +12561,12 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12544
12561
|
|
|
12545
12562
|
/**
|
|
12546
12563
|
*
|
|
12547
|
-
* @param {Resource|
|
|
12564
|
+
* @param {Resource|string} [url] The URL from which to obtain EOP data. If neither this
|
|
12548
12565
|
* parameter nor options.data is specified, all EOP values are assumed
|
|
12549
12566
|
* to be 0.0. If options.data is specified, this parameter is
|
|
12550
12567
|
* ignored.
|
|
12551
|
-
* @param {
|
|
12552
|
-
* @param {
|
|
12568
|
+
* @param {object} [options] Object with the following properties:
|
|
12569
|
+
* @param {boolean} [options.addNewLeapSeconds=true] True if leap seconds that
|
|
12553
12570
|
* are specified in the EOP data but not in {@link JulianDate.leapSeconds}
|
|
12554
12571
|
* should be added to {@link JulianDate.leapSeconds}. False if
|
|
12555
12572
|
* new leap seconds should be handled correctly in the context
|
|
@@ -12908,26 +12925,26 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12908
12925
|
* @alias HeadingPitchRoll
|
|
12909
12926
|
* @constructor
|
|
12910
12927
|
*
|
|
12911
|
-
* @param {
|
|
12912
|
-
* @param {
|
|
12913
|
-
* @param {
|
|
12928
|
+
* @param {number} [heading=0.0] The heading component in radians.
|
|
12929
|
+
* @param {number} [pitch=0.0] The pitch component in radians.
|
|
12930
|
+
* @param {number} [roll=0.0] The roll component in radians.
|
|
12914
12931
|
*/
|
|
12915
12932
|
function HeadingPitchRoll(heading, pitch, roll) {
|
|
12916
12933
|
/**
|
|
12917
12934
|
* Gets or sets the heading.
|
|
12918
|
-
* @type {
|
|
12935
|
+
* @type {number}
|
|
12919
12936
|
* @default 0.0
|
|
12920
12937
|
*/
|
|
12921
12938
|
this.heading = defaultValue.defaultValue(heading, 0.0);
|
|
12922
12939
|
/**
|
|
12923
12940
|
* Gets or sets the pitch.
|
|
12924
|
-
* @type {
|
|
12941
|
+
* @type {number}
|
|
12925
12942
|
* @default 0.0
|
|
12926
12943
|
*/
|
|
12927
12944
|
this.pitch = defaultValue.defaultValue(pitch, 0.0);
|
|
12928
12945
|
/**
|
|
12929
12946
|
* Gets or sets the roll.
|
|
12930
|
-
* @type {
|
|
12947
|
+
* @type {number}
|
|
12931
12948
|
* @default 0.0
|
|
12932
12949
|
*/
|
|
12933
12950
|
this.roll = defaultValue.defaultValue(roll, 0.0);
|
|
@@ -12967,9 +12984,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
12967
12984
|
/**
|
|
12968
12985
|
* Returns a new HeadingPitchRoll instance from angles given in degrees.
|
|
12969
12986
|
*
|
|
12970
|
-
* @param {
|
|
12971
|
-
* @param {
|
|
12972
|
-
* @param {
|
|
12987
|
+
* @param {number} heading the heading in degrees
|
|
12988
|
+
* @param {number} pitch the pitch in degrees
|
|
12989
|
+
* @param {number} roll the heading in degrees
|
|
12973
12990
|
* @param {HeadingPitchRoll} [result] The object in which to store the result. If not provided, a new instance is created and returned.
|
|
12974
12991
|
* @returns {HeadingPitchRoll} A new HeadingPitchRoll instance
|
|
12975
12992
|
*/
|
|
@@ -13024,7 +13041,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13024
13041
|
*
|
|
13025
13042
|
* @param {HeadingPitchRoll} [left] The first HeadingPitchRoll.
|
|
13026
13043
|
* @param {HeadingPitchRoll} [right] The second HeadingPitchRoll.
|
|
13027
|
-
* @returns {
|
|
13044
|
+
* @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
13028
13045
|
*/
|
|
13029
13046
|
HeadingPitchRoll.equals = function (left, right) {
|
|
13030
13047
|
return (
|
|
@@ -13044,9 +13061,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13044
13061
|
*
|
|
13045
13062
|
* @param {HeadingPitchRoll} [left] The first HeadingPitchRoll.
|
|
13046
13063
|
* @param {HeadingPitchRoll} [right] The second HeadingPitchRoll.
|
|
13047
|
-
* @param {
|
|
13048
|
-
* @param {
|
|
13049
|
-
* @returns {
|
|
13064
|
+
* @param {number} [relativeEpsilon=0] The relative epsilon tolerance to use for equality testing.
|
|
13065
|
+
* @param {number} [absoluteEpsilon=relativeEpsilon] The absolute epsilon tolerance to use for equality testing.
|
|
13066
|
+
* @returns {boolean} <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
13050
13067
|
*/
|
|
13051
13068
|
HeadingPitchRoll.equalsEpsilon = function (
|
|
13052
13069
|
left,
|
|
@@ -13094,7 +13111,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13094
13111
|
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
13095
13112
|
*
|
|
13096
13113
|
* @param {HeadingPitchRoll} [right] The right hand side HeadingPitchRoll.
|
|
13097
|
-
* @returns {
|
|
13114
|
+
* @returns {boolean} <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
13098
13115
|
*/
|
|
13099
13116
|
HeadingPitchRoll.prototype.equals = function (right) {
|
|
13100
13117
|
return HeadingPitchRoll.equals(this, right);
|
|
@@ -13106,9 +13123,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13106
13123
|
* <code>false</code> otherwise.
|
|
13107
13124
|
*
|
|
13108
13125
|
* @param {HeadingPitchRoll} [right] The right hand side HeadingPitchRoll.
|
|
13109
|
-
* @param {
|
|
13110
|
-
* @param {
|
|
13111
|
-
* @returns {
|
|
13126
|
+
* @param {number} [relativeEpsilon=0] The relative epsilon tolerance to use for equality testing.
|
|
13127
|
+
* @param {number} [absoluteEpsilon=relativeEpsilon] The absolute epsilon tolerance to use for equality testing.
|
|
13128
|
+
* @returns {boolean} <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
13112
13129
|
*/
|
|
13113
13130
|
HeadingPitchRoll.prototype.equalsEpsilon = function (
|
|
13114
13131
|
right,
|
|
@@ -13126,7 +13143,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13126
13143
|
/**
|
|
13127
13144
|
* Creates a string representing this HeadingPitchRoll in the format '(heading, pitch, roll)' in radians.
|
|
13128
13145
|
*
|
|
13129
|
-
* @returns {
|
|
13146
|
+
* @returns {string} A string representing the provided HeadingPitchRoll in the format '(heading, pitch, roll)'.
|
|
13130
13147
|
*/
|
|
13131
13148
|
HeadingPitchRoll.prototype.toString = function () {
|
|
13132
13149
|
return `(${this.heading}, ${this.pitch}, ${this.roll})`;
|
|
@@ -13222,8 +13239,8 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13222
13239
|
* Given a relative URL under the Cesium base URL, returns an absolute URL.
|
|
13223
13240
|
* @function
|
|
13224
13241
|
*
|
|
13225
|
-
* @param {
|
|
13226
|
-
* @returns {
|
|
13242
|
+
* @param {string} relativeUrl The relative path.
|
|
13243
|
+
* @returns {string} The absolutely URL representation of the provided path.
|
|
13227
13244
|
*
|
|
13228
13245
|
* @example
|
|
13229
13246
|
* const viewer = new Cesium.Viewer("cesiumContainer", {
|
|
@@ -13261,7 +13278,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13261
13278
|
|
|
13262
13279
|
/**
|
|
13263
13280
|
* Sets the base URL for resolving modules.
|
|
13264
|
-
* @param {
|
|
13281
|
+
* @param {string} value The new base URL.
|
|
13265
13282
|
*/
|
|
13266
13283
|
buildModuleUrl.setBaseUrl = function (value) {
|
|
13267
13284
|
baseResource = Resource.DEFAULT.getDerivedResource({
|
|
@@ -13273,7 +13290,7 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13273
13290
|
* Gets the base URL for resolving modules.
|
|
13274
13291
|
*
|
|
13275
13292
|
* @function
|
|
13276
|
-
* @returns {
|
|
13293
|
+
* @returns {string} The configured base URL
|
|
13277
13294
|
*/
|
|
13278
13295
|
buildModuleUrl.getCesiumBaseUrl = getCesiumBaseUrl;
|
|
13279
13296
|
|
|
@@ -13283,28 +13300,28 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13283
13300
|
* @alias Iau2006XysSample
|
|
13284
13301
|
* @constructor
|
|
13285
13302
|
*
|
|
13286
|
-
* @param {
|
|
13287
|
-
* @param {
|
|
13288
|
-
* @param {
|
|
13303
|
+
* @param {number} x The X value.
|
|
13304
|
+
* @param {number} y The Y value.
|
|
13305
|
+
* @param {number} s The S value.
|
|
13289
13306
|
*
|
|
13290
13307
|
* @private
|
|
13291
13308
|
*/
|
|
13292
13309
|
function Iau2006XysSample(x, y, s) {
|
|
13293
13310
|
/**
|
|
13294
13311
|
* The X value.
|
|
13295
|
-
* @type {
|
|
13312
|
+
* @type {number}
|
|
13296
13313
|
*/
|
|
13297
13314
|
this.x = x;
|
|
13298
13315
|
|
|
13299
13316
|
/**
|
|
13300
13317
|
* The Y value.
|
|
13301
|
-
* @type {
|
|
13318
|
+
* @type {number}
|
|
13302
13319
|
*/
|
|
13303
13320
|
this.y = y;
|
|
13304
13321
|
|
|
13305
13322
|
/**
|
|
13306
13323
|
* The S value.
|
|
13307
|
-
* @type {
|
|
13324
|
+
* @type {number}
|
|
13308
13325
|
*/
|
|
13309
13326
|
this.s = s;
|
|
13310
13327
|
}
|
|
@@ -13316,15 +13333,15 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13316
13333
|
* @alias Iau2006XysData
|
|
13317
13334
|
* @constructor
|
|
13318
13335
|
*
|
|
13319
|
-
* @param {
|
|
13320
|
-
* @param {Resource|
|
|
13336
|
+
* @param {object} [options] Object with the following properties:
|
|
13337
|
+
* @param {Resource|string} [options.xysFileUrlTemplate='Assets/IAU2006_XYS/IAU2006_XYS_{0}.json'] A template URL for obtaining the XYS data. In the template,
|
|
13321
13338
|
* `{0}` will be replaced with the file index.
|
|
13322
|
-
* @param {
|
|
13323
|
-
* @param {
|
|
13339
|
+
* @param {number} [options.interpolationOrder=9] The order of interpolation to perform on the XYS data.
|
|
13340
|
+
* @param {number} [options.sampleZeroJulianEphemerisDate=2442396.5] The Julian ephemeris date (JED) of the
|
|
13324
13341
|
* first XYS sample.
|
|
13325
|
-
* @param {
|
|
13326
|
-
* @param {
|
|
13327
|
-
* @param {
|
|
13342
|
+
* @param {number} [options.stepSizeDays=1.0] The step size, in days, between successive XYS samples.
|
|
13343
|
+
* @param {number} [options.samplesPerXysFile=1000] The number of samples in each XYS file.
|
|
13344
|
+
* @param {number} [options.totalSamples=27426] The total number of samples in all XYS files.
|
|
13328
13345
|
*
|
|
13329
13346
|
* @private
|
|
13330
13347
|
*/
|
|
@@ -13388,13 +13405,13 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13388
13405
|
/**
|
|
13389
13406
|
* Preloads XYS data for a specified date range.
|
|
13390
13407
|
*
|
|
13391
|
-
* @param {
|
|
13408
|
+
* @param {number} startDayTT The Julian day number of the beginning of the interval to preload, expressed in
|
|
13392
13409
|
* the Terrestrial Time (TT) time standard.
|
|
13393
|
-
* @param {
|
|
13410
|
+
* @param {number} startSecondTT The seconds past noon of the beginning of the interval to preload, expressed in
|
|
13394
13411
|
* the Terrestrial Time (TT) time standard.
|
|
13395
|
-
* @param {
|
|
13412
|
+
* @param {number} stopDayTT The Julian day number of the end of the interval to preload, expressed in
|
|
13396
13413
|
* the Terrestrial Time (TT) time standard.
|
|
13397
|
-
* @param {
|
|
13414
|
+
* @param {number} stopSecondTT The seconds past noon of the end of the interval to preload, expressed in
|
|
13398
13415
|
* the Terrestrial Time (TT) time standard.
|
|
13399
13416
|
* @returns {Promise<void>} A promise that, when resolved, indicates that the requested interval has been
|
|
13400
13417
|
* preloaded.
|
|
@@ -13441,9 +13458,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13441
13458
|
* Computes the XYS values for a given date by interpolating. If the required data is not yet downloaded,
|
|
13442
13459
|
* this method will return undefined.
|
|
13443
13460
|
*
|
|
13444
|
-
* @param {
|
|
13461
|
+
* @param {number} dayTT The Julian day number for which to compute the XYS value, expressed in
|
|
13445
13462
|
* the Terrestrial Time (TT) time standard.
|
|
13446
|
-
* @param {
|
|
13463
|
+
* @param {number} secondTT The seconds past noon of the date for which to compute the XYS value, expressed in
|
|
13447
13464
|
* the Terrestrial Time (TT) time standard.
|
|
13448
13465
|
* @param {Iau2006XysSample} [result] The instance to which to copy the interpolated result. If this parameter
|
|
13449
13466
|
* is undefined, a new instance is allocated and returned.
|
|
@@ -13649,9 +13666,9 @@ define(['require', 'exports', './Matrix3-315394f6', './Check-666ab1a0', './defau
|
|
|
13649
13666
|
/**
|
|
13650
13667
|
* Generates a function that computes a 4x4 transformation matrix from a reference frame
|
|
13651
13668
|
* centered at the provided origin to the provided ellipsoid's fixed reference frame.
|
|
13652
|
-
* @param {
|
|
13669
|
+
* @param {string} firstAxis name of the first axis of the local reference frame. Must be
|
|
13653
13670
|
* 'east', 'north', 'up', 'west', 'south' or 'down'.
|
|
13654
|
-
* @param {
|
|
13671
|
+
* @param {string} secondAxis name of the second axis of the local reference frame. Must be
|
|
13655
13672
|
* 'east', 'north', 'up', 'west', 'south' or 'down'.
|
|
13656
13673
|
* @return {Transforms.LocalFrameToFixedFrame} The function that will computes a
|
|
13657
13674
|
* 4x4 transformation matrix from a reference frame, with first axis and second axis compliant with the parameters,
|