@cesium/engine 23.0.1 → 24.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-G6MJ3ZW3.js → chunk-2N4KDHS3.js} +10 -10
- package/Build/Workers/{chunk-C6HHBKT5.js → chunk-44EMEGKW.js} +5 -5
- package/Build/Workers/{chunk-TNXOPEIG.js → chunk-4TIG36AW.js} +12 -12
- package/Build/Workers/{chunk-PQTSXJBJ.js → chunk-5A2SW66E.js} +16 -16
- package/Build/Workers/{chunk-TXYQNXNW.js → chunk-5GXYJQ2K.js} +3 -3
- package/Build/Workers/{chunk-O67UP5YO.js → chunk-63SIWPLS.js} +13 -13
- package/Build/Workers/{chunk-CVAAIRNP.js → chunk-6MPGQEHA.js} +2 -2
- package/Build/Workers/{chunk-LHFC4R7Z.js → chunk-6RMS4S72.js} +6 -6
- package/Build/Workers/{chunk-77DJBHMI.js → chunk-6WLHJFD3.js} +7 -7
- package/Build/Workers/{chunk-HXEPZWJN.js → chunk-72VYSVEW.js} +9 -9
- package/Build/Workers/{chunk-VPWYHFQA.js → chunk-7MDYBRYJ.js} +4 -4
- package/Build/Workers/{chunk-XPMXRJDD.js → chunk-7O5XJTVE.js} +5 -5
- package/Build/Workers/{chunk-UEWYSOFD.js → chunk-7QRFIKWQ.js} +2 -2
- package/Build/Workers/{chunk-3UQ2YMPP.js → chunk-7TYLCBGK.js} +8 -8
- package/Build/Workers/{chunk-GLCPE2BJ.js → chunk-7X322WP2.js} +13 -13
- package/Build/Workers/{chunk-2OBWHTIC.js → chunk-A47HVBC5.js} +7 -7
- package/Build/Workers/{chunk-CID5SY7L.js → chunk-AF3MU2RL.js} +5 -5
- package/Build/Workers/{chunk-BTP3634E.js → chunk-AJLTU6PF.js} +1 -1
- package/Build/Workers/{chunk-YSJRB2UZ.js → chunk-AMIHNSST.js} +2 -2
- package/Build/Workers/{chunk-QPXGGVHC.js → chunk-B6SCUUFP.js} +10 -10
- package/Build/Workers/{chunk-QNABVTTP.js → chunk-BJD6QGXZ.js} +12 -12
- package/Build/Workers/{chunk-RZX6LOG6.js → chunk-C6P4IG5P.js} +6 -6
- package/Build/Workers/{chunk-4JJQRZYL.js → chunk-D4EJ2NXG.js} +17 -17
- package/Build/Workers/{chunk-K7UTK4OM.js → chunk-DHKPFLSJ.js} +1 -1
- package/Build/Workers/{chunk-S53HSRT6.js → chunk-DVB56LG7.js} +6 -6
- package/Build/Workers/{chunk-PBECJOWF.js → chunk-EDXL4W76.js} +2 -2
- package/Build/Workers/{chunk-ALTCIHRH.js → chunk-EV3VGO6Y.js} +17 -17
- package/Build/Workers/{chunk-UOQB7XQI.js → chunk-GOQBUCXH.js} +10 -10
- package/Build/Workers/{chunk-TMCTZ5E3.js → chunk-GQUNK2XC.js} +14 -14
- package/Build/Workers/{chunk-PAFMAR7A.js → chunk-HKUES6UG.js} +12 -12
- package/Build/Workers/{chunk-6U5QMZU3.js → chunk-HRHRYFHS.js} +9 -9
- package/Build/Workers/{chunk-PUO7BYDY.js → chunk-HXJMS2ZI.js} +1 -1
- package/Build/Workers/{chunk-FXSRA5UG.js → chunk-ILMFADZA.js} +4 -4
- package/Build/Workers/{chunk-U4SWB6TI.js → chunk-ISY4EZCA.js} +4 -4
- package/Build/Workers/{chunk-PGZ3B6CB.js → chunk-J6AW5YHS.js} +14 -14
- package/Build/Workers/{chunk-VX774SWE.js → chunk-JCI63T3K.js} +6 -6
- package/Build/Workers/{chunk-54O3AGOA.js → chunk-KLPGTXS3.js} +6 -6
- package/Build/Workers/{chunk-CNLXMOPM.js → chunk-LIB2H534.js} +10 -10
- package/Build/Workers/{chunk-H3TVRJLY.js → chunk-LXMCPFFS.js} +4 -4
- package/Build/Workers/{chunk-DNMASBMH.js → chunk-MKM27KGV.js} +2 -2
- package/Build/Workers/{chunk-66OWUDO7.js → chunk-N65BAKSH.js} +8 -8
- package/Build/Workers/{chunk-ZEMJQKHD.js → chunk-NKT5K3K3.js} +11 -11
- package/Build/Workers/{chunk-EIC3VAOZ.js → chunk-NPF7SSHZ.js} +7 -7
- package/Build/Workers/{chunk-YDR5LX5Z.js → chunk-PVV64VFW.js} +1 -1
- package/Build/Workers/{chunk-FKU77FNM.js → chunk-Q3C6VQH6.js} +4 -4
- package/Build/Workers/{chunk-CYOPNGPX.js → chunk-RQNJD3O4.js} +12 -12
- package/Build/Workers/{chunk-IJ3SUMK3.js → chunk-UIGVOKKI.js} +1 -1
- package/Build/Workers/{chunk-TFPG3ZKW.js → chunk-UQU4RXLT.js} +27 -19
- package/Build/Workers/{chunk-N6HRZLS6.js → chunk-VLDEUTOP.js} +2 -2
- package/Build/Workers/{chunk-MNSNOONX.js → chunk-VMVOUQ5J.js} +7 -7
- package/Build/Workers/{chunk-OZYB3AOR.js → chunk-XJRBB253.js} +11 -11
- package/Build/Workers/{chunk-B2VA6IEL.js → chunk-XY6HMDGI.js} +5 -5
- package/Build/Workers/{chunk-2M7DKGLW.js → chunk-Y7HNNPNK.js} +10 -10
- package/Build/Workers/{chunk-CJ7ZDY77.js → chunk-YAOZMOFL.js} +5 -5
- package/Build/Workers/{chunk-FCJQO4NC.js → chunk-YJZGW74L.js} +8 -8
- package/Build/Workers/{chunk-JUKGMJX7.js → chunk-YQFTYQMZ.js} +1 -1
- package/Build/Workers/{chunk-HNDE73JK.js → chunk-ZBZRTRJB.js} +10 -10
- 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 +22 -22
- 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 +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
- package/Build/Workers/createWallGeometry.js +25 -25
- package/Build/Workers/createWallOutlineGeometry.js +24 -24
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +12 -12
- 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 +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Core/BoundingSphere.js +1 -1
- package/Source/Core/Cartesian2.js +7 -5
- package/Source/Core/Cartesian3.js +8 -6
- package/Source/Core/Cartesian4.js +8 -6
- package/Source/Core/Color.js +5 -3
- package/Source/Core/DeveloperError.js +2 -1
- package/Source/Core/ITwinPlatform.js +1 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/S2Cell.js +2 -2
- package/Source/Core/TerrainMesh.js +10 -1
- package/Source/Core/TerrainPicker.js +1 -0
- package/Source/Core/WallGeometry.js +1 -1
- package/Source/Core/WallOutlineGeometry.js +1 -1
- package/Source/Core/assert.js +27 -0
- package/Source/Core/globalTypes.js +4 -0
- package/Source/DataSources/CzmlDataSource.js +9 -0
- package/Source/DataSources/PathGraphics.js +13 -0
- package/Source/DataSources/PathVisualizer.js +330 -18
- package/Source/DataSources/StaticGeometryColorBatch.js +7 -2
- package/Source/DataSources/StaticGeometryPerMaterialBatch.js +7 -2
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +3 -1
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +3 -1
- package/Source/Renderer/Context.js +1 -1
- package/Source/Renderer/RenderState.js +2 -2
- package/Source/Renderer/VertexArray.js +80 -0
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/BillboardCollection.js +65 -364
- package/Source/Scene/BufferPoint.js +148 -0
- package/Source/Scene/BufferPointCollection.js +135 -0
- package/Source/Scene/BufferPointMaterial.js +95 -0
- package/Source/Scene/BufferPolygon.js +516 -0
- package/Source/Scene/BufferPolygonCollection.js +368 -0
- package/Source/Scene/BufferPolygonMaterial.js +41 -0
- package/Source/Scene/BufferPolyline.js +185 -0
- package/Source/Scene/BufferPolylineCollection.js +136 -0
- package/Source/Scene/BufferPolylineMaterial.js +93 -0
- package/Source/Scene/BufferPrimitive.js +347 -0
- package/Source/Scene/BufferPrimitiveCollection.js +702 -0
- package/Source/Scene/BufferPrimitiveMaterial.js +140 -0
- package/Source/Scene/Cesium3DTileContent.js +5 -1
- package/Source/Scene/Cesium3DTileContentFactory.js +9 -0
- package/Source/Scene/Cesium3DTileStyle.js +22 -0
- package/Source/Scene/Cesium3DTileset.js +1 -0
- package/Source/Scene/ClippingPolygonCollection.js +270 -101
- package/Source/Scene/CubeMapPanorama.js +4 -4
- package/Source/Scene/GaussianSplat3DTileContent.js +40 -46
- package/Source/Scene/GaussianSplatPrimitive.js +413 -70
- package/Source/Scene/GetFeatureInfoFormat.js +3 -3
- package/Source/Scene/GltfLoader.js +215 -34
- package/Source/Scene/GltfSpzLoader.js +109 -0
- package/Source/Scene/ITwinData.js +1 -0
- package/Source/Scene/Label.js +32 -0
- package/Source/Scene/LabelCollection.js +14 -13
- package/Source/Scene/Material.js +2 -0
- package/Source/Scene/Megatexture.js +1 -0
- package/Source/Scene/MetadataClassProperty.js +24 -10
- package/Source/Scene/MetadataComponentType.js +115 -23
- package/Source/Scene/Model/CustomShaderPipelineStage.js +3 -1
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +761 -263
- package/Source/Scene/Model/MaterialPipelineStage.js +147 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +3 -3
- package/Source/Scene/Model/ModelDrawCommand.js +6 -0
- package/Source/Scene/Model/ModelReader.js +1 -1
- package/Source/Scene/Model/ModelUtility.js +3 -1
- package/Source/Scene/Model/createVectorTileBuffersFromModelComponents.js +330 -0
- package/Source/Scene/ModelComponents.js +1632 -1542
- package/Source/Scene/PickedMetadataInfo.js +1 -0
- package/Source/Scene/ScreenSpaceCameraController.js +13 -0
- package/Source/Scene/SkyBox.js +17 -8
- package/Source/Scene/TileBoundingRegion.js +1 -1
- package/Source/Scene/TileBoundingS2Cell.js +1 -1
- package/Source/Scene/TileBoundingSphere.js +1 -1
- package/Source/Scene/TweenCollection.js +7 -0
- package/Source/Scene/VectorGltf3DTileContent.js +382 -0
- package/Source/Scene/VertexAttributeSemantic.js +14 -0
- package/Source/Scene/WebMapServiceImageryProvider.js +2 -2
- package/Source/Scene/WebMapTileServiceImageryProvider.js +366 -131
- package/Source/Scene/parseStructuralMetadata.js +97 -37
- package/Source/Scene/renderBufferPointCollection.js +334 -0
- package/Source/Scene/renderBufferPolygonCollection.js +386 -0
- package/Source/Scene/renderBufferPolylineCollection.js +529 -0
- package/Source/Shaders/BillboardCollectionFS.glsl +2 -77
- package/Source/Shaders/BillboardCollectionFS.js +2 -77
- package/Source/Shaders/BillboardCollectionVS.glsl +2 -60
- package/Source/Shaders/BillboardCollectionVS.js +2 -60
- package/Source/Shaders/BufferPointMaterialFS.glsl +27 -0
- package/Source/Shaders/BufferPointMaterialFS.js +29 -0
- package/Source/Shaders/BufferPointMaterialVS.glsl +48 -0
- package/Source/Shaders/BufferPointMaterialVS.js +50 -0
- package/Source/Shaders/BufferPolygonMaterialFS.glsl +13 -0
- package/Source/Shaders/BufferPolygonMaterialFS.js +15 -0
- package/Source/Shaders/BufferPolygonMaterialVS.glsl +30 -0
- package/Source/Shaders/BufferPolygonMaterialVS.js +32 -0
- package/Source/Shaders/BufferPolylineMaterialFS.glsl +13 -0
- package/Source/Shaders/BufferPolylineMaterialFS.js +15 -0
- package/Source/Shaders/BufferPolylineMaterialVS.glsl +49 -0
- package/Source/Shaders/BufferPolylineMaterialVS.js +51 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.glsl +34 -48
- package/Source/Shaders/Model/EdgeVisibilityStageFS.js +34 -49
- package/Source/Shaders/Model/EdgeVisibilityStageVS.glsl +98 -0
- package/Source/Shaders/Model/EdgeVisibilityStageVS.js +100 -0
- package/Source/Shaders/Model/ModelFS.glsl +15 -0
- package/Source/Shaders/Model/ModelFS.js +15 -0
- package/Source/Shaders/Model/ModelVS.glsl +8 -0
- package/Source/Shaders/Model/ModelVS.js +8 -0
- package/Source/Shaders/PolygonSignedDistanceFS.glsl +64 -33
- package/Source/Shaders/PolygonSignedDistanceFS.js +64 -33
- package/Source/Shaders/PrimitiveGaussianSplatVS.glsl +9 -2
- package/Source/Shaders/PrimitiveGaussianSplatVS.js +9 -2
- package/Source/Shaders/Voxels/VoxelFS.glsl +1 -1
- package/Source/Shaders/Voxels/VoxelFS.js +1 -1
- package/Source/Workers/decodeDraco.js +3 -0
- package/Source/Workers/decodeI3S.js +5 -2
- package/index.d.ts +1007 -111
- package/index.js +394 -369
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MKM27KGV.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AMIHNSST.js";
|
|
32
32
|
import {
|
|
33
33
|
IndexDatatype_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AF3MU2RL.js";
|
|
35
35
|
import {
|
|
36
36
|
ComponentDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-ILMFADZA.js";
|
|
38
|
+
import "./chunk-PVV64VFW.js";
|
|
39
39
|
import {
|
|
40
40
|
RuntimeError_default
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-EDXL4W76.js";
|
|
42
|
+
import "./chunk-5GXYJQ2K.js";
|
|
43
|
+
import "./chunk-VLDEUTOP.js";
|
|
44
44
|
import {
|
|
45
45
|
__toESM,
|
|
46
46
|
defined_default
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AJLTU6PF.js";
|
|
48
48
|
|
|
49
49
|
// packages/engine/Source/Workers/decodeDraco.js
|
|
50
50
|
var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AMIHNSST.js";
|
|
29
29
|
import {
|
|
30
30
|
RuntimeError_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EDXL4W76.js";
|
|
32
32
|
import {
|
|
33
33
|
Check_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VLDEUTOP.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__toESM,
|
|
38
38
|
defined_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-AJLTU6PF.js";
|
|
40
40
|
|
|
41
41
|
// node_modules/pako/lib/zlib/adler32.js
|
|
42
42
|
var require_adler32 = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,34 +25,34 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MKM27KGV.js";
|
|
29
29
|
import {
|
|
30
30
|
Color_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KLPGTXS3.js";
|
|
32
32
|
import {
|
|
33
33
|
createTaskProcessorWorker_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AMIHNSST.js";
|
|
35
35
|
import {
|
|
36
36
|
WebMercatorProjection_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DVB56LG7.js";
|
|
38
38
|
import {
|
|
39
39
|
Cartographic_default,
|
|
40
40
|
Ellipsoid_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GOQBUCXH.js";
|
|
42
42
|
import {
|
|
43
43
|
Cartesian3_default,
|
|
44
44
|
Matrix3_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZBZRTRJB.js";
|
|
46
46
|
import {
|
|
47
47
|
Math_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5GXYJQ2K.js";
|
|
49
49
|
import {
|
|
50
50
|
Check_default
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VLDEUTOP.js";
|
|
52
52
|
import {
|
|
53
53
|
__toESM,
|
|
54
54
|
defined_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AJLTU6PF.js";
|
|
56
56
|
|
|
57
57
|
// packages/engine/Source/Workers/decodeI3S.js
|
|
58
58
|
var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
|
|
@@ -635,8 +635,8 @@ function generateGltfBuffer(vertexCount, indices, positions, normals, uv0s, colo
|
|
|
635
635
|
componentType: 5126,
|
|
636
636
|
count: meshPositions.length / 3,
|
|
637
637
|
type: "VEC3",
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
min: [minX, minY, minZ],
|
|
639
|
+
max: [maxX, maxY, maxZ]
|
|
640
640
|
});
|
|
641
641
|
if (defined_default(normalsURL)) {
|
|
642
642
|
attributes.NORMAL = accessors.length;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
import {
|
|
27
27
|
initSync,
|
|
28
28
|
radix_sort_gaussians_indexes
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HXJMS2ZI.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AMIHNSST.js";
|
|
33
33
|
import {
|
|
34
34
|
defined_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-AJLTU6PF.js";
|
|
36
36
|
|
|
37
37
|
// packages/engine/Source/Workers/gaussianSplatSorter.js
|
|
38
38
|
async function initWorker(parameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
import {
|
|
27
27
|
generate_splat_texture,
|
|
28
28
|
initSync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HXJMS2ZI.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AMIHNSST.js";
|
|
33
33
|
import {
|
|
34
34
|
defined_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-AJLTU6PF.js";
|
|
36
36
|
|
|
37
37
|
// packages/engine/Source/Workers/gaussianSplatTextureGenerator.js
|
|
38
38
|
async function initWorker(parameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AMIHNSST.js";
|
|
29
29
|
import {
|
|
30
30
|
AxisAlignedBoundingBox_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-44EMEGKW.js";
|
|
32
|
+
import "./chunk-YQFTYQMZ.js";
|
|
33
33
|
import {
|
|
34
34
|
Matrix4_default
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-HKUES6UG.js";
|
|
36
|
+
import "./chunk-EDXL4W76.js";
|
|
37
37
|
import {
|
|
38
38
|
Cartesian3_default
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-ZBZRTRJB.js";
|
|
40
|
+
import "./chunk-5GXYJQ2K.js";
|
|
41
|
+
import "./chunk-VLDEUTOP.js";
|
|
42
|
+
import "./chunk-AJLTU6PF.js";
|
|
43
43
|
|
|
44
44
|
// packages/engine/Source/Workers/incrementallyBuildTerrainPicker.js
|
|
45
45
|
var scratchAABBCornerMin = new Cartesian3_default();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AMIHNSST.js";
|
|
29
29
|
import {
|
|
30
30
|
WebGLConstants_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PVV64VFW.js";
|
|
32
32
|
import {
|
|
33
33
|
RuntimeError_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EDXL4W76.js";
|
|
35
35
|
import {
|
|
36
36
|
Check_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VLDEUTOP.js";
|
|
38
38
|
import {
|
|
39
39
|
__commonJS,
|
|
40
40
|
__require,
|
|
41
41
|
__toESM,
|
|
42
42
|
defined_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AJLTU6PF.js";
|
|
44
44
|
|
|
45
45
|
// packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
|
|
46
46
|
var require_basis_transcoder = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,52 +26,52 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NKT5K3K3.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AMIHNSST.js";
|
|
33
33
|
import {
|
|
34
34
|
OrientedBoundingBox_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BJD6QGXZ.js";
|
|
36
36
|
import {
|
|
37
37
|
AttributeCompression_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-72VYSVEW.js";
|
|
39
|
+
import "./chunk-Y7HNNPNK.js";
|
|
40
|
+
import "./chunk-44EMEGKW.js";
|
|
41
|
+
import "./chunk-6WLHJFD3.js";
|
|
42
|
+
import "./chunk-JCI63T3K.js";
|
|
43
43
|
import {
|
|
44
44
|
IndexDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-AF3MU2RL.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-HRHRYFHS.js";
|
|
49
|
+
import "./chunk-YQFTYQMZ.js";
|
|
50
50
|
import {
|
|
51
51
|
Rectangle_default
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-YJZGW74L.js";
|
|
53
|
+
import "./chunk-HKUES6UG.js";
|
|
54
|
+
import "./chunk-ILMFADZA.js";
|
|
55
|
+
import "./chunk-PVV64VFW.js";
|
|
56
|
+
import "./chunk-EDXL4W76.js";
|
|
57
57
|
import {
|
|
58
58
|
Cartesian2_default,
|
|
59
59
|
Cartographic_default,
|
|
60
60
|
Ellipsoid_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-GOQBUCXH.js";
|
|
62
62
|
import {
|
|
63
63
|
Cartesian3_default
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-ZBZRTRJB.js";
|
|
65
65
|
import {
|
|
66
66
|
Math_default
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-5GXYJQ2K.js";
|
|
68
68
|
import {
|
|
69
69
|
Check_default,
|
|
70
70
|
DeveloperError_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-VLDEUTOP.js";
|
|
72
72
|
import {
|
|
73
73
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-AJLTU6PF.js";
|
|
75
75
|
|
|
76
76
|
// packages/engine/Source/Core/Intersections2D.js
|
|
77
77
|
var Intersections2D = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.140.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
Cesium3DTilesTerrainGeometryProcessor_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-UQU4RXLT.js";
|
|
29
|
+
import "./chunk-7O5XJTVE.js";
|
|
30
|
+
import "./chunk-NKT5K3K3.js";
|
|
31
31
|
import {
|
|
32
32
|
createTaskProcessorWorker_default
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-AMIHNSST.js";
|
|
34
|
+
import "./chunk-DVB56LG7.js";
|
|
35
|
+
import "./chunk-BJD6QGXZ.js";
|
|
36
|
+
import "./chunk-72VYSVEW.js";
|
|
37
|
+
import "./chunk-Y7HNNPNK.js";
|
|
38
|
+
import "./chunk-44EMEGKW.js";
|
|
39
|
+
import "./chunk-6WLHJFD3.js";
|
|
40
|
+
import "./chunk-JCI63T3K.js";
|
|
41
|
+
import "./chunk-AF3MU2RL.js";
|
|
42
|
+
import "./chunk-HRHRYFHS.js";
|
|
43
|
+
import "./chunk-YQFTYQMZ.js";
|
|
44
|
+
import "./chunk-YJZGW74L.js";
|
|
45
|
+
import "./chunk-HKUES6UG.js";
|
|
46
|
+
import "./chunk-ILMFADZA.js";
|
|
47
|
+
import "./chunk-PVV64VFW.js";
|
|
48
|
+
import "./chunk-EDXL4W76.js";
|
|
49
|
+
import "./chunk-GOQBUCXH.js";
|
|
50
|
+
import "./chunk-ZBZRTRJB.js";
|
|
51
|
+
import "./chunk-5GXYJQ2K.js";
|
|
52
|
+
import "./chunk-VLDEUTOP.js";
|
|
53
|
+
import "./chunk-AJLTU6PF.js";
|
|
54
54
|
|
|
55
55
|
// packages/engine/Source/Workers/upsampleVerticesFromCesium3DTilesTerrain.js
|
|
56
56
|
function upsampleVerticesFromCesium3DTilesTerrain(options, transferableObjects) {
|
|
@@ -350,7 +350,7 @@ BoundingSphere.fromRectangle3D = function (
|
|
|
350
350
|
* algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to
|
|
351
351
|
* ensure a tight fit.
|
|
352
352
|
*
|
|
353
|
-
* @param {number[]} [positions] An array of points that the bounding sphere will enclose. Each point
|
|
353
|
+
* @param {number[]|TypedArray} [positions] An array of points that the bounding sphere will enclose. Each point
|
|
354
354
|
* is formed from three elements in the array in the order X, Y, Z.
|
|
355
355
|
* @param {Cartesian3} [center=Cartesian3.ZERO] The position to which the positions are relative, which need not be the
|
|
356
356
|
* origin of the coordinate system. This is useful when the positions are to be used for
|
|
@@ -79,10 +79,10 @@ class Cartesian2 {
|
|
|
79
79
|
* Stores the provided instance into the provided array.
|
|
80
80
|
*
|
|
81
81
|
* @param {Cartesian2} value The value to pack.
|
|
82
|
-
* @param {number[]
|
|
82
|
+
* @param {number[]} array The array to pack into.
|
|
83
83
|
* @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
|
|
84
84
|
*
|
|
85
|
-
* @returns {number[]
|
|
85
|
+
* @returns {number[]} The array that was packed into
|
|
86
86
|
*/
|
|
87
87
|
static pack(value, array, startingIndex) {
|
|
88
88
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -101,7 +101,7 @@ class Cartesian2 {
|
|
|
101
101
|
/**
|
|
102
102
|
* Retrieves an instance from a packed array.
|
|
103
103
|
*
|
|
104
|
-
* @param {number[]
|
|
104
|
+
* @param {number[]} array The packed array.
|
|
105
105
|
* @param {number} [startingIndex=0] The starting index of the element to be unpacked.
|
|
106
106
|
* @param {Cartesian2} [result] The object into which to store the result.
|
|
107
107
|
* @returns {Cartesian2} The modified result parameter or a new Cartesian2 instance if one was not provided.
|
|
@@ -125,8 +125,8 @@ class Cartesian2 {
|
|
|
125
125
|
* Flattens an array of Cartesian2s into an array of components.
|
|
126
126
|
*
|
|
127
127
|
* @param {Cartesian2[]} array The array of cartesians to pack.
|
|
128
|
-
* @param {number[]
|
|
129
|
-
* @returns {number[]
|
|
128
|
+
* @param {number[]} [result] The array onto which to store the result. If this is a typed array, it must have array.length * 2 components, else a {@link DeveloperError} will be thrown. If it is a regular array, it will be resized to have (array.length * 2) elements.
|
|
129
|
+
* @returns {number[]} The packed array.
|
|
130
130
|
*/
|
|
131
131
|
static packArray(array, result) {
|
|
132
132
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -137,6 +137,7 @@ class Cartesian2 {
|
|
|
137
137
|
const resultLength = length * 2;
|
|
138
138
|
if (!defined(result)) {
|
|
139
139
|
result = new Array(resultLength);
|
|
140
|
+
// @ts-expect-error TODO(tsd-jsdoc): See https://github.com/CesiumGS/cesium/pull/13302.
|
|
140
141
|
} else if (!Array.isArray(result) && result.length !== resultLength) {
|
|
141
142
|
//>>includeStart('debug', pragmas.debug);
|
|
142
143
|
throw new DeveloperError(
|
|
@@ -150,6 +151,7 @@ class Cartesian2 {
|
|
|
150
151
|
for (let i = 0; i < length; ++i) {
|
|
151
152
|
Cartesian2.pack(array[i], result, i * 2);
|
|
152
153
|
}
|
|
154
|
+
|
|
153
155
|
return result;
|
|
154
156
|
}
|
|
155
157
|
|
|
@@ -117,10 +117,10 @@ class Cartesian3 {
|
|
|
117
117
|
* Stores the provided instance into the provided array.
|
|
118
118
|
*
|
|
119
119
|
* @param {Cartesian3} value The value to pack.
|
|
120
|
-
* @param {number[]
|
|
120
|
+
* @param {number[]} array The array to pack into.
|
|
121
121
|
* @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
|
|
122
122
|
*
|
|
123
|
-
* @returns {number[]
|
|
123
|
+
* @returns {number[]} The array that was packed into
|
|
124
124
|
*/
|
|
125
125
|
static pack(value, array, startingIndex) {
|
|
126
126
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -140,7 +140,7 @@ class Cartesian3 {
|
|
|
140
140
|
/**
|
|
141
141
|
* Retrieves an instance from a packed array.
|
|
142
142
|
*
|
|
143
|
-
* @param {number[]
|
|
143
|
+
* @param {number[]} array The packed array.
|
|
144
144
|
* @param {number} [startingIndex=0] The starting index of the element to be unpacked.
|
|
145
145
|
* @param {Cartesian3} [result] The object into which to store the result.
|
|
146
146
|
* @returns {Cartesian3} The modified result parameter or a new Cartesian3 instance if one was not provided.
|
|
@@ -165,8 +165,8 @@ class Cartesian3 {
|
|
|
165
165
|
* Flattens an array of Cartesian3s into an array of components.
|
|
166
166
|
*
|
|
167
167
|
* @param {Cartesian3[]} array The array of cartesians to pack.
|
|
168
|
-
* @param {number[]
|
|
169
|
-
* @returns {number[]
|
|
168
|
+
* @param {number[]} [result] The array onto which to store the result. If this is a typed array, it must have array.length * 3 components, else a {@link DeveloperError} will be thrown. If it is a regular array, it will be resized to have (array.length * 3) elements.
|
|
169
|
+
* @returns {number[]} The packed array.
|
|
170
170
|
*/
|
|
171
171
|
static packArray(array, result) {
|
|
172
172
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -177,6 +177,7 @@ class Cartesian3 {
|
|
|
177
177
|
const resultLength = length * 3;
|
|
178
178
|
if (!defined(result)) {
|
|
179
179
|
result = new Array(resultLength);
|
|
180
|
+
// @ts-expect-error TODO(tsd-jsdoc): See https://github.com/CesiumGS/cesium/pull/13302.
|
|
180
181
|
} else if (!Array.isArray(result) && result.length !== resultLength) {
|
|
181
182
|
//>>includeStart('debug', pragmas.debug);
|
|
182
183
|
throw new DeveloperError(
|
|
@@ -190,13 +191,14 @@ class Cartesian3 {
|
|
|
190
191
|
for (let i = 0; i < length; ++i) {
|
|
191
192
|
Cartesian3.pack(array[i], result, i * 3);
|
|
192
193
|
}
|
|
194
|
+
|
|
193
195
|
return result;
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
/**
|
|
197
199
|
* Unpacks an array of cartesian components into an array of Cartesian3s.
|
|
198
200
|
*
|
|
199
|
-
* @param {number[]
|
|
201
|
+
* @param {number[]} array The array of components to unpack.
|
|
200
202
|
* @param {Cartesian3[]} [result] The array onto which to store the result.
|
|
201
203
|
* @returns {Cartesian3[]} The unpacked array.
|
|
202
204
|
*/
|
|
@@ -124,10 +124,10 @@ class Cartesian4 {
|
|
|
124
124
|
* Stores the provided instance into the provided array.
|
|
125
125
|
*
|
|
126
126
|
* @param {Cartesian4} value The value to pack.
|
|
127
|
-
* @param {number[]
|
|
127
|
+
* @param {number[]} array The array to pack into.
|
|
128
128
|
* @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
|
|
129
129
|
*
|
|
130
|
-
* @returns {number[]
|
|
130
|
+
* @returns {number[]} The array that was packed into
|
|
131
131
|
*/
|
|
132
132
|
static pack(value, array, startingIndex) {
|
|
133
133
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -148,7 +148,7 @@ class Cartesian4 {
|
|
|
148
148
|
/**
|
|
149
149
|
* Retrieves an instance from a packed array.
|
|
150
150
|
*
|
|
151
|
-
* @param {number[]
|
|
151
|
+
* @param {number[]} array The packed array.
|
|
152
152
|
* @param {number} [startingIndex=0] The starting index of the element to be unpacked.
|
|
153
153
|
* @param {Cartesian4} [result] The object into which to store the result.
|
|
154
154
|
* @returns {Cartesian4} The modified result parameter or a new Cartesian4 instance if one was not provided.
|
|
@@ -174,8 +174,8 @@ class Cartesian4 {
|
|
|
174
174
|
* Flattens an array of Cartesian4s into an array of components.
|
|
175
175
|
*
|
|
176
176
|
* @param {Cartesian4[]} array The array of cartesians to pack.
|
|
177
|
-
* @param {number[]
|
|
178
|
-
* @returns {number[]
|
|
177
|
+
* @param {number[]} [result] The array onto which to store the result. If this is a typed array, it must have array.length * 4 components, else a {@link DeveloperError} will be thrown. If it is a regular array, it will be resized to have (array.length * 4) elements.
|
|
178
|
+
* @returns {number[]} The packed array.
|
|
179
179
|
*/
|
|
180
180
|
static packArray(array, result) {
|
|
181
181
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -186,6 +186,7 @@ class Cartesian4 {
|
|
|
186
186
|
const resultLength = length * 4;
|
|
187
187
|
if (!defined(result)) {
|
|
188
188
|
result = new Array(resultLength);
|
|
189
|
+
// @ts-expect-error TODO(tsd-jsdoc): See https://github.com/CesiumGS/cesium/pull/13302.
|
|
189
190
|
} else if (!Array.isArray(result) && result.length !== resultLength) {
|
|
190
191
|
//>>includeStart('debug', pragmas.debug);
|
|
191
192
|
throw new DeveloperError(
|
|
@@ -199,13 +200,14 @@ class Cartesian4 {
|
|
|
199
200
|
for (let i = 0; i < length; ++i) {
|
|
200
201
|
Cartesian4.pack(array[i], result, i * 4);
|
|
201
202
|
}
|
|
203
|
+
|
|
202
204
|
return result;
|
|
203
205
|
}
|
|
204
206
|
|
|
205
207
|
/**
|
|
206
208
|
* Unpacks an array of cartesian components into an array of Cartesian4s.
|
|
207
209
|
*
|
|
208
|
-
* @param {number[]
|
|
210
|
+
* @param {number[]} array The array of components to unpack.
|
|
209
211
|
* @param {Cartesian4[]} [result] The array onto which to store the result.
|
|
210
212
|
* @returns {Cartesian4[]} The unpacked array.
|
|
211
213
|
*/
|
package/Source/Core/Color.js
CHANGED
|
@@ -4,6 +4,8 @@ import defined from "./defined.js";
|
|
|
4
4
|
import FeatureDetection from "./FeatureDetection.js";
|
|
5
5
|
import CesiumMath from "./Math.js";
|
|
6
6
|
|
|
7
|
+
/** @import {TypedArray} from "../Core/globalTypes.js"; */
|
|
8
|
+
|
|
7
9
|
function hue2rgb(m1, m2, h) {
|
|
8
10
|
if (h < 0) {
|
|
9
11
|
h += 1;
|
|
@@ -446,10 +448,10 @@ Color.packedLength = 4;
|
|
|
446
448
|
* Stores the provided instance into the provided array.
|
|
447
449
|
*
|
|
448
450
|
* @param {Color} value The value to pack.
|
|
449
|
-
* @param {number[]} array The array to pack into.
|
|
451
|
+
* @param {number[]|TypedArray} array The array to pack into.
|
|
450
452
|
* @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
|
|
451
453
|
*
|
|
452
|
-
* @returns {number[]} The array that was packed into
|
|
454
|
+
* @returns {number[]|TypedArray} The array that was packed into
|
|
453
455
|
*/
|
|
454
456
|
Color.pack = function (value, array, startingIndex) {
|
|
455
457
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -469,7 +471,7 @@ Color.pack = function (value, array, startingIndex) {
|
|
|
469
471
|
/**
|
|
470
472
|
* Retrieves an instance from a packed array.
|
|
471
473
|
*
|
|
472
|
-
* @param {number[]} array The packed array.
|
|
474
|
+
* @param {number[]|TypedArray} array The packed array.
|
|
473
475
|
* @param {number} [startingIndex=0] The starting index of the element to be unpacked.
|
|
474
476
|
* @param {Color} [result] The object into which to store the result.
|
|
475
477
|
* @returns {Color} The modified result parameter or a new Color instance if one was not provided.
|
package/Source/Core/Ion.js
CHANGED
|
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
7
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzNDNmZDVhOC0xMDFjLTQ4YmUtYmQ1YS0zYjdjNTFjMzVlYjMiLCJpZCI6MjU5LCJpYXQiOjE3NzQ0MTY4MDN9.aymrLJz62c7X0uDN4EBrgR6wWDlkoUAhlwzs8e5Hb2U";
|
|
8
8
|
/**
|
|
9
9
|
* Default settings for accessing the Cesium ion API.
|
|
10
10
|
*
|