@cesium/engine 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/{chunk-IQCBK4CE.js → chunk-3PW6ZBN4.js} +8 -304
- package/Build/Workers/{chunk-U5O26DDO.js → chunk-434ZTTFX.js} +2 -2
- package/Build/Workers/{chunk-DNCKFFNR.js → chunk-4KP73B43.js} +3 -3
- package/Build/Workers/{chunk-TIEL2RYB.js → chunk-52VSIKEA.js} +16 -16
- package/Build/Workers/{chunk-6JRDO2JP.js → chunk-5GDBZTHX.js} +18 -18
- package/Build/Workers/{chunk-WYMW5NZB.js → chunk-5HLGKKG3.js} +2 -2
- package/Build/Workers/{chunk-R5NOUYKW.js → chunk-5IRLXUTA.js} +7 -7
- package/Build/Workers/{chunk-4EXWKTY2.js → chunk-5SK36PU4.js} +8 -8
- package/Build/Workers/{chunk-UJ76JVUZ.js → chunk-ARPTYYKS.js} +5 -5
- package/Build/Workers/{chunk-2GWOHAWL.js → chunk-ATB2I7OS.js} +4 -4
- package/Build/Workers/{chunk-6LG4PY2M.js → chunk-AXFRNOVC.js} +12 -12
- package/Build/Workers/{chunk-A3TYRSRJ.js → chunk-BP467WX3.js} +4 -4
- package/Build/Workers/{chunk-I5XKU3UZ.js → chunk-BUZDZBUH.js} +11 -13
- package/Build/Workers/{chunk-N3OQDJDV.js → chunk-CDGHUKQ4.js} +13 -13
- package/Build/Workers/{chunk-7ISAYW2A.js → chunk-CSIZ3BGT.js} +15 -17
- package/Build/Workers/{chunk-N73NY3KY.js → chunk-CWJQGBWT.js} +1 -1
- package/Build/Workers/{chunk-E5HIGWSZ.js → chunk-DMCSY5BU.js} +5 -5
- package/Build/Workers/{chunk-JY6WB2NK.js → chunk-DR5XZ6K5.js} +13 -13
- package/Build/Workers/{chunk-4MPXTOW6.js → chunk-FWGNCYP6.js} +7 -7
- package/Build/Workers/{chunk-LID3UUML.js → chunk-GF5TNNKP.js} +6 -6
- package/Build/Workers/{chunk-ULABUYF6.js → chunk-GVL5I7TC.js} +18 -20
- package/Build/Workers/{chunk-4JETNOH2.js → chunk-H5DUXHCV.js} +11 -11
- package/Build/Workers/{chunk-QX5ASOZZ.js → chunk-HFKSAB5K.js} +14 -16
- package/Build/Workers/{chunk-XKGSTUQO.js → chunk-HOT2SNXP.js} +15 -20
- package/Build/Workers/{chunk-ICD3BWBC.js → chunk-HPH5HSFE.js} +2 -2
- package/Build/Workers/{chunk-FNHGOHCI.js → chunk-HPP4JLNH.js} +8 -8
- package/Build/Workers/{chunk-HX5XY3NH.js → chunk-HUPNRBWW.js} +6 -6
- package/Build/Workers/{chunk-EEL3YC6V.js → chunk-JGG36SQV.js} +4 -4
- package/Build/Workers/{chunk-54GSYZWT.js → chunk-LGJUI2CE.js} +325 -5
- package/Build/Workers/{chunk-PNAD2XAN.js → chunk-LGL4P5KL.js} +6 -6
- package/Build/Workers/{chunk-CKOGHQ6J.js → chunk-LX6XV4DK.js} +5 -5
- package/Build/Workers/{chunk-ZERWARDV.js → chunk-MN34FIF5.js} +1 -1
- package/Build/Workers/{chunk-MMNPUV23.js → chunk-MW3CJYLX.js} +2 -2
- package/Build/Workers/{chunk-KFCTEEBD.js → chunk-NE4JNU6H.js} +31 -21
- package/Build/Workers/{chunk-DHO4HQHW.js → chunk-O43GWBSF.js} +1 -1
- package/Build/Workers/{chunk-EH2PEDWL.js → chunk-PIXK6KHB.js} +2 -2
- package/Build/Workers/{chunk-TDVU7NH7.js → chunk-PZ2WJWUG.js} +6 -6
- package/Build/Workers/{chunk-AEADHPUM.js → chunk-QRBRVGZC.js} +4 -4
- package/Build/Workers/{chunk-VIAGIVGP.js → chunk-QTZQZY2C.js} +9 -9
- package/Build/Workers/{chunk-3R5RPSYS.js → chunk-R3HUGXBH.js} +9 -9
- package/Build/Workers/{chunk-IDAL54EF.js → chunk-R4OZKBXH.js} +6 -6
- package/Build/Workers/{chunk-CHGQXPF3.js → chunk-RH4N2ONY.js} +7 -7
- package/Build/Workers/{chunk-YK5RU5AO.js → chunk-RIDPF7PO.js} +2 -2
- package/Build/Workers/{chunk-CZFGXAMG.js → chunk-SNN7WOC2.js} +13 -13
- package/Build/Workers/{chunk-F66GYWDZ.js → chunk-SQVTYRZY.js} +5 -7
- package/Build/Workers/{chunk-XNRYWRVT.js → chunk-SV7DDPAC.js} +1 -1
- package/Build/Workers/{chunk-P2BTKBVY.js → chunk-TIXXVKUY.js} +11 -11
- package/Build/Workers/{chunk-AI2FOC47.js → chunk-TMPVBFJQ.js} +11 -11
- package/Build/Workers/{chunk-4CHSBZNO.js → chunk-XUTVA4K5.js} +11 -11
- package/Build/Workers/{chunk-DD2PDL6D.js → chunk-Y4OJ4B23.js} +5 -5
- package/Build/Workers/{chunk-FMN2NHBU.js → chunk-YBKFS53K.js} +1 -1
- package/Build/Workers/{chunk-BLXANKPB.js → chunk-Z2SIPUKB.js} +6 -6
- package/Build/Workers/{chunk-5HUDPV54.js → chunk-Z4JUBRHP.js} +6 -6
- package/Build/Workers/{chunk-N7FIYNQV.js → chunk-ZQRZBHYI.js} +4 -4
- package/Build/Workers/combineGeometry.js +23 -23
- package/Build/Workers/createBoxGeometry.js +17 -17
- package/Build/Workers/createBoxOutlineGeometry.js +15 -15
- package/Build/Workers/createCircleGeometry.js +25 -25
- package/Build/Workers/createCircleOutlineGeometry.js +18 -18
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -34
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +19 -19
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -19
- package/Build/Workers/createEllipseGeometry.js +25 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipsoidGeometry.js +18 -18
- package/Build/Workers/createEllipsoidOutlineGeometry.js +17 -17
- package/Build/Workers/createFrustumGeometry.js +17 -17
- package/Build/Workers/createFrustumOutlineGeometry.js +17 -17
- package/Build/Workers/createGeometry.js +23 -23
- package/Build/Workers/createGroundPolylineGeometry.js +22 -22
- package/Build/Workers/createPlaneGeometry.js +15 -15
- package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
- package/Build/Workers/createPolygonGeometry.js +34 -34
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +32 -33
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +28 -29
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +21 -23
- package/Build/Workers/createSimplePolylineGeometry.js +22 -22
- package/Build/Workers/createSphereGeometry.js +18 -18
- package/Build/Workers/createSphereOutlineGeometry.js +17 -17
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +23 -23
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +21 -21
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -19
- package/Build/Workers/createWallGeometry.js +23 -23
- package/Build/Workers/createWallOutlineGeometry.js +22 -22
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +9 -9
- package/Build/Workers/transcodeKTX2.js +9 -9
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Source/Core/CesiumTerrainProvider.js +11 -4
- package/Source/Core/Ellipsoid.js +45 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/Quaternion.js +6 -2
- package/Source/Core/RectangleOutlineGeometry.js +2 -4
- package/Source/Core/RequestScheduler.js +3 -9
- package/Source/Core/TerrainEncoding.js +2 -2
- package/Source/Core/VerticalExaggeration.js +69 -0
- package/Source/Renderer/AutomaticUniforms.js +53 -0
- package/Source/Renderer/UniformState.js +119 -1
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Cesium3DTile.js +122 -10
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/FrameState.js +4 -4
- package/Source/Scene/Globe.js +66 -19
- package/Source/Scene/GlobeSurfaceTile.js +4 -4
- package/Source/Scene/GlobeSurfaceTileProvider.js +21 -21
- package/Source/Scene/GroundPrimitive.js +5 -5
- package/Source/Scene/ImageryLayer.js +3 -3
- package/Source/Scene/IonImageryProvider.js +1 -1
- package/Source/Scene/MapboxImageryProvider.js +2 -2
- package/Source/Scene/Megatexture.js +1 -1
- package/Source/Scene/Model/Model.js +11 -0
- package/Source/Scene/Model/ModelRuntimePrimitive.js +6 -0
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +60 -0
- package/Source/Scene/Scene.js +28 -3
- package/Source/Scene/ScreenSpaceCameraController.js +12 -19
- package/Source/Scene/TerrainFillMesh.js +2 -2
- package/Source/Scene/TileOrientedBoundingBox.js +1 -1
- package/Source/Scene/VoxelPrimitive.js +73 -2
- package/Source/Shaders/GlobeVS.glsl +3 -3
- package/Source/Shaders/GlobeVS.js +3 -3
- package/Source/Shaders/Model/ModelVS.glsl +4 -0
- package/Source/Shaders/Model/ModelVS.js +4 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +39 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.js +41 -0
- package/index.d.ts +39 -22
- package/index.js +590 -588
- package/package.json +2 -2
- package/Source/Core/TerrainExaggeration.js +0 -49
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.113
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,53 +25,53 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
WallGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-HUPNRBWW.js";
|
|
29
|
+
import "./chunk-H5DUXHCV.js";
|
|
30
|
+
import "./chunk-GF5TNNKP.js";
|
|
31
31
|
import {
|
|
32
32
|
VertexFormat_default
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-ZQRZBHYI.js";
|
|
34
|
+
import "./chunk-DMCSY5BU.js";
|
|
35
|
+
import "./chunk-R4OZKBXH.js";
|
|
36
|
+
import "./chunk-5IRLXUTA.js";
|
|
37
|
+
import "./chunk-LGL4P5KL.js";
|
|
38
38
|
import {
|
|
39
39
|
IndexDatatype_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LX6XV4DK.js";
|
|
41
41
|
import {
|
|
42
42
|
GeometryAttributes_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-PIXK6KHB.js";
|
|
44
44
|
import {
|
|
45
45
|
GeometryAttribute_default,
|
|
46
46
|
Geometry_default,
|
|
47
47
|
PrimitiveType_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-R3HUGXBH.js";
|
|
49
49
|
import {
|
|
50
50
|
BoundingSphere_default
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-HOT2SNXP.js";
|
|
52
|
+
import "./chunk-4KP73B43.js";
|
|
53
|
+
import "./chunk-3PW6ZBN4.js";
|
|
54
54
|
import {
|
|
55
55
|
ComponentDatatype_default
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ARPTYYKS.js";
|
|
57
57
|
import {
|
|
58
58
|
Cartesian3_default,
|
|
59
59
|
Ellipsoid_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-LGJUI2CE.js";
|
|
61
61
|
import {
|
|
62
62
|
Math_default
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-BP467WX3.js";
|
|
64
|
+
import "./chunk-SV7DDPAC.js";
|
|
65
|
+
import "./chunk-RIDPF7PO.js";
|
|
66
66
|
import {
|
|
67
67
|
defaultValue_default
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-CWJQGBWT.js";
|
|
69
69
|
import {
|
|
70
70
|
DeveloperError_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-5HLGKKG3.js";
|
|
72
72
|
import {
|
|
73
73
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-YBKFS53K.js";
|
|
75
75
|
|
|
76
76
|
// packages/engine/Source/Core/WallGeometry.js
|
|
77
77
|
var scratchCartesian3Position1 = 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.113
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,50 +25,50 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
WallGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-HUPNRBWW.js";
|
|
29
|
+
import "./chunk-H5DUXHCV.js";
|
|
30
|
+
import "./chunk-GF5TNNKP.js";
|
|
31
|
+
import "./chunk-DMCSY5BU.js";
|
|
32
|
+
import "./chunk-R4OZKBXH.js";
|
|
33
|
+
import "./chunk-5IRLXUTA.js";
|
|
34
|
+
import "./chunk-LGL4P5KL.js";
|
|
35
35
|
import {
|
|
36
36
|
IndexDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LX6XV4DK.js";
|
|
38
38
|
import {
|
|
39
39
|
GeometryAttributes_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-PIXK6KHB.js";
|
|
41
41
|
import {
|
|
42
42
|
GeometryAttribute_default,
|
|
43
43
|
Geometry_default,
|
|
44
44
|
PrimitiveType_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-R3HUGXBH.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-HOT2SNXP.js";
|
|
49
|
+
import "./chunk-4KP73B43.js";
|
|
50
|
+
import "./chunk-3PW6ZBN4.js";
|
|
51
51
|
import {
|
|
52
52
|
ComponentDatatype_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ARPTYYKS.js";
|
|
54
54
|
import {
|
|
55
55
|
Cartesian3_default,
|
|
56
56
|
Ellipsoid_default
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LGJUI2CE.js";
|
|
58
58
|
import {
|
|
59
59
|
Math_default
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-BP467WX3.js";
|
|
61
|
+
import "./chunk-SV7DDPAC.js";
|
|
62
|
+
import "./chunk-RIDPF7PO.js";
|
|
63
63
|
import {
|
|
64
64
|
defaultValue_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-CWJQGBWT.js";
|
|
66
66
|
import {
|
|
67
67
|
DeveloperError_default
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-5HLGKKG3.js";
|
|
69
69
|
import {
|
|
70
70
|
defined_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YBKFS53K.js";
|
|
72
72
|
|
|
73
73
|
// packages/engine/Source/Core/WallOutlineGeometry.js
|
|
74
74
|
var scratchCartesian3Position1 = 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.113
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,27 +25,27 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HPH5HSFE.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MW3CJYLX.js";
|
|
32
32
|
import {
|
|
33
33
|
IndexDatatype_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LX6XV4DK.js";
|
|
35
35
|
import {
|
|
36
36
|
ComponentDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-ARPTYYKS.js";
|
|
38
|
+
import "./chunk-BP467WX3.js";
|
|
39
|
+
import "./chunk-SV7DDPAC.js";
|
|
40
40
|
import {
|
|
41
41
|
RuntimeError_default
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-RIDPF7PO.js";
|
|
43
|
+
import "./chunk-CWJQGBWT.js";
|
|
44
|
+
import "./chunk-5HLGKKG3.js";
|
|
45
45
|
import {
|
|
46
46
|
__toESM,
|
|
47
47
|
defined_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YBKFS53K.js";
|
|
49
49
|
|
|
50
50
|
// packages/engine/Source/Workers/decodeDraco.js
|
|
51
51
|
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.113
|
|
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-MW3CJYLX.js";
|
|
29
29
|
import {
|
|
30
30
|
RuntimeError_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RIDPF7PO.js";
|
|
32
32
|
import {
|
|
33
33
|
Check_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5HLGKKG3.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__toESM,
|
|
38
38
|
defined_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YBKFS53K.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.113
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HPH5HSFE.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MW3CJYLX.js";
|
|
32
32
|
import {
|
|
33
33
|
WebMercatorProjection_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Z2SIPUKB.js";
|
|
35
35
|
import {
|
|
36
36
|
Cartesian3_default,
|
|
37
37
|
Cartographic_default,
|
|
38
38
|
Ellipsoid_default,
|
|
39
39
|
Matrix3_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LGJUI2CE.js";
|
|
41
41
|
import {
|
|
42
42
|
Math_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-BP467WX3.js";
|
|
44
|
+
import "./chunk-CWJQGBWT.js";
|
|
45
|
+
import "./chunk-5HLGKKG3.js";
|
|
46
46
|
import {
|
|
47
47
|
__toESM,
|
|
48
48
|
defined_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-YBKFS53K.js";
|
|
50
50
|
|
|
51
51
|
// packages/engine/Source/Workers/decodeI3S.js
|
|
52
52
|
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.113
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,25 +25,25 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MW3CJYLX.js";
|
|
29
29
|
import {
|
|
30
30
|
WebGLConstants_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SV7DDPAC.js";
|
|
32
32
|
import {
|
|
33
33
|
RuntimeError_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RIDPF7PO.js";
|
|
35
35
|
import {
|
|
36
36
|
defaultValue_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CWJQGBWT.js";
|
|
38
38
|
import {
|
|
39
39
|
Check_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5HLGKKG3.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__require,
|
|
44
44
|
__toESM,
|
|
45
45
|
defined_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-YBKFS53K.js";
|
|
47
47
|
|
|
48
48
|
// packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
|
|
49
49
|
var require_basis_transcoder = __commonJS({
|
|
@@ -2011,9 +2011,9 @@ var require_basis_transcoder = __commonJS({
|
|
|
2011
2011
|
if (typeof globalThis === "object") {
|
|
2012
2012
|
return globalThis;
|
|
2013
2013
|
}
|
|
2014
|
-
return function() {
|
|
2014
|
+
return (/* @__PURE__ */ function() {
|
|
2015
2015
|
return Function;
|
|
2016
|
-
}()("return this")();
|
|
2016
|
+
}())("return this")();
|
|
2017
2017
|
}
|
|
2018
2018
|
function __emval_get_global(name) {
|
|
2019
2019
|
if (name === 0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.113
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,50 +26,50 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NE4JNU6H.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MW3CJYLX.js";
|
|
33
33
|
import {
|
|
34
34
|
OrientedBoundingBox_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TIXXVKUY.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-5SK36PU4.js";
|
|
39
|
+
import "./chunk-TMPVBFJQ.js";
|
|
40
|
+
import "./chunk-Z4JUBRHP.js";
|
|
41
|
+
import "./chunk-5IRLXUTA.js";
|
|
42
|
+
import "./chunk-LGL4P5KL.js";
|
|
43
43
|
import {
|
|
44
44
|
IndexDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LX6XV4DK.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-HOT2SNXP.js";
|
|
49
|
+
import "./chunk-4KP73B43.js";
|
|
50
50
|
import {
|
|
51
|
-
Cartesian2_default,
|
|
52
51
|
Rectangle_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-3PW6ZBN4.js";
|
|
53
|
+
import "./chunk-ARPTYYKS.js";
|
|
55
54
|
import {
|
|
55
|
+
Cartesian2_default,
|
|
56
56
|
Cartesian3_default,
|
|
57
57
|
Cartographic_default,
|
|
58
58
|
Ellipsoid_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-LGJUI2CE.js";
|
|
60
60
|
import {
|
|
61
61
|
Math_default
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-BP467WX3.js";
|
|
63
|
+
import "./chunk-SV7DDPAC.js";
|
|
64
|
+
import "./chunk-RIDPF7PO.js";
|
|
65
|
+
import "./chunk-CWJQGBWT.js";
|
|
66
66
|
import {
|
|
67
67
|
Check_default,
|
|
68
68
|
DeveloperError_default
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-5HLGKKG3.js";
|
|
70
70
|
import {
|
|
71
71
|
defined_default
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-YBKFS53K.js";
|
|
73
73
|
|
|
74
74
|
// packages/engine/Source/Core/Intersections2D.js
|
|
75
75
|
var Intersections2D = {};
|
|
@@ -897,11 +897,18 @@ CesiumTerrainProvider.prototype.requestTileGeometry = function (
|
|
|
897
897
|
|
|
898
898
|
if (!defined(layerToUse) && unknownAvailability) {
|
|
899
899
|
// Try again when availability data is ready– Otherwise the tile will be marked as failed and never re-requested
|
|
900
|
-
return availabilityPromise.then(() =>
|
|
901
|
-
|
|
902
|
-
|
|
900
|
+
return availabilityPromise.then(() => {
|
|
901
|
+
// handle promise or undefined return
|
|
902
|
+
return new Promise((resolve) => {
|
|
903
|
+
// defer execution to the next event loop
|
|
904
|
+
setTimeout(() => {
|
|
905
|
+
const promise = this.requestTileGeometry(x, y, level, request);
|
|
906
|
+
resolve(promise);
|
|
907
|
+
}, 0); // next tick
|
|
908
|
+
});
|
|
909
|
+
});
|
|
903
910
|
}
|
|
904
|
-
|
|
911
|
+
// call overridden function below
|
|
905
912
|
return requestTileGeometry(this, x, y, level, layerToUse, request);
|
|
906
913
|
};
|
|
907
914
|
|
package/Source/Core/Ellipsoid.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Cartesian2 from "./Cartesian2.js";
|
|
1
2
|
import Cartesian3 from "./Cartesian3.js";
|
|
2
3
|
import Cartographic from "./Cartographic.js";
|
|
3
4
|
import Check from "./Check.js";
|
|
@@ -694,6 +695,50 @@ Ellipsoid.prototype.getSurfaceNormalIntersectionWithZAxis = function (
|
|
|
694
695
|
return result;
|
|
695
696
|
};
|
|
696
697
|
|
|
698
|
+
const scratchEndpoint = new Cartesian3();
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Computes the ellipsoid curvatures at a given position on the surface.
|
|
702
|
+
*
|
|
703
|
+
* @param {Cartesian3} surfacePosition The position on the ellipsoid surface where curvatures will be calculated.
|
|
704
|
+
* @param {Cartesian2} [result] The cartesian to which to copy the result, or undefined to create and return a new instance.
|
|
705
|
+
* @returns {Cartesian2} The local curvature of the ellipsoid surface at the provided position, in east and north directions.
|
|
706
|
+
*
|
|
707
|
+
* @exception {DeveloperError} position is required.
|
|
708
|
+
*/
|
|
709
|
+
Ellipsoid.prototype.getLocalCurvature = function (surfacePosition, result) {
|
|
710
|
+
//>>includeStart('debug', pragmas.debug);
|
|
711
|
+
Check.typeOf.object("surfacePosition", surfacePosition);
|
|
712
|
+
//>>includeEnd('debug');
|
|
713
|
+
|
|
714
|
+
if (!defined(result)) {
|
|
715
|
+
result = new Cartesian2();
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
const primeVerticalEndpoint = this.getSurfaceNormalIntersectionWithZAxis(
|
|
719
|
+
surfacePosition,
|
|
720
|
+
0.0,
|
|
721
|
+
scratchEndpoint
|
|
722
|
+
);
|
|
723
|
+
const primeVerticalRadius = Cartesian3.distance(
|
|
724
|
+
surfacePosition,
|
|
725
|
+
primeVerticalEndpoint
|
|
726
|
+
);
|
|
727
|
+
// meridional radius = (1 - e^2) * primeVerticalRadius^3 / a^2
|
|
728
|
+
// where 1 - e^2 = b^2 / a^2,
|
|
729
|
+
// so meridional = b^2 * primeVerticalRadius^3 / a^4
|
|
730
|
+
// = (b * primeVerticalRadius / a^2)^2 * primeVertical
|
|
731
|
+
const radiusRatio =
|
|
732
|
+
(this.minimumRadius * primeVerticalRadius) / this.maximumRadius ** 2;
|
|
733
|
+
const meridionalRadius = primeVerticalRadius * radiusRatio ** 2;
|
|
734
|
+
|
|
735
|
+
return Cartesian2.fromElements(
|
|
736
|
+
1.0 / primeVerticalRadius,
|
|
737
|
+
1.0 / meridionalRadius,
|
|
738
|
+
result
|
|
739
|
+
);
|
|
740
|
+
};
|
|
741
|
+
|
|
697
742
|
const abscissas = [
|
|
698
743
|
0.14887433898163,
|
|
699
744
|
0.43339539412925,
|
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.eyJqdGkiOiJkNzEwOTRhMi05YmYyLTQyY2EtYTU2My04YTM1MWE2YjhjNjAiLCJpZCI6MjU5LCJpYXQiOjE3MDQyMTcxMzh9.rE7KTaFyZydhuP1Z7ohzClO3J1tMOvaHODzt3_5jo7s";
|
|
8
8
|
/**
|
|
9
9
|
* Default settings for accessing the Cesium ion API.
|
|
10
10
|
*
|
|
@@ -677,8 +677,12 @@ Quaternion.computeAxis = function (quaternion, result) {
|
|
|
677
677
|
//>>includeEnd('debug');
|
|
678
678
|
|
|
679
679
|
const w = quaternion.w;
|
|
680
|
-
if (
|
|
681
|
-
|
|
680
|
+
if (
|
|
681
|
+
Math.abs(w - 1.0) < CesiumMath.EPSILON6 ||
|
|
682
|
+
Math.abs(w + 1.0) < CesiumMath.EPSILON6
|
|
683
|
+
) {
|
|
684
|
+
result.x = 1;
|
|
685
|
+
result.y = result.z = 0;
|
|
682
686
|
return result;
|
|
683
687
|
}
|
|
684
688
|
|
|
@@ -159,11 +159,9 @@ function constructRectangle(geometry, computedOptions) {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function constructExtrudedRectangle(rectangleGeometry, computedOptions) {
|
|
162
|
-
const
|
|
163
|
-
const
|
|
162
|
+
const maxHeight = rectangleGeometry._surfaceHeight;
|
|
163
|
+
const minHeight = rectangleGeometry._extrudedHeight;
|
|
164
164
|
const ellipsoid = rectangleGeometry._ellipsoid;
|
|
165
|
-
const minHeight = extrudedHeight;
|
|
166
|
-
const maxHeight = surfaceHeight;
|
|
167
165
|
const geo = constructRectangle(rectangleGeometry, computedOptions);
|
|
168
166
|
|
|
169
167
|
const height = computedOptions.height;
|
|
@@ -60,9 +60,9 @@ RequestScheduler.maximumRequests = 50;
|
|
|
60
60
|
* The maximum number of simultaneous active requests per server. Un-throttled requests or servers specifically
|
|
61
61
|
* listed in {@link requestsByServer} do not observe this limit.
|
|
62
62
|
* @type {number}
|
|
63
|
-
* @default
|
|
63
|
+
* @default 18
|
|
64
64
|
*/
|
|
65
|
-
RequestScheduler.maximumRequestsPerServer =
|
|
65
|
+
RequestScheduler.maximumRequestsPerServer = 18;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* A per server key list of overrides to use for throttling instead of <code>maximumRequestsPerServer</code>.
|
|
@@ -78,13 +78,7 @@ RequestScheduler.maximumRequestsPerServer = 6;
|
|
|
78
78
|
* "assets.cesium.com:443": 18,
|
|
79
79
|
* };
|
|
80
80
|
*/
|
|
81
|
-
RequestScheduler.requestsByServer = {
|
|
82
|
-
"api.cesium.com:443": 18,
|
|
83
|
-
"assets.ion.cesium.com:443": 18,
|
|
84
|
-
"ibasemaps-api.arcgis.com:443": 18,
|
|
85
|
-
"tile.googleapis.com:443": 18,
|
|
86
|
-
"tile.openstreetmap.org:443": 18,
|
|
87
|
-
};
|
|
81
|
+
RequestScheduler.requestsByServer = {};
|
|
88
82
|
|
|
89
83
|
/**
|
|
90
84
|
* Specifies if the request scheduler should throttle incoming requests, or let the browser queue requests under its control.
|
|
@@ -6,7 +6,7 @@ import defaultValue from "./defaultValue.js";
|
|
|
6
6
|
import defined from "./defined.js";
|
|
7
7
|
import CesiumMath from "./Math.js";
|
|
8
8
|
import Matrix4 from "./Matrix4.js";
|
|
9
|
-
import
|
|
9
|
+
import VerticalExaggeration from "./VerticalExaggeration.js";
|
|
10
10
|
import TerrainQuantization from "./TerrainQuantization.js";
|
|
11
11
|
|
|
12
12
|
const cartesian3Scratch = new Cartesian3();
|
|
@@ -386,7 +386,7 @@ TerrainEncoding.prototype.getExaggeratedPosition = function (
|
|
|
386
386
|
);
|
|
387
387
|
const rawHeight = this.decodeHeight(buffer, index);
|
|
388
388
|
const heightDifference =
|
|
389
|
-
|
|
389
|
+
VerticalExaggeration.getHeight(
|
|
390
390
|
rawHeight,
|
|
391
391
|
exaggeration,
|
|
392
392
|
exaggerationRelativeHeight
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import Cartesian3 from "./Cartesian3.js";
|
|
2
|
+
import DeveloperError from "./DeveloperError.js";
|
|
3
|
+
import defined from "./defined.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
const VerticalExaggeration = {};
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Scales a height relative to an offset.
|
|
12
|
+
*
|
|
13
|
+
* @param {number} height The height.
|
|
14
|
+
* @param {number} scale A scalar used to exaggerate the terrain. If the value is 1.0 there will be no effect.
|
|
15
|
+
* @param {number} relativeHeight The height relative to which terrain is exaggerated. If the value is 0.0 terrain will be exaggerated relative to the ellipsoid surface.
|
|
16
|
+
*/
|
|
17
|
+
VerticalExaggeration.getHeight = function (height, scale, relativeHeight) {
|
|
18
|
+
//>>includeStart('debug', pragmas.debug);
|
|
19
|
+
if (!Number.isFinite(scale)) {
|
|
20
|
+
throw new DeveloperError("scale must be a finite number.");
|
|
21
|
+
}
|
|
22
|
+
if (!Number.isFinite(relativeHeight)) {
|
|
23
|
+
throw new DeveloperError("relativeHeight must be a finite number.");
|
|
24
|
+
}
|
|
25
|
+
//>>includeEnd('debug')
|
|
26
|
+
return (height - relativeHeight) * scale + relativeHeight;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const scratchCartographic = new Cartesian3();
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Scales a position by exaggeration.
|
|
33
|
+
*
|
|
34
|
+
* @param {Cartesian3} position The position.
|
|
35
|
+
* @param {Ellipsoid} ellipsoid The ellipsoid.
|
|
36
|
+
* @param {number} verticalExaggeration A scalar used to exaggerate the terrain. If the value is 1.0 there will be no effect.
|
|
37
|
+
* @param {number} verticalExaggerationRelativeHeight The height relative to which terrain is exaggerated. If the value is 0.0 terrain will be exaggerated relative to the ellipsoid surface.
|
|
38
|
+
* @param {Cartesian3} [result] The object onto which to store the result.
|
|
39
|
+
*/
|
|
40
|
+
VerticalExaggeration.getPosition = function (
|
|
41
|
+
position,
|
|
42
|
+
ellipsoid,
|
|
43
|
+
verticalExaggeration,
|
|
44
|
+
verticalExaggerationRelativeHeight,
|
|
45
|
+
result
|
|
46
|
+
) {
|
|
47
|
+
const cartographic = ellipsoid.cartesianToCartographic(
|
|
48
|
+
position,
|
|
49
|
+
scratchCartographic
|
|
50
|
+
);
|
|
51
|
+
// If the position is too near the center of the ellipsoid, exaggeration is undefined.
|
|
52
|
+
if (!defined(cartographic)) {
|
|
53
|
+
return Cartesian3.clone(position, result);
|
|
54
|
+
}
|
|
55
|
+
const newHeight = VerticalExaggeration.getHeight(
|
|
56
|
+
cartographic.height,
|
|
57
|
+
verticalExaggeration,
|
|
58
|
+
verticalExaggerationRelativeHeight
|
|
59
|
+
);
|
|
60
|
+
return Cartesian3.fromRadians(
|
|
61
|
+
cartographic.longitude,
|
|
62
|
+
cartographic.latitude,
|
|
63
|
+
newHeight,
|
|
64
|
+
ellipsoid,
|
|
65
|
+
result
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default VerticalExaggeration;
|