@cesium/engine 24.0.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/{chunk-NKT5K3K3.js → chunk-35H3UBIO.js} +13 -12
- package/Build/Workers/{chunk-5A2SW66E.js → chunk-3LSD7OOA.js} +16 -16
- package/Build/Workers/{chunk-HXJMS2ZI.js → chunk-3RFFPH4M.js} +1 -1
- package/Build/Workers/{chunk-EDXL4W76.js → chunk-3TKLDHV3.js} +2 -2
- package/Build/Workers/{chunk-GQUNK2XC.js → chunk-3VDDRF2E.js} +14 -14
- package/Build/Workers/{chunk-Q3C6VQH6.js → chunk-3XY3MVPG.js} +4 -4
- package/Build/Workers/{chunk-A47HVBC5.js → chunk-4GF4MVPY.js} +7 -7
- package/Build/Workers/{chunk-YQFTYQMZ.js → chunk-4MTRQFJP.js} +3 -2
- package/Build/Workers/{chunk-N65BAKSH.js → chunk-4QQXGTCE.js} +8 -8
- package/Build/Workers/{chunk-EV3VGO6Y.js → chunk-4XXHJI6Y.js} +17 -17
- package/Build/Workers/{chunk-DHKPFLSJ.js → chunk-5T6QQAJW.js} +3 -2
- package/Build/Workers/{chunk-UIGVOKKI.js → chunk-6SDGQI27.js} +3 -2
- package/Build/Workers/{chunk-ILMFADZA.js → chunk-77RL3MBD.js} +6 -5
- package/Build/Workers/{chunk-2N4KDHS3.js → chunk-7LSFAEWF.js} +12 -11
- package/Build/Workers/{chunk-44EMEGKW.js → chunk-A7A433MD.js} +5 -5
- package/Build/Workers/{chunk-J6AW5YHS.js → chunk-A7ZBMVFS.js} +14 -14
- package/Build/Workers/{chunk-XJRBB253.js → chunk-ACFFCHHZ.js} +11 -11
- package/Build/Workers/{chunk-MKM27KGV.js → chunk-AEAVLYPS.js} +2 -2
- package/Build/Workers/{chunk-7MDYBRYJ.js → chunk-AWFZHD2B.js} +4 -4
- package/Build/Workers/{chunk-UQU4RXLT.js → chunk-BTX2NL3P.js} +50 -45
- package/Build/Workers/{chunk-4TIG36AW.js → chunk-BVAIWR7O.js} +12 -12
- package/Build/Workers/chunk-CKQP3DSS.js +973 -0
- package/Build/Workers/{chunk-VLDEUTOP.js → chunk-CZ23Y3RM.js} +2 -2
- package/Build/Workers/{chunk-NPF7SSHZ.js → chunk-DFEI5MAV.js} +7 -7
- package/Build/Workers/{chunk-AJLTU6PF.js → chunk-DH26SNAB.js} +4 -1
- package/Build/Workers/{chunk-5GXYJQ2K.js → chunk-DYT5NR6P.js} +3 -3
- package/Build/Workers/{chunk-63SIWPLS.js → chunk-EZARA5FJ.js} +13 -13
- package/Build/Workers/{chunk-AMIHNSST.js → chunk-FIBS5S7R.js} +2 -2
- package/Build/Workers/{chunk-Y7HNNPNK.js → chunk-FVLVVOBQ.js} +10 -10
- package/Build/Workers/{chunk-XY6HMDGI.js → chunk-GL7DNVUS.js} +5 -5
- package/Build/Workers/{chunk-6WLHJFD3.js → chunk-GPIGURCG.js} +59 -32
- package/Build/Workers/{chunk-B6SCUUFP.js → chunk-H2A4USJR.js} +10 -10
- package/Build/Workers/chunk-HSVQATK2.js +147 -0
- package/Build/Workers/{chunk-72VYSVEW.js → chunk-HVMG6AG4.js} +11 -10
- package/Build/Workers/{chunk-LXMCPFFS.js → chunk-I3A6DXYZ.js} +4 -4
- package/Build/Workers/{chunk-7QRFIKWQ.js → chunk-ITD2IN7N.js} +2 -2
- package/Build/Workers/{chunk-RQNJD3O4.js → chunk-J3OFS2RD.js} +12 -12
- package/Build/Workers/{chunk-C6P4IG5P.js → chunk-J647NNZW.js} +6 -6
- package/Build/Workers/{chunk-7X322WP2.js → chunk-J7KQEKPK.js} +13 -13
- package/Build/Workers/{chunk-7O5XJTVE.js → chunk-K6NFIRFB.js} +5 -5
- package/Build/Workers/{chunk-AF3MU2RL.js → chunk-LH5SF3XV.js} +7 -6
- package/Build/Workers/{chunk-GOQBUCXH.js → chunk-ND3NTTOF.js} +708 -430
- package/Build/Workers/chunk-QO2CGXMP.js +2342 -0
- package/Build/Workers/chunk-QSDY4NS7.js +1287 -0
- package/Build/Workers/chunk-QXNQQYPV.js +3201 -0
- package/Build/Workers/{chunk-YAOZMOFL.js → chunk-ST2UWDUU.js} +5 -5
- package/Build/Workers/{chunk-PVV64VFW.js → chunk-TA777BGS.js} +3 -2
- package/Build/Workers/{chunk-ISY4EZCA.js → chunk-TAI4HLII.js} +4 -4
- package/Build/Workers/{chunk-JCI63T3K.js → chunk-URUCCIPS.js} +6 -6
- package/Build/Workers/{chunk-VMVOUQ5J.js → chunk-VQKLRBIK.js} +7 -7
- package/Build/Workers/{chunk-6MPGQEHA.js → chunk-WC57YYBN.js} +2 -2
- package/Build/Workers/{chunk-BJD6QGXZ.js → chunk-WN6P5UDH.js} +12 -12
- package/Build/Workers/{chunk-LIB2H534.js → chunk-WNN5D4W3.js} +12 -11
- package/Build/Workers/{chunk-D4EJ2NXG.js → chunk-WTQGE7Q6.js} +17 -17
- package/Build/Workers/{chunk-YJZGW74L.js → chunk-WUBKZFF6.js} +2213 -1349
- package/Build/Workers/{chunk-7TYLCBGK.js → chunk-ZAPOS52G.js} +12 -10
- package/Build/Workers/{chunk-6RMS4S72.js → chunk-ZCCIIBZT.js} +6 -6
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +24 -24
- package/Build/Workers/createGroundPolylineGeometry.js +175 -118
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +24 -23
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +23 -23
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +12 -9
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Core/ArcType.js +6 -1
- package/Source/Core/ArticulationStageType.js +5 -1
- package/Source/Core/AssociativeArray.js +100 -94
- package/Source/Core/BoundingSphere.js +1296 -1300
- package/Source/Core/Cartesian3.js +1 -2
- package/Source/Core/Cartographic.js +257 -249
- package/Source/Core/ClockRange.js +6 -1
- package/Source/Core/ClockStep.js +6 -1
- package/Source/Core/Color.js +844 -835
- package/Source/Core/ComponentDatatype.js +4 -1
- package/Source/Core/CornerType.js +6 -1
- package/Source/Core/Credit.js +121 -124
- package/Source/Core/Ellipsoid.js +637 -660
- package/Source/Core/ExtrapolationType.js +6 -1
- package/Source/Core/GeocodeType.js +6 -1
- package/Source/Core/GeographicProjection.js +74 -74
- package/Source/Core/GeographicTilingScheme.js +179 -198
- package/Source/Core/GeometryOffsetAttribute.js +7 -1
- package/Source/Core/GeometryType.js +7 -1
- package/Source/Core/HeightmapEncoding.js +6 -1
- package/Source/Core/Iau2006XysData.js +24 -13
- package/Source/Core/IndexDatatype.js +3 -1
- package/Source/Core/InterpolationType.js +5 -1
- package/Source/Core/Intersect.js +6 -1
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonGeocodeProviderType.js +5 -1
- package/Source/Core/JulianDate.js +850 -848
- package/Source/Core/KeyboardEventModifier.js +6 -1
- package/Source/Core/MapProjection.js +39 -44
- package/Source/Core/Matrix2.js +906 -893
- package/Source/Core/Matrix3.js +1643 -1575
- package/Source/Core/Matrix4.js +2903 -2872
- package/Source/Core/PixelFormat.js +3 -1
- package/Source/Core/PrimitiveType.js +11 -1
- package/Source/Core/Ray.js +62 -60
- package/Source/Core/Rectangle.js +913 -904
- package/Source/Core/ReferenceFrame.js +6 -1
- package/Source/Core/RequestScheduler.js +8 -3
- package/Source/Core/RequestState.js +6 -1
- package/Source/Core/RequestType.js +6 -1
- package/Source/Core/ScreenSpaceEventType.js +6 -1
- package/Source/Core/TerrainQuantization.js +6 -1
- package/Source/Core/TilingScheme.js +100 -98
- package/Source/Core/TimeConstants.js +6 -1
- package/Source/Core/TimeStandard.js +6 -1
- package/Source/Core/TrackingReferenceFrame.js +6 -1
- package/Source/Core/Visibility.js +6 -1
- package/Source/Core/VulkanConstants.js +6 -1
- package/Source/Core/WebGLConstants.js +6 -1
- package/Source/Core/WebMercatorProjection.js +108 -109
- package/Source/Core/WebMercatorTilingScheme.js +246 -242
- package/Source/Core/WindingOrder.js +3 -1
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +1 -0
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +1 -0
- package/Source/DataSources/StripeOrientation.js +6 -1
- package/Source/Renderer/BufferUsage.js +20 -9
- package/Source/Renderer/Context.js +2 -29
- package/Source/Renderer/DrawCommand.js +435 -403
- package/Source/Renderer/MipmapHint.js +5 -1
- package/Source/Renderer/Pass.js +7 -1
- package/Source/Renderer/PickId.js +44 -0
- package/Source/Renderer/PixelDatatype.js +3 -1
- package/Source/Renderer/RenderbufferFormat.js +5 -1
- package/Source/Renderer/ShaderDestination.js +4 -1
- package/Source/Renderer/TextureMagnificationFilter.js +3 -1
- package/Source/Renderer/TextureMinificationFilter.js +3 -1
- package/Source/Renderer/TextureWrap.js +5 -1
- package/Source/Scene/AlphaMode.js +5 -1
- package/Source/Scene/ArcGisBaseMapType.js +6 -1
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/AttributeType.js +3 -1
- package/Source/Scene/Axis.js +3 -1
- package/Source/Scene/BingMapsStyle.js +6 -1
- package/Source/Scene/BlendEquation.js +6 -1
- package/Source/Scene/BlendFunction.js +6 -1
- package/Source/Scene/BlendOption.js +6 -1
- package/Source/Scene/BlendingState.js +6 -1
- package/Source/Scene/BufferLoader.js +0 -2
- package/Source/Scene/BufferPointCollection.js +4 -1
- package/Source/Scene/BufferPolygonCollection.js +3 -1
- package/Source/Scene/BufferPolylineCollection.js +3 -1
- package/Source/Scene/BufferPrimitiveCollection.js +140 -24
- package/Source/Scene/CameraEventType.js +6 -1
- package/Source/Scene/Cesium3DTileColorBlendMode.js +6 -1
- package/Source/Scene/Cesium3DTileContentState.js +6 -1
- package/Source/Scene/Cesium3DTileContentType.js +3 -1
- package/Source/Scene/Cesium3DTileFeature.js +289 -306
- package/Source/Scene/Cesium3DTileOptimizationHint.js +6 -1
- package/Source/Scene/Cesium3DTilePass.js +5 -1
- package/Source/Scene/Cesium3DTilePointFeature.js +433 -511
- package/Source/Scene/Cesium3DTileRefine.js +6 -1
- package/Source/Scene/Cesium3DTileVectorFeature.js +586 -0
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClassificationType.js +3 -1
- package/Source/Scene/CloudType.js +3 -1
- package/Source/Scene/ColorBlendMode.js +4 -1
- package/Source/Scene/CullFace.js +6 -1
- package/Source/Scene/DepthFunction.js +6 -1
- package/Source/Scene/DynamicAtmosphereLightingType.js +3 -1
- package/Source/Scene/EquirectangularPanorama.js +1 -0
- package/Source/Scene/ExpressionNodeType.js +6 -1
- package/Source/Scene/GltfBufferViewLoader.js +0 -2
- package/Source/Scene/GltfDracoLoader.js +0 -2
- package/Source/Scene/GltfImageLoader.js +0 -3
- package/Source/Scene/GltfIndexBufferLoader.js +0 -4
- package/Source/Scene/GltfJsonLoader.js +0 -2
- package/Source/Scene/GltfLoader.js +0 -5
- package/Source/Scene/GltfLoaderUtil.js +14 -0
- package/Source/Scene/GltfSpzLoader.js +0 -2
- package/Source/Scene/GltfStructuralMetadataLoader.js +0 -2
- package/Source/Scene/GltfTextureLoader.js +0 -2
- package/Source/Scene/GltfVertexBufferLoader.js +0 -4
- package/Source/Scene/HeightReference.js +5 -1
- package/Source/Scene/HorizontalOrigin.js +6 -1
- package/Source/Scene/ImageryProvider.js +1 -1
- package/Source/Scene/ImageryState.js +6 -1
- package/Source/Scene/ImplicitSubdivisionScheme.js +3 -1
- package/Source/Scene/InstanceAttributeSemantic.js +3 -1
- package/Source/Scene/IonWorldImageryStyle.js +6 -1
- package/Source/Scene/JobType.js +6 -1
- package/Source/Scene/LabelStyle.js +6 -1
- package/Source/Scene/MapMode2D.js +6 -1
- package/Source/Scene/MetadataComponentType.js +3 -1
- package/Source/Scene/MetadataSchemaLoader.js +0 -2
- package/Source/Scene/MetadataSemantic.js +6 -2
- package/Source/Scene/MetadataType.js +3 -1
- package/Source/Scene/Model/B3dmLoader.js +0 -3
- package/Source/Scene/Model/CustomShaderMode.js +3 -1
- package/Source/Scene/Model/CustomShaderTranslucencyMode.js +5 -1
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +44 -71
- package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +5 -1
- package/Source/Scene/Model/Extensions/Gpm/StorageType.js +5 -1
- package/Source/Scene/Model/GeoJsonLoader.js +0 -2
- package/Source/Scene/Model/I3dmLoader.js +0 -3
- package/Source/Scene/Model/InstancingPipelineStage.js +1 -1
- package/Source/Scene/Model/LightingModel.js +5 -1
- package/Source/Scene/Model/MaterialPipelineStage.js +184 -3
- package/Source/Scene/Model/ModelReader.js +474 -3
- package/Source/Scene/Model/ModelRuntimePrimitive.js +2 -1
- package/Source/Scene/Model/ModelType.js +3 -1
- package/Source/Scene/Model/PntsLoader.js +4 -3
- package/Source/Scene/Model/StyleCommandsNeeded.js +3 -1
- package/Source/Scene/Model/UniformType.js +5 -1
- package/Source/Scene/Model/VaryingType.js +5 -1
- package/Source/Scene/Model/createVectorTileBuffersFromModelComponents.js +73 -28
- package/Source/Scene/Model/pickModel.js +94 -299
- package/Source/Scene/ModelAnimationLoop.js +6 -1
- package/Source/Scene/ModelAnimationState.js +6 -1
- package/Source/Scene/ModelComponents.js +8 -1
- package/Source/Scene/PrimitiveState.js +7 -1
- package/Source/Scene/QuadtreeOccluders.js +20 -15
- package/Source/Scene/QuadtreeTile.js +547 -541
- package/Source/Scene/QuadtreeTileLoadState.js +6 -1
- package/Source/Scene/QuadtreeTileProvider.js +159 -175
- package/Source/Scene/ResourceLoader.js +0 -1
- package/Source/Scene/ResourceLoaderState.js +7 -1
- package/Source/Scene/SceneMode.js +4 -1
- package/Source/Scene/ShadowMode.js +3 -1
- package/Source/Scene/SkyBox.js +1 -1
- package/Source/Scene/SplitDirection.js +6 -1
- package/Source/Scene/StencilFunction.js +6 -1
- package/Source/Scene/StencilOperation.js +6 -1
- package/Source/Scene/TerrainState.js +7 -1
- package/Source/Scene/TileState.js +7 -1
- package/Source/Scene/Tonemapper.js +5 -1
- package/Source/Scene/VectorGltf3DTileContent.js +72 -51
- package/Source/Scene/VertexAttributeSemantic.js +3 -1
- package/Source/Scene/VerticalOrigin.js +6 -1
- package/Source/Scene/VoxelBoxShape.js +12 -6
- package/Source/Scene/VoxelContent.js +2 -0
- package/Source/Scene/VoxelCylinderShape.js +39 -38
- package/Source/Scene/VoxelEllipsoidShape.js +46 -96
- package/Source/Scene/VoxelMetadataOrder.js +6 -1
- package/Source/Scene/VoxelProvider.js +1 -0
- package/Source/Scene/VoxelShapeType.js +3 -1
- package/Source/Scene/renderBufferPointCollection.js +17 -66
- package/Source/Scene/renderBufferPolygonCollection.js +21 -68
- package/Source/Scene/renderBufferPolylineCollection.js +22 -73
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
- package/Source/Shaders/Builtin/Functions/computeTextureTransform.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/computeTextureTransform.js +25 -0
- package/Source/Shaders/Model/ConstantLodStageFS.glsl +60 -0
- package/Source/Shaders/Model/ConstantLodStageFS.js +62 -0
- package/Source/Shaders/Model/ConstantLodStageVS.glsl +12 -0
- package/Source/Shaders/Model/ConstantLodStageVS.js +13 -0
- package/Source/Shaders/Model/MaterialStageFS.glsl +46 -20
- package/Source/Shaders/Model/MaterialStageFS.js +46 -20
- package/Source/Shaders/Voxels/convertLocalToBoxUv.glsl +0 -1
- package/Source/Shaders/Voxels/convertLocalToBoxUv.js +0 -1
- package/Source/Shaders/Voxels/convertLocalToCylinderUv.glsl +7 -9
- package/Source/Shaders/Voxels/convertLocalToCylinderUv.js +7 -9
- package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.glsl +7 -17
- package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.js +7 -17
- package/Source/Widget/CesiumWidget.js +11 -4
- package/index.d.ts +343 -309
- package/index.js +443 -438
- package/package.json +2 -2
- package/Build/Workers/chunk-DVB56LG7.js +0 -114
- package/Build/Workers/chunk-HKUES6UG.js +0 -2357
- package/Build/Workers/chunk-HRHRYFHS.js +0 -940
- package/Build/Workers/chunk-KLPGTXS3.js +0 -642
- package/Build/Workers/chunk-ZBZRTRJB.js +0 -1829
package/index.d.ts
CHANGED
|
@@ -724,8 +724,7 @@ export enum ArcType {
|
|
|
724
724
|
* A collection of key-value pairs that is stored as a hash for easy
|
|
725
725
|
* lookup but also provides an array for fast iteration.
|
|
726
726
|
*/
|
|
727
|
-
export class AssociativeArray {
|
|
728
|
-
constructor();
|
|
727
|
+
export class AssociativeArray<T = unknown> {
|
|
729
728
|
/**
|
|
730
729
|
* Gets the number of items in the collection.
|
|
731
730
|
*/
|
|
@@ -735,7 +734,7 @@ export class AssociativeArray {
|
|
|
735
734
|
* This is a live array that will automatically reflect the values in the collection,
|
|
736
735
|
* it should not be modified directly.
|
|
737
736
|
*/
|
|
738
|
-
values:
|
|
737
|
+
values: T[];
|
|
739
738
|
/**
|
|
740
739
|
* Determines if the provided key is in the array.
|
|
741
740
|
* @param key - The key to check.
|
|
@@ -748,13 +747,13 @@ export class AssociativeArray {
|
|
|
748
747
|
* @param key - A unique identifier.
|
|
749
748
|
* @param value - The value to associate with the provided key.
|
|
750
749
|
*/
|
|
751
|
-
set(key: string | number, value:
|
|
750
|
+
set(key: string | number, value: T): void;
|
|
752
751
|
/**
|
|
753
752
|
* Retrieves the value associated with the provided key.
|
|
754
753
|
* @param key - The key whose value is to be retrieved.
|
|
755
754
|
* @returns The associated value, or undefined if the key does not exist in the collection.
|
|
756
755
|
*/
|
|
757
|
-
get(key: string | number):
|
|
756
|
+
get(key: string | number): T;
|
|
758
757
|
/**
|
|
759
758
|
* Removes a key-value pair from the collection.
|
|
760
759
|
* @param key - The key to be removed.
|
|
@@ -1052,7 +1051,7 @@ export class BoundingSphere {
|
|
|
1052
1051
|
* @param [result] - The object onto which to store the result.
|
|
1053
1052
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1054
1053
|
*/
|
|
1055
|
-
static fromRectangle2D(rectangle?: Rectangle, projection?:
|
|
1054
|
+
static fromRectangle2D(rectangle?: Rectangle, projection?: MapProjection, result?: BoundingSphere): BoundingSphere;
|
|
1056
1055
|
/**
|
|
1057
1056
|
* Computes a bounding sphere from a rectangle projected in 2D. The bounding sphere accounts for the
|
|
1058
1057
|
* object's minimum and maximum heights over the rectangle.
|
|
@@ -1063,7 +1062,7 @@ export class BoundingSphere {
|
|
|
1063
1062
|
* @param [result] - The object onto which to store the result.
|
|
1064
1063
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1065
1064
|
*/
|
|
1066
|
-
static fromRectangleWithHeights2D(rectangle?: Rectangle, projection?:
|
|
1065
|
+
static fromRectangleWithHeights2D(rectangle?: Rectangle, projection?: MapProjection, minimumHeight?: number, maximumHeight?: number, result?: BoundingSphere): BoundingSphere;
|
|
1067
1066
|
/**
|
|
1068
1067
|
* Computes a bounding sphere from a rectangle in 3D. The bounding sphere is created using a subsample of points
|
|
1069
1068
|
* on the ellipsoid and contained in the rectangle. It may not be accurate for all rectangles on all types of ellipsoids.
|
|
@@ -1165,10 +1164,6 @@ export class BoundingSphere {
|
|
|
1165
1164
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided. (Returns undefined if sphere is undefined)
|
|
1166
1165
|
*/
|
|
1167
1166
|
static clone(sphere: BoundingSphere, result?: BoundingSphere): BoundingSphere;
|
|
1168
|
-
/**
|
|
1169
|
-
* The number of elements used to pack the object into an array.
|
|
1170
|
-
*/
|
|
1171
|
-
static packedLength: number;
|
|
1172
1167
|
/**
|
|
1173
1168
|
* Stores the provided instance into the provided array.
|
|
1174
1169
|
* @param value - The value to pack.
|
|
@@ -1265,7 +1260,7 @@ export class BoundingSphere {
|
|
|
1265
1260
|
* @param [result] - The object onto which to store the result.
|
|
1266
1261
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1267
1262
|
*/
|
|
1268
|
-
static projectTo2D(sphere: BoundingSphere, projection?:
|
|
1263
|
+
static projectTo2D(sphere: BoundingSphere, projection?: MapProjection, result?: BoundingSphere): BoundingSphere;
|
|
1269
1264
|
/**
|
|
1270
1265
|
* Determines whether or not a sphere is hidden from view by the occluder.
|
|
1271
1266
|
* @param sphere - The bounding sphere surrounding the occluded object.
|
|
@@ -1337,6 +1332,10 @@ export class BoundingSphere {
|
|
|
1337
1332
|
* @returns The radius of the BoundingSphere.
|
|
1338
1333
|
*/
|
|
1339
1334
|
volume(): number;
|
|
1335
|
+
/**
|
|
1336
|
+
* The number of elements used to pack the object into an array.
|
|
1337
|
+
*/
|
|
1338
|
+
static packedLength: number;
|
|
1340
1339
|
}
|
|
1341
1340
|
|
|
1342
1341
|
/**
|
|
@@ -2685,10 +2684,6 @@ export class Cartographic {
|
|
|
2685
2684
|
* @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
2686
2685
|
*/
|
|
2687
2686
|
static equalsEpsilon(left?: Cartographic, right?: Cartographic, epsilon?: number): boolean;
|
|
2688
|
-
/**
|
|
2689
|
-
* An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
|
|
2690
|
-
*/
|
|
2691
|
-
static readonly ZERO: Cartographic;
|
|
2692
2687
|
/**
|
|
2693
2688
|
* Duplicates this instance.
|
|
2694
2689
|
* @param [result] - The object onto which to store the result.
|
|
@@ -2716,6 +2711,10 @@ export class Cartographic {
|
|
|
2716
2711
|
* @returns A string representing the provided cartographic in the format '(longitude, latitude, height)'.
|
|
2717
2712
|
*/
|
|
2718
2713
|
toString(): string;
|
|
2714
|
+
/**
|
|
2715
|
+
* An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
|
|
2716
|
+
*/
|
|
2717
|
+
static readonly ZERO: Cartographic;
|
|
2719
2718
|
}
|
|
2720
2719
|
|
|
2721
2720
|
/**
|
|
@@ -3756,10 +3755,6 @@ export class Color {
|
|
|
3756
3755
|
* @returns The color object, or undefined if the string was not a valid CSS color.
|
|
3757
3756
|
*/
|
|
3758
3757
|
static fromCssColorString(color: string, result?: Color): Color;
|
|
3759
|
-
/**
|
|
3760
|
-
* The number of elements used to pack the object into an array.
|
|
3761
|
-
*/
|
|
3762
|
-
static packedLength: number;
|
|
3763
3758
|
/**
|
|
3764
3759
|
* Stores the provided instance into the provided array.
|
|
3765
3760
|
* @param value - The value to pack.
|
|
@@ -3952,6 +3947,10 @@ export class Color {
|
|
|
3952
3947
|
* @returns The modified result parameter.
|
|
3953
3948
|
*/
|
|
3954
3949
|
static divideByScalar(color: Color, scalar: number, result: Color): Color;
|
|
3950
|
+
/**
|
|
3951
|
+
* The number of elements used to pack the object into an array.
|
|
3952
|
+
*/
|
|
3953
|
+
static packedLength: number;
|
|
3955
3954
|
/**
|
|
3956
3955
|
* An immutable Color instance initialized to CSS color #F0F8FF
|
|
3957
3956
|
* <span class="colorSwath" style="background: #F0F8FF;"></span>
|
|
@@ -6040,23 +6039,6 @@ export class Ellipsoid {
|
|
|
6040
6039
|
* @returns A new Ellipsoid instance.
|
|
6041
6040
|
*/
|
|
6042
6041
|
static fromCartesian3(cartesian?: Cartesian3, result?: Ellipsoid): Ellipsoid;
|
|
6043
|
-
/**
|
|
6044
|
-
* An Ellipsoid instance initialized to the WGS84 standard.
|
|
6045
|
-
*/
|
|
6046
|
-
static readonly WGS84: Ellipsoid;
|
|
6047
|
-
/**
|
|
6048
|
-
* An Ellipsoid instance initialized to radii of (1.0, 1.0, 1.0).
|
|
6049
|
-
*/
|
|
6050
|
-
static readonly UNIT_SPHERE: Ellipsoid;
|
|
6051
|
-
/**
|
|
6052
|
-
* An Ellipsoid instance initialized to a sphere with the lunar radius.
|
|
6053
|
-
*/
|
|
6054
|
-
static readonly MOON: Ellipsoid;
|
|
6055
|
-
/**
|
|
6056
|
-
* An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
|
|
6057
|
-
* Source: https://epsg.io/104905
|
|
6058
|
-
*/
|
|
6059
|
-
static readonly MARS: Ellipsoid;
|
|
6060
6042
|
/**
|
|
6061
6043
|
* The default ellipsoid used when not otherwise specified.
|
|
6062
6044
|
* @example
|
|
@@ -6076,10 +6058,6 @@ export class Ellipsoid {
|
|
|
6076
6058
|
* @returns The cloned Ellipsoid.
|
|
6077
6059
|
*/
|
|
6078
6060
|
clone(result?: Ellipsoid): Ellipsoid;
|
|
6079
|
-
/**
|
|
6080
|
-
* The number of elements used to pack the object into an array.
|
|
6081
|
-
*/
|
|
6082
|
-
static packedLength: number;
|
|
6083
6061
|
/**
|
|
6084
6062
|
* Stores the provided instance into the provided array.
|
|
6085
6063
|
* @param value - The value to pack.
|
|
@@ -6096,13 +6074,6 @@ export class Ellipsoid {
|
|
|
6096
6074
|
* @returns The modified result parameter or a new Ellipsoid instance if one was not provided.
|
|
6097
6075
|
*/
|
|
6098
6076
|
static unpack(array: number[], startingIndex?: number, result?: Ellipsoid): Ellipsoid;
|
|
6099
|
-
/**
|
|
6100
|
-
* Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.
|
|
6101
|
-
* @param cartesian - The Cartesian for which to to determine the geocentric normal.
|
|
6102
|
-
* @param [result] - The object onto which to store the result.
|
|
6103
|
-
* @returns The modified result parameter or a new Cartesian3 instance if none was provided.
|
|
6104
|
-
*/
|
|
6105
|
-
geocentricSurfaceNormal(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
|
|
6106
6077
|
/**
|
|
6107
6078
|
* Computes the normal of the plane tangent to the surface of the ellipsoid at the provided position.
|
|
6108
6079
|
* @param cartographic - The cartographic position for which to to determine the geodetic normal.
|
|
@@ -6241,6 +6212,34 @@ export class Ellipsoid {
|
|
|
6241
6212
|
* @returns The approximate area of the rectangle on the surface of this ellipsoid.
|
|
6242
6213
|
*/
|
|
6243
6214
|
surfaceArea(rectangle: Rectangle): number;
|
|
6215
|
+
/**
|
|
6216
|
+
* An Ellipsoid instance initialized to the WGS84 standard.
|
|
6217
|
+
*/
|
|
6218
|
+
static readonly WGS84: Ellipsoid;
|
|
6219
|
+
/**
|
|
6220
|
+
* An Ellipsoid instance initialized to radii of (1.0, 1.0, 1.0).
|
|
6221
|
+
*/
|
|
6222
|
+
static readonly UNIT_SPHERE: Ellipsoid;
|
|
6223
|
+
/**
|
|
6224
|
+
* An Ellipsoid instance initialized to a sphere with the lunar radius.
|
|
6225
|
+
*/
|
|
6226
|
+
static readonly MOON: Ellipsoid;
|
|
6227
|
+
/**
|
|
6228
|
+
* An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
|
|
6229
|
+
* Source: https://epsg.io/104905
|
|
6230
|
+
*/
|
|
6231
|
+
static readonly MARS: Ellipsoid;
|
|
6232
|
+
/**
|
|
6233
|
+
* The number of elements used to pack the object into an array.
|
|
6234
|
+
*/
|
|
6235
|
+
static packedLength: number;
|
|
6236
|
+
/**
|
|
6237
|
+
* Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.
|
|
6238
|
+
* @param cartesian - The Cartesian for which to to determine the geocentric normal.
|
|
6239
|
+
* @param [result] - The object onto which to store the result.
|
|
6240
|
+
* @returns The modified result parameter or a new Cartesian3 instance if none was provided.
|
|
6241
|
+
*/
|
|
6242
|
+
geocentricSurfaceNormal(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
|
|
6244
6243
|
}
|
|
6245
6244
|
|
|
6246
6245
|
/**
|
|
@@ -7034,6 +7033,9 @@ export class GeocoderService {
|
|
|
7034
7033
|
geocode(query: string, type?: GeocodeType): Promise<GeocoderService.Result[]>;
|
|
7035
7034
|
}
|
|
7036
7035
|
|
|
7036
|
+
export interface GeographicProjection extends MapProjection {
|
|
7037
|
+
}
|
|
7038
|
+
|
|
7037
7039
|
/**
|
|
7038
7040
|
* A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying
|
|
7039
7041
|
* them by the {@link Ellipsoid#maximumRadius}. This projection
|
|
@@ -7041,7 +7043,7 @@ export class GeocoderService {
|
|
|
7041
7043
|
* is also known as EPSG:4326.
|
|
7042
7044
|
* @param [ellipsoid = Ellipsoid.default] - The ellipsoid.
|
|
7043
7045
|
*/
|
|
7044
|
-
export class GeographicProjection {
|
|
7046
|
+
export class GeographicProjection implements MapProjection {
|
|
7045
7047
|
constructor(ellipsoid?: Ellipsoid);
|
|
7046
7048
|
/**
|
|
7047
7049
|
* Gets the {@link Ellipsoid}.
|
|
@@ -7073,6 +7075,9 @@ export class GeographicProjection {
|
|
|
7073
7075
|
unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic;
|
|
7074
7076
|
}
|
|
7075
7077
|
|
|
7078
|
+
export interface GeographicTilingScheme extends TilingScheme {
|
|
7079
|
+
}
|
|
7080
|
+
|
|
7076
7081
|
/**
|
|
7077
7082
|
* A tiling scheme for geometry referenced to a simple {@link GeographicProjection} where
|
|
7078
7083
|
* longitude and latitude are directly mapped to X and Y. This projection is commonly
|
|
@@ -7086,7 +7091,7 @@ export class GeographicProjection {
|
|
|
7086
7091
|
* @param [options.numberOfLevelZeroTilesY = 1] - The number of tiles in the Y direction at level zero of
|
|
7087
7092
|
* the tile tree.
|
|
7088
7093
|
*/
|
|
7089
|
-
export class GeographicTilingScheme {
|
|
7094
|
+
export class GeographicTilingScheme implements TilingScheme {
|
|
7090
7095
|
constructor(options?: {
|
|
7091
7096
|
ellipsoid?: Ellipsoid;
|
|
7092
7097
|
rectangle?: Rectangle;
|
|
@@ -7138,7 +7143,7 @@ export class GeographicTilingScheme {
|
|
|
7138
7143
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
7139
7144
|
* if 'result' is undefined.
|
|
7140
7145
|
*/
|
|
7141
|
-
tileXYToNativeRectangle(x: number, y: number, level: number, result?:
|
|
7146
|
+
tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
7142
7147
|
/**
|
|
7143
7148
|
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
7144
7149
|
* @param x - The integer x coordinate of the tile.
|
|
@@ -7149,7 +7154,7 @@ export class GeographicTilingScheme {
|
|
|
7149
7154
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
7150
7155
|
* if 'result' is undefined.
|
|
7151
7156
|
*/
|
|
7152
|
-
tileXYToRectangle(x: number, y: number, level: number, result?:
|
|
7157
|
+
tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
7153
7158
|
/**
|
|
7154
7159
|
* Calculates the tile x, y coordinates of the tile containing
|
|
7155
7160
|
* a given cartographic position.
|
|
@@ -9562,12 +9567,11 @@ export class LinearSpline {
|
|
|
9562
9567
|
* Defines how geodetic ellipsoid coordinates ({@link Cartographic}) project to a
|
|
9563
9568
|
* flat map like Cesium's 2D and Columbus View modes.
|
|
9564
9569
|
*/
|
|
9565
|
-
export
|
|
9566
|
-
constructor();
|
|
9570
|
+
export interface MapProjection {
|
|
9567
9571
|
/**
|
|
9568
9572
|
* Gets the {@link Ellipsoid}.
|
|
9569
9573
|
*/
|
|
9570
|
-
|
|
9574
|
+
ellipsoid: Ellipsoid;
|
|
9571
9575
|
/**
|
|
9572
9576
|
* Projects {@link Cartographic} coordinates, in radians, to projection-specific map coordinates, in meters.
|
|
9573
9577
|
* @param cartographic - The coordinates to project.
|
|
@@ -10101,10 +10105,6 @@ export interface Matrix2 extends ArrayLike<number> {
|
|
|
10101
10105
|
*/
|
|
10102
10106
|
export class Matrix2 implements ArrayLike<number> {
|
|
10103
10107
|
constructor(column0Row0?: number, column1Row0?: number, column0Row1?: number, column1Row1?: number);
|
|
10104
|
-
/**
|
|
10105
|
-
* The number of elements used to pack the object into an array.
|
|
10106
|
-
*/
|
|
10107
|
-
static packedLength: number;
|
|
10108
10108
|
/**
|
|
10109
10109
|
* Stores the provided instance into the provided array.
|
|
10110
10110
|
* @param value - The value to pack.
|
|
@@ -10143,25 +10143,6 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10143
10143
|
* @returns The modified result parameter or a new Matrix2 instance if one was not provided. (Returns undefined if matrix is undefined)
|
|
10144
10144
|
*/
|
|
10145
10145
|
static clone(matrix: Matrix2, result?: Matrix2): Matrix2;
|
|
10146
|
-
/**
|
|
10147
|
-
* Creates a Matrix2 from 4 consecutive elements in an array.
|
|
10148
|
-
* @example
|
|
10149
|
-
* // Create the Matrix2:
|
|
10150
|
-
* // [1.0, 2.0]
|
|
10151
|
-
* // [1.0, 2.0]
|
|
10152
|
-
*
|
|
10153
|
-
* const v = [1.0, 1.0, 2.0, 2.0];
|
|
10154
|
-
* const m = Cesium.Matrix2.fromArray(v);
|
|
10155
|
-
*
|
|
10156
|
-
* // Create same Matrix2 with using an offset into an array
|
|
10157
|
-
* const v2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0];
|
|
10158
|
-
* const m2 = Cesium.Matrix2.fromArray(v2, 2);
|
|
10159
|
-
* @param array - The array whose 4 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10160
|
-
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10161
|
-
* @param [result] - The object onto which to store the result.
|
|
10162
|
-
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10163
|
-
*/
|
|
10164
|
-
static fromArray(array: number[], startingIndex?: number, result?: Matrix2): Matrix2;
|
|
10165
10146
|
/**
|
|
10166
10147
|
* Creates a Matrix2 instance from a column-major order array.
|
|
10167
10148
|
* @param values - The column-major order array.
|
|
@@ -10249,7 +10230,7 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10249
10230
|
* @param result - The object onto which to store the result.
|
|
10250
10231
|
* @returns The modified result parameter.
|
|
10251
10232
|
*/
|
|
10252
|
-
static setColumn(matrix: Matrix2, index: number, cartesian: Cartesian2, result:
|
|
10233
|
+
static setColumn(matrix: Matrix2, index: number, cartesian: Cartesian2, result: Matrix2): Matrix2;
|
|
10253
10234
|
/**
|
|
10254
10235
|
* Retrieves a copy of the matrix row at the provided index as a Cartesian2 instance.
|
|
10255
10236
|
* @param matrix - The matrix to use.
|
|
@@ -10415,6 +10396,61 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10415
10396
|
* @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
10416
10397
|
*/
|
|
10417
10398
|
static equalsEpsilon(left?: Matrix2, right?: Matrix2, epsilon?: number): boolean;
|
|
10399
|
+
/**
|
|
10400
|
+
* Gets the number of items in the collection.
|
|
10401
|
+
*/
|
|
10402
|
+
length: number;
|
|
10403
|
+
/**
|
|
10404
|
+
* Duplicates the provided Matrix2 instance.
|
|
10405
|
+
* @param [result] - The object onto which to store the result.
|
|
10406
|
+
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10407
|
+
*/
|
|
10408
|
+
clone(result?: Matrix2): Matrix2;
|
|
10409
|
+
/**
|
|
10410
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
10411
|
+
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10412
|
+
* @param [right] - The right hand side matrix.
|
|
10413
|
+
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10414
|
+
*/
|
|
10415
|
+
equals(right?: Matrix2): boolean;
|
|
10416
|
+
/**
|
|
10417
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
10418
|
+
* <code>true</code> if they are within the provided epsilon,
|
|
10419
|
+
* <code>false</code> otherwise.
|
|
10420
|
+
* @param [right] - The right hand side matrix.
|
|
10421
|
+
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
10422
|
+
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
10423
|
+
*/
|
|
10424
|
+
equalsEpsilon(right?: Matrix2, epsilon?: number): boolean;
|
|
10425
|
+
/**
|
|
10426
|
+
* Creates a string representing this Matrix with each row being
|
|
10427
|
+
* on a separate line and in the format '(column0, column1)'.
|
|
10428
|
+
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1)'.
|
|
10429
|
+
*/
|
|
10430
|
+
toString(): string;
|
|
10431
|
+
/**
|
|
10432
|
+
* The number of elements used to pack the object into an array.
|
|
10433
|
+
*/
|
|
10434
|
+
static packedLength: number;
|
|
10435
|
+
/**
|
|
10436
|
+
* Creates a Matrix2 from 4 consecutive elements in an array.
|
|
10437
|
+
* @example
|
|
10438
|
+
* // Create the Matrix2:
|
|
10439
|
+
* // [1.0, 2.0]
|
|
10440
|
+
* // [1.0, 2.0]
|
|
10441
|
+
*
|
|
10442
|
+
* const v = [1.0, 1.0, 2.0, 2.0];
|
|
10443
|
+
* const m = Cesium.Matrix2.fromArray(v);
|
|
10444
|
+
*
|
|
10445
|
+
* // Create same Matrix2 with using an offset into an array
|
|
10446
|
+
* const v2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0];
|
|
10447
|
+
* const m2 = Cesium.Matrix2.fromArray(v2, 2);
|
|
10448
|
+
* @param array - The array whose 4 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10449
|
+
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10450
|
+
* @param [result] - The object onto which to store the result.
|
|
10451
|
+
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10452
|
+
*/
|
|
10453
|
+
static fromArray(array: number[], startingIndex?: number, result?: Matrix2): Matrix2;
|
|
10418
10454
|
/**
|
|
10419
10455
|
* An immutable Matrix2 instance initialized to the identity matrix.
|
|
10420
10456
|
*/
|
|
@@ -10451,40 +10487,13 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10451
10487
|
* matrix[Cesium.Matrix2.COLUMN1ROW1] = 5.0; // set column 1, row 1 to 5.0
|
|
10452
10488
|
*/
|
|
10453
10489
|
static readonly COLUMN1ROW1: number;
|
|
10454
|
-
/**
|
|
10455
|
-
* Gets the number of items in the collection.
|
|
10456
|
-
*/
|
|
10457
|
-
length: number;
|
|
10458
|
-
/**
|
|
10459
|
-
* Duplicates the provided Matrix2 instance.
|
|
10460
|
-
* @param [result] - The object onto which to store the result.
|
|
10461
|
-
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10462
|
-
*/
|
|
10463
|
-
clone(result?: Matrix2): Matrix2;
|
|
10464
|
-
/**
|
|
10465
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
10466
|
-
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10467
|
-
* @param [right] - The right hand side matrix.
|
|
10468
|
-
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10469
|
-
*/
|
|
10470
|
-
equals(right?: Matrix2): boolean;
|
|
10471
|
-
/**
|
|
10472
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
10473
|
-
* <code>true</code> if they are within the provided epsilon,
|
|
10474
|
-
* <code>false</code> otherwise.
|
|
10475
|
-
* @param [right] - The right hand side matrix.
|
|
10476
|
-
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
10477
|
-
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
10478
|
-
*/
|
|
10479
|
-
equalsEpsilon(right?: Matrix2, epsilon?: number): boolean;
|
|
10480
|
-
/**
|
|
10481
|
-
* Creates a string representing this Matrix with each row being
|
|
10482
|
-
* on a separate line and in the format '(column0, column1)'.
|
|
10483
|
-
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1)'.
|
|
10484
|
-
*/
|
|
10485
|
-
toString(): string;
|
|
10486
10490
|
}
|
|
10487
10491
|
|
|
10492
|
+
export type EigenDecompositionResult = {
|
|
10493
|
+
unitary?: Matrix3;
|
|
10494
|
+
diagonal?: Matrix3;
|
|
10495
|
+
};
|
|
10496
|
+
|
|
10488
10497
|
export interface Matrix3 extends ArrayLike<number> {
|
|
10489
10498
|
}
|
|
10490
10499
|
|
|
@@ -10503,10 +10512,6 @@ export interface Matrix3 extends ArrayLike<number> {
|
|
|
10503
10512
|
*/
|
|
10504
10513
|
export class Matrix3 implements ArrayLike<number> {
|
|
10505
10514
|
constructor(column0Row0?: number, column1Row0?: number, column2Row0?: number, column0Row1?: number, column1Row1?: number, column2Row1?: number, column0Row2?: number, column1Row2?: number, column2Row2?: number);
|
|
10506
|
-
/**
|
|
10507
|
-
* The number of elements used to pack the object into an array.
|
|
10508
|
-
*/
|
|
10509
|
-
static packedLength: number;
|
|
10510
10515
|
/**
|
|
10511
10516
|
* Stores the provided instance into the provided array.
|
|
10512
10517
|
* @param value - The value to pack.
|
|
@@ -10545,26 +10550,6 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
10545
10550
|
* @returns The modified result parameter or a new Matrix3 instance if one was not provided. (Returns undefined if matrix is undefined)
|
|
10546
10551
|
*/
|
|
10547
10552
|
static clone(matrix: Matrix3, result?: Matrix3): Matrix3;
|
|
10548
|
-
/**
|
|
10549
|
-
* Creates a Matrix3 from 9 consecutive elements in an array.
|
|
10550
|
-
* @example
|
|
10551
|
-
* // Create the Matrix3:
|
|
10552
|
-
* // [1.0, 2.0, 3.0]
|
|
10553
|
-
* // [1.0, 2.0, 3.0]
|
|
10554
|
-
* // [1.0, 2.0, 3.0]
|
|
10555
|
-
*
|
|
10556
|
-
* const v = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
10557
|
-
* const m = Cesium.Matrix3.fromArray(v);
|
|
10558
|
-
*
|
|
10559
|
-
* // Create same Matrix3 with using an offset into an array
|
|
10560
|
-
* const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
10561
|
-
* const m2 = Cesium.Matrix3.fromArray(v2, 2);
|
|
10562
|
-
* @param array - The array whose 9 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10563
|
-
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10564
|
-
* @param [result] - The object onto which to store the result.
|
|
10565
|
-
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
10566
|
-
*/
|
|
10567
|
-
static fromArray(array: number[], startingIndex?: number, result?: Matrix3): Matrix3;
|
|
10568
10553
|
/**
|
|
10569
10554
|
* Creates a Matrix3 instance from a column-major order array.
|
|
10570
10555
|
* @param values - The column-major order array.
|
|
@@ -10875,7 +10860,7 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
10875
10860
|
* @param [result] - An object with unitary and diagonal properties which are matrices onto which to store the result.
|
|
10876
10861
|
* @returns An object with unitary and diagonal properties which are the unitary and diagonal matrices, respectively.
|
|
10877
10862
|
*/
|
|
10878
|
-
static computeEigenDecomposition(matrix: Matrix3, result?:
|
|
10863
|
+
static computeEigenDecomposition(matrix: Matrix3, result?: EigenDecompositionResult): EigenDecompositionResult;
|
|
10879
10864
|
/**
|
|
10880
10865
|
* Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.
|
|
10881
10866
|
* @param matrix - The matrix with signed elements.
|
|
@@ -10921,6 +10906,62 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
10921
10906
|
* @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
10922
10907
|
*/
|
|
10923
10908
|
static equalsEpsilon(left?: Matrix3, right?: Matrix3, epsilon?: number): boolean;
|
|
10909
|
+
/**
|
|
10910
|
+
* Gets the number of items in the collection.
|
|
10911
|
+
*/
|
|
10912
|
+
length: number;
|
|
10913
|
+
/**
|
|
10914
|
+
* Duplicates the provided Matrix3 instance.
|
|
10915
|
+
* @param [result] - The object onto which to store the result.
|
|
10916
|
+
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
10917
|
+
*/
|
|
10918
|
+
clone(result?: Matrix3): Matrix3;
|
|
10919
|
+
/**
|
|
10920
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
10921
|
+
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10922
|
+
* @param [right] - The right hand side matrix.
|
|
10923
|
+
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10924
|
+
*/
|
|
10925
|
+
equals(right?: Matrix3): boolean;
|
|
10926
|
+
/**
|
|
10927
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
10928
|
+
* <code>true</code> if they are within the provided epsilon,
|
|
10929
|
+
* <code>false</code> otherwise.
|
|
10930
|
+
* @param [right] - The right hand side matrix.
|
|
10931
|
+
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
10932
|
+
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
10933
|
+
*/
|
|
10934
|
+
equalsEpsilon(right?: Matrix3, epsilon?: number): boolean;
|
|
10935
|
+
/**
|
|
10936
|
+
* Creates a string representing this Matrix with each row being
|
|
10937
|
+
* on a separate line and in the format '(column0, column1, column2)'.
|
|
10938
|
+
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2)'.
|
|
10939
|
+
*/
|
|
10940
|
+
toString(): string;
|
|
10941
|
+
/**
|
|
10942
|
+
* The number of elements used to pack the object into an array.
|
|
10943
|
+
*/
|
|
10944
|
+
static packedLength: number;
|
|
10945
|
+
/**
|
|
10946
|
+
* Creates a Matrix3 from 9 consecutive elements in an array.
|
|
10947
|
+
* @example
|
|
10948
|
+
* // Create the Matrix3:
|
|
10949
|
+
* // [1.0, 2.0, 3.0]
|
|
10950
|
+
* // [1.0, 2.0, 3.0]
|
|
10951
|
+
* // [1.0, 2.0, 3.0]
|
|
10952
|
+
*
|
|
10953
|
+
* const v = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
10954
|
+
* const m = Cesium.Matrix3.fromArray(v);
|
|
10955
|
+
*
|
|
10956
|
+
* // Create same Matrix3 with using an offset into an array
|
|
10957
|
+
* const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
10958
|
+
* const m2 = Cesium.Matrix3.fromArray(v2, 2);
|
|
10959
|
+
* @param array - The array whose 9 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10960
|
+
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10961
|
+
* @param [result] - The object onto which to store the result.
|
|
10962
|
+
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
10963
|
+
*/
|
|
10964
|
+
static fromArray(array: number[], startingIndex?: number, result?: Matrix3): Matrix3;
|
|
10924
10965
|
/**
|
|
10925
10966
|
* An immutable Matrix3 instance initialized to the identity matrix.
|
|
10926
10967
|
*/
|
|
@@ -10965,40 +11006,15 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
10965
11006
|
* The index into Matrix3 for column 2, row 2.
|
|
10966
11007
|
*/
|
|
10967
11008
|
static readonly COLUMN2ROW2: number;
|
|
10968
|
-
/**
|
|
10969
|
-
* Gets the number of items in the collection.
|
|
10970
|
-
*/
|
|
10971
|
-
length: number;
|
|
10972
|
-
/**
|
|
10973
|
-
* Duplicates the provided Matrix3 instance.
|
|
10974
|
-
* @param [result] - The object onto which to store the result.
|
|
10975
|
-
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
10976
|
-
*/
|
|
10977
|
-
clone(result?: Matrix3): Matrix3;
|
|
10978
|
-
/**
|
|
10979
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
10980
|
-
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10981
|
-
* @param [right] - The right hand side matrix.
|
|
10982
|
-
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10983
|
-
*/
|
|
10984
|
-
equals(right?: Matrix3): boolean;
|
|
10985
|
-
/**
|
|
10986
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
10987
|
-
* <code>true</code> if they are within the provided epsilon,
|
|
10988
|
-
* <code>false</code> otherwise.
|
|
10989
|
-
* @param [right] - The right hand side matrix.
|
|
10990
|
-
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
10991
|
-
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
10992
|
-
*/
|
|
10993
|
-
equalsEpsilon(right?: Matrix3, epsilon?: number): boolean;
|
|
10994
|
-
/**
|
|
10995
|
-
* Creates a string representing this Matrix with each row being
|
|
10996
|
-
* on a separate line and in the format '(column0, column1, column2)'.
|
|
10997
|
-
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2)'.
|
|
10998
|
-
*/
|
|
10999
|
-
toString(): string;
|
|
11000
11009
|
}
|
|
11001
11010
|
|
|
11011
|
+
export type Viewport = {
|
|
11012
|
+
x?: number;
|
|
11013
|
+
y?: number;
|
|
11014
|
+
width?: number;
|
|
11015
|
+
height?: number;
|
|
11016
|
+
};
|
|
11017
|
+
|
|
11002
11018
|
export interface Matrix4 extends ArrayLike<number> {
|
|
11003
11019
|
}
|
|
11004
11020
|
|
|
@@ -11024,10 +11040,6 @@ export interface Matrix4 extends ArrayLike<number> {
|
|
|
11024
11040
|
*/
|
|
11025
11041
|
export class Matrix4 implements ArrayLike<number> {
|
|
11026
11042
|
constructor(column0Row0?: number, column1Row0?: number, column2Row0?: number, column3Row0?: number, column0Row1?: number, column1Row1?: number, column2Row1?: number, column3Row1?: number, column0Row2?: number, column1Row2?: number, column2Row2?: number, column3Row2?: number, column0Row3?: number, column1Row3?: number, column2Row3?: number, column3Row3?: number);
|
|
11027
|
-
/**
|
|
11028
|
-
* The number of elements used to pack the object into an array.
|
|
11029
|
-
*/
|
|
11030
|
-
static packedLength: number;
|
|
11031
11043
|
/**
|
|
11032
11044
|
* Stores the provided instance into the provided array.
|
|
11033
11045
|
* @param value - The value to pack.
|
|
@@ -11066,27 +11078,6 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11066
11078
|
* @returns The modified result parameter or a new Matrix4 instance if one was not provided. (Returns undefined if matrix is undefined)
|
|
11067
11079
|
*/
|
|
11068
11080
|
static clone(matrix: Matrix4, result?: Matrix4): Matrix4;
|
|
11069
|
-
/**
|
|
11070
|
-
* Creates a Matrix4 from 16 consecutive elements in an array.
|
|
11071
|
-
* @example
|
|
11072
|
-
* // Create the Matrix4:
|
|
11073
|
-
* // [1.0, 2.0, 3.0, 4.0]
|
|
11074
|
-
* // [1.0, 2.0, 3.0, 4.0]
|
|
11075
|
-
* // [1.0, 2.0, 3.0, 4.0]
|
|
11076
|
-
* // [1.0, 2.0, 3.0, 4.0]
|
|
11077
|
-
*
|
|
11078
|
-
* const v = [1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
11079
|
-
* const m = Cesium.Matrix4.fromArray(v);
|
|
11080
|
-
*
|
|
11081
|
-
* // Create same Matrix4 with using an offset into an array
|
|
11082
|
-
* const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
11083
|
-
* const m2 = Cesium.Matrix4.fromArray(v2, 2);
|
|
11084
|
-
* @param array - The array whose 16 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
11085
|
-
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
11086
|
-
* @param [result] - The object onto which to store the result.
|
|
11087
|
-
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
11088
|
-
*/
|
|
11089
|
-
static fromArray(array: number[], startingIndex?: number, result?: Matrix4): Matrix4;
|
|
11090
11081
|
/**
|
|
11091
11082
|
* Computes a Matrix4 instance from a column-major order array.
|
|
11092
11083
|
* @param values - The column-major order array.
|
|
@@ -11244,7 +11235,7 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11244
11235
|
* @param [result] - The object in which the result will be stored.
|
|
11245
11236
|
* @returns The modified result parameter.
|
|
11246
11237
|
*/
|
|
11247
|
-
static computeViewportTransformation(viewport?:
|
|
11238
|
+
static computeViewportTransformation(viewport?: Viewport, nearDepthRange?: number, farDepthRange?: number, result?: Matrix4): Matrix4;
|
|
11248
11239
|
/**
|
|
11249
11240
|
* Computes a Matrix4 instance that transforms from world space to view space.
|
|
11250
11241
|
* @param position - The position of the camera.
|
|
@@ -11750,6 +11741,63 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11750
11741
|
* @returns The modified result parameter.
|
|
11751
11742
|
*/
|
|
11752
11743
|
static inverseTranspose(matrix: Matrix4, result: Matrix4): Matrix4;
|
|
11744
|
+
/**
|
|
11745
|
+
* Gets the number of items in the collection.
|
|
11746
|
+
*/
|
|
11747
|
+
length: number;
|
|
11748
|
+
/**
|
|
11749
|
+
* Duplicates the provided Matrix4 instance.
|
|
11750
|
+
* @param [result] - The object onto which to store the result.
|
|
11751
|
+
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
11752
|
+
*/
|
|
11753
|
+
clone(result?: Matrix4): Matrix4;
|
|
11754
|
+
/**
|
|
11755
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
11756
|
+
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11757
|
+
* @param [right] - The right hand side matrix.
|
|
11758
|
+
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11759
|
+
*/
|
|
11760
|
+
equals(right?: Matrix4): boolean;
|
|
11761
|
+
/**
|
|
11762
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
11763
|
+
* <code>true</code> if they are within the provided epsilon,
|
|
11764
|
+
* <code>false</code> otherwise.
|
|
11765
|
+
* @param [right] - The right hand side matrix.
|
|
11766
|
+
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
11767
|
+
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
11768
|
+
*/
|
|
11769
|
+
equalsEpsilon(right?: Matrix4, epsilon?: number): boolean;
|
|
11770
|
+
/**
|
|
11771
|
+
* Computes a string representing this Matrix with each row being
|
|
11772
|
+
* on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
11773
|
+
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
11774
|
+
*/
|
|
11775
|
+
toString(): string;
|
|
11776
|
+
/**
|
|
11777
|
+
* The number of elements used to pack the object into an array.
|
|
11778
|
+
*/
|
|
11779
|
+
static packedLength: number;
|
|
11780
|
+
/**
|
|
11781
|
+
* Creates a Matrix4 from 16 consecutive elements in an array.
|
|
11782
|
+
* @example
|
|
11783
|
+
* // Create the Matrix4:
|
|
11784
|
+
* // [1.0, 2.0, 3.0, 4.0]
|
|
11785
|
+
* // [1.0, 2.0, 3.0, 4.0]
|
|
11786
|
+
* // [1.0, 2.0, 3.0, 4.0]
|
|
11787
|
+
* // [1.0, 2.0, 3.0, 4.0]
|
|
11788
|
+
*
|
|
11789
|
+
* const v = [1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
11790
|
+
* const m = Cesium.Matrix4.fromArray(v);
|
|
11791
|
+
*
|
|
11792
|
+
* // Create same Matrix4 with using an offset into an array
|
|
11793
|
+
* const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
11794
|
+
* const m2 = Cesium.Matrix4.fromArray(v2, 2);
|
|
11795
|
+
* @param array - The array whose 16 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
11796
|
+
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
11797
|
+
* @param [result] - The object onto which to store the result.
|
|
11798
|
+
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
11799
|
+
*/
|
|
11800
|
+
static fromArray(array: number[], startingIndex?: number, result?: Matrix4): Matrix4;
|
|
11753
11801
|
/**
|
|
11754
11802
|
* An immutable Matrix4 instance initialized to the identity matrix.
|
|
11755
11803
|
*/
|
|
@@ -11822,38 +11870,6 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11822
11870
|
* The index into Matrix4 for column 3, row 3.
|
|
11823
11871
|
*/
|
|
11824
11872
|
static readonly COLUMN3ROW3: number;
|
|
11825
|
-
/**
|
|
11826
|
-
* Gets the number of items in the collection.
|
|
11827
|
-
*/
|
|
11828
|
-
length: number;
|
|
11829
|
-
/**
|
|
11830
|
-
* Duplicates the provided Matrix4 instance.
|
|
11831
|
-
* @param [result] - The object onto which to store the result.
|
|
11832
|
-
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
11833
|
-
*/
|
|
11834
|
-
clone(result?: Matrix4): Matrix4;
|
|
11835
|
-
/**
|
|
11836
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
11837
|
-
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11838
|
-
* @param [right] - The right hand side matrix.
|
|
11839
|
-
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11840
|
-
*/
|
|
11841
|
-
equals(right?: Matrix4): boolean;
|
|
11842
|
-
/**
|
|
11843
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
11844
|
-
* <code>true</code> if they are within the provided epsilon,
|
|
11845
|
-
* <code>false</code> otherwise.
|
|
11846
|
-
* @param [right] - The right hand side matrix.
|
|
11847
|
-
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
11848
|
-
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
11849
|
-
*/
|
|
11850
|
-
equalsEpsilon(right?: Matrix4, epsilon?: number): boolean;
|
|
11851
|
-
/**
|
|
11852
|
-
* Computes a string representing this Matrix with each row being
|
|
11853
|
-
* on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
11854
|
-
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
11855
|
-
*/
|
|
11856
|
-
toString(): string;
|
|
11857
11873
|
}
|
|
11858
11874
|
|
|
11859
11875
|
/**
|
|
@@ -14558,10 +14574,6 @@ export class Rectangle {
|
|
|
14558
14574
|
* Gets the height of the rectangle in radians.
|
|
14559
14575
|
*/
|
|
14560
14576
|
readonly height: number;
|
|
14561
|
-
/**
|
|
14562
|
-
* The number of elements used to pack the object into an array.
|
|
14563
|
-
*/
|
|
14564
|
-
static packedLength: number;
|
|
14565
14577
|
/**
|
|
14566
14578
|
* Stores the provided instance into the provided array.
|
|
14567
14579
|
* @param value - The value to pack.
|
|
@@ -14787,6 +14799,10 @@ export class Rectangle {
|
|
|
14787
14799
|
* @returns The modified result parameter or a new Rectangle instance if none was provided.
|
|
14788
14800
|
*/
|
|
14789
14801
|
static subsection(rectangle: Rectangle, westLerp: number, southLerp: number, eastLerp: number, northLerp: number, result?: Rectangle): Rectangle;
|
|
14802
|
+
/**
|
|
14803
|
+
* The number of elements used to pack the object into an array.
|
|
14804
|
+
*/
|
|
14805
|
+
static packedLength: number;
|
|
14790
14806
|
/**
|
|
14791
14807
|
* The largest possible rectangle.
|
|
14792
14808
|
*/
|
|
@@ -17054,8 +17070,7 @@ export namespace TileProviderError {
|
|
|
17054
17070
|
* At level of detail two, each of the level one tiles has four children, two in each direction.
|
|
17055
17071
|
* This continues for as many levels as are present in the geometry or imagery source.
|
|
17056
17072
|
*/
|
|
17057
|
-
export
|
|
17058
|
-
constructor();
|
|
17073
|
+
export interface TilingScheme {
|
|
17059
17074
|
/**
|
|
17060
17075
|
* Gets the ellipsoid that is tiled by the tiling scheme.
|
|
17061
17076
|
*/
|
|
@@ -17101,7 +17116,7 @@ export class TilingScheme {
|
|
|
17101
17116
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
17102
17117
|
* if 'result' is undefined.
|
|
17103
17118
|
*/
|
|
17104
|
-
tileXYToNativeRectangle(x: number, y: number, level: number, result?:
|
|
17119
|
+
tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
17105
17120
|
/**
|
|
17106
17121
|
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
17107
17122
|
* @param x - The integer x coordinate of the tile.
|
|
@@ -17112,7 +17127,7 @@ export class TilingScheme {
|
|
|
17112
17127
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
17113
17128
|
* if 'result' is undefined.
|
|
17114
17129
|
*/
|
|
17115
|
-
tileXYToRectangle(x: number, y: number, level: number, result?:
|
|
17130
|
+
tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
17116
17131
|
/**
|
|
17117
17132
|
* Calculates the tile x, y coordinates of the tile containing
|
|
17118
17133
|
* a given cartographic position.
|
|
@@ -18455,13 +18470,16 @@ export class WallOutlineGeometry {
|
|
|
18455
18470
|
static createGeometry(wallGeometry: WallOutlineGeometry): Geometry | undefined;
|
|
18456
18471
|
}
|
|
18457
18472
|
|
|
18473
|
+
export interface WebMercatorProjection extends MapProjection {
|
|
18474
|
+
}
|
|
18475
|
+
|
|
18458
18476
|
/**
|
|
18459
18477
|
* The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This
|
|
18460
18478
|
* projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using
|
|
18461
18479
|
* the spherical (rather than ellipsoidal) equations.
|
|
18462
18480
|
* @param [ellipsoid = Ellipsoid.WGS84] - The ellipsoid.
|
|
18463
18481
|
*/
|
|
18464
|
-
export class WebMercatorProjection {
|
|
18482
|
+
export class WebMercatorProjection implements MapProjection {
|
|
18465
18483
|
constructor(ellipsoid?: Ellipsoid);
|
|
18466
18484
|
/**
|
|
18467
18485
|
* Gets the {@link Ellipsoid}.
|
|
@@ -18481,19 +18499,6 @@ export class WebMercatorProjection {
|
|
|
18481
18499
|
* @returns The Mercator angle.
|
|
18482
18500
|
*/
|
|
18483
18501
|
static geodeticLatitudeToMercatorAngle(latitude: number): number;
|
|
18484
|
-
/**
|
|
18485
|
-
* The maximum latitude (both North and South) supported by a Web Mercator
|
|
18486
|
-
* (EPSG:3857) projection. Technically, the Mercator projection is defined
|
|
18487
|
-
* for any latitude up to (but not including) 90 degrees, but it makes sense
|
|
18488
|
-
* to cut it off sooner because it grows exponentially with increasing latitude.
|
|
18489
|
-
* The logic behind this particular cutoff value, which is the one used by
|
|
18490
|
-
* Google Maps, Bing Maps, and Esri, is that it makes the projection
|
|
18491
|
-
* square. That is, the rectangle is equal in the X and Y directions.
|
|
18492
|
-
*
|
|
18493
|
-
* The constant value is computed by calling:
|
|
18494
|
-
* WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)
|
|
18495
|
-
*/
|
|
18496
|
-
static MaximumLatitude: number;
|
|
18497
18502
|
/**
|
|
18498
18503
|
* Converts geodetic ellipsoid coordinates, in radians, to the equivalent Web Mercator
|
|
18499
18504
|
* X, Y, Z coordinates expressed in meters and returned in a {@link Cartesian3}. The height
|
|
@@ -18514,6 +18519,24 @@ export class WebMercatorProjection {
|
|
|
18514
18519
|
* @returns The equivalent cartographic coordinates.
|
|
18515
18520
|
*/
|
|
18516
18521
|
unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic;
|
|
18522
|
+
/**
|
|
18523
|
+
* The maximum latitude (both North and South) supported by a Web Mercator
|
|
18524
|
+
* (EPSG:3857) projection. Technically, the Mercator projection is defined
|
|
18525
|
+
* for any latitude up to (but not including) 90 degrees, but it makes sense
|
|
18526
|
+
* to cut it off sooner because it grows exponentially with increasing latitude.
|
|
18527
|
+
* The logic behind this particular cutoff value, which is the one used by
|
|
18528
|
+
* Google Maps, Bing Maps, and Esri, is that it makes the projection
|
|
18529
|
+
* square. That is, the rectangle is equal in the X and Y directions.
|
|
18530
|
+
*
|
|
18531
|
+
* The constant value is computed by calling:
|
|
18532
|
+
* WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)
|
|
18533
|
+
*/
|
|
18534
|
+
static MaximumLatitude: number;
|
|
18535
|
+
}
|
|
18536
|
+
|
|
18537
|
+
export const southwestScratch: any;
|
|
18538
|
+
|
|
18539
|
+
export interface WebMercatorTilingScheme extends TilingScheme {
|
|
18517
18540
|
}
|
|
18518
18541
|
|
|
18519
18542
|
/**
|
|
@@ -18535,7 +18558,7 @@ export class WebMercatorProjection {
|
|
|
18535
18558
|
* globe is covered in the longitude direction and an equal distance is covered in the latitude
|
|
18536
18559
|
* direction, resulting in a square projection.
|
|
18537
18560
|
*/
|
|
18538
|
-
export class WebMercatorTilingScheme {
|
|
18561
|
+
export class WebMercatorTilingScheme implements TilingScheme {
|
|
18539
18562
|
constructor(options?: {
|
|
18540
18563
|
ellipsoid?: Ellipsoid;
|
|
18541
18564
|
numberOfLevelZeroTilesX?: number;
|
|
@@ -18588,7 +18611,7 @@ export class WebMercatorTilingScheme {
|
|
|
18588
18611
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
18589
18612
|
* if 'result' is undefined.
|
|
18590
18613
|
*/
|
|
18591
|
-
tileXYToNativeRectangle(x: number, y: number, level: number, result?:
|
|
18614
|
+
tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
18592
18615
|
/**
|
|
18593
18616
|
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
18594
18617
|
* @param x - The integer x coordinate of the tile.
|
|
@@ -18599,7 +18622,7 @@ export class WebMercatorTilingScheme {
|
|
|
18599
18622
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
18600
18623
|
* if 'result' is undefined.
|
|
18601
18624
|
*/
|
|
18602
|
-
tileXYToRectangle(x: number, y: number, level: number, result?:
|
|
18625
|
+
tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
18603
18626
|
/**
|
|
18604
18627
|
* Calculates the tile x, y coordinates of the tile containing
|
|
18605
18628
|
* a given cartographic position.
|
|
@@ -27653,11 +27676,14 @@ export class BufferPoint extends BufferPrimitive {
|
|
|
27653
27676
|
}
|
|
27654
27677
|
|
|
27655
27678
|
/**
|
|
27656
|
-
* @property [
|
|
27679
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
27657
27680
|
*/
|
|
27658
27681
|
export type BufferPointOptions = {
|
|
27682
|
+
modelMatrix?: Matrix4;
|
|
27659
27683
|
show?: boolean;
|
|
27660
27684
|
material?: BufferPointMaterial;
|
|
27685
|
+
featureId?: number;
|
|
27686
|
+
pickObject?: any;
|
|
27661
27687
|
position?: Cartesian3;
|
|
27662
27688
|
};
|
|
27663
27689
|
|
|
@@ -27691,6 +27717,7 @@ export class BufferPointCollection extends BufferPrimitiveCollection<BufferPoint
|
|
|
27691
27717
|
primitiveCountMax?: number;
|
|
27692
27718
|
show?: boolean;
|
|
27693
27719
|
debugShowBoundingVolume?: boolean;
|
|
27720
|
+
allowPicking?: boolean;
|
|
27694
27721
|
});
|
|
27695
27722
|
/**
|
|
27696
27723
|
* Adds a new point to the collection, with the specified options. A
|
|
@@ -27870,11 +27897,14 @@ export class BufferPolygon extends BufferPrimitive {
|
|
|
27870
27897
|
}
|
|
27871
27898
|
|
|
27872
27899
|
/**
|
|
27873
|
-
* @property [
|
|
27900
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
27874
27901
|
*/
|
|
27875
27902
|
export type BufferPolygonOptions = {
|
|
27903
|
+
modelMatrix?: Matrix4;
|
|
27876
27904
|
show?: boolean;
|
|
27877
27905
|
material?: BufferPolygonMaterial;
|
|
27906
|
+
featureId?: number;
|
|
27907
|
+
pickObject?: any;
|
|
27878
27908
|
positions?: TypedArray;
|
|
27879
27909
|
holes?: TypedArray;
|
|
27880
27910
|
triangles?: TypedArray;
|
|
@@ -28054,11 +28084,14 @@ export class BufferPolyline extends BufferPrimitive {
|
|
|
28054
28084
|
}
|
|
28055
28085
|
|
|
28056
28086
|
/**
|
|
28057
|
-
* @property [
|
|
28087
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
28058
28088
|
*/
|
|
28059
28089
|
export type BufferPolylineOptions = {
|
|
28090
|
+
modelMatrix?: Matrix4;
|
|
28060
28091
|
show?: boolean;
|
|
28061
28092
|
material?: BufferPolylineMaterial;
|
|
28093
|
+
featureId?: number;
|
|
28094
|
+
pickObject?: any;
|
|
28062
28095
|
positions?: TypedArray;
|
|
28063
28096
|
};
|
|
28064
28097
|
|
|
@@ -28184,9 +28217,15 @@ export class BufferPrimitive {
|
|
|
28184
28217
|
toJSON(): any;
|
|
28185
28218
|
}
|
|
28186
28219
|
|
|
28220
|
+
/**
|
|
28221
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
28222
|
+
*/
|
|
28187
28223
|
export type BufferPrimitiveOptions = {
|
|
28224
|
+
modelMatrix?: Matrix4;
|
|
28188
28225
|
show?: boolean;
|
|
28189
28226
|
material?: BufferPrimitiveMaterial;
|
|
28227
|
+
featureId?: number;
|
|
28228
|
+
pickObject?: any;
|
|
28190
28229
|
};
|
|
28191
28230
|
|
|
28192
28231
|
/**
|
|
@@ -28209,32 +28248,13 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
|
|
|
28209
28248
|
allowPicking?: boolean;
|
|
28210
28249
|
debugShowBoundingVolume?: boolean;
|
|
28211
28250
|
});
|
|
28212
|
-
/**
|
|
28213
|
-
* Default capacity of buffers on new collections. A quantity of elements:
|
|
28214
|
-
* number of vertices in the vertex buffer, primitives in the primitive
|
|
28215
|
-
* buffer, etc. This value is arbitrary, and collections cannot be resized,
|
|
28216
|
-
* so specific per-buffer capacities should be provided in the collection
|
|
28217
|
-
* constructor when available.
|
|
28218
|
-
*/
|
|
28219
|
-
readonly DEFAULT_CAPACITY: number;
|
|
28220
28251
|
/**
|
|
28221
28252
|
* Determines if primitives in this collection will be shown.
|
|
28222
28253
|
*/
|
|
28223
28254
|
show: boolean;
|
|
28224
|
-
|
|
28225
|
-
|
|
28226
|
-
|
|
28227
|
-
modelMatrix: Matrix4;
|
|
28228
|
-
/**
|
|
28229
|
-
* Local bounding volume for all primitives in the collection, including both
|
|
28230
|
-
* shown and hidden primitives.
|
|
28231
|
-
*/
|
|
28232
|
-
boundingVolume: BoundingSphere;
|
|
28233
|
-
/**
|
|
28234
|
-
* World bounding volume for all primitives in the collection, including both
|
|
28235
|
-
* shown and hidden primitives.
|
|
28236
|
-
*/
|
|
28237
|
-
boundingVolumeWC: BoundingSphere;
|
|
28255
|
+
protected readonly _modelMatrix: Matrix4;
|
|
28256
|
+
protected readonly _boundingVolume: BoundingSphere;
|
|
28257
|
+
protected readonly _boundingVolumeWC: BoundingSphere;
|
|
28238
28258
|
/**
|
|
28239
28259
|
* This property is for debugging only; it is not for production use nor is it optimized.
|
|
28240
28260
|
* <p>
|
|
@@ -28324,6 +28344,20 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
|
|
|
28324
28344
|
* {@link vertexCount}.
|
|
28325
28345
|
*/
|
|
28326
28346
|
readonly vertexCountMax: number;
|
|
28347
|
+
/**
|
|
28348
|
+
* Transforms geometry from model to world coordinates.
|
|
28349
|
+
*/
|
|
28350
|
+
readonly modelMatrix: Matrix4;
|
|
28351
|
+
/**
|
|
28352
|
+
* Local bounding volume for all primitives in the collection, including both
|
|
28353
|
+
* shown and hidden primitives.
|
|
28354
|
+
*/
|
|
28355
|
+
readonly boundingVolume: BoundingSphere;
|
|
28356
|
+
/**
|
|
28357
|
+
* World bounding volume for all primitives in the collection, including both
|
|
28358
|
+
* shown and hidden primitives.
|
|
28359
|
+
*/
|
|
28360
|
+
readonly boundingVolumeWC: BoundingSphere;
|
|
28327
28361
|
/**
|
|
28328
28362
|
* Returns a JSON-serializable array representing the collection. This encoding
|
|
28329
28363
|
* is not memory-efficient, and should generally be used for debugging and
|
|
@@ -28334,6 +28368,14 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
|
|
|
28334
28368
|
* primitive in the collection.
|
|
28335
28369
|
*/
|
|
28336
28370
|
toJSON(): object[];
|
|
28371
|
+
/**
|
|
28372
|
+
* Default capacity of buffers on new collections. A quantity of elements:
|
|
28373
|
+
* number of vertices in the vertex buffer, primitives in the primitive
|
|
28374
|
+
* buffer, etc. This value is arbitrary, and collections cannot be resized,
|
|
28375
|
+
* so specific per-buffer capacities should be provided in the collection
|
|
28376
|
+
* constructor when available.
|
|
28377
|
+
*/
|
|
28378
|
+
static readonly DEFAULT_CAPACITY: number;
|
|
28337
28379
|
}
|
|
28338
28380
|
|
|
28339
28381
|
/**
|
|
@@ -29383,7 +29425,7 @@ export class Cesium3DTileContent {
|
|
|
29383
29425
|
* }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
29384
29426
|
*/
|
|
29385
29427
|
export class Cesium3DTileFeature {
|
|
29386
|
-
constructor();
|
|
29428
|
+
constructor(content: Cesium3DTileContent, batchId: number);
|
|
29387
29429
|
/**
|
|
29388
29430
|
* Gets or sets if the feature will be shown. This is set for all features
|
|
29389
29431
|
* when a style's show is evaluated.
|
|
@@ -29531,7 +29573,7 @@ export class Cesium3DTileFeature {
|
|
|
29531
29573
|
* }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
29532
29574
|
*/
|
|
29533
29575
|
export class Cesium3DTilePointFeature {
|
|
29534
|
-
constructor();
|
|
29576
|
+
constructor(content: Cesium3DTileContent, batchId: number, billboard: Billboard, label: Label, polyline: Polyline);
|
|
29535
29577
|
/**
|
|
29536
29578
|
* Gets or sets if the feature will be shown. This is set for all features
|
|
29537
29579
|
* when a style's show is evaluated.
|
|
@@ -30423,6 +30465,8 @@ export class Cesium3DTileStyle {
|
|
|
30423
30465
|
meta: StyleExpression;
|
|
30424
30466
|
}
|
|
30425
30467
|
|
|
30468
|
+
export const point: any;
|
|
30469
|
+
|
|
30426
30470
|
export namespace Cesium3DTilesVoxelProvider {
|
|
30427
30471
|
/**
|
|
30428
30472
|
* Initialization options for the Cesium3DTilesVoxelProvider constructor
|
|
@@ -31415,6 +31459,10 @@ export class Cesium3DTileset {
|
|
|
31415
31459
|
* </p>
|
|
31416
31460
|
*/
|
|
31417
31461
|
readonly heightReference: HeightReference | undefined;
|
|
31462
|
+
/**
|
|
31463
|
+
* The {@link CesiumWidget#scene} that the tileset will be rendered in, required for tilesets that specify a {@link heightReference} value for clamping 3D Tiles vector data content- like points, lines, and labels- to terrain or 3D tiles.
|
|
31464
|
+
*/
|
|
31465
|
+
readonly scene: Scene | undefined;
|
|
31418
31466
|
/**
|
|
31419
31467
|
* Gets an ellipsoid describing the shape of the globe.
|
|
31420
31468
|
*/
|
|
@@ -31603,11 +31651,6 @@ export class Cesium3DTileset {
|
|
|
31603
31651
|
getHeight(cartographic: Cartographic, scene: Scene): number | undefined;
|
|
31604
31652
|
}
|
|
31605
31653
|
|
|
31606
|
-
/**
|
|
31607
|
-
* The {@link CesiumWidget#scene} that the tileset will be rendered in, required for tilesets that specify a {@link heightReference} value for clamping 3D Tiles vector data content- like points, lines, and labels- to terrain or 3D tiles.
|
|
31608
|
-
*/
|
|
31609
|
-
export const of = "undefined";
|
|
31610
|
-
|
|
31611
31654
|
/**
|
|
31612
31655
|
* A ParticleEmitter that emits particles from a circle.
|
|
31613
31656
|
* Particles will be positioned within a circle and have initial velocities going along the z vector.
|
|
@@ -36787,7 +36830,7 @@ export class ImageryLayerFeatureInfo {
|
|
|
36787
36830
|
*
|
|
36788
36831
|
* See the documentation for each ImageryProvider class for more information about how they return images.
|
|
36789
36832
|
*/
|
|
36790
|
-
export type ImageryTypes = HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
36833
|
+
export type ImageryTypes = HTMLImageElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
|
|
36791
36834
|
|
|
36792
36835
|
/**
|
|
36793
36836
|
* Provides imagery to be displayed on the surface of an ellipsoid. This type describes an
|
|
@@ -43173,12 +43216,6 @@ export class PrimitiveCollection {
|
|
|
43173
43216
|
destroy(): void;
|
|
43174
43217
|
}
|
|
43175
43218
|
|
|
43176
|
-
/**
|
|
43177
|
-
* A simple Least Recently Used (LRU) cache implementation.
|
|
43178
|
-
*/
|
|
43179
|
-
export class LRUCache {
|
|
43180
|
-
}
|
|
43181
|
-
|
|
43182
43219
|
/**
|
|
43183
43220
|
* Creates a spatial hash key for the given longitude, latitude, and tile level.
|
|
43184
43221
|
* The precision is adjusted based on the tile level and extent to achieve finer precision at higher levels.
|
|
@@ -44557,6 +44594,10 @@ export class SkyBox {
|
|
|
44557
44594
|
* Gets or sets the the primitive object.
|
|
44558
44595
|
*/
|
|
44559
44596
|
sources: any;
|
|
44597
|
+
/**
|
|
44598
|
+
* Determines if the sky box will be shown.
|
|
44599
|
+
*/
|
|
44600
|
+
show: boolean;
|
|
44560
44601
|
/**
|
|
44561
44602
|
* Called when {@link Viewer} or {@link CesiumWidget} render the scene to
|
|
44562
44603
|
* get the draw commands needed to render this primitive.
|
|
@@ -44594,11 +44635,6 @@ export class SkyBox {
|
|
|
44594
44635
|
static createEarthSkyBox(): SkyBox;
|
|
44595
44636
|
}
|
|
44596
44637
|
|
|
44597
|
-
/**
|
|
44598
|
-
* Determines if the sky box will be shown.
|
|
44599
|
-
*/
|
|
44600
|
-
export var show: boolean;
|
|
44601
|
-
|
|
44602
44638
|
/**
|
|
44603
44639
|
* A ParticleEmitter that emits particles within a sphere.
|
|
44604
44640
|
* Particles will be positioned randomly within the sphere and have initial velocities emanating from the center of the sphere.
|
|
@@ -45847,6 +45883,12 @@ export class VoxelCell {
|
|
|
45847
45883
|
*/
|
|
45848
45884
|
export class VoxelContent {
|
|
45849
45885
|
constructor();
|
|
45886
|
+
/**
|
|
45887
|
+
* The metadata for this voxel content.
|
|
45888
|
+
* The metadata is an array of typed arrays, one for each field.
|
|
45889
|
+
* The data for one field is a flattened 3D array ordered by X, then Y, then Z.
|
|
45890
|
+
*/
|
|
45891
|
+
readonly metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
|
|
45850
45892
|
/**
|
|
45851
45893
|
* Constructs a VoxelContent from an array of metadata.
|
|
45852
45894
|
* @param metadata - The metadata to use for this voxel content.
|
|
@@ -45855,13 +45897,6 @@ export class VoxelContent {
|
|
|
45855
45897
|
static fromMetadataArray(metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[]): VoxelContent;
|
|
45856
45898
|
}
|
|
45857
45899
|
|
|
45858
|
-
/**
|
|
45859
|
-
* The metadata for this voxel content.
|
|
45860
|
-
* The metadata is an array of typed arrays, one for each field.
|
|
45861
|
-
* The data for one field is a flattened 3D array ordered by X, then Y, then Z.
|
|
45862
|
-
*/
|
|
45863
|
-
export const metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
|
|
45864
|
-
|
|
45865
45900
|
/**
|
|
45866
45901
|
* A primitive that renders voxel data from a {@link VoxelProvider}.
|
|
45867
45902
|
* @param [options] - Object with the following properties:
|
|
@@ -46166,6 +46201,10 @@ export class VoxelProvider {
|
|
|
46166
46201
|
* If this value is not known it can be undefined.
|
|
46167
46202
|
*/
|
|
46168
46203
|
readonly maximumTileCount: number | undefined;
|
|
46204
|
+
/**
|
|
46205
|
+
* The number of levels of detail containing available tiles in the tileset.
|
|
46206
|
+
*/
|
|
46207
|
+
readonly availableLevels: number | undefined;
|
|
46169
46208
|
/**
|
|
46170
46209
|
* Requests the data for a given tile.
|
|
46171
46210
|
* @param [options] - Object with the following properties:
|
|
@@ -46183,11 +46222,6 @@ export class VoxelProvider {
|
|
|
46183
46222
|
}): Promise<VoxelContent> | undefined;
|
|
46184
46223
|
}
|
|
46185
46224
|
|
|
46186
|
-
/**
|
|
46187
|
-
* The number of levels of detail containing available tiles in the tileset.
|
|
46188
|
-
*/
|
|
46189
|
-
export const availableLevels: number | undefined;
|
|
46190
|
-
|
|
46191
46225
|
/**
|
|
46192
46226
|
* An enum of voxel shapes. The shape controls how the voxel grid is mapped to 3D space.
|
|
46193
46227
|
*/
|
|
@@ -47195,7 +47229,7 @@ export class CesiumWidget {
|
|
|
47195
47229
|
* @param [offset] - The offset from the center of the entity in the local east-north-up reference frame.
|
|
47196
47230
|
* @returns A Promise that resolves to true if the zoom was successful or false if the target is not currently visualized in the scene or the zoom was cancelled.
|
|
47197
47231
|
*/
|
|
47198
|
-
zoomTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive
|
|
47232
|
+
zoomTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive | BufferPrimitiveCollection<BufferPrimitive>>, offset?: HeadingPitchRange): Promise<boolean>;
|
|
47199
47233
|
/**
|
|
47200
47234
|
* Flies the camera to the provided entity, entities, or data source.
|
|
47201
47235
|
* If the data source is still in the process of loading or the visualization is otherwise still loading,
|
|
@@ -47217,7 +47251,7 @@ export class CesiumWidget {
|
|
|
47217
47251
|
* @param [options.offset] - The offset from the target in the local east-north-up reference frame centered at the target.
|
|
47218
47252
|
* @returns A Promise that resolves to true if the flight was successful or false if the target is not currently visualized in the scene or the flight was cancelled. //TODO: Cleanup entity mentions
|
|
47219
47253
|
*/
|
|
47220
|
-
flyTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive
|
|
47254
|
+
flyTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive | BufferPrimitiveCollection<BufferPrimitive>>, options?: {
|
|
47221
47255
|
duration?: number;
|
|
47222
47256
|
maximumHeight?: number;
|
|
47223
47257
|
offset?: HeadingPitchRange;
|