@cesium/engine 5.0.0 → 6.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-MG2TXIO5.js → chunk-2AEUVYIC.js} +15 -15
- package/Build/Workers/{chunk-DWJZFZ67.js → chunk-2HEFBNI2.js} +13 -13
- package/Build/Workers/{chunk-IQN2LMGD.js → chunk-2IZ2LJ3N.js} +1 -1
- package/Build/Workers/{chunk-Z2MP3UBE.js → chunk-3ENSLRZD.js} +7 -7
- package/Build/Workers/{chunk-OCIX2CQ7.js → chunk-3FNFTDKS.js} +4 -4
- package/Build/Workers/{chunk-YNZ4DMR7.js → chunk-437Q4WBM.js} +6 -6
- package/Build/Workers/{chunk-RCI7BSOM.js → chunk-54QBXZYE.js} +6 -6
- package/Build/Workers/{chunk-6EHT6GS3.js → chunk-6EZ4NFIC.js} +2 -2
- package/Build/Workers/{chunk-VWSD2XV5.js → chunk-7FAOTOUR.js} +8 -8
- package/Build/Workers/{chunk-CTJCECTX.js → chunk-7W3AMBD6.js} +5 -5
- package/Build/Workers/{chunk-4HN3N5SE.js → chunk-A7T4GOG3.js} +4 -4
- package/Build/Workers/{chunk-2U6EBIRX.js → chunk-AMGYJNEB.js} +10 -10
- package/Build/Workers/{chunk-GLCRFDOB.js → chunk-ASJKRCO4.js} +2 -2
- package/Build/Workers/{chunk-J2FHYK2Z.js → chunk-AXODHVUI.js} +4 -4
- package/Build/Workers/{chunk-QUCJGBCK.js → chunk-BKVKFLIC.js} +7 -7
- package/Build/Workers/{chunk-FOOYJER7.js → chunk-BWTCHYX6.js} +10 -10
- package/Build/Workers/{chunk-3TSHZWOZ.js → chunk-BZHAJSUN.js} +2 -2
- package/Build/Workers/{chunk-AQQGAFKX.js → chunk-CBV4JE6S.js} +5 -5
- package/Build/Workers/{chunk-GPO47TW4.js → chunk-CGHLEZ43.js} +1 -1
- package/Build/Workers/{chunk-CROU4RHL.js → chunk-CLVX47CD.js} +5 -5
- package/Build/Workers/{chunk-5E3V7Y4R.js → chunk-DI3VM6NF.js} +6 -6
- package/Build/Workers/{chunk-UM7FIUQW.js → chunk-DUMQKN4C.js} +2 -2
- package/Build/Workers/{chunk-IC7G4BX2.js → chunk-DZUFRYQK.js} +11 -11
- package/Build/Workers/{chunk-KZFXE35V.js → chunk-EFUPZTUD.js} +6 -6
- package/Build/Workers/{chunk-MYDS6HBL.js → chunk-EJWAO37W.js} +7 -7
- package/Build/Workers/{chunk-UMLTOPAE.js → chunk-EZPA2AXQ.js} +1 -1
- package/Build/Workers/{chunk-Y24CDOJC.js → chunk-FBRBVOAJ.js} +6 -6
- package/Build/Workers/{chunk-6I22NWKQ.js → chunk-FDNL4I6K.js} +6 -6
- package/Build/Workers/{chunk-44B6FQSJ.js → chunk-FK5BM4WD.js} +11 -11
- package/Build/Workers/{chunk-TXYJOVQK.js → chunk-GQ66IPL6.js} +1 -1
- package/Build/Workers/{chunk-EHJQEARC.js → chunk-HW6ANEVG.js} +5 -5
- package/Build/Workers/{chunk-MRCFDEKH.js → chunk-HYNBEK4C.js} +4 -4
- package/Build/Workers/{chunk-YLMDWSXO.js → chunk-I6R5G76Q.js} +2 -2
- package/Build/Workers/{chunk-X2KIWBTW.js → chunk-J5YKECLG.js} +5 -5
- package/Build/Workers/{chunk-7N67FBLW.js → chunk-KGVHVTX7.js} +18 -18
- package/Build/Workers/{chunk-UFIT5XDI.js → chunk-KXTDRKW5.js} +7 -7
- package/Build/Workers/{chunk-4AJR66C5.js → chunk-LCMSJE5D.js} +12 -12
- package/Build/Workers/{chunk-HIDSEUWS.js → chunk-M57VBCI4.js} +5 -5
- package/Build/Workers/{chunk-PMDLIBEQ.js → chunk-MOSBHBQO.js} +7 -7
- package/Build/Workers/{chunk-ULLMQNFQ.js → chunk-MQ32KIOU.js} +3 -3
- package/Build/Workers/{chunk-VN2IHJKM.js → chunk-PZKVP2WI.js} +14 -14
- package/Build/Workers/{chunk-SVTSC7FX.js → chunk-SAYI6XNA.js} +13 -13
- package/Build/Workers/{chunk-V5S5N2IS.js → chunk-TV4Q4TKV.js} +9 -9
- package/Build/Workers/{chunk-K3VEWONC.js → chunk-TWN33EAP.js} +10 -10
- package/Build/Workers/{chunk-H5Q2JKIA.js → chunk-VBOAZG67.js} +17 -17
- package/Build/Workers/{chunk-HV67ARO7.js → chunk-VEPSTOBV.js} +8 -8
- package/Build/Workers/{chunk-4RKE4B3G.js → chunk-W2LZZCAF.js} +7 -7
- package/Build/Workers/{chunk-EVLKHUAE.js → chunk-XEOY7FXL.js} +13 -13
- package/Build/Workers/{chunk-TXOGSFHZ.js → chunk-XZKRFAT7.js} +1 -1
- package/Build/Workers/{chunk-4QGPYV3W.js → chunk-YOZZHZVR.js} +4 -4
- package/Build/Workers/{chunk-QDUOGCCO.js → chunk-Z6SS6KIF.js} +11 -11
- package/Build/Workers/{chunk-2ZI7FZ3Q.js → chunk-ZADWOYGF.js} +2 -2
- package/Build/Workers/{chunk-PEVZYZBQ.js → chunk-ZBTL2GWA.js} +6 -6
- package/Build/Workers/{chunk-P32XMW4I.js → chunk-ZEHXFKIR.js} +15 -15
- 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 +32 -32
- 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 +17 -17
- 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 +21 -21
- package/Build/Workers/createPlaneGeometry.js +15 -15
- package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
- package/Build/Workers/createPolygonGeometry.js +33 -33
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +26 -26
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- 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 +21 -21
- package/Build/Workers/createVerticesFromHeightmap.js +21 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +18 -18
- 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 +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +21 -21
- package/Source/Core/GoogleMaps.js +8 -23
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +38 -8
- package/index.d.ts +12 -3
- package/index.js +103 -103
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.110
|
|
4
|
+
* Version 1.110.1
|
|
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-DI3VM6NF.js";
|
|
29
|
+
import "./chunk-DZUFRYQK.js";
|
|
30
|
+
import "./chunk-FBRBVOAJ.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-HYNBEK4C.js";
|
|
34
|
+
import "./chunk-J5YKECLG.js";
|
|
35
|
+
import "./chunk-54QBXZYE.js";
|
|
36
|
+
import "./chunk-KXTDRKW5.js";
|
|
37
|
+
import "./chunk-FDNL4I6K.js";
|
|
38
38
|
import {
|
|
39
39
|
IndexDatatype_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CLVX47CD.js";
|
|
41
41
|
import {
|
|
42
42
|
GeometryAttributes_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-I6R5G76Q.js";
|
|
44
44
|
import {
|
|
45
45
|
GeometryAttribute_default,
|
|
46
46
|
Geometry_default,
|
|
47
47
|
PrimitiveType_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-VEPSTOBV.js";
|
|
49
49
|
import {
|
|
50
50
|
BoundingSphere_default
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-TV4Q4TKV.js";
|
|
52
|
+
import "./chunk-MQ32KIOU.js";
|
|
53
|
+
import "./chunk-EJWAO37W.js";
|
|
54
54
|
import {
|
|
55
55
|
ComponentDatatype_default
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-7W3AMBD6.js";
|
|
57
57
|
import {
|
|
58
58
|
Cartesian3_default,
|
|
59
59
|
Ellipsoid_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-M57VBCI4.js";
|
|
61
61
|
import {
|
|
62
62
|
Math_default
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-A7T4GOG3.js";
|
|
64
|
+
import "./chunk-GQ66IPL6.js";
|
|
65
|
+
import "./chunk-ZADWOYGF.js";
|
|
66
66
|
import {
|
|
67
67
|
defaultValue_default
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-CGHLEZ43.js";
|
|
69
69
|
import {
|
|
70
70
|
DeveloperError_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-6EZ4NFIC.js";
|
|
72
72
|
import {
|
|
73
73
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-XZKRFAT7.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.110
|
|
4
|
+
* Version 1.110.1
|
|
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-DI3VM6NF.js";
|
|
29
|
+
import "./chunk-DZUFRYQK.js";
|
|
30
|
+
import "./chunk-FBRBVOAJ.js";
|
|
31
|
+
import "./chunk-J5YKECLG.js";
|
|
32
|
+
import "./chunk-54QBXZYE.js";
|
|
33
|
+
import "./chunk-KXTDRKW5.js";
|
|
34
|
+
import "./chunk-FDNL4I6K.js";
|
|
35
35
|
import {
|
|
36
36
|
IndexDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CLVX47CD.js";
|
|
38
38
|
import {
|
|
39
39
|
GeometryAttributes_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-I6R5G76Q.js";
|
|
41
41
|
import {
|
|
42
42
|
GeometryAttribute_default,
|
|
43
43
|
Geometry_default,
|
|
44
44
|
PrimitiveType_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VEPSTOBV.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-TV4Q4TKV.js";
|
|
49
|
+
import "./chunk-MQ32KIOU.js";
|
|
50
|
+
import "./chunk-EJWAO37W.js";
|
|
51
51
|
import {
|
|
52
52
|
ComponentDatatype_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7W3AMBD6.js";
|
|
54
54
|
import {
|
|
55
55
|
Cartesian3_default,
|
|
56
56
|
Ellipsoid_default
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-M57VBCI4.js";
|
|
58
58
|
import {
|
|
59
59
|
Math_default
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-A7T4GOG3.js";
|
|
61
|
+
import "./chunk-GQ66IPL6.js";
|
|
62
|
+
import "./chunk-ZADWOYGF.js";
|
|
63
63
|
import {
|
|
64
64
|
defaultValue_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-CGHLEZ43.js";
|
|
66
66
|
import {
|
|
67
67
|
DeveloperError_default
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-6EZ4NFIC.js";
|
|
69
69
|
import {
|
|
70
70
|
defined_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-XZKRFAT7.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.110
|
|
4
|
+
* Version 1.110.1
|
|
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-BZHAJSUN.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DUMQKN4C.js";
|
|
32
32
|
import {
|
|
33
33
|
IndexDatatype_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CLVX47CD.js";
|
|
35
35
|
import {
|
|
36
36
|
ComponentDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-7W3AMBD6.js";
|
|
38
|
+
import "./chunk-A7T4GOG3.js";
|
|
39
|
+
import "./chunk-GQ66IPL6.js";
|
|
40
40
|
import {
|
|
41
41
|
RuntimeError_default
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-ZADWOYGF.js";
|
|
43
|
+
import "./chunk-CGHLEZ43.js";
|
|
44
|
+
import "./chunk-6EZ4NFIC.js";
|
|
45
45
|
import {
|
|
46
46
|
__toESM,
|
|
47
47
|
defined_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XZKRFAT7.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.110
|
|
4
|
+
* Version 1.110.1
|
|
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-DUMQKN4C.js";
|
|
29
29
|
import {
|
|
30
30
|
RuntimeError_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZADWOYGF.js";
|
|
32
32
|
import {
|
|
33
33
|
Check_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6EZ4NFIC.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__toESM,
|
|
38
38
|
defined_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XZKRFAT7.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.110
|
|
4
|
+
* Version 1.110.1
|
|
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-BZHAJSUN.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DUMQKN4C.js";
|
|
32
32
|
import {
|
|
33
33
|
WebMercatorProjection_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EFUPZTUD.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-M57VBCI4.js";
|
|
41
41
|
import {
|
|
42
42
|
Math_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-A7T4GOG3.js";
|
|
44
|
+
import "./chunk-CGHLEZ43.js";
|
|
45
|
+
import "./chunk-6EZ4NFIC.js";
|
|
46
46
|
import {
|
|
47
47
|
__toESM,
|
|
48
48
|
defined_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XZKRFAT7.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.110
|
|
4
|
+
* Version 1.110.1
|
|
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-DUMQKN4C.js";
|
|
29
29
|
import {
|
|
30
30
|
WebGLConstants_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GQ66IPL6.js";
|
|
32
32
|
import {
|
|
33
33
|
RuntimeError_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZADWOYGF.js";
|
|
35
35
|
import {
|
|
36
36
|
defaultValue_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CGHLEZ43.js";
|
|
38
38
|
import {
|
|
39
39
|
Check_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6EZ4NFIC.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__require,
|
|
44
44
|
__toESM,
|
|
45
45
|
defined_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XZKRFAT7.js";
|
|
47
47
|
|
|
48
48
|
// packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
|
|
49
49
|
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.110
|
|
4
|
+
* Version 1.110.1
|
|
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-AMGYJNEB.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DUMQKN4C.js";
|
|
33
33
|
import {
|
|
34
34
|
OrientedBoundingBox_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BWTCHYX6.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-BKVKFLIC.js";
|
|
39
|
+
import "./chunk-TWN33EAP.js";
|
|
40
|
+
import "./chunk-ZBTL2GWA.js";
|
|
41
|
+
import "./chunk-KXTDRKW5.js";
|
|
42
|
+
import "./chunk-FDNL4I6K.js";
|
|
43
43
|
import {
|
|
44
44
|
IndexDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CLVX47CD.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-TV4Q4TKV.js";
|
|
49
|
+
import "./chunk-MQ32KIOU.js";
|
|
50
50
|
import {
|
|
51
51
|
Cartesian2_default,
|
|
52
52
|
Rectangle_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-EJWAO37W.js";
|
|
54
|
+
import "./chunk-7W3AMBD6.js";
|
|
55
55
|
import {
|
|
56
56
|
Cartesian3_default,
|
|
57
57
|
Cartographic_default,
|
|
58
58
|
Ellipsoid_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-M57VBCI4.js";
|
|
60
60
|
import {
|
|
61
61
|
Math_default
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-A7T4GOG3.js";
|
|
63
|
+
import "./chunk-GQ66IPL6.js";
|
|
64
|
+
import "./chunk-ZADWOYGF.js";
|
|
65
|
+
import "./chunk-CGHLEZ43.js";
|
|
66
66
|
import {
|
|
67
67
|
Check_default,
|
|
68
68
|
DeveloperError_default
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-6EZ4NFIC.js";
|
|
70
70
|
import {
|
|
71
71
|
defined_default
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-XZKRFAT7.js";
|
|
73
73
|
|
|
74
74
|
// packages/engine/Source/Core/Intersections2D.js
|
|
75
75
|
var Intersections2D = {};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import Credit from "./Credit.js";
|
|
2
|
-
import defined from "./defined.js";
|
|
3
2
|
import Resource from "./Resource.js";
|
|
4
3
|
|
|
5
|
-
let defaultKeyCredit;
|
|
6
|
-
const defaultKey = "AIzaSyA3mA091skJHiLbk3IOlHrHnZmzCoYz3-c";
|
|
7
|
-
|
|
8
4
|
/**
|
|
9
5
|
* Default settings for accessing the Google Maps API.
|
|
10
6
|
* <br/>
|
|
11
|
-
* An API key is only required if you are using any Google Maps APIs, such as {@link createGooglePhotorealistic3DTileset}.
|
|
12
|
-
* A default key is provided for evaluation purposes only.
|
|
7
|
+
* An API key is only required if you are directly using any Google Maps APIs, such as through {@link createGooglePhotorealistic3DTileset}.
|
|
13
8
|
* Follow instructions for managing API keys for the Google Maps Platform at {@link https://developers.google.com/maps/documentation/embed/get-api-key}
|
|
14
9
|
*
|
|
15
10
|
* @see createGooglePhotorealistic3DTileset
|
|
@@ -22,9 +17,9 @@ const GoogleMaps = {};
|
|
|
22
17
|
/**
|
|
23
18
|
* Gets or sets the default Google Maps API key.
|
|
24
19
|
*
|
|
25
|
-
* @type {string}
|
|
20
|
+
* @type {undefined|string}
|
|
26
21
|
*/
|
|
27
|
-
GoogleMaps.defaultApiKey =
|
|
22
|
+
GoogleMaps.defaultApiKey = undefined;
|
|
28
23
|
|
|
29
24
|
/**
|
|
30
25
|
* Gets or sets the default Google Map Tiles API endpoint.
|
|
@@ -36,20 +31,10 @@ GoogleMaps.mapTilesApiEndpoint = new Resource({
|
|
|
36
31
|
url: "https://tile.googleapis.com/v1/",
|
|
37
32
|
});
|
|
38
33
|
|
|
39
|
-
GoogleMaps.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (!defined(defaultKeyCredit)) {
|
|
45
|
-
const defaultKeyMessage =
|
|
46
|
-
'<b> \
|
|
47
|
-
This application is using CesiumJS\'s default Google Maps API key. Please assign <i>Cesium.GoogleMaps.defaultApiKey</i> \
|
|
48
|
-
with <a href="https://developers.google.com/maps/documentation/embed/get-api-key">your API key for the Google Maps Platform</a>.</b>';
|
|
49
|
-
|
|
50
|
-
defaultKeyCredit = new Credit(defaultKeyMessage, true);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return defaultKeyCredit;
|
|
34
|
+
GoogleMaps.getDefaultCredit = function () {
|
|
35
|
+
return new Credit(
|
|
36
|
+
`<img src="https://assets.ion-development.cesium.com/google-credit.png" alt="Google">`,
|
|
37
|
+
true
|
|
38
|
+
);
|
|
54
39
|
};
|
|
55
40
|
export default GoogleMaps;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Cesium3DTileset from "./Cesium3DTileset.js";
|
|
2
2
|
import defaultValue from "../Core/defaultValue.js";
|
|
3
3
|
import defined from "../Core/defined.js";
|
|
4
|
+
import IonResource from "../Core/IonResource.js";
|
|
4
5
|
import GoogleMaps from "../Core/GoogleMaps.js";
|
|
5
6
|
import Resource from "../Core/Resource.js";
|
|
6
7
|
|
|
@@ -16,6 +17,17 @@ import Resource from "../Core/Resource.js";
|
|
|
16
17
|
* @see GoogleMaps
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
20
|
+
* const viewer = new Cesium.Viewer("cesiumContainer");
|
|
21
|
+
*
|
|
22
|
+
* try {
|
|
23
|
+
* const tileset = await Cesium.createGooglePhotorealistic3DTileset();
|
|
24
|
+
* viewer.scene.primitives.add(tileset));
|
|
25
|
+
* } catch (error) {
|
|
26
|
+
* console.log(`Error creating tileset: ${error}`);
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Use your own Google Maps API key
|
|
19
31
|
* Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
20
32
|
*
|
|
21
33
|
* const viewer = new Cesium.Viewer("cesiumContainer");
|
|
@@ -28,14 +40,6 @@ import Resource from "../Core/Resource.js";
|
|
|
28
40
|
* }
|
|
29
41
|
*/
|
|
30
42
|
async function createGooglePhotorealistic3DTileset(key, options) {
|
|
31
|
-
key = defaultValue(key, GoogleMaps.defaultApiKey);
|
|
32
|
-
|
|
33
|
-
let credits;
|
|
34
|
-
const credit = GoogleMaps.getDefaultApiKeyCredit(key);
|
|
35
|
-
if (defined(credit)) {
|
|
36
|
-
credits = [credit];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
43
|
options = defaultValue(options, {});
|
|
40
44
|
options.showCreditsOnScreen = true;
|
|
41
45
|
options.cacheBytes = defaultValue(options.cacheBytes, 1536 * 1024 * 1024);
|
|
@@ -44,6 +48,17 @@ async function createGooglePhotorealistic3DTileset(key, options) {
|
|
|
44
48
|
1024 * 1024 * 1024
|
|
45
49
|
);
|
|
46
50
|
|
|
51
|
+
key = defaultValue(key, GoogleMaps.defaultApiKey);
|
|
52
|
+
if (!defined(key)) {
|
|
53
|
+
return requestCachedIonTileset(options);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let credits;
|
|
57
|
+
const credit = GoogleMaps.getDefaultCredit();
|
|
58
|
+
if (defined(credit)) {
|
|
59
|
+
credits = [credit];
|
|
60
|
+
}
|
|
61
|
+
|
|
47
62
|
const resource = new Resource({
|
|
48
63
|
url: `${GoogleMaps.mapTilesApiEndpoint}3dtiles/root.json`,
|
|
49
64
|
queryParameters: {
|
|
@@ -55,4 +70,19 @@ async function createGooglePhotorealistic3DTileset(key, options) {
|
|
|
55
70
|
return Cesium3DTileset.fromUrl(resource, options);
|
|
56
71
|
}
|
|
57
72
|
|
|
73
|
+
const metadataCache = {};
|
|
74
|
+
async function requestCachedIonTileset(options) {
|
|
75
|
+
const ionAssetId = 2275207;
|
|
76
|
+
const cacheKey = ionAssetId;
|
|
77
|
+
|
|
78
|
+
let promise = metadataCache[cacheKey];
|
|
79
|
+
if (!defined(promise)) {
|
|
80
|
+
promise = IonResource.fromAssetId(ionAssetId);
|
|
81
|
+
metadataCache[cacheKey] = promise;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const resource = await promise;
|
|
85
|
+
return Cesium3DTileset.fromUrl(resource, options);
|
|
86
|
+
}
|
|
87
|
+
|
|
58
88
|
export default createGooglePhotorealistic3DTileset;
|
package/index.d.ts
CHANGED
|
@@ -7568,15 +7568,14 @@ export class GoogleEarthEnterpriseTerrainProvider {
|
|
|
7568
7568
|
/**
|
|
7569
7569
|
* Default settings for accessing the Google Maps API.
|
|
7570
7570
|
* <br/>
|
|
7571
|
-
* An API key is only required if you are using any Google Maps APIs, such as {@link createGooglePhotorealistic3DTileset}.
|
|
7572
|
-
* A default key is provided for evaluation purposes only.
|
|
7571
|
+
* An API key is only required if you are directly using any Google Maps APIs, such as through {@link createGooglePhotorealistic3DTileset}.
|
|
7573
7572
|
* Follow instructions for managing API keys for the Google Maps Platform at {@link https://developers.google.com/maps/documentation/embed/get-api-key}
|
|
7574
7573
|
*/
|
|
7575
7574
|
export namespace GoogleMaps {
|
|
7576
7575
|
/**
|
|
7577
7576
|
* Gets or sets the default Google Maps API key.
|
|
7578
7577
|
*/
|
|
7579
|
-
var defaultApiKey: string;
|
|
7578
|
+
var defaultApiKey: undefined | string;
|
|
7580
7579
|
/**
|
|
7581
7580
|
* Gets or sets the default Google Map Tiles API endpoint.
|
|
7582
7581
|
*/
|
|
@@ -42241,6 +42240,16 @@ export function createElevationBandMaterial(options: {
|
|
|
42241
42240
|
/**
|
|
42242
42241
|
* Creates a {@link Cesium3DTileset} instance for the Google Photorealistic 3D Tiles tileset.
|
|
42243
42242
|
* @example
|
|
42243
|
+
* const viewer = new Cesium.Viewer("cesiumContainer");
|
|
42244
|
+
*
|
|
42245
|
+
* try {
|
|
42246
|
+
* const tileset = await Cesium.createGooglePhotorealistic3DTileset();
|
|
42247
|
+
* viewer.scene.primitives.add(tileset));
|
|
42248
|
+
* } catch (error) {
|
|
42249
|
+
* console.log(`Error creating tileset: ${error}`);
|
|
42250
|
+
* }
|
|
42251
|
+
* @example
|
|
42252
|
+
* // Use your own Google Maps API key
|
|
42244
42253
|
* Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
42245
42254
|
*
|
|
42246
42255
|
* const viewer = new Cesium.Viewer("cesiumContainer");
|